Searched refs:newSleepTime (Results 1 – 2 of 2) sorted by relevance
78 final int newSleepTime = Integer.parseInt((String) newValue); in onPreferenceChange() local80 && (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() local106 private void confirmNewSleepTime(int newSleepTime) { in confirmNewSleepTime() argument108 updateTimeOut(allowTurnOffWithWakeLock(), newSleepTime); in confirmNewSleepTime() local109 mSleepTimePC.setValue(String.valueOf(newSleepTime)); in confirmNewSleepTime()129 private String getConfirmationDialogDescription(int newSleepTime) { in getConfirmationDialogDescription() argument136 if (newSleepTime == Integer.parseInt(optionsValues[i])) { in getConfirmationDialogDescription()
116 final int newSleepTime = Integer.parseInt((String) newValue); in onPreferenceChange() local117 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() argument252 setSleepTime(newSleepTime); in confirmNewSleepTime()253 mSleepTimePref.setValue(String.valueOf(newSleepTime)); in confirmNewSleepTime()