Home
last modified time | relevance | path

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

12

/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;
54 PowerSaveState getPowerSaveState(int serviceType); in getPowerSaveState()
DPowerSaveState.aidl19 parcelable PowerSaveState;
DPowerManager.java1603 public PowerSaveState getPowerSaveState(@ServiceType int serviceType) { in getPowerSaveState()
1622 final PowerSaveState powerSaveState = getPowerSaveState(ServiceType.LOCATION); in getLocationPowerSaveMode()
/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/
DBatterySaverPolicyTest.java27 import android.os.PowerSaveState;
158 final PowerSaveState batterySaverStateOn = in testGetBatterySaverPolicy_PolicyDataSaver_DefaultValueCorrect()
163 final PowerSaveState batterySaverStateOff = mBatterySaverPolicy.getBatterySaverPolicy( in testGetBatterySaverPolicy_PolicyDataSaver_DefaultValueCorrect()
178 PowerSaveState stateOn = in testGetBatterySaverPolicy_PolicyGps_DefaultValueCorrect()
197 final PowerSaveState vibrationState = in verifyBatterySaverConstantsUpdated()
201 final PowerSaveState animationState = in verifyBatterySaverConstantsUpdated()
205 final PowerSaveState soundState = in verifyBatterySaverConstantsUpdated()
209 final PowerSaveState networkState = mBatterySaverPolicy.getBatterySaverPolicy( in verifyBatterySaverConstantsUpdated()
213 final PowerSaveState screenState = in verifyBatterySaverConstantsUpdated()
218 final PowerSaveState fullBackupState = mBatterySaverPolicy.getBatterySaverPolicy( in verifyBatterySaverConstantsUpdated()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DBatteryControllerTest.java24 import android.os.PowerSaveState;
58 PowerSaveState state = new PowerSaveState.Builder() in testIndependentAODBatterySaver_true()
73 PowerSaveState state = new PowerSaveState.Builder() in testIndependentAODBatterySaver_false()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgePowerManager.java24 import android.os.PowerSaveState;
70 public PowerSaveState getPowerSaveState(int serviceType) { in getPowerSaveState()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DSystemServicesTestRule.java49 import android.os.PowerSaveState;
140 final PowerSaveState state = new PowerSaveState.Builder().build();
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java120 import android.os.PowerSaveState;
304 final PowerSaveState state = new PowerSaveState.Builder() in registerLocalServices()
547 PowerSaveState stateOn = new PowerSaveState.Builder() in updateRestrictBackgroundByLowPowerMode_RestrictOnBeforeBsm_RestrictOnAfterBsm()
556 PowerSaveState stateOff = new PowerSaveState.Builder() in updateRestrictBackgroundByLowPowerMode_RestrictOnBeforeBsm_RestrictOnAfterBsm()
570 PowerSaveState stateOn = new PowerSaveState.Builder() in updateRestrictBackgroundByLowPowerMode_RestrictOffBeforeBsm_RestrictOffAfterBsm()
580 PowerSaveState stateOff = new PowerSaveState.Builder() in updateRestrictBackgroundByLowPowerMode_RestrictOffBeforeBsm_RestrictOffAfterBsm()
594 PowerSaveState stateOn = new PowerSaveState.Builder() in updateRestrictBackgroundByLowPowerMode_StatusChangedInBsm_DoNotRestore()
605 PowerSaveState stateOff = new PowerSaveState.Builder().setBatterySaverEnabled( in updateRestrictBackgroundByLowPowerMode_StatusChangedInBsm_DoNotRestore()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBatteryControllerImpl.java27 import android.os.PowerSaveState;
278 PowerSaveState state = mPowerManager.getPowerSaveState(PowerManager.ServiceType.AOD); in setPowerSave()
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySaverPolicy.java27 import android.os.PowerSaveState;
816 public PowerSaveState getBatterySaverPolicy(@ServiceType int type) { in getBatterySaverPolicy()
819 final PowerSaveState.Builder builder = new PowerSaveState.Builder() in getBatterySaverPolicy()
DBatterySaverController.java33 import android.os.PowerSaveState;
495 final PowerSaveState result = in handleBatterySaverStateChanged()
/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DPowerManagerServiceTest.java57 import android.os.PowerSaveState;
109 private PowerSaveState mPowerSaveState;
141 mPowerSaveState = new PowerSaveState.Builder() in setUp()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DAppStateTrackerTest.java58 import android.os.PowerSaveState;
185 private Consumer<PowerSaveState> mPowerSaveObserver;
212 private PowerSaveState getPowerSaveState() { in getPowerSaveState()
213 return new PowerSaveState.Builder().setBatterySaverEnabled(mPowerSaveMode).build(); in getPowerSaveState()
251 ArgumentCaptor<Consumer<PowerSaveState>> powerSaveObserverCaptor = in callStart()
DDeviceIdleControllerTest.java75 import android.os.PowerSaveState;
247 .thenReturn(mock(PowerSaveState.class)); in setUp()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/
DUserBackupManagerServiceTest.java52 import android.os.PowerSaveState;
1170 .thenReturn(new PowerSaveState.Builder().setBatterySaverEnabled(true).build()); in setUpPowerManager()
/frameworks/base/services/core/java/com/android/server/
DVibratorService.java44 import android.os.PowerSaveState;
438 public void onLowPowerModeChanged(PowerSaveState result) { in systemReady()
/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java37 import android.os.PowerSaveState;
289 public void onLowPowerModeChanged(PowerSaveState result) { in onLowPowerModeChanged()
/frameworks/base/services/core/java/com/android/server/location/
DGnssLocationProvider.java52 import android.os.PowerSaveState;
545 final PowerSaveState result = in updateLowPowerMode()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java176 import android.os.PowerSaveState;
408 private PowerSaveState mRestrictBackgroundPowerState;
750 public void onLowPowerModeChanged(PowerSaveState result) { in initService()
790 public void onLowPowerModeChanged(PowerSaveState result) { in initService()
4904 void updateRestrictBackgroundByLowPowerModeUL(final PowerSaveState result) { in updateRestrictBackgroundByLowPowerModeUL()
/frameworks/base/services/backup/java/com/android/server/backup/
DUserBackupManagerService.java82 import android.os.PowerSaveState;
2074 final PowerSaveState result = in beginFullBackup()
2468 final PowerSaveState result = in backupNow()
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java58 import android.os.PowerSaveState;
2865 PowerSaveState state = mBatterySaverPolicy. in updatePowerRequestFromBatterySaverPolicy()
4469 public PowerSaveState getPowerSaveState(@ServiceType int serviceType) { in getPowerSaveState()
4914 public PowerSaveState getLowPowerState(@ServiceType int serviceType) { in getLowPowerState()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowManagerService.java170 import android.os.PowerSaveState;
1061 public void onLowPowerModeChanged(PowerSaveState result) { in WindowManagerService()
/frameworks/base/services/
Dart-profile576 …rver/AppStateTracker;->lambda$onSystemServicesReady$0$AppStateTracker(Landroid/os/PowerSaveState;)V
1034 …rver/DeviceIdleController;->lambda$onBootPhase$0$DeviceIdleController(Landroid/os/PowerSaveState;)V
1318 …tionManagerService;->lambda$initializeLocked$4$LocationManagerService(Landroid/os/PowerSaveState;)V
1943 …d/server/UiModeManagerService;->lambda$onStart$0$UiModeManagerService(Landroid/os/PowerSaveState;)V
1968 HSPLcom/android/server/VibratorService$2;->onLowPowerModeChanged(Landroid/os/PowerSaveState;)V
2937 …/ActivityManagerService;->lambda$systemReady$1$ActivityManagerService(Landroid/os/PowerSaveState;)V
3239 HSPLcom/android/server/am/BatteryStatsService;->onLowPowerModeChanged(Landroid/os/PowerSaveState;)V
8846 …roid/server/net/NetworkPolicyManagerService$1;->onLowPowerModeChanged(Landroid/os/PowerSaveState;)V
8848 …roid/server/net/NetworkPolicyManagerService$2;->onLowPowerModeChanged(Landroid/os/PowerSaveState;)V
8943 …etworkPolicyManagerService;->updateRestrictBackgroundByLowPowerModeUL(Landroid/os/PowerSaveState;)V
[all …]

12