Home
last modified time | relevance | path

Searched refs:mWakeLock (Results 1 – 10 of 10) 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/tests/display/src/android/display/cts/
DBrightnessTest.java64 private PowerManager.WakeLock mWakeLock; field in BrightnessTest
73 mWakeLock = pm.newWakeLock( in setUp()
76 mWakeLock.acquire(); in setUp()
81 if (mWakeLock != null) { in tearDown()
82 mWakeLock.release(); in tearDown()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DPassFailButtons.java105 private WakeLock mWakeLock; field in PassFailButtons.Activity
116 mWakeLock = ((PowerManager) getSystemService(Context.POWER_SERVICE)) in onResume()
118 mWakeLock.acquire(); in onResume()
126 mWakeLock.release(); in onPause()
/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.java67 private PowerManager.WakeLock mWakeLock; field in SensorTest
80 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG); in setUp()
101 mWakeLock.acquire(); in setUp()
120 if (mWakeLock != null && mWakeLock.isHeld()) { in tearDown()
121 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/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()