Home
last modified time | relevance | path

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

/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DBtAdapterUtils.java81 } else if (newState == BluetoothAdapter.STATE_OFF) { in onReceive()
130 if (bluetoothAdapter.getState() == BluetoothAdapter.STATE_OFF) return true; in disableAdapter()
136 while (bluetoothAdapter.getState() != BluetoothAdapter.STATE_OFF) { in disableAdapter()
149 return bluetoothAdapter.getState() == BluetoothAdapter.STATE_OFF; in disableAdapter()
DBluetoothToggleActivity.java122 if (BluetoothAdapter.STATE_OFF == newState in onReceive()
129 && (BluetoothAdapter.STATE_OFF == previousState in onReceive()
DBleEncryptedClientBaseActivity.java300 if (state == BluetoothAdapter.STATE_OFF) { in onReceive()
DBleClientTestBaseActivity.java501 if (state == BluetoothAdapter.STATE_OFF) { in onReceive()
/cts/tests/tests/nfc/src/android/nfc/cts/
DNfcUtils.java42 AtomicInteger state = new AtomicInteger(NfcAdapter.STATE_OFF); in enableNfc()
47 NfcAdapter.STATE_OFF); in enableNfc()
112 return state.get() == NfcAdapter.STATE_OFF; in disableNfc()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DBluetoothRestrictionTest.java135 if (state == BluetoothAdapter.STATE_OFF) { in disable()
161 case BluetoothAdapter.STATE_OFF: in assertDisabledAfterTimeout()
198 assertBluetoothAdapterState(BluetoothAdapter.STATE_OFF); in enable()
224 if (state != BluetoothAdapter.STATE_OFF || turningOn) { in assertEnabledAfterTimeout()
/cts/tests/tests/car/src/android/car/cts/
DCarPowerManagerTest.java265 return display.getState() == Display.STATE_OFF; in testSetDisplayPowerState_passengerDisplays_modeOn()
297 return display.getState() == Display.STATE_OFF; in testSetDisplayPowerState_passengerDisplays_modeOff()
302 return display.getState() == Display.STATE_OFF; in testSetDisplayPowerState_passengerDisplays_modeOff()
307 return display.getState() == Display.STATE_OFF; in testSetDisplayPowerState_passengerDisplays_modeOff()
339 return display.getState() == Display.STATE_OFF; in testSetDisplayPowerState_passengerDisplays_modeAlwaysOn()
DVehicleLightStateTest.java33 assertThat(VehicleLightState.toString(VehicleLightState.STATE_OFF)) in testToString()
DVehicleLightSwitchTest.java33 assertThat(VehicleLightSwitch.toString(VehicleLightSwitch.STATE_OFF)) in testToString()
DCarProjectionManagerTest.java122 } else if (newState == BluetoothAdapter.STATE_OFF) { in onReceive()
145 waitForAdapterState(BluetoothAdapter.STATE_OFF); in waitForAdapterOff()
DCarBluetoothTest.java104 } else if (newState == BluetoothAdapter.STATE_OFF) { in onReceive()
126 waitForAdapterState(BluetoothAdapter.STATE_OFF); in waitForAdapterOff()
DCarInputTest.java273 return mPassengerDisplay.getState() == Display.STATE_OFF; in testPowerKeyForAnyPassengerMainDisplay()
DCarPropertyManagerTest.java216 ImmutableSet.<Integer>builder().add(VehicleLightState.STATE_OFF,
219 ImmutableSet.<Integer>builder().add(VehicleLightSwitch.STATE_OFF,
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/area/
DExtensionRearDisplayPresentationKeyguardTest.java205 assertNotEquals(Display.STATE_OFF, presentationView.getDisplay().getState()); in testStartRearDisplayPresentation_afterKeyguardLocked()
251 assertNotEquals(Display.STATE_OFF, presentationView.getDisplay().getState()); in testStartRearDisplayPresentation_thenKeyguardLocked()
299 assertNotEquals(Display.STATE_OFF, presentationView.getDisplay().getState()); in testStartRearDisplayPresentation_thenKeyguardLocked_activityFinishes()
352 assertNotEquals(Display.STATE_OFF, presentationView.getDisplay().getState()); in testStartRearDisplayPresentation_persistsAfterDismissingKeyguard()
406 assertNotEquals(Display.STATE_OFF, presentationDisplay.getState()); in testStartRearDisplayPresentation_afterKeyguardLocked_thenScreenOff()
DExtensionRearDisplayPresentationTest.java271 assertTrue(presentationView.getDisplay().getState() != Display.STATE_OFF); in testStartAndEndRearDisplayPresentationSession()
339 waitAndAssert(() -> presentationView.getDisplay().getState() != Display.STATE_OFF); in testStartAndEndRearDisplayPresentationSession_backgroundApp()
393 assertTrue(presentationView.getDisplay().getState() != Display.STATE_OFF); in testStartAndEndRearDisplayPresentationSession_lockDevice()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/orientation/
DCameraOrientationActivity.java56 private static final int STATE_OFF = 0; field in CameraOrientationActivity
81 private int mState = STATE_OFF;
232 mState = STATE_OFF; in shutdownCamera()
237 if (mState != STATE_OFF) { in startPreview()
241 mState = STATE_OFF; in startPreview()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/formats/
DCameraFormatsActivity.java97 private static final int STATE_OFF = 0; field in CameraFormatsActivity
100 private int mState = STATE_OFF;
488 mState = STATE_OFF; in shutdownCamera()
523 if (mState != STATE_OFF) { in startPreview()
527 mState = STATE_OFF; in startPreview()
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DBluetoothCddTest.java71 if (mAdapter != null && mAdapter.getState() != BluetoothAdapter.STATE_OFF) { in tearDown()
DBluetoothAdapterTest.java475 assertEquals("OFF", BluetoothAdapter.nameForState(BluetoothAdapter.STATE_OFF)); in nameForState()
484 for (int state = 0; state < BluetoothAdapter.STATE_OFF; state++) { in nameForState()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/intents/
DCameraIntentsActivity.java84 private static final int STATE_OFF = 0; field in CameraIntentsActivity
112 private int mState = STATE_OFF;
396 } else if (mState != STATE_OFF) { in onResume()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/bluetooth/
DBluetooth.java138 return intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, -1) == BluetoothAdapter.STATE_OFF; in isStateDisabled()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DBluetoothTest.java247 == BluetoothAdapter.STATE_OFF; in isStateDisabled()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dbluetooth-current.txt84 field public static final int STATE_OFF = 10; // 0xa
Dcurrent.txt50748 field public static final int STATE_OFF = 1; // 0x1