Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/locksettings/
DSyntheticPasswordManager.java751 for (long protectorId : mStorage.listSyntheticPasswordProtectorsForUser(SP_BLOB_NAME, in removeUser()
753 destroyWeaverSlot(protectorId, userId); in removeUser()
754 destroyProtectorKey(getProtectorKeyAlias(protectorId)); in removeUser()
765 int getPinLength(long protectorId, int userId) { in getPinLength() argument
766 byte[] passwordData = loadState(PASSWORD_DATA_NAME, protectorId, userId); in getPinLength()
773 int getCredentialType(long protectorId, int userId) { in getCredentialType() argument
774 byte[] passwordData = loadState(PASSWORD_DATA_NAME, protectorId, userId); in getCredentialType()
897 private int loadWeaverSlot(long protectorId, int userId) { in loadWeaverSlot() argument
899 byte[] data = loadState(WEAVER_SLOT_NAME, protectorId, userId); in loadWeaverSlot()
907 Slog.e(TAG, "Invalid weaver slot version for protector " + protectorId); in loadWeaverSlot()
[all …]
DLockSettingsStorage.java429 public void writeSyntheticPasswordState(int userId, long protectorId, String name, in writeSyntheticPasswordState() argument
432 writeFile(getSyntheticPasswordStateFileForUser(userId, protectorId, name), data, in writeSyntheticPasswordState()
436 public byte[] readSyntheticPasswordState(int userId, long protectorId, String name) { in readSyntheticPasswordState() argument
437 return readFile(getSyntheticPasswordStateFileForUser(userId, protectorId, name)); in readSyntheticPasswordState()
440 public void deleteSyntheticPasswordState(int userId, long protectorId, String name) { in deleteSyntheticPasswordState() argument
441 deleteFile(getSyntheticPasswordStateFileForUser(userId, protectorId, name)); in deleteSyntheticPasswordState()
493 private File getSyntheticPasswordStateFileForUser(int userId, long protectorId, String name) { in getSyntheticPasswordStateFileForUser() argument
494 String fileName = TextUtils.formatSimple("%016x.%s", protectorId, name); in getSyntheticPasswordStateFileForUser()
DLockSettingsService.java1171 long protectorId = getCurrentLskfBasedProtectorId(userId); in migrateUserToSpWithBoundCeKeyLocked() local
1172 if (protectorId == SyntheticPasswordManager.NULL_PROTECTOR_ID) { in migrateUserToSpWithBoundCeKeyLocked()
1179 getGateKeeperService(), protectorId, LockscreenCredential.createNone(), userId, in migrateUserToSpWithBoundCeKeyLocked()
1195 long protectorId = getCurrentLskfBasedProtectorId(userId); in migrateUserToSpWithBoundKeysLocked() local
1196 if (protectorId == SyntheticPasswordManager.NULL_PROTECTOR_ID) { in migrateUserToSpWithBoundKeysLocked()
1203 getGateKeeperService(), protectorId, LockscreenCredential.createNone(), userId, in migrateUserToSpWithBoundKeysLocked()
1431 final long protectorId = getCurrentLskfBasedProtectorId(userId); in getPinLength() local
1432 if (protectorId == SyntheticPasswordManager.NULL_PROTECTOR_ID) { in getPinLength()
1436 return mSpManager.getPinLength(protectorId, userId); in getPinLength()
1451 final long protectorId = getCurrentLskfBasedProtectorId(userId); in refreshStoredPinLength() local
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
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()
625 long protectorId = manager.createLskfBasedProtector(mGateKeeperService, in testStorePinLengthOnDisk() local
[all …]