/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/ |
D | AdapterServiceTest.java | 190 verifyStateChange(BluetoothAdapter.STATE_OFF, BluetoothAdapter.STATE_BLE_TURNING_ON, in doEnable() 242 mAdapterService.onProfileServiceStateChanged(mMockService, BluetoothAdapter.STATE_OFF); in doDisable() 243 mAdapterService.onProfileServiceStateChanged(mMockService2, BluetoothAdapter.STATE_OFF); in doDisable() 257 mAdapterService.onProfileServiceStateChanged(mMockGattService, BluetoothAdapter.STATE_OFF); in doDisable() 259 verifyStateChange(BluetoothAdapter.STATE_BLE_TURNING_OFF, BluetoothAdapter.STATE_OFF, in doDisable() 320 verifyStateChange(BluetoothAdapter.STATE_OFF, BluetoothAdapter.STATE_BLE_TURNING_ON, 1, in testGattStartTimeout() 335 verifyStateChange(BluetoothAdapter.STATE_BLE_TURNING_OFF, BluetoothAdapter.STATE_OFF, 1, in testGattStartTimeout() 357 mAdapterService.onProfileServiceStateChanged(mMockService, BluetoothAdapter.STATE_OFF); in testGattStopTimeout() 358 mAdapterService.onProfileServiceStateChanged(mMockService2, BluetoothAdapter.STATE_OFF); in testGattStopTimeout() 371 verifyStateChange(BluetoothAdapter.STATE_BLE_TURNING_OFF, BluetoothAdapter.STATE_OFF, 1, in testGattStopTimeout() [all …]
|
D | ProfileServiceTest.java | 122 setAllProfilesState(BluetoothAdapter.STATE_OFF, 1); in testEnableDisable() 132 setAllProfilesState(BluetoothAdapter.STATE_OFF, 1); in testEnableDisableTwice() 134 setAllProfilesState(BluetoothAdapter.STATE_OFF, 2); in testEnableDisableTwice() 145 setProfileState(profile, BluetoothAdapter.STATE_OFF); in testEnableDisableInterleaved() 155 stops.capture(), eq(BluetoothAdapter.STATE_OFF)); in testEnableDisableInterleaved() 182 setProfileState(profile, BluetoothAdapter.STATE_OFF); in testRepeatedEnableDisableSingly() 186 stop.capture(), eq(BluetoothAdapter.STATE_OFF)); in testRepeatedEnableDisableSingly() 208 setProfileState(profile, BluetoothAdapter.STATE_OFF); in testProfileServiceRegisterUnregister()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/ |
D | PlayerApplicationSettings.java | 203 return BluetoothAvrcpPlayerSettings.STATE_OFF; in mapAttribIdValtoAvrcpPlayerSetting() 214 return BluetoothAvrcpPlayerSettings.STATE_OFF; in mapAttribIdValtoAvrcpPlayerSetting() 225 return BluetoothAvrcpPlayerSettings.STATE_OFF; in mapAttribIdValtoAvrcpPlayerSetting() 234 return BluetoothAvrcpPlayerSettings.STATE_OFF; in mapAttribIdValtoAvrcpPlayerSetting() 244 case BluetoothAvrcpPlayerSettings.STATE_OFF: in mapAvrcpPlayerSettingstoBTattribVal() 251 case BluetoothAvrcpPlayerSettings.STATE_OFF: in mapAvrcpPlayerSettingstoBTattribVal() 262 case BluetoothAvrcpPlayerSettings.STATE_OFF: in mapAvrcpPlayerSettingstoBTattribVal() 271 case BluetoothAvrcpPlayerSettings.STATE_OFF: in mapAvrcpPlayerSettingstoBTattribVal()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | BluetoothAdapterHelper.java | 77 } else if (newState == BluetoothAdapter.STATE_OFF) { in onReceive() 147 waitForAdapterState(BluetoothAdapter.STATE_OFF); in waitForAdapterOff() 189 forceAdapterState(BluetoothAdapter.STATE_OFF, true); in forceAdapterOff() 196 forceAdapterState(BluetoothAdapter.STATE_OFF, false); in forceAdapterOffDoNotPersist()
|
D | BluetoothProfileDeviceManagerTest.java | 412 sendAdapterStateChanged(BluetoothAdapter.STATE_OFF); in testNoDevicesCommit_commitEmptyDeviceString() 429 sendAdapterStateChanged(BluetoothAdapter.STATE_OFF); in testSeveralDevicesCommit_commitAllDeviceString() 1260 sendAdapterStateChanged(BluetoothAdapter.STATE_OFF); in testReceiveAdapterOff_cancelAndCommit()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/ |
D | BluetoothSettingsFragmentTest.java | 19 import static android.bluetooth.BluetoothAdapter.STATE_OFF; 200 sendStateChangedIntent(STATE_OFF); in stateChanged_off_setsSwitchUnchecked() 209 sendStateChangedIntent(STATE_OFF); in stateChanged_off_setsSwitchEnabled() 220 sendStateChangedIntent(STATE_OFF); in stateChanged_off_userRestricted_setsSwitchDisabled()
|
D | BluetoothRequestPermissionActivityTest.java | 124 getShadowLocalBluetoothAdapter().setState(BluetoothAdapter.STATE_OFF); in onCreate_bluetoothOff_requestDisableIntent_noDialog() 147 getShadowLocalBluetoothAdapter().setState(BluetoothAdapter.STATE_OFF); in onCreate_bluetoothOff_requestDiscoverableIntent_startsDialog() 171 getShadowLocalBluetoothAdapter().setState(BluetoothAdapter.STATE_OFF); in onCreate_bluetoothOff_requestEnableIntent_startsDialog() 225 getShadowLocalBluetoothAdapter().setState(BluetoothAdapter.STATE_OFF); in onPositiveClick_enableDialog_enables()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/ |
D | RequestPermissionActivity.java | 87 case BluetoothAdapter.STATE_OFF: in onCreate() 109 case BluetoothAdapter.STATE_OFF: in onCreate() 218 if (mBluetoothAdapter.getState() == BluetoothAdapter.STATE_OFF) { in onActivityResult() 390 if (currentState == BluetoothAdapter.STATE_OFF) { in onReceive()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | RequestPermissionActivity.java | 91 case BluetoothAdapter.STATE_OFF: in onCreate() 113 case BluetoothAdapter.STATE_OFF: in onCreate() 222 if (mBluetoothAdapter.getState() == BluetoothAdapter.STATE_OFF) { in onActivityResult() 394 if (currentState == BluetoothAdapter.STATE_OFF) { in onReceive()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | InCallTonePlayer.java | 178 private static final int STATE_OFF = 0; field in InCallTonePlayer 226 mState = STATE_OFF; in InCallTonePlayer() 398 mState = STATE_OFF; in playToneGeneratorTone() 431 mState = STATE_OFF; in playMediaTone()
|
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/ |
D | BluetoothRequestPermissionActivity.java | 102 case BluetoothAdapter.STATE_OFF: in onCreate() 121 case BluetoothAdapter.STATE_OFF: in onCreate() 138 case BluetoothAdapter.STATE_OFF: in onCreate() 360 int desiredState = BluetoothAdapter.STATE_OFF; in onConfirmDisableBluetooth()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothEnablerTest.java | 192 mShadowBluetoothAdapter.setState(BluetoothAdapter.STATE_OFF); in startWithBluetoothOff_switchIsOff() 224 off.putExtra(BluetoothAdapter.EXTRA_STATE, BluetoothAdapter.STATE_OFF); in bluetoothTurnsOff_switchTurnsOff() 236 mShadowBluetoothAdapter.setState(BluetoothAdapter.STATE_OFF); in bluetoothTurnsOn_switchTurnsOn()
|
D | BluetoothSummaryUpdaterTest.java | 133 mSummaryUpdater.onBluetoothStateChanged(BluetoothAdapter.STATE_OFF); in onBluetoothStateChanged_btDisabled_shouldSendDisabledSummary() 199 mSummaryUpdater.onBluetoothStateChanged(BluetoothAdapter.STATE_OFF); in onBluetoothStateChanged_ConnectedDisabledEnabled_shouldSendDisconnectedSummary()
|
/packages/services/Car/service/src/com/android/car/trust/ |
D | CarBleTrustAgent.java | 106 if (BluetoothAdapter.getDefaultAdapter().getState() == BluetoothAdapter.STATE_OFF) { in onDeviceLocked() 131 if (BluetoothAdapter.getDefaultAdapter().getState() == BluetoothAdapter.STATE_OFF) { in onDeviceUnlocked() 247 case BluetoothAdapter.STATE_OFF: in onBluetoothStateChanged()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/nfc/ |
D | NfcPreferenceControllerTest.java | 107 when(mNfcAdapter.getAdapterState()).thenReturn(NfcAdapter.STATE_OFF); in isNfcEnable_nfcStateNotTurning_shouldReturnTrue() 138 when(mNfcAdapter.getAdapterState()).thenReturn(NfcAdapter.STATE_OFF); in isNfcChecked_nfcStateOff_shouldReturnFalse() 277 triggerIntent.putExtra(NfcAdapter.EXTRA_ADAPTER_STATE, NfcAdapter.STATE_OFF); in ncfSliceWorker_nfcBroadcast_nfcOff_sliceUpdates()
|
D | AndroidBeamPreferenceControllerTest.java | 117 when(mNfcAdapter.getAdapterState()).thenReturn(NfcAdapter.STATE_OFF); in isBeamEnable_disAllowBeam_shouldReturnFalse() 140 when(mNfcAdapter.getAdapterState()).thenReturn(NfcAdapter.STATE_OFF); in isBeamEnable_nfcStateNotOn_shouldReturnFalse()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
D | ProfileService.java | 148 if (state == BluetoothAdapter.STATE_OFF) { in onStartCommand() 277 mAdapterService.onProfileServiceStateChanged(this, BluetoothAdapter.STATE_OFF); in doStop()
|
D | AdapterState.java | 87 private int mPrevState = BluetoothAdapter.STATE_OFF; 174 return BluetoothAdapter.STATE_OFF; in getStateValue()
|
D | AdapterService.java | 226 if (state != BluetoothAdapter.STATE_ON && state != BluetoothAdapter.STATE_OFF) { in onProfileServiceStateChanged() 300 case BluetoothAdapter.STATE_OFF: in processProfileServiceStateChanged() 606 setAllProfileServiceStates(supportedProfileServices, BluetoothAdapter.STATE_OFF); in stopProfileServices() 616 setProfileServiceState(GattService.class, BluetoothAdapter.STATE_OFF); in stopGattProfileService() 645 && prevState != BluetoothAdapter.STATE_OFF) { in updateAdapterState() 819 return BluetoothAdapter.STATE_OFF; in getState() 1765 return BluetoothAdapter.STATE_OFF; in getState() 2386 if (getState() == BluetoothAdapter.STATE_OFF) { in sendConnectionStateChange()
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/ |
D | TestUtils.java | 176 stopIntent.putExtra(BluetoothAdapter.EXTRA_STATE, BluetoothAdapter.STATE_OFF); in stopService() 180 profile.capture(), eq(BluetoothAdapter.STATE_OFF)); in stopService()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
D | ShadowLocalBluetoothAdapter.java | 29 private int mState = BluetoothAdapter.STATE_OFF;
|
/packages/apps/Settings/src/com/android/settings/nfc/ |
D | SecureNfcEnabler.java | 44 case NfcAdapter.STATE_OFF: in handleNfcStateChanged()
|
D | NfcEnabler.java | 41 case NfcAdapter.STATE_OFF: in handleNfcStateChanged()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/nfc/ |
D | SecureNfcEnabler.java | 44 case NfcAdapter.STATE_OFF: in handleNfcStateChanged()
|
D | NfcEnabler.java | 41 case NfcAdapter.STATE_OFF: in handleNfcStateChanged()
|