Home
last modified time | relevance | path

Searched refs:mWakeLock (Results 1 – 11 of 11) sorted by relevance

/cts/tests/sensor/src/android/hardware/cts/helpers/sensoroperations/
DAlarmOperation.java53 private WakeLock mWakeLock = null; field in AlarmOperation
119 if (mCompleted || mWakeLock != null) { in acquireWakeLock()
123 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, WAKE_LOCK_TAG); in acquireWakeLock()
131 if (mWakeLock != null) { in releaseWakeLock()
132 mWakeLock.release(); in releaseWakeLock()
134 mWakeLock = null; in releaseWakeLock()
/cts/tests/tests/mediastress/src/android/mediastress/cts/
DMediaFrameworkTest.java36 private PowerManager.WakeLock mWakeLock = null; field in MediaFrameworkTest
52 mWakeLock = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK, "MediaFrameworkTest"); in onCreate()
53 mWakeLock.setReferenceCounted(false); in onCreate()
60 mWakeLock.acquire(); in onResume()
66 mWakeLock.release(); in onPause()
/cts/tests/tests/permission/src/android/permission/cts/
DNoWakeLockPermissionTest.java35 private PowerManager.WakeLock mWakeLock; field in NoWakeLockPermissionTest
41 mWakeLock = mPowerManager.newWakeLock(PowerManager.FULL_WAKE_LOCK, "tag"); in setUp()
90 mWakeLock.acquire(); in testPowerManagerWakeLockAcquire()
106 mWakeLock.acquire(1); in testPowerManagerWakeLockAcquire2()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/base/
DSensorCtsTestActivity.java57 private PowerManager.WakeLock mWakeLock; field in SensorCtsTestActivity
71 mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "SensorCtsTests"); in activitySetUp()
82 mWakeLock.acquire(); in activitySetUp()
96 if (mWakeLock.isHeld()) { in activityCleanUp()
97 mWakeLock.release(); in activityCleanUp()
/cts/tests/framework/base/biometrics/src/android/server/biometrics/
DBiometricTestBase.java100 @Nullable private PowerManager.WakeLock mWakeLock; field in BiometricTestBase
488 mWakeLock = pm.newWakeLock(FULL_WAKE_LOCK, TAG); in setUp()
489 mWakeLock.acquire(); in setUp()
534 if (mWakeLock != null) { in cleanup()
535 mWakeLock.release(); in cleanup()
/cts/tests/sensor/src/android/hardware/cts/
DSensorManagerStaticTest.java34 private PowerManager.WakeLock mWakeLock; field in SensorManagerStaticTest
40 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG); in setUp()
42 mWakeLock.acquire(); in setUp()
47 if (mWakeLock != null && mWakeLock.isHeld()) { in tearDown()
48 mWakeLock.release(); in tearDown()
DSensorTest.java65 private PowerManager.WakeLock mWakeLock; field in SensorTest
78 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG); in setUp()
100 mWakeLock.acquire(); in setUp()
119 if (mWakeLock != null && mWakeLock.isHeld()) { in tearDown()
120 mWakeLock.release(); in tearDown()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/net/
DConnectivityBackgroundTestActivity.java95 private PowerManager.WakeLock mWakeLock; field in ConnectivityBackgroundTestActivity
129 mWakeLock.release(); in onDestroy()
174 mWakeLock = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG); in configureFromSystemServices()
175 mWakeLock.acquire(); in configureFromSystemServices()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DPassFailButtons.java145 private WakeLock mWakeLock; field in PassFailButtons.Activity
158 mWakeLock = ((PowerManager) getSystemService(Context.POWER_SERVICE)) in onResume()
160 mWakeLock.acquire(); in onResume()
168 mWakeLock.release(); in onPause()
/cts/tests/tests/display/src/android/display/cts/
DBrightnessTest.java67 private PowerManager.WakeLock mWakeLock; field in BrightnessTest
76 mWakeLock = pm.newWakeLock( in setUp()
79 mWakeLock.acquire(); in setUp()
84 if (mWakeLock != null) { in tearDown()
85 mWakeLock.release(); in tearDown()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/
DPhotoCaptureActivity.java82 private WakeLock mWakeLock; field in PhotoCaptureActivity
216 mWakeLock = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK, TAG); in onResume()
217 mWakeLock.acquire(); in onResume()
269 mWakeLock.release(); in onPause()