Home
last modified time | relevance | path

Searched refs:RecoveryController (Results 1 – 25 of 31) sorted by relevance

12

/aosp12/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/tasks/
H A DRotateSecondaryKeyTaskTest.java27 import android.security.keystore.recovery.RecoveryController;
68 private RecoveryController mRecoveryController;
83 mRecoveryController = RecoveryController.getInstance(mApplication); in setUp()
105 setNextKeyRecoveryStatus(RecoveryController.RECOVERY_STATUS_SYNCED); in run_failsIfThereIsNoActiveSecondaryKey()
117 setNextKeyRecoveryStatus(RecoveryController.RECOVERY_STATUS_SYNCED); in run_failsIfActiveSecondaryIsNotInRecoveryController()
133 setNextKeyRecoveryStatus(RecoveryController.RECOVERY_STATUS_SYNCED); in run_doesNothingIfFlagIsDisabled()
149 setNextKeyRecoveryStatus(RecoveryController.RECOVERY_STATUS_SYNCED); in run_setsActiveSecondary()
165 setNextKeyRecoveryStatus(RecoveryController.RECOVERY_STATUS_SYNCED); in run_rewrapsExistingTertiaryKeys()
187 setNextKeyRecoveryStatus(RecoveryController.RECOVERY_STATUS_SYNCED); in run_persistsRewrappedKeysToDisk()
209 setNextKeyRecoveryStatus(RecoveryController.RECOVERY_STATUS_SYNCED); in run_stillSetsActiveSecondaryIfNoTertiaries()
[all …]
H A DInitializeRecoverableSecondaryKeyTaskTest.java19 import static android.security.keystore.recovery.RecoveryController.RECOVERY_STATUS_PERMANENT_FAILU…
29 import android.security.keystore.recovery.RecoveryController;
72 RecoveryController.getInstance(mApplication), new SecureRandom()); in setUp()
83 assertThat(RecoveryController.getInstance(mApplication).getAliases()) in testRun_generatesNewKeyInRecoveryController()
H A DStartSecondaryKeyRotationTaskTest.java22 import android.security.keystore.recovery.RecoveryController;
51 RecoveryController.getInstance(RuntimeEnvironment.application), in setUp()
/aosp12/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/testing/shadows/
H A DShadowRecoveryController.java22 import android.security.keystore.recovery.RecoveryController;
45 @Implements(RecoveryController.class)
61 public static RecoveryController getInstance(Context context) { in getInstance()
64 Constructor<RecoveryController> constructor = RecoveryController.class.getConstructor(); in getInstance()
91 sKeyStatusesByAlias.put(alias, RecoveryController.RECOVERY_STATUS_SYNC_IN_PROGRESS); in generateKey()
111 alias, RecoveryController.RECOVERY_STATUS_PERMANENT_FAILURE); in getRecoveryStatus()
133 sKeyStatusesByAlias.put(alias, RecoveryController.RECOVERY_STATUS_SYNCED); in syncAllKeys()
/aosp12/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/keys/
H A DRecoverableKeyStoreSecondaryKey.java22 import android.security.keystore.recovery.RecoveryController;
84 int status = RecoveryController.getInstance(context).getRecoveryStatus(mAlias); in getStatusInternal()
86 case RecoveryController.RECOVERY_STATUS_PERMANENT_FAILURE: in getStatusInternal()
88 case RecoveryController.RECOVERY_STATUS_SYNCED: in getStatusInternal()
90 case RecoveryController.RECOVERY_STATUS_SYNC_IN_PROGRESS: in getStatusInternal()
H A DRecoverableKeyStoreSecondaryKeyManager.java22 import android.security.keystore.recovery.RecoveryController;
49 RecoveryController.getInstance(context), new SecureRandom()); in getInstance()
52 private final RecoveryController mRecoveryController;
57 RecoveryController recoveryController, SecureRandom secureRandom) { in RecoverableKeyStoreSecondaryKeyManager()
/aosp12/frameworks/base/core/java/android/security/keystore/recovery/
H A DRecoverySession.java53 private final RecoveryController mRecoveryController;
55 private RecoverySession(@NonNull RecoveryController recoveryController, in RecoverySession()
65 static @NonNull RecoverySession newInstance(RecoveryController recoveryController) { in newInstance()
125 if (e.errorCode == RecoveryController.ERROR_BAD_CERTIFICATE_FORMAT in start()
126 || e.errorCode == RecoveryController.ERROR_INVALID_CERTIFICATE) { in start()
157 if (e.errorCode == RecoveryController.ERROR_DECRYPTION_FAILED) { in recoverKeyChainSnapshot()
160 if (e.errorCode == RecoveryController.ERROR_SESSION_EXPIRED) { in recoverKeyChainSnapshot()
H A DRecoveryController.java179 public class RecoveryController { class
270 private RecoveryController(ILockSettings binder, KeyStore keystore) { in RecoveryController() method in RecoveryController
288 @NonNull public static RecoveryController getInstance(@NonNull Context context) { in getInstance()
292 return new RecoveryController(lockSettings, KeyStore.getInstance()); in getInstance()
481 return RecoveryController.RECOVERY_STATUS_PERMANENT_FAILURE; in getRecoveryStatus()
/aosp12/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/tasks/
H A DRotateSecondaryKeyTask.java23 import android.security.keystore.recovery.RecoveryController;
61 private final RecoveryController mRecoveryController;
77 RecoveryController recoveryController) { in RotateSecondaryKeyTask()
142 if (status == RecoveryController.RECOVERY_STATUS_PERMANENT_FAILURE) { in isSecondaryKeyRotationReady()
150 if (status == RecoveryController.RECOVERY_STATUS_SYNCED) { in isSecondaryKeyRotationReady()
155 return status == RecoveryController.RECOVERY_STATUS_SYNCED; in isSecondaryKeyRotationReady()
H A DInitializeRecoverableSecondaryKeyTask.java22 import android.security.keystore.recovery.RecoveryController;
89 RecoveryController.getInstance(mContext)) in run()
/aosp12/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/keys/
H A DRecoverableKeyStoreSecondaryKeyTest.java25 import android.security.keystore.recovery.RecoveryController;
113 setStatus(RecoveryController.RECOVERY_STATUS_SYNCED); in getStatus_whenSynced_returnsSynced()
123 setStatus(RecoveryController.RECOVERY_STATUS_SYNC_IN_PROGRESS); in getStatus_whenNotSynced_returnsNotSynced()
133 setStatus(RecoveryController.RECOVERY_STATUS_PERMANENT_FAILURE); in getStatus_onPermanentFailure_returnsDestroyed()
H A DRecoverableKeyStoreSecondaryKeyManagerTest.java26 import android.security.keystore.recovery.RecoveryController;
66 RecoveryController.getInstance(mContext), new SecureRandom()); in setUp()
145 assertThat(RecoveryController.getInstance(mContext).getAliases()) in remove_removesKeyFromRecoverableStore()
H A DTertiaryKeyManagerTest.java29 import android.security.keystore.recovery.RecoveryController;
66 RecoveryController.getInstance(application), mSecureRandom) in setUp()
/aosp12/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
H A DWrappedKey.java20 import android.security.keystore.recovery.RecoveryController;
105 RecoveryController.RECOVERY_STATUS_SYNC_IN_PROGRESS); in fromSecretKey()
121 RecoveryController.RECOVERY_STATUS_SYNC_IN_PROGRESS); in WrappedKey()
H A DRecoverableKeyStoreManager.java19 import static android.security.keystore.recovery.RecoveryController.ERROR_BAD_CERTIFICATE_FORMAT;
20 import static android.security.keystore.recovery.RecoveryController.ERROR_DECRYPTION_FAILED;
21 import static android.security.keystore.recovery.RecoveryController.ERROR_DOWNGRADE_CERTIFICATE;
22 import static android.security.keystore.recovery.RecoveryController.ERROR_INVALID_CERTIFICATE;
23 import static android.security.keystore.recovery.RecoveryController.ERROR_INVALID_KEY_FORMAT;
24 import static android.security.keystore.recovery.RecoveryController.ERROR_NO_SNAPSHOT_PENDING;
25 import static android.security.keystore.recovery.RecoveryController.ERROR_SERVICE_INTERNAL_ERROR;
26 import static android.security.keystore.recovery.RecoveryController.ERROR_SESSION_EXPIRED;
40 import android.security.keystore.recovery.RecoveryController;
H A DTestOnlyInsecureCertificateHelper.java19 import static android.security.keystore.recovery.RecoveryController.ERROR_INVALID_CERTIFICATE;
/aosp12/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/
H A DCryptoSettingsTest.java24 import android.security.keystore.recovery.RecoveryController;
209 RecoveryController recoveryController = RecoveryController.getInstance(mApplication); in setAliasIsInRecoveryController()
/aosp12/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/
H A DEncryptionKeyHelper.java21 import android.security.keystore.recovery.RecoveryController;
52 RecoveryController.getInstance(mContext), sSecureRandom); in EncryptionKeyHelper()
H A DCryptoSettings.java25 import android.security.keystore.recovery.RecoveryController;
231 if (!RecoveryController.getInstance(mContext).getAliases().contains(alias)) { in assertIsValidAlias()
/aosp12/frameworks/base/packages/BackupEncryption/test/robolectric-integration/src/com/android/server/backup/encryption/
H A DRoundTripTest.java24 import android.security.keystore.recovery.RecoveryController;
114 private RecoveryController mRecoveryController;
131 RecoveryController.getInstance(mContext), mSecureRandom); in setUp()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/
H A DRecoverableKeyStoreDbTest.java27 import android.security.keystore.recovery.RecoveryController;
354 .isEqualTo(RecoveryController.RECOVERY_STATUS_PERMANENT_FAILURE); in setPlatformKeyGenerationId_invalidatesExistingKeysForUser()
433 RecoveryController.RECOVERY_STATUS_SYNC_IN_PROGRESS); in getStatusForAllKeys_with3Keys()
490 .isEqualTo(RecoveryController.RECOVERY_STATUS_PERMANENT_FAILURE); in testInvalidateKeysForUser_withSingleKey()
517 .isEqualTo(RecoveryController.RECOVERY_STATUS_PERMANENT_FAILURE); in testInvalidateKeysForUserIdOnCustomScreenLock()
/aosp12/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/
H A DApplicationKeyStorage.java19 import static android.security.keystore.recovery.RecoveryController.ERROR_SERVICE_INTERNAL_ERROR;
H A DRecoverableKeyStoreDb.java25 import android.security.keystore.recovery.RecoveryController;
402 RecoveryController.RECOVERY_STATUS_PERMANENT_FAILURE); in invalidateKeysForUser()
414 RecoveryController.RECOVERY_STATUS_PERMANENT_FAILURE); in invalidateKeysForUserIdOnCustomScreenLock()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
H A DKeySyncTaskTest.java49 import android.security.keystore.recovery.RecoveryController;
799 assertEquals(RecoveryController.RECOVERY_STATUS_SYNC_IN_PROGRESS, status); in run_customLockScreen_RecoveryStatusFailure()
806 assertEquals(RecoveryController.RECOVERY_STATUS_PERMANENT_FAILURE, status); in run_customLockScreen_RecoveryStatusFailure()
H A DRecoverableKeyStoreManagerTest.java21 import static android.security.keystore.recovery.RecoveryController.ERROR_BAD_CERTIFICATE_FORMAT;
22 import static android.security.keystore.recovery.RecoveryController.ERROR_DOWNGRADE_CERTIFICATE;
23 import static android.security.keystore.recovery.RecoveryController.ERROR_INVALID_CERTIFICATE;

12