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;
55 PowerSaveState getPowerSaveState(int serviceType); in getPowerSaveState()
DPowerSaveState.aidl19 parcelable PowerSaveState;
DPowerManager.java1583 public PowerSaveState getPowerSaveState(@ServiceType int serviceType) { in getPowerSaveState()
1602 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.java121 import android.os.PowerSaveState;
305 final PowerSaveState state = new PowerSaveState.Builder() in registerLocalServices()
548 PowerSaveState stateOn = new PowerSaveState.Builder() in updateRestrictBackgroundByLowPowerMode_RestrictOnBeforeBsm_RestrictOnAfterBsm()
557 PowerSaveState stateOff = new PowerSaveState.Builder() in updateRestrictBackgroundByLowPowerMode_RestrictOnBeforeBsm_RestrictOnAfterBsm()
571 PowerSaveState stateOn = new PowerSaveState.Builder() in updateRestrictBackgroundByLowPowerMode_RestrictOffBeforeBsm_RestrictOffAfterBsm()
581 PowerSaveState stateOff = new PowerSaveState.Builder() in updateRestrictBackgroundByLowPowerMode_RestrictOffBeforeBsm_RestrictOffAfterBsm()
595 PowerSaveState stateOn = new PowerSaveState.Builder() in updateRestrictBackgroundByLowPowerMode_StatusChangedInBsm_DoNotRestore()
606 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.java60 import android.os.PowerSaveState;
113 private PowerSaveState mPowerSaveState;
145 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.java84 import android.os.PowerSaveState;
301 .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/am/
DBatteryStatsService.java37 import android.os.PowerSaveState;
289 public void onLowPowerModeChanged(PowerSaveState result) { in onLowPowerModeChanged()
/frameworks/base/services/core/java/com/android/server/
DVibratorService.java46 import android.os.PowerSaveState;
457 public void onLowPowerModeChanged(PowerSaveState result) { in systemReady()
/frameworks/base/services/core/java/com/android/server/location/
DGnssLocationProvider.java52 import android.os.PowerSaveState;
576 final PowerSaveState result = mPowerManager.getPowerSaveState(ServiceType.LOCATION); in updateLowPowerMode()
/frameworks/base/services/backup/java/com/android/server/backup/
DUserBackupManagerService.java82 import android.os.PowerSaveState;
2143 final PowerSaveState result = in beginFullBackup()
2537 final PowerSaveState result = in backupNow()
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java59 import android.os.PowerSaveState;
2913 PowerSaveState state = mBatterySaverPolicy. in updatePowerRequestFromBatterySaverPolicy()
4517 public PowerSaveState getPowerSaveState(@ServiceType int serviceType) { in getPowerSaveState()
4963 public PowerSaveState getLowPowerState(@ServiceType int serviceType) { in getLowPowerState()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java182 import android.os.PowerSaveState;
413 private PowerSaveState mRestrictBackgroundPowerState;
755 public void onLowPowerModeChanged(PowerSaveState result) { in initService()
795 public void onLowPowerModeChanged(PowerSaveState result) { in initService()
5039 void updateRestrictBackgroundByLowPowerModeUL(final PowerSaveState result) { in updateRestrictBackgroundByLowPowerModeUL()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowManagerService.java170 import android.os.PowerSaveState;
1071 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