/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | A2dpProfile.java | 221 BluetoothDevice bluetoothDevice = (device != null) ? device : mService.getActiveDevice(); in supportsHighQualityAudio() local 222 if (bluetoothDevice == null) { in supportsHighQualityAudio() 225 int support = mService.isOptionalCodecsSupported(bluetoothDevice); in supportsHighQualityAudio() 230 BluetoothDevice bluetoothDevice = (device != null) ? device : mService.getActiveDevice(); in isHighQualityAudioEnabled() local 231 if (bluetoothDevice == null) { in isHighQualityAudioEnabled() 234 int enabled = mService.isOptionalCodecsEnabled(bluetoothDevice); in isHighQualityAudioEnabled() 237 } else if (getConnectionStatus(bluetoothDevice) != BluetoothProfile.STATE_CONNECTED in isHighQualityAudioEnabled() 238 && supportsHighQualityAudio(bluetoothDevice)) { in isHighQualityAudioEnabled() 245 if (mService.getCodecStatus(bluetoothDevice) != null) { in isHighQualityAudioEnabled() 246 codecConfig = mService.getCodecStatus(bluetoothDevice).getCodecConfig(); in isHighQualityAudioEnabled() [all …]
|
D | BluetoothUtils.java | 184 final BluetoothDevice bluetoothDevice = cachedDevice.getDevice(); in getBtDrawableWithDescription() local 190 if (isAdvancedDetailsHeader(bluetoothDevice)) { in getBtDrawableWithDescription() 191 final Uri iconUri = getUriMetaData(bluetoothDevice, in getBtDrawableWithDescription() 227 public static boolean isAdvancedDetailsHeader(@NonNull BluetoothDevice bluetoothDevice) { in isAdvancedDetailsHeader() argument 234 if (getBooleanMetaData(bluetoothDevice, BluetoothDevice.METADATA_IS_UNTETHERED_HEADSET)) { in isAdvancedDetailsHeader() 239 String deviceType = getStringMetaData(bluetoothDevice, in isAdvancedDetailsHeader() 314 public static boolean getBooleanMetaData(BluetoothDevice bluetoothDevice, int key) { in getBooleanMetaData() argument 315 if (bluetoothDevice == null) { in getBooleanMetaData() 318 final byte[] data = bluetoothDevice.getMetadata(key); in getBooleanMetaData() 332 public static String getStringMetaData(BluetoothDevice bluetoothDevice, int key) { in getStringMetaData() argument [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/ |
D | BluetoothMediaDeviceTest.java | 77 final BluetoothDevice bluetoothDevice = mock(BluetoothDevice.class); in isFastPairDevice_isUntetheredHeadset_returnTrue() local 78 when(mDevice.getDevice()).thenReturn(bluetoothDevice); in isFastPairDevice_isUntetheredHeadset_returnTrue() 82 when(bluetoothDevice.getMetadata(BluetoothDevice.METADATA_IS_UNTETHERED_HEADSET)) in isFastPairDevice_isUntetheredHeadset_returnTrue() 90 final BluetoothDevice bluetoothDevice = mock(BluetoothDevice.class); in isFastPairDevice_isNotUntetheredHeadset_returnFalse() local 91 when(mDevice.getDevice()).thenReturn(bluetoothDevice); in isFastPairDevice_isNotUntetheredHeadset_returnFalse() 95 when(bluetoothDevice.getMetadata(BluetoothDevice.METADATA_IS_UNTETHERED_HEADSET)) in isFastPairDevice_isNotUntetheredHeadset_returnFalse() 103 final BluetoothDevice bluetoothDevice = mock(BluetoothDevice.class); in getIcon_isNotFastPairDevice_drawableTypeIsNotBitmapDrawable() local 104 when(mDevice.getDevice()).thenReturn(bluetoothDevice); in getIcon_isNotFastPairDevice_drawableTypeIsNotBitmapDrawable() 108 when(bluetoothDevice.getMetadata(BluetoothDevice.METADATA_IS_UNTETHERED_HEADSET)) in getIcon_isNotFastPairDevice_drawableTypeIsNotBitmapDrawable()
|
D | LocalMediaManagerTest.java | 570 final BluetoothDevice bluetoothDevice = mock(BluetoothDevice.class); in onDeviceListAdded_haveDisconnectedDevice_addDisconnectedDevice() local 573 bluetoothDevices.add(bluetoothDevice); in onDeviceListAdded_haveDisconnectedDevice_addDisconnectedDevice() 577 when(cachedManager.findDevice(bluetoothDevice)).thenReturn(cachedDevice); in onDeviceListAdded_haveDisconnectedDevice_addDisconnectedDevice() 581 when(cachedDevice.getDevice()).thenReturn(bluetoothDevice); in onDeviceListAdded_haveDisconnectedDevice_addDisconnectedDevice() 582 when(mA2dpProfile.getActiveDevice()).thenReturn(bluetoothDevice); in onDeviceListAdded_haveDisconnectedDevice_addDisconnectedDevice() 653 final BluetoothDevice bluetoothDevice = mock(BluetoothDevice.class); in onDeviceListAdded_haveDisconnectedDevice_list5DisconnectedDevice() local 662 bluetoothDevices.add(bluetoothDevice); in onDeviceListAdded_haveDisconnectedDevice_list5DisconnectedDevice() 671 when(cachedManager.findDevice(bluetoothDevice)).thenReturn(cachedDevice); in onDeviceListAdded_haveDisconnectedDevice_list5DisconnectedDevice() 679 when(cachedDevice.getDevice()).thenReturn(bluetoothDevice); in onDeviceListAdded_haveDisconnectedDevice_list5DisconnectedDevice() 681 when(bluetoothDevice.getBluetoothClass()).thenReturn(bluetoothClass); in onDeviceListAdded_haveDisconnectedDevice_list5DisconnectedDevice()
|
/frameworks/base/media/packages/BluetoothMidiService/src/com/android/bluetoothmidiservice/ |
D | BluetoothMidiService.java | 45 public IBinder addBluetoothDevice(BluetoothDevice bluetoothDevice) { 47 if (bluetoothDevice == null) { 52 device = mDeviceServerMap.get(bluetoothDevice); 55 bluetoothDevice, BluetoothMidiService.this); 56 mDeviceServerMap.put(bluetoothDevice, device);
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/ |
D | MediaDeviceUtils.java | 46 public static String getId(BluetoothDevice bluetoothDevice) { in getId() argument 47 return bluetoothDevice.getAddress(); in getId()
|
/frameworks/base/services/midi/java/com/android/server/midi/ |
D | MidiService.java | 316 public Device(BluetoothDevice bluetoothDevice) { in Device() argument 317 mBluetoothDevice = bluetoothDevice; in Device() 682 public void openBluetoothDevice(IBinder token, BluetoothDevice bluetoothDevice, in openBluetoothDevice() argument 690 device = mBluetoothDevices.get(bluetoothDevice); in openBluetoothDevice() 692 device = new Device(bluetoothDevice); in openBluetoothDevice() 693 mBluetoothDevices.put(bluetoothDevice, device); in openBluetoothDevice() 811 BluetoothDevice bluetoothDevice = null; in addDeviceLocked() local 813 bluetoothDevice = (BluetoothDevice)properties.getParcelable( in addDeviceLocked() 815 device = mBluetoothDevices.get(bluetoothDevice); in addDeviceLocked() 824 if (bluetoothDevice != null) { in addDeviceLocked() [all …]
|
/frameworks/base/media/java/android/media/midi/ |
D | IBluetoothMidiService.aidl | 25 IBinder addBluetoothDevice(in BluetoothDevice bluetoothDevice); in addBluetoothDevice() argument
|
D | MidiManager.java | 282 public void openBluetoothDevice(BluetoothDevice bluetoothDevice, in openBluetoothDevice() argument 305 mService.openBluetoothDevice(mToken, bluetoothDevice, callback); in openBluetoothDevice()
|
D | IMidiManager.aidl | 39 void openBluetoothDevice(IBinder clientToken, in BluetoothDevice bluetoothDevice, in openBluetoothDevice() argument
|
/frameworks/base/telecomm/java/android/telecom/ |
D | InCallService.java | 577 public final void requestBluetoothAudio(@NonNull BluetoothDevice bluetoothDevice) { in requestBluetoothAudio() argument 579 mPhone.requestBluetoothAudio(bluetoothDevice.getAddress()); in requestBluetoothAudio()
|
D | Connection.java | 3037 public void requestBluetoothAudio(@NonNull BluetoothDevice bluetoothDevice) { in requestBluetoothAudio() argument 3040 bluetoothDevice.getAddress()); in requestBluetoothAudio()
|