Home
last modified time | relevance | path

Searched refs:PowerSaveState (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/core/java/android/os/
DPowerSaveState.java26 public class PowerSaveState implements Parcelable { class
41 public PowerSaveState(Builder builder) { in PowerSaveState() method in PowerSaveState
48 public PowerSaveState(Parcel in) { in PowerSaveState() method in PowerSaveState
96 public PowerSaveState build() { in build()
97 return new PowerSaveState(this); in build()
101 public static final Parcelable.Creator<PowerSaveState>
102 CREATOR = new Parcelable.Creator<PowerSaveState>() {
105 public PowerSaveState createFromParcel(Parcel source) {
106 return new PowerSaveState(source);
110 public PowerSaveState[] newArray(int size) {
[all …]
DPowerManagerInternal.java124 public abstract PowerSaveState getLowPowerState(int serviceType); in getLowPowerState()
130 void onLowPowerModeChanged(PowerSaveState state); in onLowPowerModeChanged()
DIPowerManager.aidl21 import android.os.PowerSaveState;
49 PowerSaveState getPowerSaveState(int serviceType); in getPowerSaveState()
DPowerSaveState.aidl19 parcelable PowerSaveState;
DPowerManager.java1033 public PowerSaveState getPowerSaveState(int serviceType) { in getPowerSaveState()
/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DBatterySaverPolicyTest.java18 import android.os.PowerSaveState;
107 final PowerSaveState batterySaverStateOn = in testGetBatterySaverPolicy_PolicyDataSaver_DefaultValueCorrect()
111 final PowerSaveState batterySaverStateOff = mBatterySaverPolicy.getBatterySaverPolicy( in testGetBatterySaverPolicy_PolicyDataSaver_DefaultValueCorrect()
120 PowerSaveState stateOn = in testGetBatterySaverPolicy_PolicyScreenBrightness_DefaultValueCorrect()
129 PowerSaveState stateOn = in testGetBatterySaverPolicy_PolicyGps_DefaultValueCorrect()
138 final PowerSaveState vibrationState = in testUpdateConstants_getCorrectData()
142 final PowerSaveState animationState = in testUpdateConstants_getCorrectData()
146 final PowerSaveState soundState = in testUpdateConstants_getCorrectData()
150 final PowerSaveState networkState = mBatterySaverPolicy.getBatterySaverPolicy( in testUpdateConstants_getCorrectData()
154 final PowerSaveState screenState = in testUpdateConstants_getCorrectData()
[all …]
DPowerManagerServiceTest.java22 import android.os.PowerSaveState;
51 private PowerSaveState mPowerSaveState;
62 mPowerSaveState = new PowerSaveState.Builder() in setUp()
/frameworks/base/services/core/java/com/android/server/power/
DBatterySaverPolicy.java26 import android.os.PowerSaveState;
223 public PowerSaveState getBatterySaverPolicy(@ServiceType int type, boolean realMode) { in getBatterySaverPolicy()
225 final PowerSaveState.Builder builder = new PowerSaveState.Builder() in getBatterySaverPolicy()
DPowerManagerService.java47 import android.os.PowerSaveState;
1002 final PowerSaveState result = in updateLowPowerModeLocked()
2767 PowerSaveState state = mBatterySaverPolicy. in updatePowerRequestFromBatterySaverPolicy()
4319 public PowerSaveState getPowerSaveState(@ServiceType int serviceType) { in getPowerSaveState()
4681 public PowerSaveState getLowPowerState(@ServiceType int serviceType) { in getLowPowerState()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgePowerManager.java22 import android.os.PowerSaveState;
47 public PowerSaveState getPowerSaveState(int serviceType) { in getPowerSaveState()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkPolicyManagerServiceTest.java107 import android.os.PowerSaveState;
274 final PowerSaveState state = new PowerSaveState.Builder() in registerLocalServices()
488 PowerSaveState stateOn = new PowerSaveState.Builder() in updateRestrictBackgroundByLowPowerMode_RestrictOnBeforeBsm_RestrictOnAfterBsm()
497 PowerSaveState stateOff = new PowerSaveState.Builder() in updateRestrictBackgroundByLowPowerMode_RestrictOnBeforeBsm_RestrictOnAfterBsm()
511 PowerSaveState stateOn = new PowerSaveState.Builder() in updateRestrictBackgroundByLowPowerMode_RestrictOffBeforeBsm_RestrictOffAfterBsm()
522 PowerSaveState stateOff = new PowerSaveState.Builder() in updateRestrictBackgroundByLowPowerMode_RestrictOffBeforeBsm_RestrictOffAfterBsm()
536 PowerSaveState stateOn = new PowerSaveState.Builder() in updateRestrictBackgroundByLowPowerMode_StatusChangedInBsm_DoNotRestore()
547 PowerSaveState stateOff = new PowerSaveState.Builder().setBatterySaverEnabled( in updateRestrictBackgroundByLowPowerMode_StatusChangedInBsm_DoNotRestore()
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
DTestWindowManagerPolicy.java26 import android.os.PowerSaveState;
76 PowerSaveState state = new PowerSaveState.Builder().build(); in getWindowManagerService()
/frameworks/base/services/core/java/com/android/server/
DVibratorService.java30 import android.os.PowerSaveState;
256 public void onLowPowerModeChanged(PowerSaveState result) { in systemReady()
/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java31 import android.os.PowerSaveState;
287 public void onLowPowerModeChanged(PowerSaveState result) { in onLowPowerModeChanged()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java138 import android.os.PowerSaveState;
341 private PowerSaveState mRestrictBackgroundPowerState;
649 public void onLowPowerModeChanged(PowerSaveState result) { in initService()
689 public void onLowPowerModeChanged(PowerSaveState result) { in initService()
3981 public void updateRestrictBackgroundByLowPowerModeUL(final PowerSaveState result) { in updateRestrictBackgroundByLowPowerModeUL()
/frameworks/base/services/core/java/com/android/server/location/
DGnssLocationProvider.java51 import android.os.PowerSaveState;
552 final PowerSaveState result = in updateLowPowerMode()
/frameworks/base/services/backup/java/com/android/server/backup/
DBackupManagerService.java83 import android.os.PowerSaveState;
5520 final PowerSaveState result = in beginFullBackup()
10004 final PowerSaveState result = in backupNow()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowManagerService.java152 import android.os.PowerSaveState;
1058 public void onLowPowerModeChanged(PowerSaveState result) { in WindowManagerService()
/frameworks/base/
Dcompiled-classes-phone3300 android.os.PowerSaveState
3301 android.os.PowerSaveState$1
3302 android.os.PowerSaveState$Builder