Home
last modified time | relevance | path

Searched refs:stateOn (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/split/
DDividerHandleView.java129 private void setInputState(boolean stateOn, boolean animate, int stateWidth, int stateHeight) { in setInputState() argument
135 mCurrentWidth = stateOn ? stateWidth : mWidth; in setInputState()
136 mCurrentHeight = stateOn ? stateHeight : mHeight; in setInputState()
139 animateToTarget(stateOn ? stateWidth : mWidth, in setInputState()
140 stateOn ? stateHeight : mHeight, stateOn); in setInputState()
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DBinaryStatePowerStatsProcessorTest.java240 private BatteryStats.HistoryItem buildHistoryItem(int elapsedRealtime, boolean stateOn, in buildHistoryItem() argument
245 historyItem.states = stateOn ? TEST_STATE_FLAG : 0; in buildHistoryItem()
246 if (stateOn) { in buildHistoryItem()
/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/
DBatterySaverPolicyTest.java141 PowerSaveState stateOn = in testGetBatterySaverPolicy_PolicySound_DefaultValueCorrect() local
143 assertThat(stateOn.soundTriggerMode).isEqualTo(defaultMode); in testGetBatterySaverPolicy_PolicySound_DefaultValueCorrect()
211 PowerSaveState stateOn = in testGetBatterySaverPolicy_PolicyLocation_DefaultValueCorrect() local
213 assertThat(stateOn.locationMode).isEqualTo(defaultMode); in testGetBatterySaverPolicy_PolicyLocation_DefaultValueCorrect()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java766 PowerSaveState stateOn = new PowerSaveState.Builder() in updateRestrictBackgroundByLowPowerMode_RestrictOnBeforeBsm_RestrictOnAfterBsm() local
770 mService.updateRestrictBackgroundByLowPowerModeUL(stateOn); in updateRestrictBackgroundByLowPowerMode_RestrictOnBeforeBsm_RestrictOnAfterBsm()
784 stateOn = new PowerSaveState.Builder() in updateRestrictBackgroundByLowPowerMode_RestrictOnBeforeBsm_RestrictOnAfterBsm()
788 mService.updateRestrictBackgroundByLowPowerModeUL(stateOn); in updateRestrictBackgroundByLowPowerMode_RestrictOnBeforeBsm_RestrictOnAfterBsm()
807 PowerSaveState stateOn = new PowerSaveState.Builder() in updateRestrictBackgroundByLowPowerMode_RestrictOffBeforeBsm_RestrictOffAfterBsm() local
812 mService.updateRestrictBackgroundByLowPowerModeUL(stateOn); in updateRestrictBackgroundByLowPowerMode_RestrictOffBeforeBsm_RestrictOffAfterBsm()
845 PowerSaveState stateOn = new PowerSaveState.Builder() in updateRestrictBackgroundByLowPowerMode_StatusChangedInBsm_DoNotRestore() local
849 mService.updateRestrictBackgroundByLowPowerModeUL(stateOn); in updateRestrictBackgroundByLowPowerMode_StatusChangedInBsm_DoNotRestore()
873 PowerSaveState stateOn = new PowerSaveState.Builder() in updateRestrictBackgroundByLowPowerMode_RestrictOnWithGlobalOff() local
878 mService.updateRestrictBackgroundByLowPowerModeUL(stateOn); in updateRestrictBackgroundByLowPowerMode_RestrictOnWithGlobalOff()
/frameworks/base/services/core/java/com/android/server/power/stats/
DBatteryStatsImpl.java1886 public void gpsScanStateChanged(int uid, WorkChain workChain, boolean stateOn) { in gpsScanStateChanged() argument
1887 int event = stateOn in gpsScanStateChanged()