Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DCachedBluetoothDeviceManagerTest.java258 when(mDevice1.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in clearNonBondedDevices_bondedAndNonBondedDevices_nonBondedDevicesCleared()
259 when(mDevice2.getBondState()).thenReturn(BluetoothDevice.BOND_BONDING); in clearNonBondedDevices_bondedAndNonBondedDevices_nonBondedDevicesCleared()
265 when(mDevice1.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in clearNonBondedDevices_bondedAndNonBondedDevices_nonBondedDevicesCleared()
266 when(mDevice2.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in clearNonBondedDevices_bondedAndNonBondedDevices_nonBondedDevicesCleared()
272 when(mDevice1.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in clearNonBondedDevices_bondedAndNonBondedDevices_nonBondedDevicesCleared()
273 when(mDevice2.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in clearNonBondedDevices_bondedAndNonBondedDevices_nonBondedDevicesCleared()
285 when(mDevice1.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in clearNonBondedDevices_nonBondedSubDevice()
286 when(mDevice2.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in clearNonBondedDevices_nonBondedSubDevice()
302 when(mDevice1.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in onDeviceUnpaired_unpairMainDevice()
319 when(mDevice2.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in onDeviceUnpaired_unpairSubDevice()
[all …]
DBluetoothEventManagerTest.java232 when(mDevice1.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
233 when(mDevice2.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
298 when(mDevice1.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in dispatchActiveDeviceChanged_withA2dpAndHearingAid()
299 when(mDevice2.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in dispatchActiveDeviceChanged_withA2dpAndHearingAid()
DCachedBluetoothDeviceTest.java94 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDING); in getConnectionSummary_testProfilesInactive_returnPairing()
468 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDING); in getConnectionSummary_testMultipleProfilesInactive_returnPairing()
480 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in getConnectionSummary_trueWirelessActiveDeviceWithBattery_returnActiveWithBattery()
498 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in getConnectionSummary_trueWirelessDeviceWithBattery_returnActiveWithBattery()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DCachedBluetoothDeviceManager.java57 return cachedDevice.getBondState() == BluetoothDevice.BOND_NONE; in onDeviceDisappeared()
182 -> cachedDevice.getBondState() == BluetoothDevice.BOND_NONE); in clearNonBondedDevices()
190 && subDevice.getDevice().getBondState() == BluetoothDevice.BOND_NONE) { in clearNonBondedSubDevices()
219 if (subDevice.getBondState() != BluetoothDevice.BOND_BONDED) { in onBluetoothStateChanged()
223 if (cachedDevice.getBondState() != BluetoothDevice.BOND_BONDED) { in onBluetoothStateChanged()
DCachedBluetoothDevice.java354 if (getBondState() == BluetoothDevice.BOND_NONE) { in ensurePaired()
376 int state = getBondState(); in unpair()
516 public int getBondState() { in getBondState() method in CachedBluetoothDevice
517 return mDevice.getBondState(); in getBondState()
619 return getBondState() == BluetoothDevice.BOND_BONDING; in isBusy()
782 comparison = (another.getBondState() == BluetoothDevice.BOND_BONDED ? 1 : 0) - in compareTo()
783 (getBondState() == BluetoothDevice.BOND_BONDED ? 1 : 0); in compareTo()
851 if (mDevice.getBondState() != BluetoothDevice.BOND_BONDED) return; in processPhonebookAccess()
993 || getBondState() == BluetoothDevice.BOND_BONDING) { in getConnectionSummary()
1123 return getBondState() == BluetoothDevice.BOND_BONDING ? in getCarConnectionSummary()
DBluetoothDeviceFilter.java89 return device.getBondState() == BluetoothDevice.BOND_BONDED; in matches()
96 return device.getBondState() != BluetoothDevice.BOND_BONDED; in matches()
DBluetoothEventManager.java303 } else if (cachedDevice.getBondState() == BluetoothDevice.BOND_BONDED in onReceive()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DBluetoothControllerImplTest.java101 assertEquals(BluetoothDevice.BOND_NONE, mBluetoothControllerImpl.getBondState(device)); in testDefaultConnectionState()
109 when(device.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in testAsyncBondState()
114 assertEquals(BluetoothDevice.BOND_NONE, mBluetoothControllerImpl.getBondState(device)); in testAsyncBondState()
118 assertEquals(BluetoothDevice.BOND_BONDED, mBluetoothControllerImpl.getBondState(device)); in testAsyncBondState()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
DBluetoothMediaDeviceTest.java60 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in isCachedBluetoothDeviceConnected_deviceConnected_returnTrue()
68 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in isCachedBluetoothDeviceConnected_deviceNotConnected_returnFalse()
DMediaDeviceTest.java135 when(mCachedDevice1.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in setUp()
137 when(mCachedDevice2.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in setUp()
139 when(mCachedDevice3.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in setUp()
DLocalMediaManagerTest.java578 when(cachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in onDeviceListAdded_haveDisconnectedDevice_addDisconnectedDevice()
676 when(cachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in onDeviceListAdded_haveDisconnectedDevice_list5DisconnectedDevice()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBluetoothController.java44 int getBondState(CachedBluetoothDevice device); in getBondState() method
DBluetoothControllerImpl.java134 return device.getName() + " " + device.getBondState() + " " + device.isConnected(); in getDeviceString()
138 public int getBondState(CachedBluetoothDevice device) { in getBondState() method in BluetoothControllerImpl
422 mBondState = device.getBondState(); in run()
/frameworks/base/packages/SystemUI/tests/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.java108 return mCachedDevice.getBondState() == BluetoothDevice.BOND_BONDED in isConnected()
DLocalMediaManager.java501 if (cachedDevice.getBondState() == BluetoothDevice.BOND_BONDED in buildDisconnectedBluetoothDevice()
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
DBluetoothTestUtils.java778 int state = device.getBondState(); in pairOrAcceptPair()
800 state = device.getBondState(); in pairOrAcceptPair()
840 int state = device.getBondState(); in unpair()
862 if (device.getBondState() == BluetoothDevice.BOND_NONE in unpair()
/frameworks/base/core/java/android/bluetooth/
DBluetoothDevice.java1314 return sService.getBondState(query);
1341 public int getBondState() { in getBondState() method in BluetoothDevice
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DBluetoothTile.java384 if (mController.getBondState(device) == BluetoothDevice.BOND_NONE) continue; in updateItems()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...
/frameworks/base/config/
Dboot-image-profile.txt4416 HSPLandroid/bluetooth/BluetoothDevice;->getBondState()I
4523 HSPLandroid/bluetooth/IBluetooth$Stub$Proxy;->getBondState(Landroid/bluetooth/BluetoothDevice;)I
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt6200 method public int getBondState();
/frameworks/base/api/
Dcurrent.txt8670 method @RequiresPermission(android.Manifest.permission.BLUETOOTH) public int getBondState();