Home
last modified time | relevance | path

Searched refs:wakeLock (Results 1 – 3 of 3) sorted by relevance

/cts/tests/sensor/src/android/hardware/cts/helpers/sensoroperations/
DWakeLockOperation.java65 WakeLock wakeLock = pm.newWakeLock(mWakeLockFlags, TAG); in execute() local
66 wakeLock.acquire(); in execute()
70 wakeLock.release(); in execute()
DTestSensorOperation.java263 final WakeLock wakeLock, in createOperation() argument
288 if (wakeLock.isHeld()) { in createOperation()
289 wakeLock.release(); in createOperation()
299 if (!wakeLock.isHeld()) { in createOperation()
300 wakeLock.acquire(); in createOperation()
332 if(!wakeLock.isHeld()) { in createOperation()
333 wakeLock.acquire(); in createOperation()
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/
DClientTest.java1317 WakeLock wakeLock = null; in testWakeLockPermission() local
1321 wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "test"); in testWakeLockPermission()
1322 wakeLock.acquire(); in testWakeLockPermission()
1325 if (wakeLock != null && wakeLock.isHeld()) { in testWakeLockPermission()
1326 wakeLock.release(); in testWakeLockPermission()