Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DLockSettingsStorageTests.java54 import com.android.server.locksettings.LockSettingsStorage.PersistentData;
391 assertSame(PersistentData.NONE, mStorage.readPersistentDataBlock()); in testPersistentDataBlock_unavailable()
398 assertSame(PersistentData.NONE, mStorage.readPersistentDataBlock()); in testPersistentDataBlock_empty()
405 .thenReturn(PersistentData.toBytes(PersistentData.TYPE_SP_WEAVER, SOME_USER_ID, in testPersistentDataBlock_withData()
408 PersistentData data = mStorage.readPersistentDataBlock(); in testPersistentDataBlock_withData()
410 assertEquals(PersistentData.TYPE_SP_WEAVER, data.type); in testPersistentDataBlock_withData()
421 assertSame(PersistentData.NONE, mStorage.readPersistentDataBlock()); in testPersistentDataBlock_exception()
426 byte[] serialized = PersistentData.toBytes(PersistentData.TYPE_SP, SOME_USER_ID, in testPersistentData_serializeUnserialize()
428 PersistentData deserialized = PersistentData.fromBytes(serialized); in testPersistentData_serializeUnserialize()
430 assertEquals(PersistentData.TYPE_SP, deserialized.type); in testPersistentData_serializeUnserialize()
[all …]
DLockscreenFrpTest.java32 import com.android.server.locksettings.LockSettingsStorage.PersistentData;
107 PersistentData data = mStorage.readPersistentDataBlock(); in testFrpCredential_legacyPinTypePersistentData()
123 PersistentData data = mStorage.readPersistentDataBlock(); in testFrpCredential_legacyPasswordTypePersistentData()
/frameworks/base/services/core/java/com/android/server/testharness/
DTestHarnessModeService.java133 setUpAdbFiles(PersistentData.fromBytes(testHarnessModeData)); in completeTestHarnessModeSetup()
185 private void setUpAdbFiles(PersistentData persistentData) { in setUpAdbFiles()
331 PersistentData persistentData = new PersistentData(adbKeysBytes, adbTempKeysBytes); in handleEnable()
403 public static class PersistentData { class in TestHarnessModeService
411 PersistentData(byte[] adbKeys, byte[] adbTempKeys) { in PersistentData() method in TestHarnessModeService.PersistentData
415 PersistentData(int version, byte[] adbKeys, byte[] adbTempKeys) { in PersistentData() method in TestHarnessModeService.PersistentData
421 static PersistentData fromBytes(byte[] bytes) throws SetUpTestHarnessModeException { in fromBytes()
436 return new PersistentData(version, adbKeys, adbTempKeys); in fromBytes()
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsStorage.java652 persistentDataBlock.setFrpCredentialHandle(PersistentData.toBytes( in writePersistentDataBlock()
656 public PersistentData readPersistentDataBlock() { in readPersistentDataBlock()
659 return PersistentData.NONE; in readPersistentDataBlock()
662 return PersistentData.fromBytes(persistentDataBlock.getFrpCredentialHandle()); in readPersistentDataBlock()
665 return PersistentData.NONE; in readPersistentDataBlock()
669 public static class PersistentData { class in LockSettingsStorage
677 public static final PersistentData NONE = new PersistentData(TYPE_NONE,
685 private PersistentData(int type, int userId, int qualityForUi, byte[] payload) { in PersistentData() method in LockSettingsStorage.PersistentData
692 public static PersistentData fromBytes(byte[] frpData) { in fromBytes()
700 if (version == PersistentData.VERSION_1) { in fromBytes()
[all …]
DSyntheticPasswordManager.java46 import com.android.server.locksettings.LockSettingsStorage.PersistentData;
798 PersistentData persistentData = mStorage.readPersistentDataBlock(); in verifyFrpCredential()
799 if (persistentData.type == PersistentData.TYPE_SP) { in verifyFrpCredential()
812 } else if (persistentData.type == PersistentData.TYPE_SP_WEAVER) { in verifyFrpCredential()
852 mStorage.writePersistentDataBlock(PersistentData.TYPE_SP, userId, requestedQuality, in synchronizeFrpPassword()
855 mStorage.writePersistentDataBlock(PersistentData.TYPE_NONE, userId, 0, null); in synchronizeFrpPassword()
866 mStorage.writePersistentDataBlock(PersistentData.TYPE_SP_WEAVER, weaverSlot, in synchronizeWeaverFrpPassword()
869 mStorage.writePersistentDataBlock(PersistentData.TYPE_NONE, 0, 0, null); in synchronizeWeaverFrpPassword()
DLockSettingsService.java127 import com.android.server.locksettings.LockSettingsStorage.PersistentData;
976 if (mStorage.readPersistentDataBlock() != PersistentData.NONE) { in migrateFrpCredential()
1232 PersistentData data = mStorage.readPersistentDataBlock(); in getFrpCredentialType()
1233 if (data.type != PersistentData.TYPE_SP && data.type != PersistentData.TYPE_SP_WEAVER) { in getFrpCredentialType()
2673 return type == PersistentData.TYPE_SP || type == PersistentData.TYPE_SP_WEAVER; in isSyntheticPasswordBasedCredentialLocked()
3377 mStorage.writePersistentDataBlock(PersistentData.TYPE_NONE, user.id,
/frameworks/base/services/
Dart-profile18768 PLcom/android/server/locksettings/LockSettingsStorage$PersistentData;-><clinit>()V
18769 PLcom/android/server/locksettings/LockSettingsStorage$PersistentData;-><init>(III[B)V
18770 PLcom/android/server/locksettings/LockSettingsStorage$PersistentData;->toBytes(III[B)[B
43380 Lcom/android/server/locksettings/LockSettingsStorage$PersistentData;
45011 Lcom/android/server/testharness/TestHarnessModeService$PersistentData;