Home
last modified time | relevance | path

Searched refs:eligibilityRules (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/restore/
DActiveRestoreSessionTest.java112 BackupEligibilityRules eligibilityRules = mRestoreSession.getBackupEligibilityRules( in testGetBackupEligibilityRules_skipRestoreFlagOn_skipsLaunchedAppRestore() local
115 assertThat(eligibilityRules.isAppEligibleForRestore(mTestApp)).isFalse(); in testGetBackupEligibilityRules_skipRestoreFlagOn_skipsLaunchedAppRestore()
129 BackupEligibilityRules eligibilityRules = mRestoreSession.getBackupEligibilityRules( in testGetBackupEligibilityRules_skipRestoreFlagOff_allowsAppRestore() local
132 assertThat(eligibilityRules.isAppEligibleForRestore(mTestApp)).isTrue(); in testGetBackupEligibilityRules_skipRestoreFlagOff_allowsAppRestore()
/frameworks/base/services/backup/java/com/android/server/backup/params/
DAdbBackupParams.java39 BackupEligibilityRules eligibilityRules) { in AdbBackupParams() argument
50 backupEligibilityRules = eligibilityRules; in AdbBackupParams()
DRestoreParams.java50 BackupEligibilityRules eligibilityRules) { in createForSinglePackage() argument
61 eligibilityRules); in createForSinglePackage()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/utils/
DBackupEligibilityRulesTest.java300 BackupEligibilityRules eligibilityRules = getBackupEligibilityRules( in appIsEligibleForBackup_backupNotAllowedAndInMigration_returnsTrue() local
302 boolean isEligible = eligibilityRules.appIsEligibleForBackup(applicationInfo); in appIsEligibleForBackup_backupNotAllowedAndInMigration_returnsTrue()
312 BackupEligibilityRules eligibilityRules = getBackupEligibilityRules( in appIsEligibleForBackup_backupNotAllowedForSystemAppAndInMigration_returnsFalse() local
314 boolean isEligible = eligibilityRules.appIsEligibleForBackup(applicationInfo); in appIsEligibleForBackup_backupNotAllowedForSystemAppAndInMigration_returnsFalse()
325 BackupEligibilityRules eligibilityRules = getBackupEligibilityRules( in appIsEligibleForBackup_adbBackupNotAllowed_returnsFalseForAdbBackup() local
331 boolean isEligible = eligibilityRules.appIsEligibleForBackup(applicationInfo); in appIsEligibleForBackup_adbBackupNotAllowed_returnsFalseForAdbBackup()
342 BackupEligibilityRules eligibilityRules = getBackupEligibilityRules( in appIsEligibleForBackup_adbBackupAllowed_returnsTrueForAdbBackup() local
348 boolean isEligible = eligibilityRules.appIsEligibleForBackup(applicationInfo); in appIsEligibleForBackup_adbBackupAllowed_returnsTrueForAdbBackup()
359 BackupEligibilityRules eligibilityRules = getBackupEligibilityRules( in appIsEligibleForBackup_debuggableNonPrivilegedApp_returnsTrueForAdbBackup() local
362 boolean isEligible = eligibilityRules.appIsEligibleForBackup(applicationInfo); in appIsEligibleForBackup_debuggableNonPrivilegedApp_returnsTrueForAdbBackup()
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DRestoreUtils.java168 BackupEligibilityRules eligibilityRules = in installApk() local
171 if (eligibilityRules.signaturesMatch(sigs, pkg)) { in installApk()
DTarBackupReader.java415 PackageManagerInternal pmi, int userId, BackupEligibilityRules eligibilityRules, in chooseRestorePolicy() argument
428 if (eligibilityRules.isAppBackupAllowed(pkgInfo.applicationInfo)) { in chooseRestorePolicy()
440 if (eligibilityRules.signaturesMatch(signatures, pkgInfo)) { in chooseRestorePolicy()
/frameworks/base/services/backup/java/com/android/server/backup/restore/
DPerformAdbRestoreTask.java112 BackupEligibilityRules eligibilityRules = new BackupEligibilityRules( in run() local
120 true, 0 /*unused*/, true, eligibilityRules); in run()
/frameworks/base/services/backup/java/com/android/server/backup/
DUserBackupManagerService.java2867 BackupEligibilityRules eligibilityRules = getEligibilityRulesForOperation( in adbBackup() local
2871 pkgList, eligibilityRules); in adbBackup()