Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DLockSettingsStorageTests.java44 import com.android.server.locksettings.LockSettingsStorage.PersistentData;
358 assertSame(PersistentData.NONE, mStorage.readPersistentDataBlock()); in testPersistentDataBlock_unavailable()
364 assertSame(PersistentData.NONE, mStorage.readPersistentDataBlock()); in testPersistentDataBlock_empty()
370 .thenReturn(PersistentData.toBytes(PersistentData.TYPE_SP_WEAVER, SOME_USER_ID, in testPersistentDataBlock_withData()
373 PersistentData data = mStorage.readPersistentDataBlock(); in testPersistentDataBlock_withData()
375 assertEquals(PersistentData.TYPE_SP_WEAVER, data.type); in testPersistentDataBlock_withData()
385 assertSame(PersistentData.NONE, mStorage.readPersistentDataBlock()); in testPersistentDataBlock_exception()
389 byte[] serialized = PersistentData.toBytes(PersistentData.TYPE_SP, SOME_USER_ID, in testPersistentData_serializeUnserialize()
391 PersistentData deserialized = PersistentData.fromBytes(serialized); in testPersistentData_serializeUnserialize()
393 assertEquals(PersistentData.TYPE_SP, deserialized.type); in testPersistentData_serializeUnserialize()
[all …]
/frameworks/base/services/core/java/com/android/server/testharness/
DTestHarnessModeService.java132 setUpAdbFiles(PersistentData.fromBytes(testHarnessModeData)); in completeTestHarnessModeSetup()
176 private void setUpAdbFiles(PersistentData persistentData) { in setUpAdbFiles()
324 PersistentData persistentData = new PersistentData(adbKeysBytes, adbTempKeysBytes); in handleEnable()
396 public static class PersistentData { class in TestHarnessModeService
404 PersistentData(byte[] adbKeys, byte[] adbTempKeys) { in PersistentData() method in TestHarnessModeService.PersistentData
408 PersistentData(int version, byte[] adbKeys, byte[] adbTempKeys) { in PersistentData() method in TestHarnessModeService.PersistentData
414 static PersistentData fromBytes(byte[] bytes) throws SetUpTestHarnessModeException { in fromBytes()
429 return new PersistentData(version, adbKeys, adbTempKeys); in fromBytes()
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsStorage.java630 persistentDataBlock.setFrpCredentialHandle(PersistentData.toBytes( in writePersistentDataBlock()
634 public PersistentData readPersistentDataBlock() { in readPersistentDataBlock()
637 return PersistentData.NONE; in readPersistentDataBlock()
640 return PersistentData.fromBytes(persistentDataBlock.getFrpCredentialHandle()); in readPersistentDataBlock()
643 return PersistentData.NONE; in readPersistentDataBlock()
647 public static class PersistentData { class in LockSettingsStorage
655 public static final PersistentData NONE = new PersistentData(TYPE_NONE,
663 private PersistentData(int type, int userId, int qualityForUi, byte[] payload) { in PersistentData() method in LockSettingsStorage.PersistentData
670 public static PersistentData fromBytes(byte[] frpData) { in fromBytes()
678 if (version == PersistentData.VERSION_1) { in fromBytes()
[all …]
DSyntheticPasswordManager.java46 import com.android.server.locksettings.LockSettingsStorage.PersistentData;
684 PersistentData persistentData = mStorage.readPersistentDataBlock(); in verifyFrpCredential()
685 if (persistentData.type == PersistentData.TYPE_SP) { in verifyFrpCredential()
692 } else if (persistentData.type == PersistentData.TYPE_SP_WEAVER) { in verifyFrpCredential()
728 mStorage.writePersistentDataBlock(PersistentData.TYPE_SP, userId, requestedQuality, in synchronizeFrpPassword()
731 mStorage.writePersistentDataBlock(PersistentData.TYPE_NONE, userId, 0, null); in synchronizeFrpPassword()
742 mStorage.writePersistentDataBlock(PersistentData.TYPE_SP_WEAVER, weaverSlot, in synchronizeWeaverFrpPassword()
745 mStorage.writePersistentDataBlock(PersistentData.TYPE_NONE, 0, 0, null); in synchronizeWeaverFrpPassword()
DLockSettingsService.java118 import com.android.server.locksettings.LockSettingsStorage.PersistentData;
870 if (mStorage.readPersistentDataBlock() != PersistentData.NONE) { in migrateFrpCredential()
2471 return type == PersistentData.TYPE_SP || type == PersistentData.TYPE_SP_WEAVER; in isSyntheticPasswordBasedCredentialLocked()
3038 mStorage.writePersistentDataBlock(PersistentData.TYPE_NONE, user.id, in clearFrpCredentialIfOwnerNotSecure()