/aosp14/frameworks/base/services/core/java/com/android/server/audio/ |
H A D | BtHelper.java | 287 onSetBtScoActiveDevice(btDevice); in onReceiveBtEvent() 597 if (btDevice == null) { in btHeadsetDeviceToAudioDevice() 600 String address = btDevice.getAddress(); in btHeadsetDeviceToAudioDevice() 601 String name = getName(btDevice); in btHeadsetDeviceToAudioDevice() 627 if (btDevice == null) { in handleBtScoActiveDeviceChange() 644 isActive, btDevice); in handleBtScoActiveDeviceChange() 650 isActive, btDevice) && result; in handleBtScoActiveDeviceChange() 656 return btDevice == null ? "(null)" : btDevice.getAnonymizedAddress(); in getAnonymizedAddress() 674 + getAnonymizedAddress(btDevice)); in onSetBtScoActiveDevice() 676 btDevice = null; in onSetBtScoActiveDevice() [all …]
|
H A D | AudioDeviceBroker.java | 271 /*package*/ void onSetBtScoActiveDevice(BluetoothDevice btDevice) { in onSetBtScoActiveDevice() argument 272 mBtHelper.onSetBtScoActiveDevice(btDevice); in onSetBtScoActiveDevice() 1468 /*package*/ void postNotifyPreferredAudioProfileApplied(BluetoothDevice btDevice) { in postNotifyPreferredAudioProfileApplied() argument 1469 sendLMsgNoDelay(MSG_L_NOTIFY_PREFERRED_AUDIOPROFILE_APPLIED, SENDMSG_QUEUE, btDevice); in postNotifyPreferredAudioProfileApplied() 1555 boolean connect, @Nullable BluetoothDevice btDevice) { in handleDeviceConnection() argument 1558 attributes, connect, false /*for test*/, btDevice); in handleDeviceConnection() 1575 /*package*/ boolean hasScheduledA2dpConnection(BluetoothDevice btDevice) { in hasScheduledA2dpConnection() argument 1576 final BtDeviceInfo devInfoToCheck = new BtDeviceInfo(btDevice, BluetoothProfile.A2DP); in hasScheduledA2dpConnection() 1950 final BluetoothDevice btDevice = (BluetoothDevice) msg.obj; in handleMessage() local 1951 BtHelper.onNotifyPreferredAudioProfileApplied(btDevice); in handleMessage()
|
H A D | AudioDeviceInventory.java | 624 final BluetoothDevice btDevice = btInfo.mDevice; in onBluetoothDeviceConfigChange() local 625 if (btDevice == null) { in onBluetoothDeviceConfigChange() 630 Log.d(TAG, "onBluetoothDeviceConfigChange btDevice=" + btDevice); in onBluetoothDeviceConfigChange() 634 String address = btDevice.getAddress(); in onBluetoothDeviceConfigChange() 643 if (mDeviceBroker.hasScheduledA2dpConnection(btDevice)) { in onBluetoothDeviceConfigChange() 675 btInfo.mAudioSystemDevice, address, BtHelper.getName(btDevice), codec); in onBluetoothDeviceConfigChange() 698 updateBluetoothPreferredModes_l(btDevice /*connectedDevice*/); in onBluetoothDeviceConfigChange() 1378 @Nullable BluetoothDevice btDevice) { 1434 updateBluetoothPreferredModes_l(connect ? btDevice : null /*connectedDevice*/);
|
/aosp14/frameworks/base/services/companion/java/com/android/server/companion/presence/ |
H A D | Utils.java | 28 static String btDeviceToString(@NonNull BluetoothDevice btDevice) { in btDeviceToString() argument 29 final StringBuilder sb = new StringBuilder(btDevice.getAddress()); in btDeviceToString() 32 final String name = btDevice.getName(); in btDeviceToString() 39 final String alias = btDevice.getAlias(); in btDeviceToString()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/ |
H A D | BluetoothTileTest.kt | 168 val btDevice = mock<BluetoothDevice>() regex 169 whenever(cachedDevice2.device).thenReturn(btDevice) 170 whenever(btDevice.getMetadata(BluetoothDevice.METADATA_MAIN_BATTERY)).thenReturn(null) 278 val btDevice = mock<BluetoothDevice>() regex 279 whenever(cachedDevice.device).thenReturn(btDevice) 280 whenever(btDevice.getMetadata(BluetoothDevice.METADATA_MAIN_BATTERY))
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/audio/ |
H A D | AudioDeviceBrokerTest.java | 281 private void checkSingleSystemConnection(BluetoothDevice btDevice) throws Exception { in checkSingleSystemConnection() argument 282 final String expectedName = btDevice.getName() == null ? "" : btDevice.getName(); in checkSingleSystemConnection() 284 AudioSystem.DEVICE_OUT_BLUETOOTH_A2DP, btDevice.getAddress(), expectedName); in checkSingleSystemConnection()
|
/aosp14/frameworks/base/services/midi/java/com/android/server/midi/ |
H A D | MidiService.java | 786 ParcelUuid[] uuids = btDevice.getUuids(); in isBLEMIDIDevice() 819 private void dumpUuids(BluetoothDevice btDevice) { in dumpUuids() argument 871 BluetoothDevice btDevice = 873 dumpUuids(btDevice); 877 if (hasNonMidiUuids(btDevice)) { 883 openBluetoothDevice(btDevice); 890 BluetoothDevice btDevice = 894 if (isBLEMIDIDevice(btDevice)) { 919 BluetoothDevice btDevice = 921 dumpUuids(btDevice); [all …]
|
/aosp14/frameworks/base/media/packages/BluetoothMidiService/src/com/android/bluetoothmidiservice/ |
H A D | BluetoothMidiDevice.java | 327 void openBluetoothDevice(BluetoothDevice btDevice) { in openBluetoothDevice() argument 328 Log.d(TAG, "openBluetoothDevice() device: " + btDevice); in openBluetoothDevice() 331 midiManager.openBluetoothDevice(btDevice, in openBluetoothDevice()
|
/aosp14/frameworks/base/services/core/java/com/android/server/media/ |
H A D | MediaRouterService.java | 618 BluetoothDevice btDevice; in restoreBluetoothA2dp() local 621 btDevice = mActiveBluetoothDevice; in restoreBluetoothA2dp() 624 if (btDevice != null) { in restoreBluetoothA2dp() 947 BluetoothDevice btDevice = in onReceive() local 952 mActiveBluetoothDevice = btDevice; in onReceive() 953 mGlobalBluetoothA2dpOn = btDevice != null; in onReceive()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/stylus/ |
H A D | StylusManager.kt | 375 btDevice: BluetoothDevice,
|