Home
last modified time | relevance | path

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

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowPowerManagerTest.java27 private ShadowPowerManager shadowPowerManager;
68 ShadowPowerManager.reset(); in acquire_shouldLogLatestWakeLock()
69 assertThat(ShadowPowerManager.getLatestWakeLock()).isNull(); in acquire_shouldLogLatestWakeLock()
74 assertThat(ShadowPowerManager.getLatestWakeLock()).isNotNull(); in acquire_shouldLogLatestWakeLock()
75 assertThat(ShadowPowerManager.getLatestWakeLock()).isSameInstanceAs(lock); in acquire_shouldLogLatestWakeLock()
80 assertThat(ShadowPowerManager.getLatestWakeLock()).isNotNull(); in acquire_shouldLogLatestWakeLock()
81 assertThat(ShadowPowerManager.getLatestWakeLock()).isSameInstanceAs(lock); in acquire_shouldLogLatestWakeLock()
84 ShadowPowerManager.reset(); in acquire_shouldLogLatestWakeLock()
85 assertThat(ShadowPowerManager.getLatestWakeLock()).isNull(); in acquire_shouldLogLatestWakeLock()
125 ShadowPowerManager.ShadowWakeLock shadowLock = shadowOf(lock); in isReferenceCounted_shouldGetAndSet()
[all …]
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/
DWakeLockManagerTest.java27 import org.robolectric.shadows.ShadowPowerManager;
46 WakeLock wakeLock = ShadowPowerManager.getLatestWakeLock(); in stayAwakeFalse_wakeLockIsNeverHeld()
60 WakeLock wakeLock = ShadowPowerManager.getLatestWakeLock(); in stayAwakeTrue_wakeLockIsOnlyHeldWhenEnabled()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowPowerManager.java26 public class ShadowPowerManager { class