Home
last modified time | relevance | path

Searched refs:PowerSaveState (Results 1 – 23 of 23) 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.java152 public abstract PowerSaveState getLowPowerState(int serviceType); in getLowPowerState()
159 public void registerLowPowerModeObserver(int serviceType, Consumer<PowerSaveState> listener) { in registerLowPowerModeObserver()
167 public void onLowPowerModeChanged(PowerSaveState state) { in registerLowPowerModeObserver()
175 void onLowPowerModeChanged(PowerSaveState state); in onLowPowerModeChanged()
DIPowerManager.aidl21 import android.os.PowerSaveState;
49 PowerSaveState getPowerSaveState(int serviceType); in getPowerSaveState()
DPowerSaveState.aidl19 parcelable PowerSaveState;
DPowerManager.java1162 public PowerSaveState getPowerSaveState(@ServiceType int serviceType) { in getPowerSaveState()
1181 final PowerSaveState powerSaveState = getPowerSaveState(ServiceType.GPS); in getLocationPowerSaveMode()
/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DBatterySaverPolicyTest.java26 import android.os.PowerSaveState;
155 final PowerSaveState batterySaverStateOn = in testGetBatterySaverPolicy_PolicyDataSaver_DefaultValueCorrect()
159 final PowerSaveState batterySaverStateOff = mBatterySaverPolicy.getBatterySaverPolicy( in testGetBatterySaverPolicy_PolicyDataSaver_DefaultValueCorrect()
173 PowerSaveState stateOn = in testGetBatterySaverPolicy_PolicyGps_DefaultValueCorrect()
182 final PowerSaveState vibrationState = in testUpdateConstants_getCorrectData()
186 final PowerSaveState animationState = in testUpdateConstants_getCorrectData()
190 final PowerSaveState soundState = in testUpdateConstants_getCorrectData()
194 final PowerSaveState networkState = mBatterySaverPolicy.getBatterySaverPolicy( in testUpdateConstants_getCorrectData()
198 final PowerSaveState screenState = in testUpdateConstants_getCorrectData()
204 final PowerSaveState fullBackupState = mBatterySaverPolicy.getBatterySaverPolicy( in testUpdateConstants_getCorrectData()
[all …]
DPowerManagerServiceTest.java30 import android.os.PowerSaveState;
52 private PowerSaveState mPowerSaveState;
60 mPowerSaveState = new PowerSaveState.Builder() in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DBatteryControllerTest.java23 import android.os.PowerSaveState;
55 PowerSaveState state = new PowerSaveState.Builder() in testIndependentAODBatterySaver_true()
70 PowerSaveState state = new PowerSaveState.Builder() in testIndependentAODBatterySaver_false()
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
DWindowManagerServiceRule.java35 import android.os.PowerSaveState;
89 PowerSaveState state = new PowerSaveState.Builder().build(); in apply()
/frameworks/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/core/java/com/android/server/power/
DBatterySaverPolicy.java25 import android.os.PowerSaveState;
455 public PowerSaveState getBatterySaverPolicy(@ServiceType int type, boolean realMode) { in getBatterySaverPolicy()
457 final PowerSaveState.Builder builder = new PowerSaveState.Builder() in getBatterySaverPolicy()
DPowerManagerService.java54 import android.os.PowerSaveState;
2783 PowerSaveState state = mBatterySaverPolicy. in updatePowerRequestFromBatterySaverPolicy()
4346 public PowerSaveState getPowerSaveState(@ServiceType int serviceType) { in getPowerSaveState()
4675 public PowerSaveState getLowPowerState(@ServiceType int serviceType) { in getLowPowerState()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkPolicyManagerServiceTest.java112 import android.os.PowerSaveState;
302 final PowerSaveState state = new PowerSaveState.Builder() in registerLocalServices()
542 PowerSaveState stateOn = new PowerSaveState.Builder() in updateRestrictBackgroundByLowPowerMode_RestrictOnBeforeBsm_RestrictOnAfterBsm()
551 PowerSaveState stateOff = new PowerSaveState.Builder() in updateRestrictBackgroundByLowPowerMode_RestrictOnBeforeBsm_RestrictOnAfterBsm()
565 PowerSaveState stateOn = new PowerSaveState.Builder() in updateRestrictBackgroundByLowPowerMode_RestrictOffBeforeBsm_RestrictOffAfterBsm()
575 PowerSaveState stateOff = new PowerSaveState.Builder() in updateRestrictBackgroundByLowPowerMode_RestrictOffBeforeBsm_RestrictOffAfterBsm()
589 PowerSaveState stateOn = new PowerSaveState.Builder() in updateRestrictBackgroundByLowPowerMode_StatusChangedInBsm_DoNotRestore()
600 PowerSaveState stateOff = new PowerSaveState.Builder().setBatterySaverEnabled( in updateRestrictBackgroundByLowPowerMode_StatusChangedInBsm_DoNotRestore()
DAppStateTrackerTest.java58 import android.os.PowerSaveState;
184 private Consumer<PowerSaveState> mPowerSaveObserver;
211 private PowerSaveState getPowerSaveState() { in getPowerSaveState()
212 return new PowerSaveState.Builder().setBatterySaverEnabled(mPowerSaveMode).build(); in getPowerSaveState()
250 ArgumentCaptor<Consumer<PowerSaveState>> powerSaveObserverCaptor = in callStart()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBatteryControllerImpl.java27 import android.os.PowerSaveState;
192 PowerSaveState state = mPowerManager.getPowerSaveState(PowerManager.ServiceType.AOD); in setPowerSave()
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySaverController.java32 import android.os.PowerSaveState;
365 final PowerSaveState result = in handleBatterySaverStateChanged()
/frameworks/base/services/core/java/com/android/server/
DVibratorService.java32 import android.os.PowerSaveState;
383 public void onLowPowerModeChanged(PowerSaveState result) { in systemReady()
/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java36 import android.os.PowerSaveState;
272 public void onLowPowerModeChanged(PowerSaveState result) { in onLowPowerModeChanged()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java175 import android.os.PowerSaveState;
408 private PowerSaveState mRestrictBackgroundPowerState;
733 public void onLowPowerModeChanged(PowerSaveState result) { in initService()
773 public void onLowPowerModeChanged(PowerSaveState result) { in initService()
4718 public void updateRestrictBackgroundByLowPowerModeUL(final PowerSaveState result) { in updateRestrictBackgroundByLowPowerModeUL()
/frameworks/base/services/core/java/com/android/server/location/
DGnssLocationProvider.java61 import android.os.PowerSaveState;
635 final PowerSaveState result = in updateLowPowerMode()
/frameworks/base/services/backup/java/com/android/server/backup/
DBackupManagerService.java74 import android.os.PowerSaveState;
2045 final PowerSaveState result = in beginFullBackup()
2413 final PowerSaveState result = in backupNow()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowManagerService.java161 import android.os.PowerSaveState;
987 public void onLowPowerModeChanged(PowerSaveState result) { in WindowManagerService()
/frameworks/base/config/
Dboot-image-profile.txt4365 HPLandroid/os/PowerManager;->getPowerSaveState(I)Landroid/os/PowerSaveState;
4370 HPLandroid/os/PowerSaveState;->writeToParcel(Landroid/os/Parcel;I)V
27788 HSPLandroid/os/IPowerManager;->getPowerSaveState(I)Landroid/os/PowerSaveState;
28348 HSPLandroid/os/PowerManagerInternal;->getLowPowerState(I)Landroid/os/PowerSaveState;
28368 HSPLandroid/os/PowerSaveState$1;-><init>()V
28369 HSPLandroid/os/PowerSaveState$Builder;->build()Landroid/os/PowerSaveState;
57225 Landroid/os/PowerSaveState$1;
57226 Landroid/os/PowerSaveState$Builder;
57227 Landroid/os/PowerSaveState;