Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DCachedBluetoothDeviceManagerTest.java285 when(mDevice1.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in clearNonBondedDevices_bondedAndNonBondedDevices_nonBondedDevicesCleared()
286 when(mDevice2.getBondState()).thenReturn(BluetoothDevice.BOND_BONDING); in clearNonBondedDevices_bondedAndNonBondedDevices_nonBondedDevicesCleared()
292 when(mDevice1.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in clearNonBondedDevices_bondedAndNonBondedDevices_nonBondedDevicesCleared()
293 when(mDevice2.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in clearNonBondedDevices_bondedAndNonBondedDevices_nonBondedDevicesCleared()
299 when(mDevice1.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in clearNonBondedDevices_bondedAndNonBondedDevices_nonBondedDevicesCleared()
300 when(mDevice2.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in clearNonBondedDevices_bondedAndNonBondedDevices_nonBondedDevicesCleared()
312 when(mDevice1.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in clearNonBondedDevices_nonBondedSubDevice()
313 when(mDevice2.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in clearNonBondedDevices_nonBondedSubDevice()
329 when(mDevice1.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in onDeviceUnpaired_unpairHearingAidMainDevice()
348 when(mDevice2.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in onDeviceUnpaired_unpairSubDevice()
[all …]
DBluetoothUtilsTest.java339 when(mBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in isAvailableMediaBluetoothDevice_isConnectedLeAudioDevice_returnTrue()
351 when(mBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in isAvailableMediaBluetoothDevice_isHeadset_isConnectedA2dpDevice_returnFalse()
363 when(mBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in isAvailableMediaBluetoothDevice_isA2dp_isConnectedA2dpDevice_returnTrue()
375 when(mBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in isAvailableMediaBluetoothDevice_isHeadset_isConnectedHfpDevice_returnTrue()
386 when(mBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in isConnectedBluetoothDevice_isConnectedLeAudioDevice_returnFalse()
398 when(mBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in isConnectedBluetoothDevice_isHeadset_isConnectedA2dpDevice_returnTrue()
410 when(mBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in isConnectedBluetoothDevice_isA2dp_isConnectedA2dpDevice_returnFalse()
422 when(mBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in isConnectedBluetoothDevice_isHeadset_isConnectedHfpDevice_returnFalse()
434 when(mBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in isConnectedBluetoothDevice_isNotConnected_returnFalse()
560 when(mBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in isAvailableHearingDevice_isConnectedHearingAid_returnTure()
DBluetoothEventManagerTest.java431 when(mDevice1.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
432 when(mDevice2.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
500 when(mDevice1.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in dispatchActiveDeviceChanged_connectedMemberDevices_activeDeviceChanged()
501 when(mDevice2.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in dispatchActiveDeviceChanged_connectedMemberDevices_activeDeviceChanged()
502 when(mDevice3.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in dispatchActiveDeviceChanged_connectedMemberDevices_activeDeviceChanged()
534 when(mDevice1.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in dispatchActiveDeviceChanged_withA2dpAndHearingAid()
535 when(mDevice2.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in dispatchActiveDeviceChanged_withA2dpAndHearingAid()
587 when(mDevice1.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in dispatchActiveDeviceChanged_callExpectedOnActiveDeviceChanged()
DCsipDeviceManagerTest.java117 when(mDevice1.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in setUp()
118 when(mDevice2.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in setUp()
119 when(mDevice3.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in setUp()
DCachedBluetoothDeviceTest.java221 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDING); in getConnectionSummary_testProfilesInactive_returnPairing()
232 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDING); in getTvConnectionSummary_testProfilesInactive_returnPairing()
1171 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDING); in getConnectionSummary_testMultipleProfilesInactive_returnPairing()
1188 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDING); in getTvConnectionSummary_testMultipleProfilesInactive_returnPairing()
1200 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in getConnectionSummary_trueWirelessActiveDeviceWithBattery_returnActiveWithBattery()
1218 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in getTvConnectionSummary_trueWirelessActiveDeviceWithBattery_returnBattery()
1236 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in getConnectionSummary_trueWirelessDeviceWithBattery_returnActiveWithBattery()
1255 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in getTvConnectionSummary_trueWirelessDeviceWithBattery_returnBattery()
1272 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in getTvConnectionSummary_trueWirelessDeviceWithLowBattery()
1845 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in onUuidChanged_bluetoothClassIsNull_shouldNotCrash()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DCachedBluetoothDeviceManager.java72 return cachedDevice.getBondState() == BluetoothDevice.BOND_NONE; in onDeviceDisappeared()
271 .filter(cachedDevice -> cachedDevice.getBondState() == BluetoothDevice.BOND_NONE) in clearNonBondedDevices()
287 if (memberDevice.getDevice().getBondState() == BluetoothDevice.BOND_NONE) { in clearNonBondedSubDevices()
295 && subDevice.getDevice().getBondState() == BluetoothDevice.BOND_NONE) { in clearNonBondedSubDevices()
333 if (memberDevice.getBondState() != BluetoothDevice.BOND_BONDED) { in onBluetoothStateChanged()
340 if (subDevice.getBondState() != BluetoothDevice.BOND_BONDED) { in onBluetoothStateChanged()
345 if (cachedDevice.getBondState() != BluetoothDevice.BOND_BONDED) { in onBluetoothStateChanged()
438 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.java541 if (getBondState() == BluetoothDevice.BOND_NONE) { in ensurePaired()
563 int state = getBondState(); in unpair()
784 public int getBondState() { in getBondState() method in CachedBluetoothDevice
785 return mDevice.getBondState(); in getBondState()
907 return getBondState() == BluetoothDevice.BOND_BONDING; in isBusy()
1122 comparison = (another.getBondState() == BluetoothDevice.BOND_BONDED ? 1 : 0) - in compareTo()
1123 (getBondState() == BluetoothDevice.BOND_BONDED ? 1 : 0); in compareTo()
1191 if (mDevice.getBondState() != BluetoothDevice.BOND_BONDED) return; in processPhonebookAccess()
1489 && getBondState() != BluetoothDevice.BOND_BONDING) { in getConnectionSummary()
1815 if (getBondState() == BluetoothDevice.BOND_BONDING) { in getCarConnectionSummary()
DCsipDeviceManager.java398 && device.getBondState() == BluetoothDevice.BOND_BONDED in isDeviceConnected()
DBluetoothEventManager.java356 } else if (cachedDevice.getBondState() == BluetoothDevice.BOND_BONDED in onReceive()
DBluetoothUtils.java717 return device.getBondState() == BluetoothDevice.BOND_BONDED && device.isConnected(); in isDeviceConnected()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/hearingaid/
DHearingDevicesCheckerTest.java98 when(mCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in isAnyPairedHearingDevice_hearingAidBonded_returnTrue()
108 when(mCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in isAnyActiveHearingDevice_hearingAidActiveAndConnected_returnTrue()
109 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in isAnyActiveHearingDevice_hearingAidActiveAndConnected_returnTrue()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
DBluetoothMediaDeviceTest.java64 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in isCachedBluetoothDeviceConnected_deviceConnected_returnTrue()
72 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in isCachedBluetoothDeviceConnected_deviceNotConnected_returnFalse()
DMediaDeviceTest.java148 when(mCachedDevice1.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in setUp()
150 when(mCachedDevice2.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in setUp()
152 when(mCachedDevice3.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in setUp()
DLocalMediaManagerTest.java471 when(cachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in onDeviceListAdded_haveMutingExpectedDevice_addMutingExpectedDevice()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/hearingaid/
DHearingDevicesChecker.java74 && device.getBondState() != BluetoothDevice.BOND_NONE in isAnyPairedHearingDevice()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DBluetoothMediaDevice.java141 return mCachedDevice.getBondState() == BluetoothDevice.BOND_BONDED in isConnected()
DLocalMediaManager.java604 if (cachedDevice.getBondState() == BluetoothDevice.BOND_BONDED in buildDisconnectedBluetoothDevice()
631 && cachedDevice.getBondState() == BluetoothDevice.BOND_BONDED in isBondedMediaDevice()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt6200 method public int getBondState();