/frameworks/av/services/audiopolicy/common/include/ |
H A D | Volume.h | 53 * device categories used for volume curve management. 64 * extract one device relevant for volume control from multiple device selection 66 * @param[in] device for which the volume category is associated 68 * @return subset of device required to limit the number of volume category per device 70 static audio_devices_t getDeviceForVolume(audio_devices_t device) argument 72 if (device == AUDIO_DEVICE_NONE) { 75 device = AUDIO_DEVICE_OUT_SPEAKER; 76 } else if (popcount(device) > 104 device); local 116 getDeviceCategory(audio_devices_t device) argument [all...] |
H A D | policy.h | 30 * A device mask for all audio input devices that are considered "virtual" when evaluating 37 * A device mask for all audio input and output devices where matching inputs/outputs on device 50 * @return true if given state represents a device in a telephony or VoIP call 58 * Check if the input device given is considered as a virtual device. 60 * @param[in] device to consider 62 * @return true if the device is a virtual one, false otherwise. 64 static inline bool is_virtual_input_device(audio_devices_t device) argument 66 if ((device 82 device_distinguishes_on_address(audio_devices_t device) argument [all...] |
/frameworks/base/core/java/android/bluetooth/ |
H A D | IBluetoothHeadsetClient.aidl | 29 boolean connect(in BluetoothDevice device); 30 boolean disconnect(in BluetoothDevice device); 32 boolean acceptIncomingConnect(in BluetoothDevice device); 33 boolean rejectIncomingConnect(in BluetoothDevice device); 37 int getConnectionState(in BluetoothDevice device); 38 boolean setPriority(in BluetoothDevice device, int priority); 39 int getPriority(in BluetoothDevice device); 41 boolean startVoiceRecognition(in BluetoothDevice device); 42 boolean stopVoiceRecognition(in BluetoothDevice device); 44 List<BluetoothHeadsetClientCall> getCurrentCalls(in BluetoothDevice device); [all...] |
H A D | IBluetoothHeadset.aidl | 28 boolean connect(in BluetoothDevice device); 29 boolean disconnect(in BluetoothDevice device); 32 int getConnectionState(in BluetoothDevice device); 33 boolean setPriority(in BluetoothDevice device, int priority); 34 int getPriority(in BluetoothDevice device); 35 boolean startVoiceRecognition(in BluetoothDevice device); 36 boolean stopVoiceRecognition(in BluetoothDevice device); 37 boolean isAudioConnected(in BluetoothDevice device); 38 boolean sendVendorSpecificResultCode(in BluetoothDevice device, 43 int getBatteryUsageHint(in BluetoothDevice device); [all...] |
H A D | IBluetoothInputDevice.aidl | 28 boolean connect(in BluetoothDevice device); 29 boolean disconnect(in BluetoothDevice device); 32 int getConnectionState(in BluetoothDevice device); 33 boolean setPriority(in BluetoothDevice device, int priority); 34 int getPriority(in BluetoothDevice device); 38 boolean getProtocolMode(in BluetoothDevice device); 42 boolean virtualUnplug(in BluetoothDevice device); 46 boolean setProtocolMode(in BluetoothDevice device, int protocolMode); 50 boolean getReport(in BluetoothDevice device, byte reportType, byte reportId, int bufferSize); 54 boolean setReport(in BluetoothDevice device, byt [all...] |
H A D | BluetoothGattServerCallback.java | 27 * Callback indicating when a remote device has been connected or disconnected. 29 * @param device Remote device that has been connected or disconnected. 35 public void onConnectionStateChange(BluetoothDevice device, int status, argument 55 * @param device The remote device that has requested the read operation 60 public void onCharacteristicReadRequest(BluetoothDevice device, int requestId, argument 70 * @param device The remote device that has requested the write operation 75 * @param responseNeeded true, if the remote device require 79 onCharacteristicWriteRequest(BluetoothDevice device, int requestId, BluetoothGattCharacteristic characteristic, boolean preparedWrite, boolean responseNeeded, int offset, byte[] value) argument 96 onDescriptorReadRequest(BluetoothDevice device, int requestId, int offset, BluetoothGattDescriptor descriptor) argument 115 onDescriptorWriteRequest(BluetoothDevice device, int requestId, BluetoothGattDescriptor descriptor, boolean preparedWrite, boolean responseNeeded, int offset, byte[] value) argument 132 onExecuteWrite(BluetoothDevice device, int requestId, boolean execute) argument 146 onNotificationSent(BluetoothDevice device, int status) argument 158 onMtuChanged(BluetoothDevice device, int mtu) argument [all...] |
H A D | IBluetoothA2dpSink.aidl | 28 boolean connect(in BluetoothDevice device); 29 boolean disconnect(in BluetoothDevice device); 32 int getConnectionState(in BluetoothDevice device); 33 BluetoothAudioConfig getAudioConfig(in BluetoothDevice device);
|
H A D | IBluetoothPbap.aidl | 29 boolean connect(in BluetoothDevice device); 31 boolean isConnected(in BluetoothDevice device);
|
H A D | IBluetooth.aidl | 58 boolean createBond(in BluetoothDevice device, in int transport); 59 boolean cancelBondProcess(in BluetoothDevice device); 60 boolean removeBond(in BluetoothDevice device); 61 int getBondState(in BluetoothDevice device); 62 int getConnectionState(in BluetoothDevice device); 64 String getRemoteName(in BluetoothDevice device); 65 int getRemoteType(in BluetoothDevice device); 66 String getRemoteAlias(in BluetoothDevice device); 67 boolean setRemoteAlias(in BluetoothDevice device, in String name); 68 int getRemoteClass(in BluetoothDevice device); [all...] |
H A D | IBluetoothA2dp.aidl | 28 boolean connect(in BluetoothDevice device); 29 boolean disconnect(in BluetoothDevice device); 32 int getConnectionState(in BluetoothDevice device); 33 boolean setPriority(in BluetoothDevice device, int priority); 34 int getPriority(in BluetoothDevice device); 38 boolean isA2dpPlaying(in BluetoothDevice device);
|
H A D | IBluetoothMap.aidl | 29 boolean connect(in BluetoothDevice device); 30 boolean disconnect(in BluetoothDevice device); 31 boolean isConnected(in BluetoothDevice device); 34 int getConnectionState(in BluetoothDevice device); 35 boolean setPriority(in BluetoothDevice device, int priority); 36 int getPriority(in BluetoothDevice device);
|
H A D | IBluetoothSap.aidl | 29 boolean connect(in BluetoothDevice device); 30 boolean disconnect(in BluetoothDevice device); 31 boolean isConnected(in BluetoothDevice device); 34 int getConnectionState(in BluetoothDevice device); 35 boolean setPriority(in BluetoothDevice device, int priority); 36 int getPriority(in BluetoothDevice device);
|
H A D | IBluetoothPan.aidl | 30 boolean connect(in BluetoothDevice device); 31 boolean disconnect(in BluetoothDevice device); 34 int getConnectionState(in BluetoothDevice device);
|
H A D | IBluetoothAvrcpController.aidl | 29 int getConnectionState(in BluetoothDevice device); 30 void sendPassThroughCmd(in BluetoothDevice device, int keyCode, int keyState);
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
H A D | LocalBluetoothProfile.java | 38 boolean connect(BluetoothDevice device); argument 40 boolean disconnect(BluetoothDevice device); argument 42 int getConnectionStatus(BluetoothDevice device); argument 44 boolean isPreferred(BluetoothDevice device); argument 46 int getPreferred(BluetoothDevice device); argument 48 void setPreferred(BluetoothDevice device, boolean preferred); argument 52 /** Display order for device profile settings. */ 57 * @param device the Bluetooth device (to distinguish between PAN roles) 59 int getNameResource(BluetoothDevice device); argument 68 getSummaryResourceForDevice(BluetoothDevice device) argument [all...] |
H A D | OppProfile.java | 32 // Order of this profile in device profiles list 43 public boolean connect(BluetoothDevice device) { argument 47 public boolean disconnect(BluetoothDevice device) { argument 51 public int getConnectionStatus(BluetoothDevice device) { argument 55 public boolean isPreferred(BluetoothDevice device) { argument 59 public int getPreferred(BluetoothDevice device) { argument 63 public void setPreferred(BluetoothDevice device, boolean preferred) { argument 78 public int getNameResource(BluetoothDevice device) { argument 82 public int getSummaryResourceForDevice(BluetoothDevice device) { argument
|
H A D | A2dpProfile.java | 52 // Order of this profile in device profiles list 66 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); 67 // we may add a new device here, but generally this should not happen 68 if (device == null) { 69 Log.w(TAG, "A2dpProfile found new device: " + nextDevice); 70 device = mDeviceManager.addDevice(mLocalAdapter, mProfileManager, nextDevice); 72 device.onProfileStateChanged(A2dpProfile.this, BluetoothProfile.STATE_CONNECTED); 73 device.refresh(); 114 public boolean connect(BluetoothDevice device) { argument 122 return mService.connect(device); 125 disconnect(BluetoothDevice device) argument 134 getConnectionStatus(BluetoothDevice device) argument 141 isPreferred(BluetoothDevice device) argument 146 getPreferred(BluetoothDevice device) argument 151 setPreferred(BluetoothDevice device, boolean preferred) argument 180 getNameResource(BluetoothDevice device) argument 184 getSummaryResourceForDevice(BluetoothDevice device) argument [all...] |
H A D | HidProfile.java | 47 // Order of this profile in device profiles list 61 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); 62 // we may add a new device here, but generally this should not happen 63 if (device == null) { 64 Log.w(TAG, "HidProfile found new device: " + nextDevice); 65 device = mDeviceManager.addDevice(mLocalAdapter, mProfileManager, nextDevice); 67 device.onProfileStateChanged(HidProfile.this, BluetoothProfile.STATE_CONNECTED); 68 device.refresh(); 101 public boolean connect(BluetoothDevice device) { argument 103 return mService.connect(device); 106 disconnect(BluetoothDevice device) argument 111 getConnectionStatus(BluetoothDevice device) argument 122 isPreferred(BluetoothDevice device) argument 127 getPreferred(BluetoothDevice device) argument 132 setPreferred(BluetoothDevice device, boolean preferred) argument 151 getNameResource(BluetoothDevice device) argument 156 getSummaryResourceForDevice(BluetoothDevice device) argument [all...] |
/frameworks/base/wifi/java/android/net/wifi/p2p/ |
H A D | WifiP2pDeviceList.java | 30 * A class representing a Wi-Fi P2p device list. 53 for (WifiP2pDevice device : devices) { 54 if (device.deviceAddress != null) { 55 mDevices.put(device.deviceAddress, new WifiP2pDevice(device)); 60 private void validateDevice(WifiP2pDevice device) { argument 61 if (device == null) throw new IllegalArgumentException("Null device"); 62 if (TextUtils.isEmpty(device.deviceAddress)) { 81 * Add/update a device t 86 update(WifiP2pDevice device) argument 92 updateSupplicantDetails(WifiP2pDevice device) argument 138 remove(WifiP2pDevice device) argument [all...] |
/frameworks/native/services/inputflinger/ |
H A D | EventHub.cpp | 237 Device* device = mClosingDevices; local 238 mClosingDevices = device->next; 239 delete device; 252 Device* device = getDeviceLocked(deviceId); local 253 if (device == NULL) return InputDeviceIdentifier(); 254 return device->identifier; 259 Device* device = getDeviceLocked(deviceId); local 260 if (device == NULL) return 0; 261 return device->classes; 266 Device* device local 273 Device* device = getDeviceLocked(deviceId); local 288 Device* device = getDeviceLocked(deviceId); local 315 Device* device = getDeviceLocked(deviceId); local 327 Device* device = getDeviceLocked(deviceId); local 339 Device* device = getDeviceLocked(deviceId); local 354 Device* device = getDeviceLocked(deviceId); local 379 Device* device = getDeviceLocked(deviceId); local 397 Device* device = getDeviceLocked(deviceId); local 417 Device* device = getDeviceLocked(deviceId); local 445 Device* device = getDeviceLocked(deviceId); local 486 Device* device = getDeviceLocked(deviceId); local 506 Device* device = getDeviceLocked(deviceId); local 517 Device* device = getDeviceLocked(deviceId); local 529 Device* device = getDeviceLocked(deviceId); local 533 setLedStateLocked(Device* device, int32_t led, bool on) argument 555 Device* device = getDeviceLocked(deviceId); local 563 Device* device = getDeviceLocked(deviceId); local 573 Device* device = getDeviceLocked(deviceId); local 638 Device* device = getDeviceLocked(deviceId); local 672 Device* device = getDeviceLocked(deviceId); local 695 Device* device = mDevices.valueAt(i); local 713 Device* device = mDevices.valueAt(i); local 747 Device* device = mClosingDevices; local 769 Device* device = mOpeningDevices; local 829 Device* device = mDevices.valueAt(deviceIndex); local 1147 Device* device = new Device(fd, deviceId, String8(devicePath), identifier); local 1397 Device* device = new Device(-1, VIRTUAL_KEYBOARD_ID, String8("<virtual>"), identifier); local 1406 addDeviceLocked(Device* device) argument 1412 loadConfigurationLocked(Device* device) argument 1429 loadVirtualKeyMapLocked(Device* device) argument 1440 loadKeyMapLocked(Device* device) argument 1444 isExternalDeviceLocked(Device* device) argument 1454 deviceHasMicLocked(Device* device) argument 1464 getNextControllerNumberLocked(Device* device) argument 1475 releaseControllerNumberLocked(Device* device) argument 1484 setLedForController(Device* device) argument 1490 hasKeycodeLocked(Device* device, int keycode) const argument 1508 mapLed(Device* device, int32_t led, int32_t* outScanCode) const argument 1524 Device* device = getDeviceByPathLocked(devicePath); local 1539 closeDeviceLocked(Device* device) argument 1675 const Device* device = mDevices.valueAt(i); local [all...] |
/frameworks/av/services/audiopolicy/enginedefault/src/ |
H A D | Engine.cpp | 297 uint32_t device = AUDIO_DEVICE_NONE; local 303 device = availableOutputDevicesType & AUDIO_DEVICE_OUT_SPEAKER; 304 if (!device) { 305 ALOGE("getDeviceForStrategy() no device found for "\ 312 device = getDeviceForStrategy(STRATEGY_SONIFICATION); 315 // while media is playing on a remote device, use the the sonification behavior. 319 device = getDeviceForStrategy(STRATEGY_SONIFICATION); 322 if ((device & AUDIO_DEVICE_OUT_SPEAKER) && 324 device |= AUDIO_DEVICE_OUT_SPEAKER_SAFE; 325 device 599 uint32_t device = AUDIO_DEVICE_NONE; local [all...] |
/frameworks/av/services/camera/libcameraservice/ |
H A D | CameraDeviceFactory.cpp | 41 sp<CameraDeviceBase> device; local 46 device = new Camera2Device(cameraId); 52 device = new Camera3Device(cameraId); 55 ALOGE("%s: Camera %d: Unknown HAL device version %d", 57 device = NULL; 61 ALOGV_IF(device != 0, "Created a new camera device for version %d", 64 return device;
|
/frameworks/base/core/jni/ |
H A D | android_hardware_UsbDeviceConnection.cpp | 52 struct usb_device* device = usb_device_new(deviceNameStr, fd); local 53 if (device) { 54 env->SetLongField(thiz, field_context, (jlong)device); 61 return (device != NULL) ? JNI_TRUE : JNI_FALSE; 68 struct usb_device* device = get_device_from_object(env, thiz); local 69 if (device) { 70 usb_device_close(device); 78 struct usb_device* device = get_device_from_object(env, thiz); local 79 if (!device) { 80 ALOGE("device i 111 struct usb_device* device = get_device_from_object(env, thiz); local 129 struct usb_device* device = get_device_from_object(env, thiz); local 146 struct usb_device* device = get_device_from_object(env, thiz); local 158 struct usb_device* device = get_device_from_object(env, thiz); local 172 struct usb_device* device = get_device_from_object(env, thiz); local 197 struct usb_device* device = get_device_from_object(env, thiz); local 220 struct usb_device* device = get_device_from_object(env, thiz); local 236 struct usb_device* device = get_device_from_object(env, thiz); local [all...] |
/frameworks/base/media/java/android/media/midi/ |
H A D | IMidiDeviceListener.aidl | 25 void onDeviceAdded(in MidiDeviceInfo device); 26 void onDeviceRemoved(in MidiDeviceInfo device);
|
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/ |
H A D | BluetoothStressTest.java | 75 * Stress test for putting the device in and taking the device out of discoverable mode. 144 * Stress test for pairing and unpairing with a remote device. 146 * In this test, the local device initiates pairing with a remote device, and then unpairs with 147 * the device after the pairing has successfully completed. 156 BluetoothDevice device = adapter.getRemoteDevice(BluetoothTestRunner.sDeviceAddress); 159 mTestUtils.unpair(adapter, device); 163 mTestUtils.pair(adapter, device, BluetoothTestRunner.sDevicePairPasskey, 165 mTestUtils.unpair(adapter, device); [all...] |