Searched refs:maxTimeout (Results 1 – 4 of 4) sorted by relevance
60 final long maxTimeout = getMaxScreenTimeout(); in updateState() local61 final RestrictedLockUtils.EnforcedAdmin admin = getPreferenceDisablingAdmin(maxTimeout); in updateState()70 preference.setSummary(getTimeoutSummary(maxTimeout)); in updateState()74 private CharSequence getTimeoutSummary(long maxTimeout) { in getTimeoutSummary() argument76 final CharSequence description = getTimeoutDescription(currentTimeout, maxTimeout); in getTimeoutSummary()96 private RestrictedLockUtils.EnforcedAdmin getPreferenceDisablingAdmin(long maxTimeout) { in getPreferenceDisablingAdmin() argument103 if (admin == null && getLargestTimeout(maxTimeout) == null) { in getPreferenceDisablingAdmin()115 private CharSequence getTimeoutDescription(long currentTimeout, long maxTimeout) { in getTimeoutDescription() argument121 if (currentTimeout > maxTimeout) { in getTimeoutDescription()124 return getLargestTimeout(maxTimeout); in getTimeoutDescription()[all …]
96 public void removeUnusableTimeouts(long maxTimeout, EnforcedAdmin admin) { in removeUnusableTimeouts() argument107 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()
139 final long maxTimeout = getMaxScreenTimeout(getContext()); in getCandidates() local142 if (Long.parseLong(mInitialValues[i].toString()) <= maxTimeout) { in getCandidates()189 final long maxTimeout = getMaxScreenTimeout(getContext()); in updateCandidates() local190 if (!candidateList.isEmpty() && (selectedTimeout > maxTimeout)) { in updateCandidates()
119 final long maxTimeout = Math.max(0, adminTimeout - displayTimeout); in setupLockAfterPreference() local120 preference.removeUnusableTimeouts(maxTimeout, admin); in setupLockAfterPreference()