Home
last modified time | relevance | path

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

/cts/hostsidetests/hdmicec/app/src/android/hdmicec/app/
DHdmiCecWakeLock.java52 private WakeLock mWakeLock; field in HdmiCecWakeLock
69 if (mWakeLock == null && !initializeWakeLock()) { in handleIntent()
93 mWakeLock = powerManager.newWakeLock(PARTIAL_WAKE_LOCK, TAG); in initializeWakeLock()
94 mWakeLock.setReferenceCounted(false); in initializeWakeLock()
95 Log.i(TAG, "wake lock object is : " + mWakeLock.toString()); in initializeWakeLock()
100 if (!mWakeLock.isHeld()) { in acquireWakeLock()
101 mWakeLock.acquire(); in acquireWakeLock()
109 if (mWakeLock.isHeld()) { in releaseWakeLock()
110 mWakeLock.release(); in releaseWakeLock()
/cts/hostsidetests/os/test-apps/InattentiveSleepTestApp/src/android/os/inattentivesleeptests/
DPartialWakeLockService.java34 private PowerManager.WakeLock mWakeLock; field in PartialWakeLockService
51 if (mWakeLock == null) { in onStartCommand()
53 mWakeLock = powerManager.newWakeLock(PARTIAL_WAKE_LOCK, TAG); in onStartCommand()
54 mWakeLock.setReferenceCounted(false); in onStartCommand()
56 mWakeLock.acquire(); in onStartCommand()
71 if (mWakeLock != null) { in onDestroy()
72 mWakeLock.release(); in onDestroy()
/cts/tests/sensor/src/android/hardware/cts/helpers/sensoroperations/
DAlarmOperation.java53 private WakeLock mWakeLock = null; field in AlarmOperation
120 if (mCompleted || mWakeLock != null) { in acquireWakeLock()
124 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, WAKE_LOCK_TAG); in acquireWakeLock()
132 if (mWakeLock != null) { in releaseWakeLock()
133 mWakeLock.release(); in releaseWakeLock()
135 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/media/audio/src/android/media/audio/cts/
DAudioTestUtil.java87 private PowerManager.WakeLock mWakeLock; field in AudioTestUtil.SleepAssertIntEquals
103 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "SleepAssertIntEquals"); in SleepAssertIntEquals()
119 mWakeLock.acquire(); in assertEqualsSleep()
133 mWakeLock.release(); in assertEqualsSleep()
/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/ServiceKillTest/app/src/com/android/cts/servicekilltestapp/
DServiceKillTestService.java87 private PowerManager.WakeLock mWakeLock; field in ServiceKillTestService
119 if (mWakeLock.isHeld()) {
140 mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, APP + "::" + TAG); in onCreate()
141 mWakeLock.acquire(); in onCreate()
276 if (mWakeLock.isHeld()) { in startBenchmark()
320 mWakeLock.release(); in onDestroy()
/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.java68 private PowerManager.WakeLock mWakeLock; field in SensorTest
81 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG); in setUp()
103 mWakeLock.acquire(); in setUp()
122 if (mWakeLock != null && mWakeLock.isHeld()) { in tearDown()
123 mWakeLock.release(); in tearDown()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/net/
DConnectivityBackgroundTestActivity.java95 private PowerManager.WakeLock mWakeLock; field in ConnectivityBackgroundTestActivity
131 mWakeLock.release(); in onDestroy()
177 mWakeLock = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG); in configureFromSystemServices()
178 mWakeLock.acquire(); in configureFromSystemServices()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DPassFailButtons.java182 private WakeLock mWakeLock; field in PassFailButtons.Activity
200 mWakeLock = ((PowerManager) getSystemService(Context.POWER_SERVICE)) in onResume()
202 mWakeLock.acquire(); in onResume()
214 mWakeLock.release(); in onPause()
/cts/tests/framework/base/biometrics/src/android/server/biometrics/
DBiometricTestBase.java125 @Nullable private PowerManager.WakeLock mWakeLock; field in BiometricTestBase
588 mWakeLock = pm.newWakeLock(FULL_WAKE_LOCK, TAG); in setUp()
589 mWakeLock.acquire(); in setUp()
603 if (mWakeLock != null) { in cleanup()
604 mWakeLock.release(); in cleanup()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/
DPhotoCaptureActivity.java86 private WakeLock mWakeLock; field in PhotoCaptureActivity
217 mWakeLock = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK, TAG); in onResume()
218 mWakeLock.acquire(); in onResume()
270 mWakeLock.release(); in onPause()