Lines Matching defs:wakefulness
1557 private void setWakefulnessLocked(int wakefulness, int reason) {
1558 if (mWakefulness != wakefulness) {
1559 mWakefulness = wakefulness;
1562 mNotifier.onWakefulnessChangeStarted(wakefulness, reason);
1636 // Phase 1: Update wakefulness.
1638 // by changes in wakefulness.
2047 * Updates the wakefulness of the device.
2051 * if the wakefulness changes.
2053 * Returns true if the wakefulness changed and we need to restart power state calculation.
2150 final int wakefulness;
2153 wakefulness = mWakefulness;
2170 mDreamManager.startDream(wakefulness == WAKEFULNESS_DOZING);
2182 if (wakefulness == WAKEFULNESS_DOZING) {
2191 if (mSandmanSummoned || mWakefulness != wakefulness) {
2196 if (wakefulness == WAKEFULNESS_DREAMING) {
2225 } else if (wakefulness == WAKEFULNESS_DOZING) {
2560 // Although we could set interactive strictly based on the wakefulness