Home
last modified time | relevance | path

Searched refs:STATE_OFF (Results 1 – 25 of 61) sorted by relevance

123

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
DAdapterServiceTest.java190 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 …]
DProfileServiceTest.java122 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/
DPlayerApplicationSettings.java203 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/
DBluetoothAdapterHelper.java77 } 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()
DBluetoothProfileDeviceManagerTest.java412 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/
DBluetoothSettingsFragmentTest.java19 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()
DBluetoothRequestPermissionActivityTest.java124 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/
DRequestPermissionActivity.java87 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/
DRequestPermissionActivity.java91 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/
DInCallTonePlayer.java178 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/
DBluetoothRequestPermissionActivity.java102 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/
DBluetoothEnablerTest.java192 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()
DBluetoothSummaryUpdaterTest.java133 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/
DCarBleTrustAgent.java106 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/
DNfcPreferenceControllerTest.java107 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()
DAndroidBeamPreferenceControllerTest.java117 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/
DProfileService.java148 if (state == BluetoothAdapter.STATE_OFF) { in onStartCommand()
277 mAdapterService.onProfileServiceStateChanged(this, BluetoothAdapter.STATE_OFF); in doStop()
DAdapterState.java87 private int mPrevState = BluetoothAdapter.STATE_OFF;
174 return BluetoothAdapter.STATE_OFF; in getStateValue()
DAdapterService.java226 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/
DTestUtils.java176 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/
DShadowLocalBluetoothAdapter.java29 private int mState = BluetoothAdapter.STATE_OFF;
/packages/apps/Settings/src/com/android/settings/nfc/
DSecureNfcEnabler.java44 case NfcAdapter.STATE_OFF: in handleNfcStateChanged()
DNfcEnabler.java41 case NfcAdapter.STATE_OFF: in handleNfcStateChanged()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/nfc/
DSecureNfcEnabler.java44 case NfcAdapter.STATE_OFF: in handleNfcStateChanged()
DNfcEnabler.java41 case NfcAdapter.STATE_OFF: in handleNfcStateChanged()

123