Home
last modified time | relevance | path

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

/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DPowerManagerTest.java19 PowerManager powerManager; field in PowerManagerTest
24powerManager = (PowerManager) Robolectric.application.getSystemService(Context.POWER_SERVICE); in before()
25 shadowPowerManager = Robolectric.shadowOf(powerManager); in before()
30 assertTrue(powerManager.isScreenOn()); in testIsScreenOn()
32 assertFalse(powerManager.isScreenOn()); in testIsScreenOn()
37 assertNotNull(powerManager.newWakeLock(0, "TAG")); in shouldCreateWakeLock()
42 PowerManager.WakeLock lock = powerManager.newWakeLock(0, "TAG"); in shouldAcquireAndReleaseReferenceCountedLock()
58 PowerManager.WakeLock lock = powerManager.newWakeLock(0, "TAG"); in shouldAcquireAndReleaseNonReferenceCountedLock()
74 PowerManager.WakeLock lock = powerManager.newWakeLock(0, "TAG"); in shouldThrowRuntimeExceptionIfLockisUnderlocked()