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.java271 final WakeLock wakeLock, in createOperation() argument
296 if (wakeLock.isHeld()) { in createOperation()
297 wakeLock.release(); in createOperation()
307 if (!wakeLock.isHeld()) { in createOperation()
308 wakeLock.acquire(); in createOperation()
340 if(!wakeLock.isHeld()) { in createOperation()
341 wakeLock.acquire(); in createOperation()
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/
DClientTest.java1370 WakeLock wakeLock = null; in testWakeLockPermission() local
1374 wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "test"); in testWakeLockPermission()
1375 wakeLock.acquire(); in testWakeLockPermission()
1378 if (wakeLock != null && wakeLock.isHeld()) { in testWakeLockPermission()
1379 wakeLock.release(); in testWakeLockPermission()