Searched refs:device (Results 76 - 95 of 95) sorted by relevance

1234

/frameworks/base/services/audioflinger/
H A DAudioPolicyService.h56 virtual status_t setDeviceConnectionState(audio_devices_t device,
60 audio_devices_t device,
279 // device connection state or routing
H A DAudioFlinger.h0 /* //device/include/server/AudioFlinger/AudioFlinger.h
285 ThreadBase (const sp<AudioFlinger>& audioFlinger, int id, uint32_t device);
432 uint32_t device() { return mDevice; } function in class:android::AudioFlinger::ThreadBase
555 uint32_t mDevice; // output device for PlaybackThread
697 PlaybackThread (const sp<AudioFlinger>& audioFlinger, AudioStreamOut* output, int id, uint32_t device);
821 uint32_t device);
845 DirectOutputThread (const sp<AudioFlinger>& audioFlinger, AudioStreamOut* output, int id, uint32_t device);
976 uint32_t device);
1118 status_t setDevice(uint32_t device);
1272 void setDevice_l(uint32_t device);
[all...]
H A DAudioPolicyService.cpp87 LOGE_IF(rc, "couldn't open audio policy device (%s)", strerror(-rc));
154 status_t AudioPolicyService::setDeviceConnectionState(audio_devices_t device, argument
164 if (!audio_is_output_device(device) && !audio_is_input_device(device)) {
174 return mpAudioPolicy->set_device_connection_state(mpAudioPolicy, device,
179 audio_devices_t device,
185 return mpAudioPolicy->get_device_connection_state(mpAudioPolicy, device,
178 getDeviceConnectionState( audio_devices_t device, const char *device_address) argument
H A DAudioFlinger.cpp0 /* //device/include/server/AudioFlinger/AudioFlinger.cpp
137 LOGE_IF(rc, "couldn't open audio hw device in %s.%s (%s)",
249 /* first matching HW device is returned */
757 // disable AEC and NS if the device is a BT SCO headset supporting those pre processings
768 audio_devices_t device = (audio_devices_t)( local
769 thread->device() & AUDIO_DEVICE_IN_ALL);
770 bool suspend = audio_is_bluetooth_sco_device(device) && btNrecIsOff;
794 // indicate output device change to all input threads for pre processing
979 AudioFlinger::ThreadBase::ThreadBase(const sp<AudioFlinger>& audioFlinger, int id, uint32_t device) argument
983 mDevice(device)
1365 PlaybackThread(const sp<AudioFlinger>& audioFlinger, AudioStreamOut* output, int id, uint32_t device) argument
1833 MixerThread(const sp<AudioFlinger>& audioFlinger, AudioStreamOut* output, int id, uint32_t device) argument
2448 DirectOutputThread(const sp<AudioFlinger>& audioFlinger, AudioStreamOut* output, int id, uint32_t device) argument
4213 RecordThread(const sp<AudioFlinger>& audioFlinger, AudioStreamIn *input, uint32_t sampleRate, uint32_t channels, int id, uint32_t device) argument
5097 uint32_t device = (*pDevices) | primaryOutputDevice_l(); local
6628 setDevice(uint32_t device) argument
7321 setDevice_l(uint32_t device) argument
[all...]
/frameworks/base/core/tests/hosttests/src/android/content/pm/
H A DPackageManagerHostTestUtils.java66 // Install preference on the device-side
80 * Constructor takes the device to use
81 * @param the device to use when performing operations
83 public PackageManagerHostTestUtils(IDevice device) argument
85 mDevice = device;
94 * Returns the path on the device of forward-locked apps.
96 * @return path of forward-locked apps on the device
103 * Returns the path on the device of normal apps.
105 * @return path of forward-locked apps on the device
114 * @return path of forward-locked apps on the device
[all...]
/frameworks/base/core/java/android/view/
H A DKeyCharacterMap.java28 * Describes the keys provided by a keyboard device and their associated labels.
32 * The id of the device's primary built in keyboard is always 0.
35 * guarantee that a device has a built-in keyboard that can be used for
40 * use the device id specified in the {@link KeyEvent} received.
43 * device id.
168 * Loads the key character maps for the keyboard with the specified device id.
170 * @param deviceId The device id of the keyboard.
182 InputDevice device = InputDevice.getDevice(deviceId);
183 if (device != null) {
184 kcm = device
[all...]
/frameworks/compile/libbcc/
H A DAndroid.mk151 include $(LLVM_ROOT_PATH)/llvm-device-build.mk
/frameworks/base/opengl/libs/
H A DAndroid.mk153 # Build the ETC1 device library
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothDeviceProfileState.java38 * device. When the device bonds an instance of this class is created.
41 * A2DP. When the device is unbonded, the instance is removed.
44 * {@link BondedDevice}: This state represents a bonded device. When in this
132 BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
133 if (device == null || !device.equals(mDevice)) return;
138 // We trust this device now
154 // We trust this device now
171 // We trust this device no
[all...]
/frameworks/base/media/java/android/media/
H A DAudioService.java255 // Broadcast receiver for device connections intent broadcasts
268 // Forced device usage for communications
281 // Bluetooth headset device
363 // Register for device connection intent broadcasts.
442 // sanity check in case the settings are restored from a device with incompatible
451 // make sure settings for ringer mode are consistent with device type: non voice capable
2233 // Restore device connection states
2238 Map.Entry device = (Map.Entry)i.next();
2240 ((Integer)device.getKey()).intValue(),
2242 (String)device
[all...]
/frameworks/base/services/jni/
H A Dcom_android_server_location_GpsLocationProvider.cpp255 hw_device_t* device; local
256 err = module->methods->open(module, GPS_HARDWARE_MODULE_ID, &device);
258 gps_device_t* gps_device = (gps_device_t *)device;
/frameworks/base/core/java/android/server/
H A DBluetoothBondState.java124 for (String device : bonds) {
125 mState.put(mService.getAddressFromObjectPath(device).toUpperCase(),
178 Log.w(TAG, "setBondState() called to unbond device, but reason code is " +
/frameworks/base/wifi/java/android/net/wifi/p2p/
H A DWifiP2pService.java74 * communicate with this service to issue device discovery and connectivity requests
685 WifiP2pDevice device = (WifiP2pDevice) message.obj;
686 if (mThisDevice.deviceAddress.equals(device.deviceAddress)) break;
687 mPeers.update(device);
691 device = (WifiP2pDevice) message.obj;
692 if (mPeers.remove(device)) sendP2pPeersChangedBroadcast();
942 loge("Connect on unknown device address : " + interfaceAddress);
965 loge("Disconnect on unknown device address : " + interfaceAddress);
1013 WifiP2pDevice device = (WifiP2pDevice) message.obj;
1014 if (device
[all...]
/frameworks/base/media/libmedia/
H A DAudioSystem.cpp509 status_t AudioSystem::setDeviceConnectionState(audio_devices_t device, argument
522 return aps->setDeviceConnectionState(device, state, address);
525 audio_policy_dev_state_t AudioSystem::getDeviceConnectionState(audio_devices_t device, argument
531 return aps->getDeviceConnectionState(device, device_address);
573 // (e.g voice call stream @ 8kHz could use BT SCO device and be routed to
/frameworks/base/media/mtp/
H A DMtpDataPacket.cpp428 int MtpDataPacket::readDataWait(struct usb_device *device) {
429 struct usb_request *req = usb_request_wait(device);
/frameworks/base/services/sensorservice/
H A DSensorService.cpp230 SensorDevice& device(SensorDevice::getInstance());
235 count = device.poll(buffer, numEventMax);
/frameworks/base/core/java/com/android/internal/widget/
H A DPointerLocationView.java149 InputDevice device = InputDevice.getDevice(deviceIds[i]);
150 if (device != null) {
151 Log.i(TAG, device.toString());
/frameworks/base/docs/html/resources/
H A Dresources-data.js102 en: 'When an Android device changes its orientation, the default behavior is to automatically restart the current activity with a new configuration. However, this can become a bottleneck in applications that access a large amount of external data. This article discusses how to gracefully handle this situation without resorting to manually processing configuration changes.'
272 en: 'This article explains the touch mode, one of the most important principles of Android\'s UI toolkit. Whenever a user interacts with a device\'s touch screen, the system enters touch mode. While simple in concept, there are important implications touch mode that are often overlooked.'
397 en: 'An example of using the accelerometer to integrate the device\'s acceleration to a position using the Verlet method. This is illustrated with a very simple particle system comprised of a few iron balls freely moving on an inclined wooden table. The inclination of the virtual table is controlled by the device\'s accelerometer.'
477 en: 'A sample application that demonstrates how to communicate with a Bluetooth Health Device Profile (HDP) device.'
597 en: 'Demonstrates how to write a multimedia application that plays music from the device and from URLs. It manages media playback from a service and can play music in the background, respecting audio focus changes. Also shows how to use the new Remote Control APIs in API level 14.'
/frameworks/base/media/libeffects/lvm/wrapper/Bundle/
H A DEffectBundle.cpp2465 // Bass boost or Virtualizer can be temporarily disabled if playing over device speaker due
3065 uint32_t device = *(uint32_t *)pCmdData; local
3068 if((device == AUDIO_DEVICE_OUT_SPEAKER) ||
3069 (device == AUDIO_DEVICE_OUT_BLUETOOTH_SCO_CARKIT) ||
3070 (device == AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER)){
3071 LOGV("\tEFFECT_CMD_SET_DEVICE device is invalid for LVM_BASS_BOOST %d",
3075 // If a device doesnt support bassboost the effect must be temporarily disabled
3086 LOGV("\tEFFECT_CMD_SET_DEVICE device is valid for LVM_BASS_BOOST %d",
3089 // If a device supports bassboost and the effect has been temporarily disabled
3101 if((device
[all...]
/frameworks/base/media/libeffects/preprocessing/
H A DPreProcessing.cpp79 int (* set_device)(preproc_effect_t *fx, uint32_t device);
473 int AecSetDevice(preproc_effect_t *effect, uint32_t device) argument
475 LOGV("AecSetDevice %08x", device);
479 switch(device) {

Completed in 610 milliseconds

1234