/cts/tests/sensor/src/android/hardware/cts/helpers/sensoroperations/ |
D | AlarmOperation.java | 53 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/ |
D | MediaFrameworkTest.java | 36 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/ |
D | NoWakeLockPermissionTest.java | 35 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/ |
D | SensorCtsTestActivity.java | 57 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/ |
D | BrightnessTest.java | 64 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/ |
D | PassFailButtons.java | 114 private WakeLock mWakeLock; field in PassFailButtons.Activity 127 mWakeLock = ((PowerManager) getSystemService(Context.POWER_SERVICE)) in onResume() 129 mWakeLock.acquire(); in onResume() 137 mWakeLock.release(); in onPause()
|
/cts/tests/sensor/src/android/hardware/cts/ |
D | SensorTest.java | 67 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()
|
D | SensorManagerStaticTest.java | 34 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()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/net/ |
D | ConnectivityBackgroundTestActivity.java | 95 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/ |
D | PhotoCaptureActivity.java | 82 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()
|