Home
last modified time | relevance | path

Searched refs:dozeState (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeTriggers.java557 final DozeMachine.State dozeState = in requestPulse() local
562 if (dozeState == DozeMachine.State.DOZE_PULSING in requestPulse()
570 && dozeState == State.DOZE_PULSING && reason == DozeLog.PULSE_REASON_NOTIFICATION) { in requestPulse()
575 || !canPulse(dozeState, performedProxCheck)) { in requestPulse()
580 } else if (!canPulse(dozeState, performedProxCheck)) { in requestPulse()
581 mDozeLog.tracePulseDropped("requestPulse - dozeState cannot pulse", dozeState); in requestPulse()
599 || !canPulse(dozeState, performedProxCheck)) { in requestPulse()
606 } else if (!canPulse(dozeState, performedProxCheck)) { in requestPulse()
608 + " - doze state cannot pulse", dozeState); in requestPulse()
623 private boolean canPulse(DozeMachine.State dozeState, boolean pulsePerformedProximityCheck) { in canPulse() argument
[all …]
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySavingStats.java211 int batterySaverState, int interactiveState, int dozeState, int plugState) { in statesToIndex() argument
214 ret |= (dozeState & DozeState.MASK) << DozeState.SHIFT; in statesToIndex()
252 private Stat getStat(int batterySaverState, int interactiveState, int dozeState, in getStat() argument
254 return getStat(statesToIndex(batterySaverState, interactiveState, dozeState, plugState)); in getStat()
283 void transitionState(int batterySaverState, int interactiveState, int dozeState, in transitionState() argument
287 batterySaverState, interactiveState, dozeState, plugState); in transitionState()
481 int dozeState, String dozeLabel) { in dumpLineLocked() argument
487 final Stat offStat = getStat(BatterySaverState.OFF, interactiveState, dozeState, in dumpLineLocked()
489 final Stat onStat = getStat(BatterySaverState.ON, interactiveState, dozeState, in dumpLineLocked()
/frameworks/base/packages/SystemUI/customization/src/com/android/systemui/shared/clocks/
DDefaultClockController.kt184 if (!animations.dozeState.isActive) { in updateColor()
284 internal val dozeState = AnimationState(dozeFraction) constant
291 view.animateDoze(dozeState.isActive, false)
296 if (!dozeState.isActive) { in enter()
301 override fun charge() = view.animateCharge { dozeState.isActive } in <lambda>()
311 val (hasChanged, hasJumped) = dozeState.update(fraction) in doze()
313 view.animateDoze(dozeState.isActive, !hasJumped) in doze()