Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsStorage.java96 public static class CredentialHash { class in LockSettingsStorage
100 private CredentialHash(byte[] hash, @CredentialType int type, int version) { in CredentialHash() method in LockSettingsStorage.CredentialHash
104 private CredentialHash( in CredentialHash() method in LockSettingsStorage.CredentialHash
121 private static CredentialHash createBaseZeroPattern(byte[] hash) { in createBaseZeroPattern()
122 return new CredentialHash(hash, LockPatternUtils.CREDENTIAL_TYPE_PATTERN, in createBaseZeroPattern()
126 static CredentialHash create(byte[] hash, int type) { in create()
130 return new CredentialHash(hash, type, VERSION_GATEKEEPER); in create()
133 static CredentialHash createEmptyHash() { in createEmptyHash()
134 return new CredentialHash(null, LockPatternUtils.CREDENTIAL_TYPE_NONE, in createEmptyHash()
164 public static CredentialHash fromBytes(byte[] bytes) { in fromBytes()
[all …]
DLockSettingsService.java117 import com.android.server.locksettings.LockSettingsStorage.CredentialHash;
1464 mStorage.writeCredentialHash(CredentialHash.createEmptyHash(), userId); in setLockCredentialInternal()
1477 CredentialHash currentHandle = mStorage.readCredentialHash(userId); in setLockCredentialInternal()
1513 CredentialHash willStore = CredentialHash.create(enrolledHandle, credentialType); in setLockCredentialInternal()
1788 final CredentialHash storedHash = mStorage.readCredentialHash(userId); in doVerifyCredential()
1862 private VerifyCredentialResponse verifyCredential(int userId, CredentialHash storedHash, in verifyCredential()
1879 if (storedHash.version == CredentialHash.VERSION_LEGACY) { in verifyCredential()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DLockSettingsStorageTests.java43 import com.android.server.locksettings.LockSettingsStorage.CredentialHash;
439 byte[] serialized = CredentialHash.create( in testCredentialHash_serializeUnserialize()
441 CredentialHash deserialized = CredentialHash.fromBytes(serialized); in testCredentialHash_serializeUnserialize()
443 assertEquals(CredentialHash.VERSION_GATEKEEPER, deserialized.version); in testCredentialHash_serializeUnserialize()
458 CredentialHash deserialized = CredentialHash.fromBytes(serialized); in testCredentialHash_unserialize_versionGatekeeper()
460 assertEquals(CredentialHash.VERSION_GATEKEEPER, deserialized.version); in testCredentialHash_unserialize_versionGatekeeper()
479 mStorage.writeCredentialHash(CredentialHash.create( in writePasswordBytes()
484 mStorage.writeCredentialHash(CredentialHash.create( in writePatternBytes()
489 CredentialHash cred = mStorage.readCredentialHash(userId); in assertPasswordBytes()
495 CredentialHash cred = mStorage.readCredentialHash(userId); in assertPatternBytes()
DLockSettingsServiceTests.java44 import com.android.server.locksettings.LockSettingsStorage.CredentialHash;
509 mStorage.writeCredentialHash(CredentialHash.create(oldHash, in initializeStorageWithCredential()
512 mStorage.writeCredentialHash(CredentialHash.create(oldHash, in initializeStorageWithCredential()
/frameworks/base/services/
Dart-profile8337 HSPLcom/android/server/locksettings/LockSettingsStorage$CredentialHash;-><init>([BIIZ)V
8356 …Storage;->readCredentialHash(I)Lcom/android/server/locksettings/LockSettingsStorage$CredentialHash;
8359 …e;->readPasswordHashIfExists(I)Lcom/android/server/locksettings/LockSettingsStorage$CredentialHash;
8360 …ge;->readPatternHashIfExists(I)Lcom/android/server/locksettings/LockSettingsStorage$CredentialHash;
19512 Lcom/android/server/locksettings/LockSettingsStorage$CredentialHash;