Home
last modified time | relevance | path

Searched refs:findDevice (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DCachedBluetoothDeviceManager.java68 CachedBluetoothDevice cachedDevice = findDevice(device); in onDeviceNameUpdated()
84 public synchronized CachedBluetoothDevice findDevice(BluetoothDevice device) { in findDevice() method in CachedBluetoothDeviceManager
118 newDevice = findDevice(device); in addDevice()
212 CachedBluetoothDevice cachedDevice = findDevice(device); in getName()
396 CachedBluetoothDevice memberDevice = findDevice(device); in syncConfigFromMainDevice()
434 if (findDevice(device) == null) { in onBondStateChangedIfProcess()
439 findDevice(device).connect(); in onBondStateChangedIfProcess()
DBluetoothEventManager.java187 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); in readPairedDevices()
324 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); in onReceive()
344 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); in onReceive()
372 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); in onReceive()
443 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); in onReceive()
452 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); in onReceive()
461 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); in onReceive()
477 CachedBluetoothDevice activeDevice = mDeviceManager.findDevice(device); in onReceive()
514 final CachedBluetoothDevice activeDevice = mDeviceManager.findDevice(device); in onReceive()
DHidDeviceProfile.java67 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); in onServiceConnected()
DVolumeControlProfile.java68 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); in onServiceConnected()
DSapProfile.java68 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); in onServiceConnected()
DPbapClientProfile.java66 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); in onServiceConnected()
DMapClientProfile.java68 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); in onServiceConnected()
DHidProfile.java61 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); in onServiceConnected()
DHfpClientProfile.java70 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); in onServiceConnected()
DA2dpSinkProfile.java66 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); in onServiceConnected()
DMapProfile.java69 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); in onServiceConnected()
DCsipSetCoordinatorProfile.java72 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); in onServiceConnected()
DHeadsetProfile.java71 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); in onServiceConnected()
DLeAudioProfile.java79 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); in onServiceConnected()
DCsipDeviceManager.java162 mainBluetoothDevice != null ? deviceManager.findDevice(mainBluetoothDevice) : null; in onGroupIdChanged()
DLocalBluetoothLeBroadcastAssistant.java77 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice);
DHearingAidProfile.java101 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); in onServiceConnected()
DA2dpProfile.java77 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); in onServiceConnected()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DBluetoothEventManagerTest.java99 when(mCachedDeviceManager.findDevice(mBluetoothDevice)).thenReturn(mCachedBluetoothDevice); in setUp()
225 when(mCachedDeviceManager.findDevice(mBluetoothDevice)).thenReturn(null); in dispatchAclConnectionStateChanged_findDeviceReturnNull_shouldNotDispatchCallback()
405 when(mCachedDeviceManager.findDevice(mBluetoothDevice)).thenReturn(mCachedDevice1); in showUnbondMessage_reasonAuthTimeout_showCorrectedErrorCode()
421 when(mCachedDeviceManager.findDevice(mBluetoothDevice)).thenReturn(mCachedDevice1); in showUnbondMessage_reasonRemoteDeviceDown_showCorrectedErrorCode()
437 when(mCachedDeviceManager.findDevice(mBluetoothDevice)).thenReturn(mCachedDevice1); in showUnbondMessage_reasonAuthRejected_showCorrectedErrorCode()
453 when(mCachedDeviceManager.findDevice(mBluetoothDevice)).thenReturn(mCachedDevice1); in showUnbondMessage_reasonAuthFailed_showCorrectedErrorCode()
DCachedBluetoothDeviceManagerTest.java155 assertThat(mCachedDeviceManager.findDevice(mDevice1)).isEqualTo(cachedDevice1); in addDevice_validCachedDevices_devicesAdded()
156 assertThat(mCachedDeviceManager.findDevice(mDevice2)).isEqualTo(cachedDevice2); in addDevice_validCachedDevices_devicesAdded()
244 assertThat(mCachedDeviceManager.findDevice(mDevice1)).isEqualTo(cachedDevice1); in findDevice_sameHiSyncId_foundBothDevice()
245 assertThat(mCachedDeviceManager.findDevice(mDevice2)).isEqualTo(cachedDevice2); in findDevice_sameHiSyncId_foundBothDevice()
DLocalBluetoothProfileManagerTest.java83 when(mDeviceManager.findDevice(mDevice)).thenReturn(mCachedBluetoothDevice); in setUp()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DLocalMediaManager.java585 cachedDeviceManager.findDevice(device); in getMutingExpectedDevice()
618 cachedDeviceManager.findDevice(device); in buildDisconnectedBluetoothDevice()
DInfoMediaManager.java530 mBluetoothManager.getCachedDeviceManager().findDevice(device); in addMediaDevice()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/dialog/
DMediaOutputBaseDialogTest.java114 when(cachedBluetoothDeviceManager.findDevice(any())).thenReturn(null); in setUp()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
DInfoMediaManagerTest.java712 when(cachedBluetoothDeviceManager.findDevice(any(BluetoothDevice.class))) in addMediaDevice_verifyDeviceTypeCanCorrespondToMediaDevice()
734 when(cachedBluetoothDeviceManager.findDevice(any(BluetoothDevice.class))) in addMediaDevice_cachedBluetoothDeviceIsNull_shouldNotAdded()

12