Home
last modified time | relevance | path

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

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DCryptKeeper.java195 protected void onPostExecute(Integer failedAttempts) { in onPostExecute() argument
196 if (failedAttempts == 0) { in onPostExecute()
210 } else if (failedAttempts == MAX_FAILED_ATTEMPTS) { in onPostExecute()
217 } else if (failedAttempts == -1) { in onPostExecute()
223 handleBadAttempt(failedAttempts); in onPostExecute()
233 private void handleBadAttempt(Integer failedAttempts) { in handleBadAttempt() argument
240 if ((failedAttempts % COOL_DOWN_ATTEMPTS) == 0) { in handleBadAttempt()
248 int remainingAttempts = MAX_FAILED_ATTEMPTS - failedAttempts; in handleBadAttempt()
/packages/apps/Settings/src/com/android/settings/
DCryptKeeper.java195 protected void onPostExecute(Integer failedAttempts) { in onPostExecute() argument
196 if (failedAttempts == 0) { in onPostExecute()
210 } else if (failedAttempts == MAX_FAILED_ATTEMPTS) { in onPostExecute()
217 } else if (failedAttempts == -1) { in onPostExecute()
223 handleBadAttempt(failedAttempts); in onPostExecute()
233 private void handleBadAttempt(Integer failedAttempts) { in handleBadAttempt() argument
240 if ((failedAttempts % COOL_DOWN_ATTEMPTS) == 0) { in handleBadAttempt()
248 int remainingAttempts = MAX_FAILED_ATTEMPTS - failedAttempts; in handleBadAttempt()