Lines Matching refs:mWakefulness
40 private WakefulnessLifecycle mWakefulness;
45 mWakefulness = new WakefulnessLifecycle();
47 mWakefulness.addObserver(mWakefulnessObserver);
52 assertEquals(WakefulnessLifecycle.WAKEFULNESS_ASLEEP, mWakefulness.getWakefulness());
59 mWakefulness.dispatchStartedWakingUp();
61 assertEquals(WakefulnessLifecycle.WAKEFULNESS_WAKING, mWakefulness.getWakefulness());
68 mWakefulness.dispatchStartedWakingUp();
69 mWakefulness.dispatchFinishedWakingUp();
71 assertEquals(WakefulnessLifecycle.WAKEFULNESS_AWAKE, mWakefulness.getWakefulness());
78 mWakefulness.dispatchStartedWakingUp();
79 mWakefulness.dispatchFinishedWakingUp();
80 mWakefulness.dispatchStartedGoingToSleep();
83 mWakefulness.getWakefulness());
90 mWakefulness.dispatchStartedWakingUp();
91 mWakefulness.dispatchFinishedWakingUp();
92 mWakefulness.dispatchStartedGoingToSleep();
93 mWakefulness.dispatchFinishedGoingToSleep();
96 mWakefulness.getWakefulness());
103 mWakefulness.dump(null, new PrintWriter(new ByteArrayOutputStream()), new String[0]);