Home
last modified time | relevance | path

Searched refs:BackupDestination (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/core/java/android/app/backup/
DBackupAnnotations.java50 BackupDestination.CLOUD,
51 BackupDestination.DEVICE_TRANSFER,
52 BackupDestination.ADB_BACKUP
54 public @interface BackupDestination { annotation in BackupAnnotations
DFullBackup.java21 import android.app.backup.BackupAnnotations.BackupDestination;
129 @BackupDestination final int mBackupDestination;
131 BackupSchemeId(String packageName, @BackupDestination int backupDestination) { in BackupSchemeId()
166 @BackupDestination int backupDestination) { in getBackupScheme()
179 BackupScheme testing = new BackupScheme(context, BackupDestination.CLOUD); in getBackupSchemeForTest()
306 @BackupDestination final int mBackupDestination;
429 BackupScheme(Context context, @BackupDestination int backupDestination) { in BackupScheme()
579 private void parseSchemeForBackupDestination(@BackupDestination int backupDestination) in parseSchemeForBackupDestination()
603 if (backupDestination == BackupDestination.DEVICE_TRANSFER in parseSchemeForBackupDestination()
619 @BackupDestination int backupDestination) { in getConfigSectionForBackupDestination()
[all …]
DBackupAgent.java23 import android.app.backup.BackupAnnotations.BackupDestination;
143 private static final int DEFAULT_BACKUP_DESTINATION = BackupDestination.CLOUD;
221 @BackupDestination private volatile int mBackupDestination = DEFAULT_BACKUP_DESTINATION;
290 public void onCreate(UserHandle user, @BackupDestination int backupDestination) { in onCreate()
299 public void onCreate(UserHandle user, @BackupDestination int backupDestination, in onCreate()
/frameworks/base/core/tests/coretests/src/android/app/backup/
DBackupAgentTest.java25 import android.app.backup.BackupAnnotations.BackupDestination;
82 BackupAgent backupAgent = getAgentForBackupDestination(BackupDestination.CLOUD); in testGetIncludeExcludeRules_isNotMigration_returnsRules()
100 agent.onCreate(USER_HANDLE, BackupDestination.CLOUD, OperationType.BACKUP); in getBackupRestoreEventLogger_afterOnCreateForBackup_initializedForBackup()
109 agent.onCreate(USER_HANDLE, BackupDestination.CLOUD, OperationType.RESTORE); in getBackupRestoreEventLogger_afterOnCreateForRestore_initializedForRestore()
119 agent.onCreate(USER_HANDLE, BackupDestination.CLOUD, OperationType.BACKUP); in getBackupRestoreEventLogger_afterBackup_containsLogsLoggedByAgent()
131 agent.onCreate(USER_HANDLE, BackupDestination.CLOUD, OperationType.BACKUP); in testClearLogger_clearsPendingLogs()
142 agent.onCreate(USER_HANDLE, BackupDestination.CLOUD, OperationType.BACKUP); in testClearLoggerBetweenBackups_restartsSuccessCount()
157 agent.onCreate(USER_HANDLE, BackupDestination.CLOUD, OperationType.RESTORE); in doRestoreFile_agentOverrideIgnoresFile_consumesAllBytesInBuffer()
177 private BackupAgent getAgentForBackupDestination(@BackupDestination int backupDestination) { in getAgentForBackupDestination()
DBackupManagerTest.java25 import android.app.backup.BackupAnnotations.BackupDestination;
75 agent.onCreate(UserHandle.SYSTEM, BackupDestination.CLOUD, in testGetBackupRestoreEventLogger_returnsBackupLoggerForBackup()
86 agent.onCreate(UserHandle.SYSTEM, BackupDestination.CLOUD, in testGetBackupRestoreEventLogger_returnsRestoreLoggerForRestore()
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DBackupEligibilityRules.java28 import android.app.backup.BackupAnnotations.BackupDestination;
82 @BackupDestination private final int mBackupDestination;
108 BackupDestination.CLOUD); in forBackup()
115 @BackupDestination int backupDestination) { in BackupEligibilityRules()
124 @BackupDestination int backupDestination, in BackupEligibilityRules()
206 case BackupDestination.DEVICE_TRANSFER: in isAppBackupAllowed()
213 case BackupDestination.ADB_BACKUP: in isAppBackupAllowed()
253 case BackupDestination.CLOUD: in isAppBackupAllowed()
/frameworks/base/services/core/java/com/android/server/am/
DBackupRecord.java19 import android.app.backup.BackupAnnotations.BackupDestination;
34 @BackupDestination final int backupDestination; // see BackupAnnotations#BackupDestination
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/utils/
DBackupEligibilityRulesTest.java26 import android.app.backup.BackupAnnotations.BackupDestination;
90 mBackupEligibilityRules = getBackupEligibilityRules(BackupDestination.CLOUD); in setUp()
301 BackupDestination.DEVICE_TRANSFER); in appIsEligibleForBackup_backupNotAllowedAndInMigration_returnsTrue()
313 BackupDestination.DEVICE_TRANSFER); in appIsEligibleForBackup_backupNotAllowedForSystemAppAndInMigration_returnsFalse()
326 BackupDestination.ADB_BACKUP); in appIsEligibleForBackup_adbBackupNotAllowed_returnsFalseForAdbBackup()
343 BackupDestination.ADB_BACKUP); in appIsEligibleForBackup_adbBackupAllowed_returnsTrueForAdbBackup()
360 BackupDestination.ADB_BACKUP); in appIsEligibleForBackup_debuggableNonPrivilegedApp_returnsTrueForAdbBackup()
374 BackupDestination.ADB_BACKUP); in appIsEligibleForBackup_allowBackupTrueBeforeS_returnsTrueForAdbBackup()
388 BackupDestination.ADB_BACKUP); in appIsEligibleForBackup_allowBackupFalseBeforeS_returnsFalseForAdbBackup()
870 mMockPackageManagerInternal, mUserId, mContext, BackupDestination.CLOUD, in isAppEligibleForRestore_hasBeenLaunched_returnsFalse()
[all …]
/frameworks/base/packages/WallpaperBackup/test/src/com/android/wallpaperbackup/
DWallpaperBackupAgentTest.java134 mWallpaperBackupAgent.onCreate(USER_HANDLE, BackupAnnotations.BackupDestination.CLOUD, in setUp()
622 mWallpaperBackupAgent.onCreate(USER_HANDLE, BackupAnnotations.BackupDestination.CLOUD, in testOnRestore_wallpaperImgSuccess_logsSuccess()
643 mWallpaperBackupAgent.onCreate(USER_HANDLE, BackupAnnotations.BackupDestination.CLOUD, in testOnRestore_lockWallpaperImgSuccess_logsSuccess()
658 mWallpaperBackupAgent.onCreate(USER_HANDLE, BackupAnnotations.BackupDestination.CLOUD, in testOnRestore_systemWallpaperImgMissingAndNoLive_logsFailure()
674 mWallpaperBackupAgent.onCreate(USER_HANDLE, BackupAnnotations.BackupDestination.CLOUD, in testOnRestore_wallpaperImgMissingAndNoLive_logsFailure()
691 mWallpaperBackupAgent.onCreate(USER_HANDLE, BackupAnnotations.BackupDestination.CLOUD, in testOnRestore_wallpaperInfoMissing_logsFailure()
706 mWallpaperBackupAgent.onCreate(USER_HANDLE, BackupAnnotations.BackupDestination.CLOUD, in testOnRestore_imgMissingButWallpaperInfoHasLive_doesNotLogImg()
730 mWallpaperBackupAgent.onCreate(USER_HANDLE, BackupAnnotations.BackupDestination.CLOUD, in testOnRestore_throwsException_logsErrors()
847 mWallpaperBackupAgent.onCreate(USER_HANDLE, BackupAnnotations.BackupDestination.CLOUD, in testParseCropHints()
975 mWallpaperBackupAgent.onCreate(USER_HANDLE, BackupAnnotations.BackupDestination.CLOUD, in markAgentAsOverQuota()
/frameworks/base/services/core/java/com/android/server/backup/
DSystemBackupAgent.java21 import android.app.backup.BackupAnnotations.BackupDestination;
119 public void onCreate(UserHandle user, @BackupDestination int backupDestination) { in onCreate()
/frameworks/base/services/backup/java/com/android/server/backup/restore/
DActiveRestoreSession.java28 import android.app.backup.BackupAnnotations.BackupDestination;
309 ? BackupDestination.DEVICE_TRANSFER : BackupDestination.CLOUD; in getBackupEligibilityRules()
DPerformAdbRestoreTask.java27 import android.app.backup.BackupAnnotations.BackupDestination;
117 BackupDestination.ADB_BACKUP); in run()
DFullRestoreEngine.java750 == BackupAnnotations.BackupDestination.DEVICE_TRANSFER) { in isRestorableFile()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/
DUserBackupManagerServiceTest.java37 import android.app.backup.BackupAnnotations.BackupDestination;
239 assertThat(backupDestination).isEqualTo(BackupDestination.CLOUD); in testGetBackupDestinationFromTransport_returnsCloudByDefault()
255 assertThat(backupDestination).isEqualTo(BackupDestination.DEVICE_TRANSFER); in testGetBackupDestinationFromTransport_returnsDeviceTransferForD2dTransport()
/frameworks/base/services/backup/java/com/android/server/backup/
DUserBackupManagerService.java51 import android.app.backup.BackupAnnotations.BackupDestination;
415 @BackupDestination private volatile long mAncestralBackupDestination;
569 BackupDestination.CLOUD); in UserBackupManagerService()
870 public void setAncestralBackupDestination(@BackupDestination int backupDestination) { in setAncestralBackupDestination()
1646 @BackupDestination int backupDestination) { in bindToAgentSynchronous()
1799 if (mAncestralBackupDestination == BackupDestination.DEVICE_TRANSFER in getEligibilityRulesForRestoreAtInstall()
1801 return getEligibilityRulesForOperation(BackupDestination.DEVICE_TRANSFER); in getEligibilityRulesForRestoreAtInstall()
2403 getEligibilityRulesForOperation(BackupDestination.CLOUD)); in beginFullBackup()
2868 BackupDestination.ADB_BACKUP); in adbBackup()
2956 getEligibilityRulesForOperation(BackupDestination.CLOUD)); in fullTransportBackup()
[all …]
DKeyValueAdbBackupEngine.java151 BackupAnnotations.BackupDestination.CLOUD); in bindToAgent()
/frameworks/base/services/backup/java/com/android/server/backup/internal/
DBackupHandler.java23 import android.app.backup.BackupAnnotations.BackupDestination;
243 BackupDestination.CLOUD)); in handleMessage()
/frameworks/base/core/java/android/app/
DActivityThread.java59 import android.app.backup.BackupAnnotations.BackupDestination;
889 @BackupDestination int backupDestination;
1161 int backupMode, int userId, @BackupDestination int backupDestination) { in scheduleCreateBackupAgent()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/
DKeyValueBackupTaskTest.java190 private static final int BACKUP_DESTINATION = BackupAnnotations.BackupDestination.CLOUD;