/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; 49 PowerSaveState getPowerSaveState(int serviceType); in getPowerSaveState()
|
D | PowerSaveState.aidl | 19 parcelable PowerSaveState;
|
D | PowerManager.java | 1162 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/ |
D | BatterySaverPolicyTest.java | 26 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 …]
|
D | PowerManagerServiceTest.java | 30 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/ |
D | BatteryControllerTest.java | 23 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/ |
D | WindowManagerServiceRule.java | 35 import android.os.PowerSaveState; 89 PowerSaveState state = new PowerSaveState.Builder().build(); in apply()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | BridgePowerManager.java | 22 import android.os.PowerSaveState; 47 public PowerSaveState getPowerSaveState(int serviceType) { in getPowerSaveState()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | BatterySaverPolicy.java | 25 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()
|
D | PowerManagerService.java | 54 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/ |
D | NetworkPolicyManagerServiceTest.java | 112 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()
|
D | AppStateTrackerTest.java | 58 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/ |
D | BatteryControllerImpl.java | 27 import android.os.PowerSaveState; 192 PowerSaveState state = mPowerManager.getPowerSaveState(PowerManager.ServiceType.AOD); in setPowerSave()
|
/frameworks/base/services/core/java/com/android/server/power/batterysaver/ |
D | BatterySaverController.java | 32 import android.os.PowerSaveState; 365 final PowerSaveState result = in handleBatterySaverStateChanged()
|
/frameworks/base/services/core/java/com/android/server/ |
D | VibratorService.java | 32 import android.os.PowerSaveState; 383 public void onLowPowerModeChanged(PowerSaveState result) { in systemReady()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BatteryStatsService.java | 36 import android.os.PowerSaveState; 272 public void onLowPowerModeChanged(PowerSaveState result) { in onLowPowerModeChanged()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerService.java | 175 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/ |
D | GnssLocationProvider.java | 61 import android.os.PowerSaveState; 635 final PowerSaveState result = in updateLowPowerMode()
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | BackupManagerService.java | 74 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/ |
D | WindowManagerService.java | 161 import android.os.PowerSaveState; 987 public void onLowPowerModeChanged(PowerSaveState result) { in WindowManagerService()
|
/frameworks/base/config/ |
D | boot-image-profile.txt | 4365 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;
|