Home
last modified time | relevance | path

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

12

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/
DBluetoothScanningDevicesGroupPreferenceControllerTest.java94 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()
DBluetoothDevicePickerPreferenceControllerTest.java95 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()
DBluetoothUnbondedDevicesPreferenceControllerTest.java104 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/
DSavedBluetoothDeviceUpdaterTest.java90 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()
DBluetoothDevicePreferenceTest.java123 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()
DBluetoothPairingServiceTest.java92 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()
DBluetoothDeviceUpdaterTest.java200 doReturn(BluetoothDevice.BOND_BONDED).when(mBluetoothDevice).getBondState(); in isDeviceConnected_deviceConnected()
208 doReturn(BluetoothDevice.BOND_BONDED).when(mBluetoothDevice).getBondState(); in isDeviceConnected_deviceNotConnected()
DBluetoothDeviceDetailsFragmentTest.java134 when(mCachedDevice.getBondState()).thenReturn(BOND_NONE); in finishFragmentIfNecessary_deviceIsBondNone_finishFragment()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/
DBluetoothBondedDevicesPreferenceControllerTest.java103 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/
DBluetoothDevicePreference.java124 || mCachedDevice.getBondState() != BluetoothDevice.BOND_BONDED in shouldHideSecondTarget()
212 if (mCachedDevice.getBondState() == BluetoothDevice.BOND_BONDED) { in onBindViewHolder()
264 int bondState = mCachedDevice.getBondState(); in onClicked()
DBluetoothPairingService.java136 if (mDevice != null && mDevice.getBondState() != BluetoothDevice.BOND_BONDING) { in onStartCommand()
137 Log.w(TAG, "Device " + mDevice.getName() + " not bonding: " + mDevice.getBondState()); in onStartCommand()
DSavedBluetoothDeviceUpdater.java107 return device.getBondState() == BluetoothDevice.BOND_BONDED in isFilterMatched()
DDevicePickerFragment.java141 if ((btPreference.getCachedDevice().getBondState() == in onDevicePreferenceClick()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DAvrcpVolumeManager.java115 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/
DAccessoryUtils.java109 return device.getBondState() == BluetoothDevice.BOND_BONDED && device.isConnected(); in isConnected()
116 return device.getBondState() == BluetoothDevice.BOND_BONDED && !device.isConnected(); in isBonded()
DBluetoothAccessoryFragment.java168 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()
DBluetoothDevicePairer.java587 if (mTarget.getBondState() != BluetoothDevice.BOND_BONDED) { in startBonding()
647 int state = device.getBondState(); in unpairDevice()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DRemoteDevices.java363 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()
DBondStateMachine.java299 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/
DBluetoothPairingService.java136 if (mDevice != null && mDevice.getBondState() != BluetoothDevice.BOND_BONDING) { in onStartCommand()
137 LOG.w("Device " + mDevice + " not bonding: " + mDevice.getBondState()); in onStartCommand()
DBluetoothUnbondedDevicesPreferenceController.java89 boolean matches = device.getBondState() != BluetoothDevice.BOND_BONDED; in matches()
DBluetoothDevicePickerPreferenceController.java95 if (cachedDevice.getBondState() == BluetoothDevice.BOND_BONDED || !mNeedAuth) { in onDeviceClickedInternal()
DBluetoothScanningDevicesGroupPreferenceController.java93 if (device.getBondState() == BluetoothDevice.BOND_BONDING) { in shouldEnableScanning()
/packages/apps/Nfc/src/com/android/nfc/handover/
DBluetoothPeripheralHandover.java349 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/
DLeAudioServiceTest.java116 .getBondState(any(BluetoothDevice.class)); in setUp()
236 doReturn(bondState).when(mAdapterService).getBondState(device); in testOkToConnectCase()
640 .getBondState(any(BluetoothDevice.class)); in testDeleteStateMachineDisconnectEvents()

12