Searched refs:mWakefulness (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ |
D | WakefulnessLifecycleTest.java | 46 private WakefulnessLifecycle mWakefulness; field in WakefulnessLifecycleTest 54 mWakefulness = in setUp() 62 mWakefulness.addObserver(mWakefulnessObserver); in setUp() 67 assertEquals(WakefulnessLifecycle.WAKEFULNESS_AWAKE, mWakefulness.getWakefulness()); in baseState() 74 mWakefulness.dispatchStartedWakingUp(PowerManager.WAKE_REASON_UNKNOWN); in dispatchStartedWakingUp() 76 assertEquals(WakefulnessLifecycle.WAKEFULNESS_WAKING, mWakefulness.getWakefulness()); in dispatchStartedWakingUp() 83 mWakefulness.dispatchStartedWakingUp(PowerManager.WAKE_REASON_UNKNOWN); in dispatchFinishedWakingUp() 84 mWakefulness.dispatchFinishedWakingUp(); in dispatchFinishedWakingUp() 86 assertEquals(WakefulnessLifecycle.WAKEFULNESS_AWAKE, mWakefulness.getWakefulness()); in dispatchFinishedWakingUp() 94 mWakefulness.dispatchStartedWakingUp(PowerManager.WAKE_REASON_UNKNOWN); in dispatchStartedGoingToSleep() [all …]
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | PowerGroup.java | 74 private int mWakefulness; field in PowerGroup 93 mWakefulness = wakefulness; in PowerGroup() 106 mWakefulness = wakefulness; in PowerGroup() 122 return mWakefulness; in getWakefulnessLocked() 136 if (mWakefulness != newWakefulness) { in setWakefulnessLocked() 141 } else if (isInteractive(mWakefulness) && !isInteractive(newWakefulness)) { in setWakefulnessLocked() 144 mWakefulness = newWakefulness; in setWakefulnessLocked() 145 mWakefulnessListener.onWakefulnessChangedLocked(mGroupId, mWakefulness, eventTime, in setWakefulnessLocked() 210 if (eventTime < mLastSleepTime || mWakefulness == WAKEFULNESS_AWAKE) { in wakeUpLocked() 217 + PowerManagerInternal.wakefulnessToString(mWakefulness) in wakeUpLocked() [all …]
|
D | AttentionDetector.java | 144 private int mWakefulness; field in AttentionDetector 161 mWakefulness = PowerManagerInternal.WAKEFULNESS_AWAKE; in AttentionDetector() 282 mWakefulness = wakefulness; in onWakefulnessChangeStarted() 409 if (mWakefulness != PowerManagerInternal.WAKEFULNESS_AWAKE) { in onSuccess()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | MockingOomAdjusterTests.java | 206 sService.mWakefulness = new AtomicInteger(PowerManagerInternal.WAKEFULNESS_AWAKE); in setUpOnce() 233 sService.mWakefulness.set(PowerManagerInternal.WAKEFULNESS_ASLEEP); in testUpdateOomAdj_DoOne_Persistent_TopUi_Sleeping() 235 sService.mWakefulness.set(PowerManagerInternal.WAKEFULNESS_AWAKE); in testUpdateOomAdj_DoOne_Persistent_TopUi_Sleeping() 248 sService.mWakefulness.set(PowerManagerInternal.WAKEFULNESS_AWAKE); in testUpdateOomAdj_DoOne_Persistent_TopUi_Awake() 262 sService.mWakefulness.set(PowerManagerInternal.WAKEFULNESS_AWAKE); in testUpdateOomAdj_DoOne_Persistent_TopApp() 277 sService.mWakefulness.set(PowerManagerInternal.WAKEFULNESS_AWAKE); in testUpdateOomAdj_DoOne_TopApp_Awake() 291 sService.mWakefulness.set(PowerManagerInternal.WAKEFULNESS_AWAKE); in testUpdateOomAdj_DoOne_RunningAnimations() 304 sService.mWakefulness.set(PowerManagerInternal.WAKEFULNESS_AWAKE); in testUpdateOomAdj_DoOne_RunningInstrumentation() 319 sService.mWakefulness.set(PowerManagerInternal.WAKEFULNESS_AWAKE); in testUpdateOomAdj_DoOne_ReceivingBroadcast() 333 sService.mWakefulness.set(PowerManagerInternal.WAKEFULNESS_AWAKE); in testUpdateOomAdj_DoOne_ExecutingService() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ |
D | WakefulnessLifecycle.java | 72 private int mWakefulness = WAKEFULNESS_AWAKE; field in WakefulnessLifecycle 103 return mWakefulness; in getWakefulness() 190 pw.println(" mWakefulness=" + mWakefulness); in dump() 194 mWakefulness = wakefulness; in setWakefulness()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | OomAdjuster.java | 1558 if (mService.mWakefulness.get() == PowerManagerInternal.WAKEFULNESS_AWAKE in computeOomAdjLSP() 2149 } else if (mService.mWakefulness.get() in computeOomAdjLSP() 2471 && mService.mWakefulness.get() != PowerManagerInternal.WAKEFULNESS_AWAKE in computeOomAdjLSP() 2606 } else if (mService.mWakefulness.get() != PowerManagerInternal.WAKEFULNESS_AWAKE) {
|
D | ActivityManagerService.java | 1314 AtomicInteger mWakefulness = new AtomicInteger(PowerManagerInternal.WAKEFULNESS_AWAKE); field in ActivityManagerService 6864 reportGlobalUsageEvent(mWakefulness.get() == PowerManagerInternal.WAKEFULNESS_AWAKE in reportCurWakefulnessUsageEvent() 6871 boolean wasAwake = mWakefulness.getAndSet(wakefulness) in onWakefulnessChanged() 10099 mAppProfiler.getTestPssMode(), mWakefulness.get()); in dumpOtherProcessesInfoLSP() 10311 mAtmInternal.writeProcessesToProto(proto, dumpPackage, mWakefulness.get(), in writeOtherProcessesInfoToProtoLSP()
|