/frameworks/base/core/java/android/os/ |
D | PowerSaveState.java | 26 public class PowerSaveState implements Parcelable { class 42 public PowerSaveState(Builder builder) { in PowerSaveState() method in PowerSaveState 50 public PowerSaveState(Parcel in) { in PowerSaveState() method in PowerSaveState 106 public PowerSaveState build() { in build() 107 return new PowerSaveState(this); in build() 111 public static final Parcelable.Creator<PowerSaveState> 112 CREATOR = new Parcelable.Creator<PowerSaveState>() { 115 public PowerSaveState createFromParcel(Parcel source) { 116 return new PowerSaveState(source); 120 public PowerSaveState[] newArray(int size) { [all …]
|
D | PowerManagerInternal.java | 154 public abstract PowerSaveState getLowPowerState(int serviceType); in getLowPowerState() 161 public void registerLowPowerModeObserver(int serviceType, Consumer<PowerSaveState> listener) { in registerLowPowerModeObserver() 169 public void onLowPowerModeChanged(PowerSaveState state) { in registerLowPowerModeObserver() 177 void onLowPowerModeChanged(PowerSaveState state); in onLowPowerModeChanged()
|
D | PowerSaveState.aidl | 19 parcelable PowerSaveState cpp_header "android/PowerSaveState.h";
|
D | IPowerManager.aidl | 22 import android.os.PowerSaveState; 61 PowerSaveState getPowerSaveState(int serviceType); in getPowerSaveState()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/ |
D | SystemLocationPowerSaveModeHelperTest.java | 39 import android.os.PowerSaveState; 69 private List<Consumer<PowerSaveState>> mListeners = new ArrayList<>(); 96 private void sendPowerSaveState(PowerSaveState powerSaveState) { in sendPowerSaveState() 97 for (Consumer<PowerSaveState> listener : mListeners) { in sendPowerSaveState() 108 sendPowerSaveState(new PowerSaveState.Builder().setLocationMode( in testListener() 113 sendPowerSaveState(new PowerSaveState.Builder().setLocationMode( in testListener() 118 sendPowerSaveState(new PowerSaveState.Builder().setLocationMode( in testListener() 123 sendPowerSaveState(new PowerSaveState.Builder().setLocationMode( in testListener() 128 sendPowerSaveState(new PowerSaveState.Builder().setLocationMode( in testListener() 135 sendPowerSaveState(new PowerSaveState.Builder().setLocationMode( in testListener() [all …]
|
/frameworks/base/services/tests/powerservicetests/src/com/android/server/power/ |
D | PowerGroupTest.java | 50 import android.os.PowerSaveState; 254 PowerSaveState powerSaveState = new PowerSaveState.Builder() in testUpdateWhileAwake_UpdatesDisplayPowerRequest() 291 PowerSaveState powerSaveState = new PowerSaveState.Builder() in testUpdateWhileDozing_UpdatesDisplayPowerRequest() 331 PowerSaveState powerSaveState = new PowerSaveState.Builder() in testUpdateWhileDozing_DozeAfterScreenOff() 370 PowerSaveState powerSaveState = new PowerSaveState.Builder() in testUpdateQuiescent() 408 PowerSaveState powerSaveState = new PowerSaveState.Builder() in testUpdateWhileAsleep_UpdatesDisplayPowerRequest() 446 PowerSaveState powerSaveState = new PowerSaveState.Builder() in testUpdateWhileDreamingWithScreenBrightWakelock_UpdatesDisplayPowerRequest() 485 PowerSaveState powerSaveState = new PowerSaveState.Builder() in testUpdateWhileAwakeBootNotComplete_UpdatesDisplayPowerRequest() 522 PowerSaveState powerSaveState = new PowerSaveState.Builder() in testUpdateWhileAwakeUserActivityScreenBright_UpdatesDisplayPowerRequest() 560 PowerSaveState powerSaveState = new PowerSaveState.Builder() in testUpdateWhileAwakeScreenBrightnessBoostInProgress_UpdatesDisplayPowerRequest()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/ |
D | BatterySaverPolicyTest.java | 28 import android.os.PowerSaveState; 141 PowerSaveState stateOn = in testGetBatterySaverPolicy_PolicySound_DefaultValueCorrect() 211 PowerSaveState stateOn = in testGetBatterySaverPolicy_PolicyLocation_DefaultValueCorrect() 233 final PowerSaveState vibrationState = in verifyBatterySaverConstantsUpdated() 237 final PowerSaveState animationState = in verifyBatterySaverConstantsUpdated() 241 final PowerSaveState soundState = in verifyBatterySaverConstantsUpdated() 246 final PowerSaveState networkState = mBatterySaverPolicy.getBatterySaverPolicy( in verifyBatterySaverConstantsUpdated() 250 final PowerSaveState screenState = in verifyBatterySaverConstantsUpdated() 255 final PowerSaveState fullBackupState = mBatterySaverPolicy.getBatterySaverPolicy( in verifyBatterySaverConstantsUpdated() 259 final PowerSaveState keyValueBackupState = mBatterySaverPolicy.getBatterySaverPolicy( in verifyBatterySaverConstantsUpdated() [all …]
|
/frameworks/native/services/powermanager/include/android/ |
D | PowerSaveState.h | 32 struct PowerSaveState : public android::Parcelable { struct 34 PowerSaveState(bool batterySaverEnabled = false, 51 bool operator == (const PowerSaveState &ps) const { argument
|
/frameworks/base/services/core/java/com/android/server/location/injector/ |
D | SystemLocationPowerSaveModeHelper.java | 23 import android.os.PowerSaveState; 36 Consumer<PowerSaveState> { 63 public void accept(PowerSaveState powerSaveState) { in accept()
|
/frameworks/native/services/powermanager/ |
D | PowerSaveState.cpp | 25 status_t PowerSaveState::readFromParcel(const android::Parcel *parcel) { in readFromParcel() 38 status_t PowerSaveState::writeToParcel(android::Parcel *parcel) const { in writeToParcel()
|
D | Android.bp | 21 "PowerSaveState.cpp",
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | BatteryControllerTest.java | 38 import android.os.PowerSaveState; 115 PowerSaveState state = new PowerSaveState.Builder() in testIndependentAODBatterySaver_true() 130 PowerSaveState state = new PowerSaveState.Builder() in testIndependentAODBatterySaver_false()
|
/frameworks/base/core/tests/coretests/jni/ |
D | NativePowerManagerTest.cpp | 65 PowerSaveState ps = PowerSaveState(static_cast<bool>(batterySaverEnabled), in nativeObtainPowerSaveStateParcel() 84 PowerSaveState ps = {}; in nativeUnparcelAndVerifyPowerSaveState() 91 PowerSaveState psOrig = PowerSaveState(static_cast<bool>(batterySaverEnabled), in nativeUnparcelAndVerifyPowerSaveState()
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | PowerManagerTest.java | 341 PowerSaveState ps = PowerSaveState.CREATOR.createFromParcel(psParcel); in unparcelPowerSaveStateFromNativeAndVerify() 358 PowerSaveState ps = new PowerSaveState.Builder() in parcelPowerSaveStateToNativeAndVerify()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | BridgePowerManager.java | 26 import android.os.PowerSaveState; 100 public PowerSaveState getPowerSaveState(int serviceType) { in getPowerSaveState()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | NetworkPolicyManagerServiceTest.java | 167 import android.os.PowerSaveState; 386 final PowerSaveState state = new PowerSaveState.Builder() in registerLocalServices() 766 PowerSaveState stateOn = new PowerSaveState.Builder() in updateRestrictBackgroundByLowPowerMode_RestrictOnBeforeBsm_RestrictOnAfterBsm() 775 PowerSaveState stateOff = new PowerSaveState.Builder() in updateRestrictBackgroundByLowPowerMode_RestrictOnBeforeBsm_RestrictOnAfterBsm() 784 stateOn = new PowerSaveState.Builder() in updateRestrictBackgroundByLowPowerMode_RestrictOnBeforeBsm_RestrictOnAfterBsm() 793 stateOff = new PowerSaveState.Builder() in updateRestrictBackgroundByLowPowerMode_RestrictOnBeforeBsm_RestrictOnAfterBsm() 807 PowerSaveState stateOn = new PowerSaveState.Builder() in updateRestrictBackgroundByLowPowerMode_RestrictOffBeforeBsm_RestrictOffAfterBsm() 817 PowerSaveState stateOff = new PowerSaveState.Builder() in updateRestrictBackgroundByLowPowerMode_RestrictOffBeforeBsm_RestrictOffAfterBsm() 826 PowerSaveState stateOnRestrictOff = new PowerSaveState.Builder() in updateRestrictBackgroundByLowPowerMode_RestrictOffBeforeBsm_RestrictOffAfterBsm() 845 PowerSaveState stateOn = new PowerSaveState.Builder() in updateRestrictBackgroundByLowPowerMode_StatusChangedInBsm_DoNotRestore() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/ |
D | DeviceIdleControllerTest.java | 83 import android.os.PowerSaveState; 331 .thenReturn(mock(PowerSaveState.class)); in setUp() 2541 PowerSaveState powerSaveState = new PowerSaveState.Builder().setBatterySaverEnabled( in testModeManager_NoBatterySaver_QuickDoze() 2561 PowerSaveState powerSaveState = new PowerSaveState.Builder().setBatterySaverEnabled( in testModeManager_WithBatterySaver_QuickDoze() 2581 PowerSaveState powerSaveState = new PowerSaveState.Builder().setBatterySaverEnabled( in testModeManager_QuickDozeRequestedBatterySaverEnabledOnBody_QuickDozeEnabled() 2597 PowerSaveState powerSaveState = new PowerSaveState.Builder().setBatterySaverEnabled( in testModeManager_QuickDozeRequestedBatterySaverEnabledOffBody_QuickDozeEnabled() 2613 PowerSaveState powerSaveState = new PowerSaveState.Builder().setBatterySaverEnabled( in testModeManager_QuickDozeRequestedBatterySaverDisabledOnBody_QuickDozeEnabled() 2629 PowerSaveState powerSaveState = new PowerSaveState.Builder().setBatterySaverEnabled( in testModeManager_QuickDozeRequestedBatterySaverDisabledOffBody_QuickDozeEnabled() 2645 PowerSaveState powerSaveState = new PowerSaveState.Builder().setBatterySaverEnabled( in testModeManager_QuickDozeNotRequestedBatterySaverEnabledOnBody_QuickDozeEnabled() 2661 PowerSaveState powerSaveState = new PowerSaveState.Builder().setBatterySaverEnabled( in testModeManager_QuickDozeNotRequestedBatterySaverEnabledOffBody_QuickDozeEnabled()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/ |
D | UiModeManagerServiceTest.java | 88 import android.os.PowerSaveState; 168 private Consumer<PowerSaveState> mPowerSaveConsumer; 195 mPowerSaveConsumer = (Consumer<PowerSaveState>) inv.getArgument(1); in setUp() 199 .thenReturn(new PowerSaveState.Builder().setBatterySaverEnabled(false).build()); in setUp() 505 new PowerSaveState.Builder().setBatterySaverEnabled(true).build()); in autoNightModeSwitch_batterySaverOn() 517 new PowerSaveState.Builder().setBatterySaverEnabled(true).build()); in nightModeCustomBedtime_batterySaverOn_notInBedtime_shouldActivateNightMode() 527 new PowerSaveState.Builder().setBatterySaverEnabled(true).build()); in nightModeCustomBedtime_batterySaverOn_afterBedtime_shouldKeepNightModeActivated() 543 new PowerSaveState.Builder().setBatterySaverEnabled(true).build()); in nightModeBedtime_duringBedtime_batterySaverOnThenOff_shouldKeepNightModeActivated() 545 new PowerSaveState.Builder().setBatterySaverEnabled(false).build()); in nightModeBedtime_duringBedtime_batterySaverOnThenOff_shouldKeepNightModeActivated() 557 new PowerSaveState.Builder().setBatterySaverEnabled(true).build()); in nightModeCustomBedtime_duringBedtime_batterySaverOnThenOff_finallyAfterBedtime_shouldDeactivateNightMode() [all …]
|
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/ |
D | VibrationSettingsTest.java | 65 import android.os.PowerSaveState; 108 private static final PowerSaveState NORMAL_POWER_STATE = new PowerSaveState.Builder().build(); 109 private static final PowerSaveState LOW_POWER_STATE = new PowerSaveState.Builder()
|
/frameworks/base/services/core/java/com/android/server/power/batterysaver/ |
D | BatterySaverController.java | 34 import android.os.PowerSaveState; 487 final PowerSaveState result = in handleBatterySaverStateChanged()
|
D | BatterySaverPolicy.java | 29 import android.os.PowerSaveState; 940 public PowerSaveState getBatterySaverPolicy(@ServiceType int type) { in getBatterySaverPolicy() 943 final PowerSaveState.Builder builder = new PowerSaveState.Builder() in getBatterySaverPolicy()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | PowerGroup.java | 38 import android.os.PowerSaveState; 437 PowerSaveState powerSaverState, boolean quiescent, in updateLocked()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | BatteryControllerImpl.java | 38 import android.os.PowerSaveState; 447 PowerSaveState state = mPowerManager.getPowerSaveState(PowerManager.ServiceType.AOD); in setPowerSave()
|
/frameworks/base/config/ |
D | boot-profile.txt | 1173 Landroid/os/PowerSaveState$Builder;-><init>()V 1174 Landroid/os/PowerSaveState$Builder;->setGlobalBatterySaverEnabled(Z)Landroid/os/PowerSaveState$Buil… 1175 Landroid/os/PowerSaveState$Builder;->setBatterySaverEnabled(Z)Landroid/os/PowerSaveState$Builder; 1176 Landroid/os/PowerSaveState$Builder;->build()Landroid/os/PowerSaveState; 1177 Landroid/os/PowerSaveState;-><init>(Landroid/os/PowerSaveState$Builder;)V 1178 Landroid/os/PowerSaveState$Builder;->access$000(Landroid/os/PowerSaveState$Builder;)Z 1179 Landroid/os/PowerSaveState$Builder;->access$100(Landroid/os/PowerSaveState$Builder;)I 1180 Landroid/os/PowerSaveState$Builder;->access$200(Landroid/os/PowerSaveState$Builder;)F 1181 Landroid/os/PowerSaveState$Builder;->access$300(Landroid/os/PowerSaveState$Builder;)Z 1185 Landroid/os/PowerSaveState$Builder;->setBrightnessFactor(F)Landroid/os/PowerSaveState$Builder;
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | SystemServicesTestRule.java | 69 import android.os.PowerSaveState; 316 final PowerSaveState state = new PowerSaveState.Builder().build();
|