Home
last modified time | relevance | path

Searched refs:maxTimeout (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Settings/src/com/android/settings/display/
DScreenTimeoutPreferenceController.java60 final long maxTimeout = getMaxScreenTimeout(); in updateState() local
61 final RestrictedLockUtils.EnforcedAdmin admin = getPreferenceDisablingAdmin(maxTimeout); in updateState()
70 preference.setSummary(getTimeoutSummary(maxTimeout)); in updateState()
74 private CharSequence getTimeoutSummary(long maxTimeout) { in getTimeoutSummary() argument
76 final CharSequence description = getTimeoutDescription(currentTimeout, maxTimeout); in getTimeoutSummary()
96 private RestrictedLockUtils.EnforcedAdmin getPreferenceDisablingAdmin(long maxTimeout) { in getPreferenceDisablingAdmin() argument
103 if (admin == null && getLargestTimeout(maxTimeout) == null) { in getPreferenceDisablingAdmin()
115 private CharSequence getTimeoutDescription(long currentTimeout, long maxTimeout) { in getTimeoutDescription() argument
121 if (currentTimeout > maxTimeout) { in getTimeoutDescription()
124 return getLargestTimeout(maxTimeout); in getTimeoutDescription()
[all …]
DTimeoutListPreference.java96 public void removeUnusableTimeouts(long maxTimeout, EnforcedAdmin admin) { in removeUnusableTimeouts() argument
107 maxTimeout = Long.MAX_VALUE; in removeUnusableTimeouts()
114 if (timeout <= maxTimeout) { in removeUnusableTimeouts()
134 if (userPreference <= maxTimeout) { in removeUnusableTimeouts()
138 == maxTimeout) { in removeUnusableTimeouts()
140 setValue(String.valueOf(maxTimeout)); in removeUnusableTimeouts()
DScreenTimeoutSettings.java139 final long maxTimeout = getMaxScreenTimeout(getContext()); in getCandidates() local
142 if (Long.parseLong(mInitialValues[i].toString()) <= maxTimeout) { in getCandidates()
189 final long maxTimeout = getMaxScreenTimeout(getContext()); in updateCandidates() local
190 if (!candidateList.isEmpty() && (selectedTimeout > maxTimeout)) { in updateCandidates()
/packages/apps/Settings/src/com/android/settings/security/screenlock/
DLockAfterTimeoutPreferenceController.java119 final long maxTimeout = Math.max(0, adminTimeout - displayTimeout); in setupLockAfterPreference() local
120 preference.removeUnusableTimeouts(maxTimeout, admin); in setupLockAfterPreference()