Home
last modified time | relevance | path

Searched refs:getBondState (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DCachedBluetoothDeviceManagerTest.java283 when(mDevice1.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in clearNonBondedDevices_bondedAndNonBondedDevices_nonBondedDevicesCleared()
284 when(mDevice2.getBondState()).thenReturn(BluetoothDevice.BOND_BONDING); in clearNonBondedDevices_bondedAndNonBondedDevices_nonBondedDevicesCleared()
290 when(mDevice1.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in clearNonBondedDevices_bondedAndNonBondedDevices_nonBondedDevicesCleared()
291 when(mDevice2.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in clearNonBondedDevices_bondedAndNonBondedDevices_nonBondedDevicesCleared()
297 when(mDevice1.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in clearNonBondedDevices_bondedAndNonBondedDevices_nonBondedDevicesCleared()
298 when(mDevice2.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in clearNonBondedDevices_bondedAndNonBondedDevices_nonBondedDevicesCleared()
310 when(mDevice1.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in clearNonBondedDevices_nonBondedSubDevice()
311 when(mDevice2.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in clearNonBondedDevices_nonBondedSubDevice()
327 when(mDevice1.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in onDeviceUnpaired_unpairHearingAidMainDevice()
344 when(mDevice2.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in onDeviceUnpaired_unpairSubDevice()
[all …]
DBluetoothEventManagerTest.java245 when(mDevice1.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
246 when(mDevice2.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
314 when(mDevice1.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in dispatchActiveDeviceChanged_connectedMemberDevices_activeDeviceChanged()
315 when(mDevice2.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in dispatchActiveDeviceChanged_connectedMemberDevices_activeDeviceChanged()
316 when(mDevice3.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in dispatchActiveDeviceChanged_connectedMemberDevices_activeDeviceChanged()
348 when(mDevice1.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in dispatchActiveDeviceChanged_withA2dpAndHearingAid()
349 when(mDevice2.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in dispatchActiveDeviceChanged_withA2dpAndHearingAid()
DCachedBluetoothDeviceTest.java108 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDING); in getConnectionSummary_testProfilesInactive_returnPairing()
502 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDING); in getConnectionSummary_testMultipleProfilesInactive_returnPairing()
514 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in getConnectionSummary_trueWirelessActiveDeviceWithBattery_returnActiveWithBattery()
532 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in getConnectionSummary_trueWirelessDeviceWithBattery_returnActiveWithBattery()
1004 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in onUuidChanged_bluetoothClassIsNull_shouldNotCrash()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DCachedBluetoothDeviceManager.java64 return cachedDevice.getBondState() == BluetoothDevice.BOND_NONE; in onDeviceDisappeared()
228 -> cachedDevice.getBondState() == BluetoothDevice.BOND_NONE); in clearNonBondedDevices()
239 if (memberDevice.getDevice().getBondState() == BluetoothDevice.BOND_NONE) { in clearNonBondedSubDevices()
247 && subDevice.getDevice().getBondState() == BluetoothDevice.BOND_NONE) { in clearNonBondedSubDevices()
284 if (memberDevice.getBondState() != BluetoothDevice.BOND_BONDED) { in onBluetoothStateChanged()
291 if (subDevice.getBondState() != BluetoothDevice.BOND_BONDED) { in onBluetoothStateChanged()
296 if (cachedDevice.getBondState() != BluetoothDevice.BOND_BONDED) { in onBluetoothStateChanged()
361 int bondState = device.getBondState(); in shouldPairByCsip()
DBluetoothDeviceFilter.java90 return device.getBondState() == BluetoothDevice.BOND_BONDED; in matches()
97 return device.getBondState() != BluetoothDevice.BOND_BONDED; in matches()
DCachedBluetoothDevice.java464 if (getBondState() == BluetoothDevice.BOND_NONE) { in ensurePaired()
486 int state = getBondState(); in unpair()
660 public int getBondState() { in getBondState() method in CachedBluetoothDevice
661 return mDevice.getBondState(); in getBondState()
775 return getBondState() == BluetoothDevice.BOND_BONDING; in isBusy()
954 comparison = (another.getBondState() == BluetoothDevice.BOND_BONDED ? 1 : 0) - in compareTo()
955 (getBondState() == BluetoothDevice.BOND_BONDED ? 1 : 0); in compareTo()
1023 if (mDevice.getBondState() != BluetoothDevice.BOND_BONDED) return; in processPhonebookAccess()
1189 || getBondState() == BluetoothDevice.BOND_BONDING) { in getConnectionSummary()
1349 if (getBondState() == BluetoothDevice.BOND_BONDING) { in getCarConnectionSummary()
DBluetoothEventManager.java329 } else if (cachedDevice.getBondState() == BluetoothDevice.BOND_BONDED in onReceive()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DBluetoothControllerImplTest.java111 assertEquals(BluetoothDevice.BOND_NONE, mBluetoothControllerImpl.getBondState(device)); in testDefaultConnectionState()
119 when(device.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in testAsyncBondState()
124 assertEquals(BluetoothDevice.BOND_NONE, mBluetoothControllerImpl.getBondState(device)); in testAsyncBondState()
128 assertEquals(BluetoothDevice.BOND_BONDED, mBluetoothControllerImpl.getBondState(device)); in testAsyncBondState()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
DBluetoothMediaDeviceTest.java62 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in isCachedBluetoothDeviceConnected_deviceConnected_returnTrue()
70 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in isCachedBluetoothDeviceConnected_deviceNotConnected_returnFalse()
DMediaDeviceTest.java147 when(mCachedDevice1.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in setUp()
149 when(mCachedDevice2.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in setUp()
151 when(mCachedDevice3.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in setUp()
DLocalMediaManagerTest.java583 when(cachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in onDeviceListAdded_haveMutingExpectedDevice_addMutingExpectedDevice()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBluetoothController.java44 int getBondState(CachedBluetoothDevice device); in getBondState() method
DBluetoothControllerImpl.java150 + " bondState=" + device.getBondState() in getDeviceString()
159 public int getBondState(CachedBluetoothDevice device) { in getBondState() method in BluetoothControllerImpl
456 mBondState = device.getBondState(); in run()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/utils/leaks/
DFakeBluetoothController.java105 public int getBondState(CachedBluetoothDevice device) { in getBondState() method in FakeBluetoothController
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DBluetoothMediaDevice.java115 return mCachedDevice.getBondState() == BluetoothDevice.BOND_BONDED in isConnected()
DLocalMediaManager.java620 if (cachedDevice.getBondState() == BluetoothDevice.BOND_BONDED in buildDisconnectedBluetoothDevice()
648 && cachedDevice.getBondState() == BluetoothDevice.BOND_BONDED in isBondedMediaDevice()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt6200 method public int getBondState();