Searched refs:RestorePolicy (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/ |
D | TarBackupReaderTest.java | 58 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/ |
D | FullRestoreEngine.java | 103 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()
|
D | RestorePolicy.java | 22 public enum RestorePolicy { enum
|
D | PerformAdbRestoreTask.java | 90 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/ |
D | TarBackupReader.java | 60 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 …]
|
D | RestoreUtils.java | 44 import com.android.server.backup.restore.RestorePolicy; 73 HashMap<String, RestorePolicy> packagePolicies, in installApk() 132 if (packagePolicies.get(info.packageName) != RestorePolicy.ACCEPT) { in installApk()
|