Searched refs:BatterySaverState (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/ |
D | BatterySavingStatsTest.java | 34 import com.android.server.power.batterysaver.BatterySavingStats.BatterySaverState; 121 BatterySaverState.OFF, in checkAll() 130 BatterySaverState.OFF, in checkAll() 139 BatterySaverState.OFF, in checkAll() 148 BatterySaverState.OFF, in checkAll() 157 BatterySaverState.OFF, in checkAll() 166 BatterySaverState.OFF, in checkAll() 175 BatterySaverState.OFF, in checkAll() 184 BatterySaverState.ON, in checkAll() 193 BatterySaverState.OFF, in checkAll() [all …]
|
/frameworks/base/services/core/java/com/android/server/power/batterysaver/ |
D | BatterySavingStats.java | 53 interface BatterySaverState { interface in BatterySavingStats 72 int SHIFT = BatterySaverState.SHIFT + BatterySaverState.BITS; 212 int ret = batterySaverState & BatterySaverState.MASK; in statesToIndex() 228 return "BS=" + BatterySaverState.fromIndex(state) in stateToString() 302 ? BatterySaverState.OFF : BatterySaverState.fromIndex(mCurrentState); in transitionStateLocked() 304 ? BatterySaverState.OFF : BatterySaverState.fromIndex(newState); in transitionStateLocked() 307 case BatterySaverState.ON: in transitionStateLocked() 310 if (oldBatterySaverState == BatterySaverState.ADAPTIVE) { in transitionStateLocked() 314 case BatterySaverState.OFF: in transitionStateLocked() 315 if (oldBatterySaverState == BatterySaverState.ON) { in transitionStateLocked() [all …]
|
D | BatterySaverController.java | 46 import com.android.server.power.batterysaver.BatterySavingStats.BatterySaverState; 522 getFullEnabledLocked() ? BatterySaverState.ON : in updateBatterySavingStats() 523 (getAdaptiveEnabledLocked() ? BatterySaverState.ADAPTIVE : in updateBatterySavingStats() 524 BatterySaverState.OFF), in updateBatterySavingStats()
|