Home
last modified time | relevance | path

Searched refs:btDevice (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java3725 private boolean handleBtScoActiveDeviceChange(BluetoothDevice btDevice, boolean isActive) { in handleBtScoActiveDeviceChange() argument
3726 if (btDevice == null) { in handleBtScoActiveDeviceChange()
3729 String address = btDevice.getAddress(); in handleBtScoActiveDeviceChange()
3730 BluetoothClass btClass = btDevice.getBluetoothClass(); in handleBtScoActiveDeviceChange()
3751 String btDeviceName = btDevice.getName(); in handleBtScoActiveDeviceChange()
3765 private void setBtScoActiveDevice(BluetoothDevice btDevice) { in setBtScoActiveDevice() argument
3767 Log.i(TAG, "setBtScoActiveDevice: " + mBluetoothHeadsetDevice + " -> " + btDevice); in setBtScoActiveDevice()
3769 if (!Objects.equals(btDevice, previousActiveDevice)) { in setBtScoActiveDevice()
3774 if (!handleBtScoActiveDeviceChange(btDevice, true)) { in setBtScoActiveDevice()
3775 Log.e(TAG, "setBtScoActiveDevice() failed to add new device " + btDevice); in setBtScoActiveDevice()
[all …]
/frameworks/base/services/core/java/com/android/server/media/
DMediaRouterService.java410 BluetoothDevice btDevice; in restoreBluetoothA2dp() local
413 btDevice = mActiveBluetoothDevice; in restoreBluetoothA2dp()
416 if (btDevice != null) { in restoreBluetoothA2dp()
659 BluetoothDevice btDevice = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); in onReceive() local
661 mActiveBluetoothDevice = btDevice; in onReceive()
662 mGlobalBluetoothA2dpOn = btDevice != null; in onReceive()