Home
last modified time | relevance | path

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

/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/utils/
DSettings.java55 private static final String KEY_FAILURE_COUNTER = "failure_counter"; field in Settings
263 int failures = sharedPref.getInt(KEY_FAILURE_COUNTER, 0 /* defaultValue */); in incrementFailureCounter()
264 editor.putInt(KEY_FAILURE_COUNTER, ++failures); in incrementFailureCounter()
274 return sharedPref.getInt(KEY_FAILURE_COUNTER, 0 /* defaultValue */); in getFailureCounter()
282 if (sharedPref.getInt(KEY_FAILURE_COUNTER, 0) != 0) { in clearFailureCounter()
284 editor.putInt(KEY_FAILURE_COUNTER, 0); in clearFailureCounter()