Home
last modified time | relevance | path

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

/aosp12/frameworks/base/services/core/java/com/android/server/audio/
H A DBtHelper.java159 mBtDevice = btDevice; in BluetoothA2dpDeviceInfo()
301 setBtScoActiveDevice(btDevice); in receiveBtEvent()
470 profile.getConnectionState(btDevice); in onA2dpSinkProfileConnected()
485 btDevice, state, in onHearingAidProfileConnected()
544 String address = btDevice.getAddress(); in btHeadsetDeviceToAudioDevice()
570 if (btDevice == null) { in handleBtScoActiveDeviceChange()
575 String btDeviceName = getName(btDevice); in handleBtScoActiveDeviceChange()
599 return btDevice == null ? "(null)" : btDevice.getAnonymizedAddress(); in getAnonymizedAddress()
618 + getAnonymizedAddress(btDevice)); in setBtScoActiveDevice()
620 btDevice = null; in setBtScoActiveDevice()
[all …]
H A DAudioDeviceInventory.java296 final BluetoothDevice btDevice = btInfo.getBtDevice(); in onSetA2dpSinkConnectionState() local
302 String address = btDevice.getAddress(); in onSetA2dpSinkConnectionState()
329 btDevice.getAddress()); in onSetA2dpSinkConnectionState()
359 final BluetoothDevice btDevice = btInfo.getBtDevice(); in onSetA2dpSourceConnectionState() local
364 String address = btDevice.getAddress(); in onSetA2dpSourceConnectionState()
394 String address = btDevice.getAddress(); in onSetHearingAidConnectionState()
414 btDevice.getAddress()); in onSetHearingAidConnectionState()
434 final BluetoothDevice btDevice = btInfo.getBtDevice(); in onBluetoothA2dpActiveDeviceChange() local
435 if (btDevice == null) { in onBluetoothA2dpActiveDeviceChange()
445 String address = btDevice.getAddress(); in onBluetoothA2dpActiveDeviceChange()
[all …]
H A DAudioDeviceBroker.java1018 /*package*/ boolean hasScheduledA2dpSinkConnectionState(BluetoothDevice btDevice) { in hasScheduledA2dpSinkConnectionState() argument
1020 new BtHelper.BluetoothA2dpDeviceInfo(btDevice); in hasScheduledA2dpSinkConnectionState()
1244 final BluetoothDevice btDevice = (BluetoothDevice) msg.obj; in handleMessage() local
1246 a2dpCodec = mBtHelper.getA2dpCodec(btDevice); in handleMessage()
1251 new BtHelper.BluetoothA2dpDeviceInfo(btDevice, -1, a2dpCodec), in handleMessage()
/aosp12/packages/apps/Settings/src/com/android/settings/sound/
H A DHandsFreeProfileOutputPreferenceController.java66 final BluetoothDevice btDevice = mConnectedDevices.get(connectedDeviceIndex); in onPreferenceChange() local
68 setActiveBluetoothDevice(btDevice); in onPreferenceChange()
69 listPreference.setSummary(btDevice.getAlias()); in onPreferenceChange()
77 final BluetoothDevice btDevice = mConnectedDevices.get(i); in getConnectedDeviceIndex() local
78 if (TextUtils.equals(btDevice.getAddress(), hardwareAddress)) { in getConnectedDeviceIndex()
145 final BluetoothDevice btDevice = mConnectedDevices.get(i); in setupPreferenceEntries() local
146 mediaOutputs[i] = btDevice.getAlias(); in setupPreferenceEntries()
147 mediaValues[i] = btDevice.getAddress(); in setupPreferenceEntries()
148 if (btDevice.equals(activeDevice)) { in setupPreferenceEntries()
H A DMediaOutputPreferenceController.java124 for (BluetoothDevice btDevice : activeDevices) { in findActiveHearingAidDevice()
125 if (btDevice != null) { in findActiveHearingAidDevice()
126 return btDevice; in findActiveHearingAidDevice()
H A DAudioSwitchPreferenceController.java251 for (BluetoothDevice btDevice : activeDevices) { in findActiveHearingAidDevice()
252 if (btDevice != null && mConnectedDevices.contains(btDevice)) { in findActiveHearingAidDevice()
255 return btDevice; in findActiveHearingAidDevice()
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/bluetooth/
H A DBluetoothScanner.java47 public BluetoothDevice btDevice; field in BluetoothScanner.Device
234 if (matcher.isMatchingDevice(target.btDevice)) { in startListening()
370 BluetoothDevice btDevice = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); in onReceive() local
371 final String address = btDevice.getAddress(); in onReceive()
372 String name = btDevice.getName(); in onReceive()
404 device.btDevice = btDevice; in onReceive()
493 if (matcher.isMatchingDevice(device.btDevice)) { in sendDeviceAdded()
510 if (d.btDevice.getAddress().equals(device.btDevice.getAddress())) { in sendDeviceChanged()
525 if (d.btDevice.getAddress().equals(device.btDevice.getAddress())) { in sendDeviceRemoved()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/audio/
H A DAudioDeviceBrokerTest.java252 private void checkSingleSystemConnection(BluetoothDevice btDevice) throws Exception { in checkSingleSystemConnection() argument
253 final String expectedName = btDevice.getName() == null ? "" : btDevice.getName(); in checkSingleSystemConnection()
257 ArgumentMatchers.eq(btDevice.getAddress()), in checkSingleSystemConnection()
/aosp12/frameworks/base/services/core/java/com/android/server/media/
H A DBluetoothRouteProvider.java148 mBluetoothAdapter.setActiveDevice(btRouteInfo.btDevice, ACTIVE_DEVICE_AUDIO); in transferTo()
272 newBtRoute.btDevice = device; in createBluetoothRoute()
373 && !TextUtils.equals(btRoute.btDevice.getAddress(), in addActiveHearingAidDevices()
374 activeBtRoute.btDevice.getAddress())) { in addActiveHearingAidDevices()
385 public BluetoothDevice btDevice; field in BluetoothRouteProvider.BluetoothRouteInfo
H A DMediaRouterService.java633 BluetoothDevice btDevice; in restoreBluetoothA2dp() local
636 btDevice = mActiveBluetoothDevice; in restoreBluetoothA2dp()
639 if (btDevice != null) { in restoreBluetoothA2dp()
922 BluetoothDevice btDevice = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); in onReceive() local
925 mActiveBluetoothDevice = btDevice; in onReceive()
926 mGlobalBluetoothA2dpOn = btDevice != null; in onReceive()
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
H A DBluetoothDevicePairer.java155 Log.d(TAG, "Adding device: " + device.btDevice.getAddress());
157 onDeviceFound(device.btDevice);
163 Log.d(TAG, "Device lost: " + device.btDevice.getAddress());
165 onDeviceLost(device.btDevice);