Home
last modified time | relevance | path

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

/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DBluetoothTest.java137 if (mAdapter.getState() == BluetoothAdapter.STATE_OFF) { in disable()
150 case BluetoothAdapter.STATE_OFF: in disable()
176 assertEquals(BluetoothAdapter.STATE_OFF, mAdapter.getState()); in enable()
188 if (state != BluetoothAdapter.STATE_OFF || turnOn) { in enable()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DBluetoothRestrictionTest.java151 if (mBluetoothAdapter.getState() == BluetoothAdapter.STATE_OFF) { in disable()
172 case BluetoothAdapter.STATE_OFF: in assertDisabledAfterTimeout()
217 assertEquals(BluetoothAdapter.STATE_OFF, mBluetoothAdapter.getState()); in enable()
237 if (state != BluetoothAdapter.STATE_OFF || turnOn) { in assertEnabledAfterTimeout()
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DBasicAdapterTest.java227 if (adapter.getState() == BluetoothAdapter.STATE_OFF) { in disable()
240 case BluetoothAdapter.STATE_OFF: in disable()
265 assertEquals(BluetoothAdapter.STATE_OFF, adapter.getState()); in enable()
277 if (state != BluetoothAdapter.STATE_OFF || turnOn) { in enable()
DHearingAidProfileTest.java285 } else if (newState == BluetoothAdapter.STATE_OFF) { in onReceive()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DBluetoothToggleActivity.java129 if (BluetoothAdapter.STATE_OFF == newState in onReceive()
136 && (BluetoothAdapter.STATE_OFF == previousState in onReceive()
141 if (BluetoothAdapter.STATE_OFF == newState) { in onReceive()
DBleConnectionPriorityClientBaseActivity.java294 if (state == BluetoothAdapter.STATE_OFF) { in onReceive()
DBleEncryptedClientBaseActivity.java285 if (state == BluetoothAdapter.STATE_OFF) { in onReceive()
DBleClientTestBaseActivity.java455 if (state == BluetoothAdapter.STATE_OFF) { in onReceive()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/orientation/
DCameraOrientationActivity.java53 private static final int STATE_OFF = 0; field in CameraOrientationActivity
73 private int mState = STATE_OFF;
216 mState = STATE_OFF; in shutdownCamera()
221 if (mState != STATE_OFF) { in startPreview()
225 mState = STATE_OFF; in startPreview()
/cts/tests/tests/car/src/android/car/cts/
DCarBluetoothTest.java96 } else if (newState == BluetoothAdapter.STATE_OFF) { in onReceive()
118 waitForAdapterState(BluetoothAdapter.STATE_OFF); in waitForAdapterOff()
/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;
492 mState = STATE_OFF; in shutdownCamera()
497 if (mState != STATE_OFF) { in startPreview()
501 mState = STATE_OFF; in startPreview()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/intents/
DCameraIntentsActivity.java83 private static final int STATE_OFF = 0; field in CameraIntentsActivity
108 private int mState = STATE_OFF;
381 } else if (mState != STATE_OFF) { in onResume()