/frameworks/base/core/java/android/os/ |
D | PowerSaveState.java | 26 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 …]
|
D | PowerManagerInternal.java | 152 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()
|
D | IPowerManager.aidl | 21 import android.os.PowerSaveState; 54 PowerSaveState getPowerSaveState(int serviceType); in getPowerSaveState()
|
D | PowerSaveState.aidl | 19 parcelable PowerSaveState;
|
D | PowerManager.java | 1603 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/ |
D | BatterySaverPolicyTest.java | 27 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/ |
D | BatteryControllerTest.java | 24 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/ |
D | BridgePowerManager.java | 24 import android.os.PowerSaveState; 70 public PowerSaveState getPowerSaveState(int serviceType) { in getPowerSaveState()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | SystemServicesTestRule.java | 49 import android.os.PowerSaveState; 140 final PowerSaveState state = new PowerSaveState.Builder().build();
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | NetworkPolicyManagerServiceTest.java | 120 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/ |
D | BatteryControllerImpl.java | 27 import android.os.PowerSaveState; 278 PowerSaveState state = mPowerManager.getPowerSaveState(PowerManager.ServiceType.AOD); in setPowerSave()
|
/frameworks/base/services/core/java/com/android/server/power/batterysaver/ |
D | BatterySaverPolicy.java | 27 import android.os.PowerSaveState; 816 public PowerSaveState getBatterySaverPolicy(@ServiceType int type) { in getBatterySaverPolicy() 819 final PowerSaveState.Builder builder = new PowerSaveState.Builder() in getBatterySaverPolicy()
|
D | BatterySaverController.java | 33 import android.os.PowerSaveState; 495 final PowerSaveState result = in handleBatterySaverStateChanged()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/power/ |
D | PowerManagerServiceTest.java | 57 import android.os.PowerSaveState; 109 private PowerSaveState mPowerSaveState; 141 mPowerSaveState = new PowerSaveState.Builder() in setUp()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/ |
D | AppStateTrackerTest.java | 58 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()
|
D | DeviceIdleControllerTest.java | 75 import android.os.PowerSaveState; 247 .thenReturn(mock(PowerSaveState.class)); in setUp()
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/ |
D | UserBackupManagerServiceTest.java | 52 import android.os.PowerSaveState; 1170 .thenReturn(new PowerSaveState.Builder().setBatterySaverEnabled(true).build()); in setUpPowerManager()
|
/frameworks/base/services/core/java/com/android/server/ |
D | VibratorService.java | 44 import android.os.PowerSaveState; 438 public void onLowPowerModeChanged(PowerSaveState result) { in systemReady()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BatteryStatsService.java | 37 import android.os.PowerSaveState; 289 public void onLowPowerModeChanged(PowerSaveState result) { in onLowPowerModeChanged()
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | GnssLocationProvider.java | 52 import android.os.PowerSaveState; 545 final PowerSaveState result = in updateLowPowerMode()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerService.java | 176 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/ |
D | UserBackupManagerService.java | 82 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/ |
D | PowerManagerService.java | 58 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/ |
D | WindowManagerService.java | 170 import android.os.PowerSaveState; 1061 public void onLowPowerModeChanged(PowerSaveState result) { in WindowManagerService()
|
/frameworks/base/services/ |
D | art-profile | 576 …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 …]
|