Home
last modified time | relevance | path

Searched refs:BACKUP (Results 1 – 25 of 38) sorted by relevance

12

/frameworks/base/core/java/android/app/backup/
DBackupManager.java377 @RequiresPermission(android.Manifest.permission.BACKUP)
406 @RequiresPermission(android.Manifest.permission.BACKUP)
432 @RequiresPermission(allOf = {android.Manifest.permission.BACKUP,
454 @RequiresPermission(android.Manifest.permission.BACKUP)
486 @RequiresPermission(android.Manifest.permission.BACKUP)
490 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.BACKUP, in isBackupServiceActive()
513 @RequiresPermission(android.Manifest.permission.BACKUP)
533 @RequiresPermission(android.Manifest.permission.BACKUP)
553 @RequiresPermission(android.Manifest.permission.BACKUP)
573 @RequiresPermission(android.Manifest.permission.BACKUP)
[all …]
DBackupAnnotations.java34 OperationType.BACKUP,
39 int BACKUP = 0; field
DBackupRestoreEventLogger.java118 logSuccess(OperationType.BACKUP, dataType, count); in logItemsBackedUp()
136 logFailure(OperationType.BACKUP, dataType, count, error); in logItemsBackupFailed()
155 logMetaData(OperationType.BACKUP, dataType, metaData); in logBackupMetadata()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/
DUserBackupManagerServiceTest.java174 mShadowContext.grantPermissions(android.Manifest.permission.BACKUP); in testDestinationString()
190 mShadowContext.grantPermissions(android.Manifest.permission.BACKUP); in testDestinationString_whenTransportNotRegistered()
206 mShadowContext.denyPermissions(android.Manifest.permission.BACKUP); in testDestinationString_withoutPermission()
222 mShadowContext.grantPermissions(android.Manifest.permission.BACKUP); in testIsAppEligibleForBackup_whenAppNotEligible()
238 mShadowContext.grantPermissions(android.Manifest.permission.BACKUP); in testIsAppEligibleForBackup_whenAppEligible()
257 mShadowContext.denyPermissions(android.Manifest.permission.BACKUP); in testIsAppEligibleForBackup_withoutPermission()
275 mShadowContext.grantPermissions(android.Manifest.permission.BACKUP); in testFilterAppsEligibleForBackup()
296 mShadowContext.grantPermissions(android.Manifest.permission.BACKUP); in testFilterAppsEligibleForBackup_whenNoneIsEligible()
313 mShadowContext.denyPermissions(android.Manifest.permission.BACKUP); in testFilterAppsEligibleForBackup_withoutPermission()
353 mShadowContext.grantPermissions(android.Manifest.permission.BACKUP); in testSelectBackupTransport()
[all …]
/frameworks/base/services/robotests/backup/src/com/android/server/backup/restore/
DActiveRestoreSessionTest.java164 mShadowApplication.denyPermissions(android.Manifest.permission.BACKUP); in testGetAvailableRestoreSets_withoutPermission()
175 mShadowApplication.grantPermissions(android.Manifest.permission.BACKUP); in testGetAvailableRestoreSets_forNullObserver()
186 mShadowApplication.grantPermissions(android.Manifest.permission.BACKUP); in testGetAvailableRestoreSets_whenTransportNotRegistered()
197 mShadowApplication.grantPermissions(android.Manifest.permission.BACKUP); in testGetAvailableRestoreSets()
216 mShadowApplication.grantPermissions(android.Manifest.permission.BACKUP); in testGetAvailableRestoreSets_forEmptyRestoreSets()
232 mShadowApplication.grantPermissions(android.Manifest.permission.BACKUP); in testGetAvailableRestoreSets_forNullRestoreSets()
250 mShadowApplication.grantPermissions(android.Manifest.permission.BACKUP); in testRestoreAll()
275 mShadowApplication.grantPermissions(android.Manifest.permission.BACKUP); in testRestoreAll_whenNoRestoreSets()
286 mShadowApplication.grantPermissions(android.Manifest.permission.BACKUP); in testRestoreAll_whenSinglePackageSession()
298 mShadowApplication.grantPermissions(android.Manifest.permission.BACKUP); in testRestoreAll_whenSessionEnded()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/backup/
DBackupRestoreEventLoggerTest.java19 import static android.app.backup.BackupAnnotations.OperationType.BACKUP;
74 mLogger = new BackupRestoreEventLogger(BACKUP); in testBackupLogger_rejectsRestoreLogs()
97 mLogger = new BackupRestoreEventLogger(BACKUP); in testBackupLogger_datatypeLimitFlagOff_onlyAcceptsAllowedNumberOfDataTypes()
139 mLogger = new BackupRestoreEventLogger(BACKUP); in testBackupLogger_datatypeLimitFlagOn_onlyAcceptsAllowedNumberOfDataTypes()
180 mLogger = new BackupRestoreEventLogger(BACKUP); in testLogBackupMetadata_repeatedCalls_recordsLatestMetadataHash()
204 mLogger = new BackupRestoreEventLogger(BACKUP); in testLogItemsBackedUp_repeatedCalls_recordsTotalItems()
230 mLogger = new BackupRestoreEventLogger(BACKUP); in testLogItemsBackedUp_multipleDataTypes_recordsEachDataType()
260 mLogger = new BackupRestoreEventLogger(BACKUP); in testLogItemsBackupFailed_repeatedCalls_recordsTotalItems()
286 mLogger = new BackupRestoreEventLogger(BACKUP); in testLogItemsBackupFailed_multipleErrors_recordsEachError()
358 mLogger = new BackupRestoreEventLogger(BACKUP); in testClearData_clearsAllResults()
DBackupAgentTest.java100 agent.onCreate(USER_HANDLE, BackupDestination.CLOUD, OperationType.BACKUP); in getBackupRestoreEventLogger_afterOnCreateForBackup_initializedForBackup()
103 OperationType.BACKUP); in getBackupRestoreEventLogger_afterOnCreateForBackup_initializedForBackup()
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()
DBackupManagerTest.java76 OperationType.BACKUP); in testGetBackupRestoreEventLogger_returnsBackupLoggerForBackup()
80 assertThat(logger.getOperationType()).isEqualTo(OperationType.BACKUP); in testGetBackupRestoreEventLogger_returnsBackupLoggerForBackup()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/internal/
DLifecycleOperationStorageTest.java110 MULTIPLE_PKGS_1, mCallback, OpType.BACKUP); in testRegisterOperationForPackages_multiplePackage()
112 MULTIPLE_PKGS_2, mCallback, OpType.BACKUP); in testRegisterOperationForPackages_multiplePackage()
148 mCallback, OpType.BACKUP); in testRemoveOperation_removesPackageMappings()
150 mCallback, OpType.BACKUP); in testRemoveOperation_removesPackageMappings()
172 mOpStorage.registerOperation(TOKEN_3, OpState.PENDING, mCallback, OpType.BACKUP); in testIsBackupOperationInProgress()
/frameworks/base/services/backup/java/com/android/server/backup/
DOperationStorage.java63 OpType.BACKUP,
71 int BACKUP = 2; field
DUserBackupManagerService.java625 android.Manifest.permission.BACKUP, in UserBackupManagerService()
1814 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.BACKUP, in getAvailableRestoreToken()
1852 mContext.enforceCallingPermission(android.Manifest.permission.BACKUP, "requestBackup"); in requestBackup()
1967 mContext.enforceCallingPermission(android.Manifest.permission.BACKUP, "cancelBackups"); in cancelBackups()
1974 mOperationStorage.operationTokensForOpType(OpType.BACKUP); in cancelBackups()
2532 if ((mContext.checkPermission(android.Manifest.permission.BACKUP, Binder.getCallingPid(), in dataChangedTargets()
2589 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.BACKUP, in initializeTransports()
2611 mContext.enforceCallingPermission(android.Manifest.permission.BACKUP, in setAncestralSerialNumber()
2691 if ((mContext.checkPermission(android.Manifest.permission.BACKUP, Binder.getCallingPid(), in clearBackupData()
2746 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.BACKUP, "backupNow"); in backupNow()
[all …]
DBackupPasswordManager.java85 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.BACKUP, in hasBackupPassword()
113 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.BACKUP, in setBackupPassword()
DBackupManagerService.java469 Manifest.permission.BACKUP, "No permission to configure backup activity"); in enforcePermissionsOnUser()
555 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.BACKUP, in isBackupServiceActive()
/frameworks/base/core/java/android/app/
DProcessStateEnum.aidl57 BACKUP = 9, enumConstant
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/utils/
DBackupManagerMonitorEventSenderTest.java200 extras.putInt(EXTRA_LOG_OPERATION_TYPE, OperationType.BACKUP); in monitorEvent_eventOpTypeIsBackup_doNotSendBundleToDumpsys()
222 IBackupAgent agent = setUpLoggingAgentForOperation(OperationType.BACKUP); in monitorAgentLoggingResults_onBackup_fillsBundleCorrectly()
228 assertCorrectBundleSentToMonitor(monitor, OperationType.BACKUP); in monitorAgentLoggingResults_onBackup_fillsBundleCorrectly()
277 packageInfo, loggingResults, OperationType.BACKUP); in sendAgentLoggingResults_onBackup_fillsBundleCorrectly()
279 assertCorrectBundleSentToMonitor(monitor, OperationType.BACKUP); in sendAgentLoggingResults_onBackup_fillsBundleCorrectly()
/frameworks/base/services/backup/java/com/android/server/backup/restore/
DActiveRestoreSession.java94 android.Manifest.permission.BACKUP, in getAvailableRestoreSets()
150 android.Manifest.permission.BACKUP, in restoreAll()
213 android.Manifest.permission.BACKUP, in restorePackages()
362 android.Manifest.permission.BACKUP, in restorePackage()
/frameworks/base/services/tests/mockingservicestests/res/raw/
Dbackup_file_with_long_name1 ANDROID BACKUP
/frameworks/native/libs/binder/include_activitymanager/binder/
DActivityManager.h64 DECLARE_PROCESS_STATE(BACKUP),
/frameworks/base/tests/LegacyRestoreTest/
Djbmr2-encrypted-settings-abcd.ab1 ANDROID BACKUP
Dkk-fixed-encrypted-settings-abcd.ab1 ANDROID BACKUP
/frameworks/proto_logging/stats/enums/service/
Dprocstats_enum.proto107 // Various background processes; IMPORTANT_BACKGROUND, TRANSIENT_BACKGROUND, BACKUP, SERVICE,
/frameworks/base/services/backup/java/com/android/server/backup/internal/
DLifecycleOperationStorage.java144 if (op.type == OpType.BACKUP && op.state == OpState.PENDING) { in isBackupOperationInProgress()
/frameworks/base/packages/WallpaperBackup/test/src/com/android/wallpaperbackup/
DWallpaperEventLoggerTest.java396 mEventLogger = new BackupRestoreEventLogger(BackupAnnotations.OperationType.BACKUP); in setUpLoggerForBackup()
DWallpaperBackupAgentTest.java135 BackupAnnotations.OperationType.BACKUP); in setUp()
976 BackupAnnotations.OperationType.BACKUP); in markAgentAsOverQuota()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/
DUserBackupManagerServiceTest.java120 mContext.getTestablePermissions().setPermission(android.Manifest.permission.BACKUP, in setUp()

12