/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/ |
D | BluetoothScanningDevicesGroupPreferenceControllerTest.java | 97 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()
|
D | BluetoothBondedDevicesPreferenceControllerTest.java | 95 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()
|
D | BluetoothDevicePickerPreferenceControllerTest.java | 101 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()
|
D | BluetoothUnbondedDevicesPreferenceControllerTest.java | 94 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/ |
D | BluetoothDevicePreferenceTest.java | 90 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()
|
D | SavedBluetoothDeviceUpdaterTest.java | 70 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()
|
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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/ |
D | BluetoothDevicePreference.java | 94 || mCachedDevice.getBondState() != BluetoothDevice.BOND_BONDED in shouldHideSecondTarget() 163 if (mCachedDevice.getBondState() == BluetoothDevice.BOND_BONDED) { in onBindViewHolder() 206 int bondState = mCachedDevice.getBondState(); in onClicked()
|
D | BluetoothPairingService.java | 135 if (mDevice != null && mDevice.getBondState() != BluetoothDevice.BOND_BONDING) { in onStartCommand() 136 Log.w(TAG, "Device " + mDevice + " not bonding: " + mDevice.getBondState()); in onStartCommand()
|
D | SavedBluetoothDeviceUpdater.java | 49 return device.getBondState() == BluetoothDevice.BOND_BONDED && !device.isConnected(); in isFilterMatched()
|
D | DevicePickerFragment.java | 124 if ((btPreference.getCachedDevice().getBondState() == in onDevicePreferenceClick()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | BluetoothDevicePreference.java | 95 || mCachedDevice.getBondState() != BluetoothDevice.BOND_BONDED in shouldHideSecondTarget() 164 if (mCachedDevice.getBondState() == BluetoothDevice.BOND_BONDED) { in onBindViewHolder() 209 int bondState = mCachedDevice.getBondState(); in onClicked()
|
D | BluetoothPairingService.java | 135 if (mDevice != null && mDevice.getBondState() != BluetoothDevice.BOND_BONDING) { in onStartCommand() 136 Log.w(TAG, "Device " + mDevice + " not bonding: " + mDevice.getBondState()); in onStartCommand()
|
D | SavedBluetoothDeviceUpdater.java | 49 return device.getBondState() == BluetoothDevice.BOND_BONDED && !device.isConnected(); in isFilterMatched()
|
D | DevicePickerFragment.java | 124 if ((btPreference.getCachedDevice().getBondState() == in onDevicePreferenceClick()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/ |
D | AvrcpVolumeManager.java | 108 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/ |
D | BondStateMachine.java | 288 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()
|
D | AdapterService.java | 1199 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()
|
D | RemoteDevices.java | 330 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/ |
D | BluetoothPairingService.java | 134 if (mDevice != null && mDevice.getBondState() != BluetoothDevice.BOND_BONDING) { in onStartCommand() 135 LOG.w("Device " + mDevice + " not bonding: " + mDevice.getBondState()); in onStartCommand()
|
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/TvSettings/Settings/src/com/android/tv/settings/accessories/ |
D | BluetoothAccessoryFragment.java | 170 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()
|
D | BluetoothDevicePairer.java | 566 if (mTarget.getBondState() != BluetoothDevice.BOND_BONDED) { in startBonding() 626 int state = device.getBondState(); in unpairDevice()
|
/packages/apps/Nfc/src/com/android/nfc/handover/ |
D | BluetoothPeripheralHandover.java | 347 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()
|