/frameworks/base/core/java/android/app/backup/ |
D | BackupManager.java | 377 @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 …]
|
D | BackupAnnotations.java | 34 OperationType.BACKUP, 39 int BACKUP = 0; field
|
D | BackupRestoreEventLogger.java | 118 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/ |
D | UserBackupManagerServiceTest.java | 174 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/ |
D | ActiveRestoreSessionTest.java | 164 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/ |
D | BackupRestoreEventLoggerTest.java | 19 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()
|
D | BackupAgentTest.java | 100 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()
|
D | BackupManagerTest.java | 76 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/ |
D | LifecycleOperationStorageTest.java | 110 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/ |
D | OperationStorage.java | 63 OpType.BACKUP, 71 int BACKUP = 2; field
|
D | UserBackupManagerService.java | 625 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 …]
|
D | BackupPasswordManager.java | 85 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.BACKUP, in hasBackupPassword() 113 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.BACKUP, in setBackupPassword()
|
D | BackupManagerService.java | 469 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/ |
D | ProcessStateEnum.aidl | 57 BACKUP = 9, enumConstant
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/utils/ |
D | BackupManagerMonitorEventSenderTest.java | 200 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/ |
D | ActiveRestoreSession.java | 94 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/ |
D | backup_file_with_long_name | 1 ANDROID BACKUP
|
/frameworks/native/libs/binder/include_activitymanager/binder/ |
D | ActivityManager.h | 64 DECLARE_PROCESS_STATE(BACKUP),
|
/frameworks/base/tests/LegacyRestoreTest/ |
D | jbmr2-encrypted-settings-abcd.ab | 1 ANDROID BACKUP
|
D | kk-fixed-encrypted-settings-abcd.ab | 1 ANDROID BACKUP
|
/frameworks/proto_logging/stats/enums/service/ |
D | procstats_enum.proto | 107 // Various background processes; IMPORTANT_BACKGROUND, TRANSIENT_BACKGROUND, BACKUP, SERVICE,
|
/frameworks/base/services/backup/java/com/android/server/backup/internal/ |
D | LifecycleOperationStorage.java | 144 if (op.type == OpType.BACKUP && op.state == OpState.PENDING) { in isBackupOperationInProgress()
|
/frameworks/base/packages/WallpaperBackup/test/src/com/android/wallpaperbackup/ |
D | WallpaperEventLoggerTest.java | 396 mEventLogger = new BackupRestoreEventLogger(BackupAnnotations.OperationType.BACKUP); in setUpLoggerForBackup()
|
D | WallpaperBackupAgentTest.java | 135 BackupAnnotations.OperationType.BACKUP); in setUp() 976 BackupAnnotations.OperationType.BACKUP); in markAgentAsOverQuota()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/ |
D | UserBackupManagerServiceTest.java | 120 mContext.getTestablePermissions().setPermission(android.Manifest.permission.BACKUP, in setUp()
|