Home
last modified time | relevance | path

Searched refs:newSleepTime (Results 1 – 2 of 2) sorted by relevance

/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/device/display/daydream/
DEnergySaverState.java78 final int newSleepTime = Integer.parseInt((String) newValue); in onPreferenceChange() local
80 && (newSleepTime > WARNING_THRESHOLD_SLEEP_TIME_MS || newSleepTime == -1)) { in onPreferenceChange()
85 .setMessage(getConfirmationDialogDescription(newSleepTime)) in onPreferenceChange()
88 (dialog, which) -> confirmNewSleepTime(newSleepTime)) in onPreferenceChange()
95 updateTimeOut(allowTurnOffWithWakeLock(), newSleepTime); in onPreferenceChange() local
106 private void confirmNewSleepTime(int newSleepTime) { in confirmNewSleepTime() argument
108 updateTimeOut(allowTurnOffWithWakeLock(), newSleepTime); in confirmNewSleepTime() local
109 mSleepTimePC.setValue(String.valueOf(newSleepTime)); in confirmNewSleepTime()
129 private String getConfirmationDialogDescription(int newSleepTime) { in getConfirmationDialogDescription() argument
136 if (newSleepTime == Integer.parseInt(optionsValues[i])) { in getConfirmationDialogDescription()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/display/daydream/
DEnergySaverFragment.java116 final int newSleepTime = Integer.parseInt((String) newValue); in onPreferenceChange() local
117 if (getSleepTimeEntryId(newSleepTime) != -1) { in onPreferenceChange()
118 logEntrySelected(getSleepTimeEntryId(newSleepTime)); in onPreferenceChange()
121 newSleepTime, getAttentiveSleepTime())) { in onPreferenceChange()
129 } else if (newSleepTime > WARNING_THRESHOLD_SLEEP_TIME_MS || newSleepTime == -1) { in onPreferenceChange()
131 showConfirmChangeSettingDialog(false, newSleepTime); in onPreferenceChange()
134 confirmNewSleepTime(newSleepTime); in onPreferenceChange()
250 private void confirmNewSleepTime(int newSleepTime) { in confirmNewSleepTime() argument
252 setSleepTime(newSleepTime); in confirmNewSleepTime()
253 mSleepTimePref.setValue(String.valueOf(newSleepTime)); in confirmNewSleepTime()