Searched refs:ScreenLifecycle (Results 1 – 7 of 7) sorted by relevance
40 private ScreenLifecycle mScreen;41 private ScreenLifecycle.Observer mScreenObserverMock;45 mScreen = new ScreenLifecycle(); in setUp()46 mScreenObserverMock = mock(ScreenLifecycle.Observer.class); in setUp()52 assertEquals(ScreenLifecycle.SCREEN_OFF, mScreen.getScreenState()); in baseState()60 assertEquals(ScreenLifecycle.SCREEN_TURNING_ON, mScreen.getScreenState()); in screenTurningOn()69 assertEquals(ScreenLifecycle.SCREEN_ON, mScreen.getScreenState()); in screenTurnedOn()79 assertEquals(ScreenLifecycle.SCREEN_TURNING_OFF, mScreen.getScreenState()); in screenTurningOff()90 assertEquals(ScreenLifecycle.SCREEN_OFF, mScreen.getScreenState()); in screenTurnedOff()
39 private final ScreenLifecycle mScreenLifecycle;42 public KeyguardLifecyclesDispatcher(ScreenLifecycle screenLifecycle, in KeyguardLifecyclesDispatcher()
29 public class ScreenLifecycle extends Lifecycle<ScreenLifecycle.Observer> implements Dumpable { class
52 Dependency.get(ScreenLifecycle.class), in onCreate()
32 import com.android.systemui.keyguard.ScreenLifecycle;125 Dependency.get(ScreenLifecycle.class).addObserver(mScreenObserver); in FingerprintUnlockController()388 private final ScreenLifecycle.Observer mScreenObserver =389 new ScreenLifecycle.Observer() {
169 import com.android.systemui.keyguard.ScreenLifecycle;590 private ScreenLifecycle mScreenLifecycle;635 mScreenLifecycle = Dependency.get(ScreenLifecycle.class); in start()3525 && mScreenLifecycle.getScreenState() == ScreenLifecycle.SCREEN_TURNING_OFF) { in updateIsKeyguard()4516 final ScreenLifecycle.Observer mScreenObserver = new ScreenLifecycle.Observer() {4561 return mScreenLifecycle.getScreenState() == ScreenLifecycle.SCREEN_OFF; in isScreenFullyOff()4680 return mScreenLifecycle.getScreenState() == ScreenLifecycle.SCREEN_TURNING_ON in isScreenTurningOnOrOn()4681 || mScreenLifecycle.getScreenState() == ScreenLifecycle.SCREEN_ON; in isScreenTurningOnOrOn()
38 import com.android.systemui.keyguard.ScreenLifecycle;273 mProviders.put(ScreenLifecycle.class, () -> in start()274 new ScreenLifecycle()); in start()