Searched refs:PersistentData (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | LockSettingsStorageTests.java | 51 import com.android.server.locksettings.LockSettingsStorage.PersistentData; 392 assertSame(PersistentData.NONE, mStorage.readPersistentDataBlock()); in testPersistentDataBlock_unavailable() 399 assertSame(PersistentData.NONE, mStorage.readPersistentDataBlock()); in testPersistentDataBlock_empty() 406 .thenReturn(PersistentData.toBytes(PersistentData.TYPE_SP_WEAVER, SOME_USER_ID, in testPersistentDataBlock_withData() 409 PersistentData data = mStorage.readPersistentDataBlock(); in testPersistentDataBlock_withData() 411 assertEquals(PersistentData.TYPE_SP_WEAVER, data.type); in testPersistentDataBlock_withData() 422 assertSame(PersistentData.NONE, mStorage.readPersistentDataBlock()); in testPersistentDataBlock_exception() 427 byte[] serialized = PersistentData.toBytes(PersistentData.TYPE_SP, SOME_USER_ID, in testPersistentData_serializeUnserialize() 429 PersistentData deserialized = PersistentData.fromBytes(serialized); in testPersistentData_serializeUnserialize() 431 assertEquals(PersistentData.TYPE_SP, deserialized.type); in testPersistentData_serializeUnserialize() [all …]
|
/frameworks/base/services/core/java/com/android/server/testharness/ |
D | TestHarnessModeService.java | 132 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/ |
D | LockSettingsStorage.java | 644 persistentDataBlock.setFrpCredentialHandle(PersistentData.toBytes( in writePersistentDataBlock() 648 public PersistentData readPersistentDataBlock() { in readPersistentDataBlock() 651 return PersistentData.NONE; in readPersistentDataBlock() 654 return PersistentData.fromBytes(persistentDataBlock.getFrpCredentialHandle()); in readPersistentDataBlock() 657 return PersistentData.NONE; in readPersistentDataBlock() 661 public static class PersistentData { class in LockSettingsStorage 669 public static final PersistentData NONE = new PersistentData(TYPE_NONE, 677 private PersistentData(int type, int userId, int qualityForUi, byte[] payload) { in PersistentData() method in LockSettingsStorage.PersistentData 684 public static PersistentData fromBytes(byte[] frpData) { in fromBytes() 692 if (version == PersistentData.VERSION_1) { in fromBytes() [all …]
|
D | SyntheticPasswordManager.java | 46 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()
|
D | LockSettingsService.java | 118 import com.android.server.locksettings.LockSettingsStorage.PersistentData; 894 if (mStorage.readPersistentDataBlock() != PersistentData.NONE) { in migrateFrpCredential() 2539 return type == PersistentData.TYPE_SP || type == PersistentData.TYPE_SP_WEAVER; in isSyntheticPasswordBasedCredentialLocked() 3099 mStorage.writePersistentDataBlock(PersistentData.TYPE_NONE, user.id, in clearFrpCredentialIfOwnerNotSecure()
|