Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/util/
DHashedStringCache.java100 int saltExpirationDays) { in hashString() argument
101 if (saltExpirationDays == -1 || context == null in hashString()
106 populateSaltValues(context, tag, saltExpirationDays); in hashString()
131 private boolean checkNeedsNewSalt(String tag, int saltExpirationDays, long saltDate) { in checkNeedsNewSalt() argument
132 if (saltDate == 0 || saltExpirationDays < -1) { in checkNeedsNewSalt()
135 if (saltExpirationDays > MAX_SALT_DAYS) { in checkNeedsNewSalt()
136 saltExpirationDays = MAX_SALT_DAYS; in checkNeedsNewSalt()
142 return delta >= saltExpirationDays * DAYS_TO_MILLIS || delta < 0; in checkNeedsNewSalt()
151 private void populateSaltValues(Context context, String tag, int saltExpirationDays) { in populateSaltValues() argument
156 boolean needsNewSalt = checkNeedsNewSalt(tag, saltExpirationDays, saltDate); in populateSaltValues()