/frameworks/base/services/companion/java/com/android/server/companion/utils/ |
D | Utils.java | 51 public static String btDeviceToString(@NonNull BluetoothDevice btDevice) { in btDeviceToString() argument 52 final StringBuilder sb = new StringBuilder(btDevice.getAddress()); in btDeviceToString() 55 final String name = btDevice.getName(); in btDeviceToString() 62 final String alias = btDevice.getAlias(); in btDeviceToString()
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | BtHelper.java | 383 BluetoothDevice btDevice = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE, in onReceiveBtEvent() local 385 if (btDevice != null && !isProfilePoxyConnected(BluetoothProfile.HEADSET)) { in onReceiveBtEvent() 389 + btDevice)).printLog(TAG)); in onReceiveBtEvent() 392 onSetBtScoActiveDevice(btDevice); in onReceiveBtEvent() 850 private @NonNull AudioDeviceAttributes getHeadsetAudioDevice(BluetoothDevice btDevice) { in getHeadsetAudioDevice() argument 851 AudioDeviceAttributes deviceAttr = mResolvedScoAudioDevices.get(btDevice); in getHeadsetAudioDevice() 856 return btHeadsetDeviceToAudioDevice(btDevice); in getHeadsetAudioDevice() 859 private static AudioDeviceAttributes btHeadsetDeviceToAudioDevice(BluetoothDevice btDevice) { in btHeadsetDeviceToAudioDevice() argument 860 if (btDevice == null) { in btHeadsetDeviceToAudioDevice() 863 String address = btDevice.getAddress(); in btHeadsetDeviceToAudioDevice() [all …]
|
D | AudioDeviceBroker.java | 285 /*package*/ void onSetBtScoActiveDevice(BluetoothDevice btDevice) { in onSetBtScoActiveDevice() argument 286 mBtHelper.onSetBtScoActiveDevice(btDevice); in onSetBtScoActiveDevice() 1520 /*package*/ void postNotifyPreferredAudioProfileApplied(BluetoothDevice btDevice) { in postNotifyPreferredAudioProfileApplied() argument 1521 sendLMsgNoDelay(MSG_L_NOTIFY_PREFERRED_AUDIOPROFILE_APPLIED, SENDMSG_QUEUE, btDevice); in postNotifyPreferredAudioProfileApplied() 1619 boolean connect, @Nullable BluetoothDevice btDevice) { in handleDeviceConnection() argument 1622 attributes, connect, false /*for test*/, btDevice); in handleDeviceConnection() 1639 /*package*/ boolean hasScheduledA2dpConnection(BluetoothDevice btDevice) { in hasScheduledA2dpConnection() argument 1640 final BtDeviceInfo devInfoToCheck = new BtDeviceInfo(btDevice, BluetoothProfile.A2DP); in hasScheduledA2dpConnection() 2044 final BluetoothDevice btDevice = (BluetoothDevice) msg.obj; in handleMessage() local 2045 BtHelper.onNotifyPreferredAudioProfileApplied(btDevice); in handleMessage()
|
D | AudioDeviceInventory.java | 933 final BluetoothDevice btDevice = btInfo.mDevice; in onBluetoothDeviceConfigChange() local 934 if (btDevice == null) { in onBluetoothDeviceConfigChange() 939 Log.d(TAG, "onBluetoothDeviceConfigChange btDevice=" + btDevice); in onBluetoothDeviceConfigChange() 943 String address = btDevice.getAddress(); in onBluetoothDeviceConfigChange() 952 if (mDeviceBroker.hasScheduledA2dpConnection(btDevice)) { in onBluetoothDeviceConfigChange() 983 BtHelper.getName(btDevice), codec); in onBluetoothDeviceConfigChange() 1006 updateBluetoothPreferredModes_l(btDevice /*connectedDevice*/); in onBluetoothDeviceConfigChange() 1734 @Nullable BluetoothDevice btDevice) { 1793 updateBluetoothPreferredModes_l(connect ? btDevice : null /*connectedDevice*/);
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/volume/domain/interactor/ |
D | AudioOutputInteractorTest.kt | 129 val btDevice = TestAudioDevicesFactory.bluetoothDevice() in inCall_bluetooth_returnsCommunicationDevice() constant 132 setCommunicationDevice(btDevice) in inCall_bluetooth_returnsCommunicationDevice() 135 on { address }.thenReturn(btDevice.address) in inCall_bluetooth_returnsCommunicationDevice() 138 on { address }.thenReturn(btDevice.address) in inCall_bluetooth_returnsCommunicationDevice() 139 on { name }.thenReturn(btDevice.productName.toString()) in inCall_bluetooth_returnsCommunicationDevice() 142 whenever(bluetoothAdapter.getRemoteDevice(eq(btDevice.address))) in inCall_bluetooth_returnsCommunicationDevice()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/ |
D | BluetoothTileTest.kt | 177 val btDevice = mock<BluetoothDevice>() in testSecondaryLabel_whenBatteryMetadataUnavailable_isBluetoothBatteryLevelState() constant 178 whenever(cachedDevice2.device).thenReturn(btDevice) in testSecondaryLabel_whenBatteryMetadataUnavailable_isBluetoothBatteryLevelState() 179 whenever(btDevice.getMetadata(BluetoothDevice.METADATA_MAIN_BATTERY)).thenReturn(null) in testSecondaryLabel_whenBatteryMetadataUnavailable_isBluetoothBatteryLevelState() 326 val btDevice = mock<BluetoothDevice>() in listenToDeviceMetadata() constant 327 whenever(cachedDevice.device).thenReturn(btDevice) in listenToDeviceMetadata() 328 whenever(btDevice.getMetadata(BluetoothDevice.METADATA_MAIN_BATTERY)) in listenToDeviceMetadata()
|
/frameworks/base/services/midi/java/com/android/server/midi/ |
D | MidiService.java | 797 private boolean isBLEMIDIDevice(BluetoothDevice btDevice) { in isBLEMIDIDevice() argument 798 ParcelUuid[] uuids = btDevice.getUuids(); in isBLEMIDIDevice() 831 private void dumpUuids(BluetoothDevice btDevice) { in dumpUuids() argument 832 ParcelUuid[] uuidParcels = btDevice.getUuids(); in dumpUuids() 833 Log.d(TAG, "dumpUuids(" + btDevice + ") numParcels:" in dumpUuids() 847 private boolean hasNonMidiUuids(BluetoothDevice btDevice) { in hasNonMidiUuids() argument 848 ParcelUuid[] uuidParcels = btDevice.getUuids(); in hasNonMidiUuids() 883 BluetoothDevice btDevice = 885 dumpUuids(btDevice); 889 if (hasNonMidiUuids(btDevice)) { [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/audio/ |
D | AudioDeviceBrokerTest.java | 413 private void checkSingleSystemConnection(BluetoothDevice btDevice) throws Exception { in checkSingleSystemConnection() argument 414 final String expectedName = btDevice.getName() == null ? "" : btDevice.getName(); in checkSingleSystemConnection() 416 AudioSystem.DEVICE_OUT_BLUETOOTH_A2DP, btDevice.getAddress(), expectedName); in checkSingleSystemConnection()
|
/frameworks/base/media/packages/BluetoothMidiService/src/com/android/bluetoothmidiservice/ |
D | BluetoothMidiDevice.java | 342 void openBluetoothDevice(BluetoothDevice btDevice) { in openBluetoothDevice() argument 343 Log.d(TAG, "openBluetoothDevice() device: " + btDevice); in openBluetoothDevice() 346 midiManager.openBluetoothDevice(btDevice, in openBluetoothDevice()
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | MediaRouterService.java | 678 BluetoothDevice btDevice; in restoreBluetoothA2dp() local 681 btDevice = mActiveBluetoothDevice; in restoreBluetoothA2dp() 684 if (btDevice != null) { in restoreBluetoothA2dp() 1016 BluetoothDevice btDevice = in onReceive() local 1021 mActiveBluetoothDevice = btDevice; in onReceive() 1022 mGlobalBluetoothA2dpOn = btDevice != null; in onReceive()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/stylus/ |
D | StylusManager.kt | 375 btDevice: BluetoothDevice, in <lambda>()
|
/frameworks/base/services/companion/java/com/android/server/companion/ |
D | CompanionDeviceManagerService.java | 570 BluetoothDevice btDevice = btAdapter.getRemoteDevice(address.toString().toUpperCase()); in removeBond() local 571 return btDevice.removeBond(); in removeBond()
|