Home
last modified time | relevance | path

Searched refs:RestorePolicy (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/
DTarBackupReaderTest.java58 import com.android.server.backup.restore.RestorePolicy;
150 RestorePolicy restorePolicy = tarBackupReader.chooseRestorePolicy( in readTarHeaders_backupNotEncrypted_correctlyReadsPaxHeader()
154 assertThat(restorePolicy).isEqualTo(RestorePolicy.IGNORE); in readTarHeaders_backupNotEncrypted_correctlyReadsPaxHeader()
168 assertThat(restorePolicy).isEqualTo(RestorePolicy.IGNORE); in readTarHeaders_backupNotEncrypted_correctlyReadsPaxHeader()
227 RestorePolicy policy = tarBackupReader.chooseRestorePolicy(mPackageManagerStub, in chooseRestorePolicy_signaturesIsNull_returnsIgnore()
231 assertThat(policy).isEqualTo(RestorePolicy.IGNORE); in chooseRestorePolicy_signaturesIsNull_returnsIgnore()
248 RestorePolicy policy = tarBackupReader.chooseRestorePolicy(mPackageManagerStub, in chooseRestorePolicy_packageDoesNotExistAndAllowApksAndHasApk_returnsAcceptIfApk()
252 assertThat(policy).isEqualTo(RestorePolicy.ACCEPT_IF_APK); in chooseRestorePolicy_packageDoesNotExistAndAllowApksAndHasApk_returnsAcceptIfApk()
273 RestorePolicy policy = tarBackupReader.chooseRestorePolicy(mPackageManagerStub, in chooseRestorePolicy_packageDoesNotExistAndAllowApksAndDoesNotHaveApk_returnsAcceptIfApkLogsCannotRestore()
277 assertThat(policy).isEqualTo(RestorePolicy.ACCEPT_IF_APK); in chooseRestorePolicy_packageDoesNotExistAndAllowApksAndDoesNotHaveApk_returnsAcceptIfApkLogsCannotRestore()
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/restore/
DFullRestoreEngine.java103 private final HashMap<String, RestorePolicy> mPackagePolicies
210 mPackagePolicies.put(pkg, RestorePolicy.IGNORE); in restoreOneFile()
235 RestorePolicy restorePolicy = tarBackupReader.chooseRestorePolicy( in restoreOneFile()
263 RestorePolicy policy = mPackagePolicies.get(pkg); in restoreOneFile()
285 ? RestorePolicy.ACCEPT in restoreOneFile()
286 : RestorePolicy.IGNORE); in restoreOneFile()
295 mPackagePolicies.put(pkg, RestorePolicy.IGNORE); in restoreOneFile()
319 mPackagePolicies.put(pkg, RestorePolicy.IGNORE); in restoreOneFile()
391 mPackagePolicies.put(pkg, RestorePolicy.IGNORE); in restoreOneFile()
527 mPackagePolicies.put(pkg, RestorePolicy.IGNORE); in restoreOneFile()
DRestorePolicy.java22 public enum RestorePolicy { enum
DPerformAdbRestoreTask.java90 private final HashMap<String, RestorePolicy> mPackagePolicies
135 mPackagePolicies.put(SHARED_BACKUP_AGENT_PACKAGE, RestorePolicy.ACCEPT); in run()
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DTarBackupReader.java60 import com.android.server.backup.restore.RestorePolicy;
389 public RestorePolicy chooseRestorePolicy(PackageManager packageManager, in chooseRestorePolicy()
393 return RestorePolicy.IGNORE; in chooseRestorePolicy()
396 RestorePolicy policy = RestorePolicy.IGNORE; in chooseRestorePolicy()
426 policy = RestorePolicy.ACCEPT; in chooseRestorePolicy()
429 policy = RestorePolicy.ACCEPT; in chooseRestorePolicy()
446 policy = RestorePolicy.ACCEPT_IF_APK; in chooseRestorePolicy()
461 policy = RestorePolicy.IGNORE; in chooseRestorePolicy()
506 policy = RestorePolicy.ACCEPT_IF_APK; in chooseRestorePolicy()
508 policy = RestorePolicy.IGNORE; in chooseRestorePolicy()
[all …]
DRestoreUtils.java44 import com.android.server.backup.restore.RestorePolicy;
73 HashMap<String, RestorePolicy> packagePolicies, in installApk()
132 if (packagePolicies.get(info.packageName) != RestorePolicy.ACCEPT) { in installApk()