/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/ |
D | BluetoothScanningDevicesGroupPreferenceControllerTest.java | 94 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp() 95 when(mCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp() 146 when(mCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDING); in onScanningStateChanged_scanningDisabled_receiveStopped_doesNothing() 161 when(mCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDING); in onDeviceBondStateChanged_refreshesUi() 162 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDING); in onDeviceBondStateChanged_refreshesUi() 223 when(mCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDING); in refreshUi_deviceBonding_stopsScanning() 233 when(mCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDING); in refreshUi_deviceBonding_disablesGroup() 243 when(mCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDING); in refreshUi_deviceBonding_setsScanModeConnectable()
|
D | BluetoothDevicePickerPreferenceControllerTest.java | 95 when(mUnbondedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp() 96 when(mUnbondedCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp() 98 when(mBondedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in setUp() 99 when(mBondedCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in setUp()
|
D | BluetoothUnbondedDevicesPreferenceControllerTest.java | 104 when(mUnbondedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp() 105 when(mUnbondedCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp() 110 when(bondedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in setUp()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | SavedBluetoothDeviceUpdaterTest.java | 90 when(mBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in setUp() 106 doReturn(BluetoothDevice.BOND_BONDED).when(mBluetoothDevice).getBondState(); in update_filterMatch_addPreference() 117 doReturn(BluetoothDevice.BOND_NONE).when(mBluetoothDevice).getBondState(); in update_filterNotMatch_removePreference() 171 when(mBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in forceUpdate_findCachedBluetoothDeviceIsMatched_addPreference() 189 when(mBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in forceUpdate_findCachedBluetoothDeviceNotMatched_removePreference() 244 when(mBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in forceUpdate_deviceNotContain_removePreference()
|
D | BluetoothDevicePreferenceTest.java | 123 when(mCachedBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in onClicked_deviceBonded_shouldLogBluetoothConnectEvent() 134 when(mCachedBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in onClicked_deviceNotBonded_shouldLogBluetoothPairEvent() 150 when(mCachedBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in onClicked_deviceNotBonded_shouldLogBluetoothPairEventAndPairWithoutNameEvent() 177 when(mCachedBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in shouldHideSecondTarget_notBond_shouldReturnTrue() 193 when(mCachedBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in shouldHideSecondTarget_hasBoundDeviceAndNoRestriction_shouldReturnFalse()
|
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 | BluetoothDeviceUpdaterTest.java | 200 doReturn(BluetoothDevice.BOND_BONDED).when(mBluetoothDevice).getBondState(); in isDeviceConnected_deviceConnected() 208 doReturn(BluetoothDevice.BOND_BONDED).when(mBluetoothDevice).getBondState(); in isDeviceConnected_deviceNotConnected()
|
D | BluetoothDeviceDetailsFragmentTest.java | 134 when(mCachedDevice.getBondState()).thenReturn(BOND_NONE); in finishFragmentIfNecessary_deviceIsBondNone_finishFragment()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/ |
D | BluetoothBondedDevicesPreferenceControllerTest.java | 103 when(mBondedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in setUp() 111 when(unbondedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp() 149 when(mBondedCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in onDeviceBondStateChanged_refreshesUi() 150 when(mBondedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in onDeviceBondStateChanged_refreshesUi()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | BluetoothDevicePreference.java | 124 || mCachedDevice.getBondState() != BluetoothDevice.BOND_BONDED in shouldHideSecondTarget() 212 if (mCachedDevice.getBondState() == BluetoothDevice.BOND_BONDED) { in onBindViewHolder() 264 int bondState = mCachedDevice.getBondState(); in onClicked()
|
D | BluetoothPairingService.java | 136 if (mDevice != null && mDevice.getBondState() != BluetoothDevice.BOND_BONDING) { in onStartCommand() 137 Log.w(TAG, "Device " + mDevice.getName() + " not bonding: " + mDevice.getBondState()); in onStartCommand()
|
D | SavedBluetoothDeviceUpdater.java | 107 return device.getBondState() == BluetoothDevice.BOND_BONDED in isFilterMatched()
|
D | DevicePickerFragment.java | 141 if ((btPreference.getCachedDevice().getBondState() == in onDevicePreferenceClick()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/ |
D | AvrcpVolumeManager.java | 115 if (value instanceof Integer && d.getBondState() == BluetoothDevice.BOND_BONDED) { in AvrcpVolumeManager() 126 if (device.getBondState() != BluetoothDevice.BOND_BONDED) { in storeVolumeForDevice() 145 if (device.getBondState() != BluetoothDevice.BOND_NONE) { in removeStoredVolumeForDevice()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/ |
D | AccessoryUtils.java | 109 return device.getBondState() == BluetoothDevice.BOND_BONDED && device.isConnected(); in isConnected() 116 return device.getBondState() == BluetoothDevice.BOND_BONDED && !device.isConnected(); in isBonded()
|
D | BluetoothAccessoryFragment.java | 168 if (mDevice != null && mDevice.getBondState() == BluetoothDevice.BOND_NONE) { in onStart() 435 if (mDevice.getBondState() == BluetoothDevice.BOND_NONE) { in onStart() 498 int state = mDevice.getBondState(); in unpairDevice()
|
D | BluetoothDevicePairer.java | 587 if (mTarget.getBondState() != BluetoothDevice.BOND_BONDED) { in startBonding() 647 int state = device.getBondState(); in unpairDevice()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
D | RemoteDevices.java | 363 int getBondState() { in getBondState() method in RemoteDevices.DeviceProperties 370 return getBondState() == BluetoothDevice.BOND_BONDING; in isBonding() 374 return isBonding() || getBondState() == BluetoothDevice.BOND_BONDED; in isBondingOrBonded() 678 if (device.getBondState() == BluetoothDevice.BOND_BONDING) { in aclStateChangeCallback() 737 + device.getBondState()); in aclStateChangeCallback()
|
D | BondStateMachine.java | 299 if (dev.getBondState() == BluetoothDevice.BOND_BONDING) { in cancelBond() 312 if (devProp != null && devProp.getBondState() == BluetoothDevice.BOND_BONDED) { in removeBond() 329 if (dev.getBondState() == BluetoothDevice.BOND_NONE) { in createBond() 391 oldState = devProp.getBondState(); in sendIntent()
|
/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()
|
D | BluetoothUnbondedDevicesPreferenceController.java | 89 boolean matches = device.getBondState() != BluetoothDevice.BOND_BONDED; in matches()
|
D | BluetoothDevicePickerPreferenceController.java | 95 if (cachedDevice.getBondState() == BluetoothDevice.BOND_BONDED || !mNeedAuth) { in onDeviceClickedInternal()
|
D | BluetoothScanningDevicesGroupPreferenceController.java | 93 if (device.getBondState() == BluetoothDevice.BOND_BONDING) { in shouldEnableScanning()
|
/packages/apps/Nfc/src/com/android/nfc/handover/ |
D | BluetoothPeripheralHandover.java | 349 if (mDevice.getBondState() != BluetoothDevice.BOND_BONDED) { in nextStepConnect() 356 if (mDevice.getBondState() != BluetoothDevice.BOND_NONE) { in nextStepConnect() 365 if (mDevice.getBondState() != BluetoothDevice.BOND_BONDED) { in nextStepConnect()
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/le_audio/ |
D | LeAudioServiceTest.java | 116 .getBondState(any(BluetoothDevice.class)); in setUp() 236 doReturn(bondState).when(mAdapterService).getBondState(device); in testOkToConnectCase() 640 .getBondState(any(BluetoothDevice.class)); in testDeleteStateMachineDisconnectEvents()
|