Home
last modified time | relevance | path

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

12

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/
DBluetoothScanningDevicesGroupPreferenceControllerTest.java97 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp()
98 when(mCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp()
150 when(mCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDING); in onScanningStateChanged_scanningDisabled_receiveStopped_doesNothing()
165 when(mCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDING); in onDeviceBondStateChanged_refreshesUi()
166 when(mDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDING); in onDeviceBondStateChanged_refreshesUi()
227 when(mCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDING); in refreshUi_deviceBonding_stopsScanning()
237 when(mCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDING); in refreshUi_deviceBonding_disablesGroup()
247 when(mCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDING); in refreshUi_deviceBonding_setsScanModeConnectable()
DBluetoothBondedDevicesPreferenceControllerTest.java95 when(mBondedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in setUp()
98 when(unbondedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp()
140 when(mBondedCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in onDeviceBondStateChanged_refreshesUi()
141 when(mBondedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in onDeviceBondStateChanged_refreshesUi()
DBluetoothDevicePickerPreferenceControllerTest.java101 when(mUnbondedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp()
102 when(mUnbondedCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp()
104 when(mBondedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in setUp()
105 when(mBondedCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in setUp()
DBluetoothUnbondedDevicesPreferenceControllerTest.java94 when(mUnbondedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp()
95 when(mUnbondedCachedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in setUp()
98 when(bondedDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothDevicePreferenceTest.java90 when(mCachedBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in onClicked_deviceBonded_shouldLogBluetoothConnectEvent()
101 when(mCachedBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in onClicked_deviceNotBonded_shouldLogBluetoothPairEvent()
117 when(mCachedBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in onClicked_deviceNotBonded_shouldLogBluetoothPairEventAndPairWithoutNameEvent()
144 when(mCachedBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in shouldHideSecondTarget_notBond_shouldReturnTrue()
160 when(mCachedBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in shouldHideSecondTarget_hasBoundDeviceAndNoRestriction_shouldReturnFalse()
DSavedBluetoothDeviceUpdaterTest.java70 when(mBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in setUp()
82 doReturn(BluetoothDevice.BOND_BONDED).when(mBluetoothDevice).getBondState(); in update_filterMatch_addPreference()
92 doReturn(BluetoothDevice.BOND_NONE).when(mBluetoothDevice).getBondState(); in update_filterNotMatch_removePreference()
DBluetoothDeviceUpdaterTest.java187 doReturn(BluetoothDevice.BOND_BONDED).when(mBluetoothDevice).getBondState(); in isDeviceConnected_deviceConnected()
195 doReturn(BluetoothDevice.BOND_BONDED).when(mBluetoothDevice).getBondState(); in isDeviceConnected_deviceNotConnected()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/
DBluetoothDevicePreference.java94 || mCachedDevice.getBondState() != BluetoothDevice.BOND_BONDED in shouldHideSecondTarget()
163 if (mCachedDevice.getBondState() == BluetoothDevice.BOND_BONDED) { in onBindViewHolder()
206 int bondState = mCachedDevice.getBondState(); in onClicked()
DBluetoothPairingService.java135 if (mDevice != null && mDevice.getBondState() != BluetoothDevice.BOND_BONDING) { in onStartCommand()
136 Log.w(TAG, "Device " + mDevice + " not bonding: " + mDevice.getBondState()); in onStartCommand()
DSavedBluetoothDeviceUpdater.java49 return device.getBondState() == BluetoothDevice.BOND_BONDED && !device.isConnected(); in isFilterMatched()
DDevicePickerFragment.java124 if ((btPreference.getCachedDevice().getBondState() == in onDevicePreferenceClick()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothDevicePreference.java95 || mCachedDevice.getBondState() != BluetoothDevice.BOND_BONDED in shouldHideSecondTarget()
164 if (mCachedDevice.getBondState() == BluetoothDevice.BOND_BONDED) { in onBindViewHolder()
209 int bondState = mCachedDevice.getBondState(); in onClicked()
DBluetoothPairingService.java135 if (mDevice != null && mDevice.getBondState() != BluetoothDevice.BOND_BONDING) { in onStartCommand()
136 Log.w(TAG, "Device " + mDevice + " not bonding: " + mDevice.getBondState()); in onStartCommand()
DSavedBluetoothDeviceUpdater.java49 return device.getBondState() == BluetoothDevice.BOND_BONDED && !device.isConnected(); in isFilterMatched()
DDevicePickerFragment.java124 if ((btPreference.getCachedDevice().getBondState() == in onDevicePreferenceClick()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DAvrcpVolumeManager.java108 if (value instanceof Integer && d.getBondState() == BluetoothDevice.BOND_BONDED) { in AvrcpVolumeManager()
119 if (device.getBondState() != BluetoothDevice.BOND_BONDED) { in storeVolumeForDevice()
134 if (device.getBondState() != BluetoothDevice.BOND_NONE) { in removeStoredVolumeForDevice()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DBondStateMachine.java288 if (dev.getBondState() == BluetoothDevice.BOND_BONDING) { in cancelBond()
300 if (dev.getBondState() == BluetoothDevice.BOND_BONDED) { in removeBond()
317 if (dev.getBondState() == BluetoothDevice.BOND_NONE) { in createBond()
372 oldState = devProp.getBondState(); in sendIntent()
DAdapterService.java1199 public int getBondState(BluetoothDevice device) { in getBondState() method in AdapterService.AdapterServiceBinder
1205 return service.getBondState(device); in getBondState()
2024 if (deviceProp != null && deviceProp.getBondState() != BluetoothDevice.BOND_NONE) { in createBond()
2091 if (deviceProp == null || deviceProp.getBondState() != BluetoothDevice.BOND_BONDED) { in removeBond()
2112 public int getBondState(BluetoothDevice device) { in getBondState() method in AdapterService
2118 return deviceProp.getBondState(); in getBondState()
2231 if (deviceProp == null || (deviceProp.getBondState() != BluetoothDevice.BOND_BONDING in setPin()
2232 && deviceProp.getBondState() != BluetoothDevice.BOND_BONDED)) { in setPin()
2254 if (deviceProp == null || deviceProp.getBondState() != BluetoothDevice.BOND_BONDING) { in setPasskey()
2278 if (deviceProp == null || deviceProp.getBondState() != BluetoothDevice.BOND_BONDING) { in setPairingConfirmation()
DRemoteDevices.java330 int getBondState() { in getBondState() method in RemoteDevices.DeviceProperties
620 if (device.getBondState() == BluetoothDevice.BOND_BONDING) { in aclStateChangeCallback()
659 + device.getBondState()); in aclStateChangeCallback()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothPairingService.java134 if (mDevice != null && mDevice.getBondState() != BluetoothDevice.BOND_BONDING) { in onStartCommand()
135 LOG.w("Device " + mDevice + " not bonding: " + mDevice.getBondState()); in onStartCommand()
DBluetoothDevicePickerPreferenceController.java95 if (cachedDevice.getBondState() == BluetoothDevice.BOND_BONDED || !mNeedAuth) { in onDeviceClickedInternal()
DBluetoothScanningDevicesGroupPreferenceController.java93 if (device.getBondState() == BluetoothDevice.BOND_BONDING) { in shouldEnableScanning()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DBluetoothAccessoryFragment.java170 if (mDevice != null && mDevice.getBondState() == BluetoothDevice.BOND_NONE) { in onStart()
443 if (mDevice.getBondState() == BluetoothDevice.BOND_NONE) { in onStart()
508 int state = mDevice.getBondState(); in unpairDevice()
DBluetoothDevicePairer.java566 if (mTarget.getBondState() != BluetoothDevice.BOND_BONDED) { in startBonding()
626 int state = device.getBondState(); in unpairDevice()
/packages/apps/Nfc/src/com/android/nfc/handover/
DBluetoothPeripheralHandover.java347 if (mDevice.getBondState() != BluetoothDevice.BOND_BONDED) { in nextStepConnect()
354 if (mDevice.getBondState() != BluetoothDevice.BOND_NONE) { in nextStepConnect()
363 if (mDevice.getBondState() != BluetoothDevice.BOND_BONDED) { in nextStepConnect()

12