Searched refs:ShadowPowerManager (Results 1 – 3 of 3) sorted by relevance
27 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 …]
27 import org.robolectric.shadows.ShadowPowerManager;46 WakeLock wakeLock = ShadowPowerManager.getLatestWakeLock(); in stayAwakeFalse_wakeLockIsNeverHeld()60 WakeLock wakeLock = ShadowPowerManager.getLatestWakeLock(); in stayAwakeTrue_wakeLockIsOnlyHeldWhenEnabled()
26 public class ShadowPowerManager { class