Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/sound/
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()
146 final BluetoothDevice btDevice = mConnectedDevices.get(i); in setupPreferenceEntries() local
147 mediaOutputs[i] = btDevice.getAlias(); in setupPreferenceEntries()
148 mediaValues[i] = btDevice.getAddress(); in setupPreferenceEntries()
149 if (btDevice.equals(activeDevice)) { in setupPreferenceEntries()
DAudioSwitchPreferenceController.java307 for (BluetoothDevice btDevice : activeDevices) { in findActiveHearingAidDevice()
308 if (btDevice != null && mConnectedDevices.contains(btDevice)) { in findActiveHearingAidDevice()
311 return btDevice; in findActiveHearingAidDevice()
DMediaOutputPreferenceController.java225 for (BluetoothDevice btDevice : activeDevices) { in findActiveHearingAidDevice()
226 if (btDevice != null) { in findActiveHearingAidDevice()
227 return btDevice; in findActiveHearingAidDevice()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/bluetooth/
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()
389 device.btDevice = btDevice; in onReceive()
470 if (matcher.isMatchingDevice(device.btDevice)) { in updateDeviceInClient()
519 if (d.btDevice.getAddress().equals(device.btDevice.getAddress())) { in sendDeviceRemoved()
/packages/services/Telecomm/src/com/android/server/telecom/
DCallAudioCommunicationDeviceTracker.java123 BluetoothDevice btDevice) { in setCommunicationDevice() argument
128 return processSetCommunicationDevice(audioDeviceType, btDevice); in setCommunicationDevice()
137 BluetoothDevice btDevice) { in processSetCommunicationDevice() argument
141 audioDeviceType, isBtDevice, btDevice); in processSetCommunicationDevice()
144 boolean handleLeAudioDeviceSwitch = btDevice != null in processSetCommunicationDevice()
145 && !btDevice.getAddress().equals(mBtAudioDevice); in processSetCommunicationDevice()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DBluetoothDevicePairer.java163 if (AccessoryUtils.isKnownDevice(mContext, device.btDevice)) {
167 Log.d(TAG, "Adding device: " + device.btDevice.getAddress());
169 onDeviceFound(device.btDevice);
175 Log.d(TAG, "Device lost: " + device.btDevice.getAddress());
177 onDeviceLost(device.btDevice);
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DBluetoothDeviceManagerTest.java797 BluetoothDevice btDevice = device_type == AudioDeviceInfo.TYPE_BLE_HEADSET in assertClearHearingAidOrLeCommunicationDevice() local
799 mCommunicationDeviceTracker.setCommunicationDevice(device_type, btDevice); in assertClearHearingAidOrLeCommunicationDevice()
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/
DCarAudioZonesHelperTest.java1524 AudioDeviceAttributes btDevice = allDevices.get(0); in loadAudioZones_withPrimaryZoneAndDynamicAudioDevices() local
1525 expectWithMessage("BT all audio config type").that(btDevice.getType()) in loadAudioZones_withPrimaryZoneAndDynamicAudioDevices()