Home
last modified time | relevance | path

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

/aosp14/frameworks/base/services/core/java/com/android/server/locksettings/
H A DSyntheticPasswordManager.java698 destroyWeaverSlot(protectorId, userId); in removeUser()
710 int getPinLength(long protectorId, int userId) { in getPinLength() argument
944 long protectorId = generateProtectorId(); in createLskfBasedProtector() local
1020 return protectorId; in createLskfBasedProtector()
1454 long protectorId, int userId) { in refreshPinLengthOnDisk() argument
1483 protectorId, userId)); in unlockTokenBasedProtector()
1668 protectorId, userId)); in destroyTokenBasedProtector()
1679 for (long protectorId : protectorIds) { in destroyAllWeakTokenBasedProtectors()
1681 protectorId, userId)); in destroyAllWeakTokenBasedProtectors()
1703 destroyWeaverSlot(protectorId, userId); in destroyProtectorCommon()
[all …]
H A DLockSettingsStorage.java428 public void writeSyntheticPasswordState(int userId, long protectorId, String name, in writeSyntheticPasswordState() argument
431 writeFile(getSyntheticPasswordStateFileForUser(userId, protectorId, name), data, in writeSyntheticPasswordState()
435 public byte[] readSyntheticPasswordState(int userId, long protectorId, String name) { in readSyntheticPasswordState() argument
436 return readFile(getSyntheticPasswordStateFileForUser(userId, protectorId, name)); in readSyntheticPasswordState()
439 public void deleteSyntheticPasswordState(int userId, long protectorId, String name) { in deleteSyntheticPasswordState() argument
440 deleteFile(getSyntheticPasswordStateFileForUser(userId, protectorId, name)); in deleteSyntheticPasswordState()
492 private File getSyntheticPasswordStateFileForUser(int userId, long protectorId, String name) { in getSyntheticPasswordStateFileForUser() argument
493 String fileName = TextUtils.formatSimple("%016x.%s", protectorId, name); in getSyntheticPasswordStateFileForUser()
H A DLockSettingsService.java1021 long protectorId = getCurrentLskfBasedProtectorId(userId); in migrateUserToSpWithBoundCeKeyLocked() local
1022 if (protectorId == SyntheticPasswordManager.NULL_PROTECTOR_ID) { in migrateUserToSpWithBoundCeKeyLocked()
1251 final long protectorId = getCurrentLskfBasedProtectorId(userId); in getPinLength() local
1252 if (protectorId == SyntheticPasswordManager.NULL_PROTECTOR_ID) { in getPinLength()
1256 return mSpManager.getPinLength(protectorId, userId); in getPinLength()
1302 final long protectorId = getCurrentLskfBasedProtectorId(userId); in getCredentialTypeInternal() local
1303 if (protectorId == SyntheticPasswordManager.NULL_PROTECTOR_ID) { in getCredentialTypeInternal()
2196 long protectorId = getCurrentLskfBasedProtectorId(userId); in doVerifyCredential() local
2758 setCurrentLskfBasedProtectorId(protectorId, userId); in initializeSyntheticPassword()
3002 long protectorId = getCurrentLskfBasedProtectorId(userId);
[all …]
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
H A DSyntheticPasswordTests.java91 long protectorId = manager.createLskfBasedProtector(mGateKeeperService, in testNoneLskfBasedProtector() local
94 assertFalse(manager.hasPasswordData(protectorId, USER_ID)); in testNoneLskfBasedProtector()
95 assertFalse(manager.hasPasswordMetrics(protectorId, USER_ID)); in testNoneLskfBasedProtector()
98 protectorId, LockscreenCredential.createNone(), USER_ID, null); in testNoneLskfBasedProtector()
112 long protectorId = manager.createLskfBasedProtector(mGateKeeperService, password, sp, in testNonNoneLskfBasedProtector() local
115 assertTrue(manager.hasPasswordData(protectorId, USER_ID)); in testNonNoneLskfBasedProtector()
116 assertTrue(manager.hasPasswordMetrics(protectorId, USER_ID)); in testNonNoneLskfBasedProtector()
119 protectorId, password, USER_ID, null); in testNonNoneLskfBasedProtector()
123 result = manager.unlockLskfBasedProtector(mGateKeeperService, protectorId, badPassword, in testNonNoneLskfBasedProtector()
617 long protectorId = manager.createLskfBasedProtector(mGateKeeperService, in testStorePinLengthOnDisk() local
[all …]