Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DCachedBluetoothDeviceManagerTest.java242 when(mDevice1.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in clearNonBondedDevices_bondedAndNonBondedDevices_nonBondedDevicesCleared()
243 when(mDevice2.getBondState()).thenReturn(BluetoothDevice.BOND_BONDING); in clearNonBondedDevices_bondedAndNonBondedDevices_nonBondedDevicesCleared()
249 when(mDevice1.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in clearNonBondedDevices_bondedAndNonBondedDevices_nonBondedDevicesCleared()
250 when(mDevice2.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in clearNonBondedDevices_bondedAndNonBondedDevices_nonBondedDevicesCleared()
256 when(mDevice1.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in clearNonBondedDevices_bondedAndNonBondedDevices_nonBondedDevicesCleared()
257 when(mDevice2.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in clearNonBondedDevices_bondedAndNonBondedDevices_nonBondedDevicesCleared()
269 when(mDevice1.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in clearNonBondedDevices_nonBondedSubDevice()
270 when(mDevice2.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in clearNonBondedDevices_nonBondedSubDevice()
286 when(mDevice1.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in onDeviceUnpaired_unpairMainDevice()
303 when(mDevice2.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in onDeviceUnpaired_unpairSubDevice()
[all …]
DCachedBluetoothDeviceTest.java91 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDING); in getConnectionSummary_testProfilesInactive_returnPairing()
465 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDING); in getConnectionSummary_testMultipleProfilesInactive_returnPairing()
477 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in getConnectionSummary_trueWirelessActiveDeviceWithBattery_returnActiveWithBattery()
495 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in getConnectionSummary_trueWirelessDeviceWithBattery_returnActiveWithBattery()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DCachedBluetoothDeviceManager.java58 return cachedDevice.getBondState() == BluetoothDevice.BOND_NONE; in onDeviceDisappeared()
180 -> cachedDevice.getBondState() == BluetoothDevice.BOND_NONE); in clearNonBondedDevices()
188 && subDevice.getDevice().getBondState() == BluetoothDevice.BOND_NONE) { in clearNonBondedSubDevices()
217 if (subDevice.getBondState() != BluetoothDevice.BOND_BONDED) { in onBluetoothStateChanged()
221 if (cachedDevice.getBondState() != BluetoothDevice.BOND_BONDED) { in onBluetoothStateChanged()
DCachedBluetoothDevice.java292 if (getBondState() == BluetoothDevice.BOND_NONE) { in ensurePaired()
314 int state = getBondState(); in unpair()
452 public int getBondState() { in getBondState() method in CachedBluetoothDevice
453 return mDevice.getBondState(); in getBondState()
555 return getBondState() == BluetoothDevice.BOND_BONDING; in isBusy()
728 comparison = (another.getBondState() == BluetoothDevice.BOND_BONDED ? 1 : 0) - in compareTo()
729 (getBondState() == BluetoothDevice.BOND_BONDED ? 1 : 0); in compareTo()
797 if (mDevice.getBondState() != BluetoothDevice.BOND_BONDED) return; in processPhonebookAccess()
935 || getBondState() == BluetoothDevice.BOND_BONDING) { in getConnectionSummary()
1060 return getBondState() == BluetoothDevice.BOND_BONDING ? in getCarConnectionSummary()
DBluetoothDeviceFilter.java87 return device.getBondState() == BluetoothDevice.BOND_BONDED; in matches()
94 return device.getBondState() != BluetoothDevice.BOND_BONDED; in matches()
DBluetoothEventManager.java319 } else if (cachedDevice.getBondState() == BluetoothDevice.BOND_BONDED in onReceive()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
DBluetoothMediaDeviceTest.java73 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in isCachedBluetoothDeviceConnected_deviceConnected_returnTrue()
81 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in isCachedBluetoothDeviceConnected_deviceNotConnected_returnFalse()
DBluetoothMediaManagerTest.java98 when(cachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in startScan_haveA2dpProfileDeviceIsPreferredAndBonded_shouldAddDevice()
115 when(cachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in startScan_haveA2dpProfileDeviceIsPreferredAndBondNone_shouldNotAddDevice()
143 when(cachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in startScan_haveHapProfileDeviceIsPreferredAndBonded_shouldAddDevice()
327 when(device.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in onProfileConnectionStateChanged_cachedDeviceIsBonded_callDeviceAttributesChanged()
345 when(device.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in onProfileConnectionStateChanged_cachedDeviceIsBondNone_callOnDeviceRemoved()
363 when(device.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in onAclConnectionStateChanged_cachedDeviceIsBonded_callDeviceAttributesChanged()
381 when(device.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in onAclConnectionStateChanged_cachedDeviceIsBondNone_callOnDeviceRemoved()
DMediaDeviceTest.java117 when(mCachedDevice1.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in setUp()
119 when(mCachedDevice2.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in setUp()
121 when(mCachedDevice3.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DBluetoothControllerImplTest.java100 assertEquals(BluetoothDevice.BOND_NONE, mBluetoothControllerImpl.getBondState(device)); in testDefaultConnectionState()
108 when(device.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in testAsyncBondState()
116 assertEquals(BluetoothDevice.BOND_NONE, mBluetoothControllerImpl.getBondState(device)); in testAsyncBondState()
121 assertEquals(BluetoothDevice.BOND_BONDED, mBluetoothControllerImpl.getBondState(device)); in testAsyncBondState()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DBluetoothMediaManager.java114 && BluetoothDevice.BOND_BONDED == cachedDevice.getBondState()) { in addConnectableA2dpDevices()
150 && BluetoothDevice.BOND_BONDED == cachedDevice.getBondState()) { in addConnectableHearingAidDevices()
264 if (BluetoothDevice.BOND_NONE == cachedDevice.getBondState()) { in updateMediaDeviceListIfNecessary()
DBluetoothMediaDevice.java105 return mCachedDevice.getBondState() == BluetoothDevice.BOND_BONDED in isConnected()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBluetoothController.java42 int getBondState(CachedBluetoothDevice device); in getBondState() method
DBluetoothControllerImpl.java129 return device.getName() + " " + device.getBondState() + " " + device.isConnected(); in getDeviceString()
133 public int getBondState(CachedBluetoothDevice device) { in getBondState() method in BluetoothControllerImpl
343 mBondState = device.getBondState(); in run()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/leaks/
DFakeBluetoothController.java95 public int getBondState(CachedBluetoothDevice device) { in getBondState() method in FakeBluetoothController
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
DBluetoothTestUtils.java780 int state = device.getBondState(); in pairOrAcceptPair()
802 state = device.getBondState(); in pairOrAcceptPair()
842 int state = device.getBondState(); in unpair()
864 if (device.getBondState() == BluetoothDevice.BOND_NONE in unpair()
/frameworks/base/core/java/android/bluetooth/
DBluetoothDevice.java1336 public int getBondState() { in getBondState() method in BluetoothDevice
1343 return service.getBondState(this); in getBondState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DBluetoothTile.java386 if (mController.getBondState(device) == BluetoothDevice.BOND_NONE) continue; in updateItems()
/frameworks/base/config/
Dboot-image-profile.txt3189 HSPLandroid/bluetooth/BluetoothDevice;->getBondState()I
3245 HSPLandroid/bluetooth/IBluetooth$Stub$Proxy;->getBondState(Landroid/bluetooth/BluetoothDevice;)I
Dhiddenapi-greylist-max-o.txt11628 Landroid/bluetooth/IBluetooth$Stub$Proxy;->getBondState(Landroid/bluetooth/BluetoothDevice;)I
11763 Landroid/bluetooth/IBluetooth;->getBondState(Landroid/bluetooth/BluetoothDevice;)I
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt6200 method public int getBondState();
/frameworks/base/api/
Dcurrent.txt8361 method @RequiresPermission(android.Manifest.permission.BLUETOOTH) public int getBondState();