Home
last modified time | relevance | path

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

123

/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DSavedHearingDeviceUpdaterTest.java84 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()
DAvailableHearingDeviceUpdaterTest.java84 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/
DSavedBluetoothDeviceUpdaterTest.java106 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 …]
DBluetoothDetailsPairOtherControllerTest.java145 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()
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()
DBluetoothDevicePreferenceTest.java139 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()
DBluetoothDeviceUpdaterTest.java187 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/
DBluetoothScanningDevicesGroupPreferenceControllerTest.java130 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()
DBluetoothUnbondedDevicesPreferenceControllerTest.java122 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()
DBluetoothDevicePickerPreferenceControllerTest.java124 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()
DBluetoothBondedDevicesPreferenceControllerTest.java125 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/
DBluetoothDetailsPairOtherController.java118 subDevice != null && subDevice.getBondState() == BluetoothDevice.BOND_BONDED; in isOtherSideBonded()
123 device -> device.getBondState() == BluetoothDevice.BOND_BONDED); in isOtherSideBonded()
DBluetoothDevicePreference.java149 || 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()
DSavedBluetoothDeviceUpdater.java111 return device.getBondState() == BluetoothDevice.BOND_BONDED in isFilterMatched()
116 return device.getBondState() == BluetoothDevice.BOND_BONDED in isFilterMatched()
DBluetoothPairingService.java133 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/
DAvrcpVolumeManager.java190 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/
DAccessoryUtils.java110 return device.getBondState() == BluetoothDevice.BOND_BONDED && device.isConnected(); in isConnected()
117 return device.getBondState() == BluetoothDevice.BOND_BONDED && !device.isConnected(); in isBonded()
DBluetoothAccessoryFragment.java169 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()
DBluetoothDevicesService.java136 if (device.getBondState() == BluetoothDevice.BOND_BONDED) {
153 if (device.getBondState() == BluetoothDevice.BOND_BONDED) {
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DBondStateMachine.java370 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()
DRemoteDevices.java544 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/
DBluetoothPairingService.java136 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/
DSavedHearingDeviceUpdater.java43 && device.getBondState() == BluetoothDevice.BOND_BONDED in isFilterMatched()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bas/
DBatteryServiceTest.java86 .getBondState(any(BluetoothDevice.class)); in setUp()
278 doReturn(bondState).when(mAdapterService).getBondState(device); in testCanConnectCase()
/packages/apps/Nfc/src/com/android/nfc/handover/
DBluetoothPeripheralHandover.java348 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()

123