/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ |
D | SavedHearingDeviceUpdaterTest.java | 84 doReturn(BluetoothDevice.BOND_BONDED).when(mBluetoothDevice).getBondState(); in isFilterMatch_savedHearingDevice_returnTrue() 96 doReturn(BluetoothDevice.BOND_BONDED).when(mBluetoothDevice).getBondState(); in isFilterMatch_savedNonHearingDevice_returnFalse() 108 doReturn(BluetoothDevice.BOND_BONDING).when(mBluetoothDevice).getBondState(); in isFilterMatch_savedBondingHearingDevice_returnFalse() 120 doReturn(BluetoothDevice.BOND_BONDED).when(mBluetoothDevice).getBondState(); in isFilterMatch_connectedHearingDevice_returnFalse() 132 doReturn(BluetoothDevice.BOND_BONDED).when(mBluetoothDevice).getBondState(); in isFilterMatch_hearingDeviceNotInCachedDevicesList_returnFalse()
|
D | AvailableHearingDeviceUpdaterTest.java | 84 when(mBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in isFilterMatch_connectedHearingDevice_returnTrue() 96 when(mBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in isFilterMatch_nonConnectedHearingDevice_returnFalse() 108 when(mBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDING); in isFilterMatch_connectedBondingHearingDevice_returnFalse() 120 when(mBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in isFilterMatch_hearingDeviceNotInCachedDevicesList_returnFalse()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | SavedBluetoothDeviceUpdaterTest.java | 106 when(mBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in setUp() 127 doReturn(BluetoothDevice.BOND_BONDED).when(mBluetoothDevice).getBondState(); in update_filterMatch_addPreference() 139 doReturn(BluetoothDevice.BOND_NONE).when(mBluetoothDevice).getBondState(); in update_filterNotMatch_removePreference() 218 when(mBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in forceUpdate_findCachedBluetoothDeviceIsMatched_addPreference() 236 when(mBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in forceUpdate_findCachedBluetoothDeviceNotMatched_removePreference() 291 when(mBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in forceUpdate_deviceNotContain_removePreference() 328 when(mBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in update_notExclusivelyManagedDevice_addDevice() 347 when(mBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in update_existingExclusivelyManagedDevice_packageEnabled_removePreference() 371 when(mBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in update_newExclusivelyManagedDevice_packageEnabled_doNotAddPreference() 394 when(mBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in update_exclusivelyManagedDevice_packageNotInstalled_addDevice() [all …]
|
D | BluetoothDetailsPairOtherControllerTest.java | 145 when(mSubCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in isAvailable_deviceIsConnectedHearingAid_subDeviceIsBonded_notAvailable() 164 when(mSubCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in isAvailable_deviceIsConnectedHearingAid_subDeviceIsNotBonded_available() 183 when(mSubCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in isAvailable_deviceIsConnectedHearingAid_memberDeviceIsBonded_notAvailable() 202 when(mSubCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in isAvailable_deviceIsConnectedHearingAid_memberDeviceIsNotBonded_available()
|
D | BluetoothPairingServiceTest.java | 92 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDING); in receivePairingRequestAction_notificationShown() 105 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDING); in receiveDismissPairingAction_cancelPairing() 119 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDING); in receivePairingDialogAction_startActivity()
|
D | BluetoothDevicePreferenceTest.java | 139 when(mCachedBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in onClicked_deviceBonded_shouldLogBluetoothConnectEvent() 150 when(mCachedBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in onClicked_deviceNotBonded_shouldLogBluetoothPairEvent() 166 when(mCachedBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in onClicked_deviceNotBonded_shouldLogBluetoothPairEventAndPairWithoutNameEvent() 193 when(mCachedBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in shouldHideSecondTarget_notBond_shouldReturnTrue() 209 when(mCachedBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in shouldHideSecondTarget_hasBoundDeviceAndNoRestriction_shouldReturnFalse()
|
D | BluetoothDeviceUpdaterTest.java | 187 doReturn(BluetoothDevice.BOND_BONDED).when(mBluetoothDevice).getBondState(); in isDeviceConnected_deviceConnected() 195 doReturn(BluetoothDevice.BOND_BONDED).when(mBluetoothDevice).getBondState(); in isDeviceConnected_deviceNotConnected()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/ |
D | BluetoothScanningDevicesGroupPreferenceControllerTest.java | 130 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp() 131 when(mCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp() 187 when(mCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDING); in onScanningStateChanged_scanningDisabled_receiveStopped_doesNothing() 203 when(mCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDING); in onDeviceBondStateChanged_refreshesUi() 204 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDING); in onDeviceBondStateChanged_refreshesUi() 282 when(mCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDING); in refreshUi_deviceBonding_stopsScanning() 293 when(mCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDING); in refreshUi_deviceBonding_disablesGroup() 304 when(mCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDING); in refreshUi_deviceBonding_setsScanModeConnectable()
|
D | BluetoothUnbondedDevicesPreferenceControllerTest.java | 122 when(mUnbondedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp() 123 when(mUnbondedCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp() 128 when(bondedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in setUp()
|
D | BluetoothDevicePickerPreferenceControllerTest.java | 124 when(mUnbondedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp() 125 when(mUnbondedCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp() 127 when(mBondedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in setUp() 128 when(mBondedCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in setUp()
|
D | BluetoothBondedDevicesPreferenceControllerTest.java | 125 when(mBondedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in setUp() 135 when(unbondedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp() 185 when(mBondedCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in onDeviceBondStateChanged_refreshesUi() 186 when(mBondedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in onDeviceBondStateChanged_refreshesUi()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | BluetoothDetailsPairOtherController.java | 118 subDevice != null && subDevice.getBondState() == BluetoothDevice.BOND_BONDED; in isOtherSideBonded() 123 device -> device.getBondState() == BluetoothDevice.BOND_BONDED); in isOtherSideBonded()
|
D | BluetoothDevicePreference.java | 149 || mCachedDevice.getBondState() != BluetoothDevice.BOND_BONDED in shouldHideSecondTarget() 315 if (mCachedDevice.getBondState() == BluetoothDevice.BOND_BONDED) { in onBindViewHolder() 371 int bondState = mCachedDevice.getBondState(); in onClicked() 424 if (mCachedDevice.getBondState() != BluetoothDevice.BOND_NONE) { in getConnectionSummary()
|
D | SavedBluetoothDeviceUpdater.java | 111 return device.getBondState() == BluetoothDevice.BOND_BONDED in isFilterMatched() 116 return device.getBondState() == BluetoothDevice.BOND_BONDED in isFilterMatched()
|
D | BluetoothPairingService.java | 133 if (mDevice != null && mDevice.getBondState() != BluetoothDevice.BOND_BONDING) { in onStartCommand() 134 Log.w(TAG, "Device " + mDevice.getName() + " not bonding: " + mDevice.getBondState()); in onStartCommand()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcp/ |
D | AvrcpVolumeManager.java | 190 if (value instanceof Integer && d.getBondState() == BluetoothDevice.BOND_BONDED) { in AvrcpVolumeManager() 205 if (device.getBondState() != BluetoothDevice.BOND_BONDED) { in storeVolumeForDevice() 236 if (device.getBondState() != BluetoothDevice.BOND_NONE) { in removeStoredVolumeForDevice()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/ |
D | AccessoryUtils.java | 110 return device.getBondState() == BluetoothDevice.BOND_BONDED && device.isConnected(); in isConnected() 117 return device.getBondState() == BluetoothDevice.BOND_BONDED && !device.isConnected(); in isBonded()
|
D | BluetoothAccessoryFragment.java | 169 if (mDevice != null && mDevice.getBondState() == BluetoothDevice.BOND_NONE) { in onStart() 436 if (mDevice.getBondState() == BluetoothDevice.BOND_NONE) { in onStart() 499 int state = mDevice.getBondState(); in unpairDevice()
|
D | BluetoothDevicesService.java | 136 if (device.getBondState() == BluetoothDevice.BOND_BONDED) { 153 if (device.getBondState() == BluetoothDevice.BOND_BONDED) {
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/ |
D | BondStateMachine.java | 370 if (dev.getBondState() == BluetoothDevice.BOND_BONDING) { in cancelBond() 383 if (devProp != null && devProp.getBondState() == BluetoothDevice.BOND_BONDED) { in removeBond() 401 : "bond state is " + devProp.getBondState())); in removeBond() 416 if (dev.getBondState() == BluetoothDevice.BOND_NONE) { in createBond() 529 oldState = devProp.getBondState(); in sendIntent()
|
D | RemoteDevices.java | 544 int getBondState() { in getBondState() method in RemoteDevices.DeviceProperties 551 return getBondState() == BluetoothDevice.BOND_BONDING; in isBonding() 555 return isBonding() || getBondState() == BluetoothDevice.BOND_BONDED; in isBondingOrBonded() 1176 if (device.getBondState() == BluetoothDevice.BOND_BONDING) { in aclStateChangeCallback() 1179 } else if (device.getBondState() == BluetoothDevice.BOND_NONE) { in aclStateChangeCallback() 1271 + device.getBondState()); in aclStateChangeCallback() 1340 if (bluetoothDevice.getBondState() == BluetoothDevice.BOND_BONDED) { in keyMissingCallback()
|
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/ |
D | BluetoothPairingService.java | 136 if (mDevice != null && mDevice.getBondState() != BluetoothDevice.BOND_BONDING) { in onStartCommand() 137 LOG.w("Device " + mDevice + " not bonding: " + mDevice.getBondState()); in onStartCommand()
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | SavedHearingDeviceUpdater.java | 43 && device.getBondState() == BluetoothDevice.BOND_BONDED in isFilterMatched()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bas/ |
D | BatteryServiceTest.java | 86 .getBondState(any(BluetoothDevice.class)); in setUp() 278 doReturn(bondState).when(mAdapterService).getBondState(device); in testCanConnectCase()
|
/packages/apps/Nfc/src/com/android/nfc/handover/ |
D | BluetoothPeripheralHandover.java | 348 if (mDevice.getBondState() != BluetoothDevice.BOND_BONDED) { in nextStepConnect() 355 if (mDevice.getBondState() != BluetoothDevice.BOND_NONE) { in nextStepConnect() 364 if (mDevice.getBondState() != BluetoothDevice.BOND_BONDED) { in nextStepConnect()
|