/frameworks/base/core/tests/coretests/src/android/app/backup/ |
D | BackupAgentTest.java | 24 import android.app.backup.BackupAgent.IncludeExcludeRules; 82 BackupAgent backupAgent = getAgentForBackupDestination(BackupDestination.CLOUD); in testGetIncludeExcludeRules_isNotMigration_returnsRules() 92 BackupAgent agent = new TestFullBackupAgent(); in getBackupRestoreEventLogger_beforeOnCreate_isNull() 99 BackupAgent agent = new TestFullBackupAgent(); in getBackupRestoreEventLogger_afterOnCreateForBackup_initializedForBackup() 108 BackupAgent agent = new TestFullBackupAgent(); in getBackupRestoreEventLogger_afterOnCreateForRestore_initializedForRestore() 118 BackupAgent agent = new TestFullBackupAgent(); in getBackupRestoreEventLogger_afterBackup_containsLogsLoggedByAgent() 130 BackupAgent agent = new TestFullBackupAgent(); in testClearLogger_clearsPendingLogs() 141 BackupAgent agent = new TestFullBackupAgent(); in testClearLoggerBetweenBackups_restartsSuccessCount() 155 BackupAgent agent = new TestRestoreIgnoringFullBackupAgent(); in doRestoreFile_agentOverrideIgnoresFile_consumesAllBytesInBuffer() 165 agentBinder.doRestoreFile(pipes[0], /* length= */ 5, BackupAgent.TYPE_FILE, in doRestoreFile_agentOverrideIgnoresFile_consumesAllBytesInBuffer() [all …]
|
D | BackupManagerTest.java | 74 BackupAgent agent = getTestAgent(); in testGetBackupRestoreEventLogger_returnsBackupLoggerForBackup() 85 BackupAgent agent = getTestAgent(); in testGetBackupRestoreEventLogger_returnsRestoreLoggerForRestore() 96 BackupAgent agent = getTestAgent(); in testGetBackupRestoreEventLogger_uninitialisedAgent_throwsException() 109 private static BackupAgent getTestAgent() { in getTestAgent() 110 return new BackupAgent() { in getTestAgent()
|
D | FullBackupTest.java | 101 BackupAgent.FLAG_CLIENT_SIDE_ENCRYPTION_ENABLED, in testparseBackupSchemeFromXml_onlyIncludeRequireEncryptionFlag() 123 BackupAgent.FLAG_FAKE_CLIENT_SIDE_ENCRYPTION_ENABLED, in testParseBackupSchemeFromXml_onlyIncludeRequireFakeEncryptionFlag() 147 BackupAgent.FLAG_DEVICE_TO_DEVICE_TRANSFER, in testparseBackupSchemeFromXml_onlyIncludeRequireD2DFlag() 172 BackupAgent.FLAG_CLIENT_SIDE_ENCRYPTION_ENABLED in testparseBackupSchemeFromXml_onlyIncludeRequireEncryptionAndD2DFlags() 173 | BackupAgent.FLAG_DEVICE_TO_DEVICE_TRANSFER, in testparseBackupSchemeFromXml_onlyIncludeRequireEncryptionAndD2DFlags() 198 BackupAgent.FLAG_DEVICE_TO_DEVICE_TRANSFER, in testparseBackupSchemeFromXml_onlyIncludeRequireD2DFlagAndIngoreGarbage() 447 BackupAgent.FLAG_CLIENT_SIDE_ENCRYPTION_ENABLED); in testParseNewBackupSchemeFromXml_emptyCloudSectionWithEncryptionFlagIsRespected()
|
/frameworks/base/services/robotests/backup/src/android/app/backup/ |
D | ForwardingBackupAgent.java | 33 public class ForwardingBackupAgent extends BackupAgent { 35 public static BackupAgent forward(BackupAgent backupAgent) { in forward() 39 private final BackupAgent mBackupAgent; 41 private ForwardingBackupAgent(BackupAgent backupAgent) { in ForwardingBackupAgent()
|
/frameworks/base/core/java/android/app/backup/ |
D | BackupAgent.java | 140 public abstract class BackupAgent extends ContextWrapper { class 265 public BackupAgent() { in BackupAgent() method in BackupAgent 1111 BackupAgent.this.onBackup(oldState, output, newState); in doBackup() 1114 Log.d(TAG, "onBackup (" + BackupAgent.this.getClass().getName() + ") threw", ex); in doBackup() 1117 Log.d(TAG, "onBackup (" + BackupAgent.this.getClass().getName() + ") threw", ex); in doBackup() 1170 BackupAgent.this.onRestore(input, appVersionCode, newState, in doRestoreInternal() 1174 Log.d(TAG, "onRestore (" + BackupAgent.this.getClass().getName() + ") threw", ex); in doRestoreInternal() 1177 Log.d(TAG, "onRestore (" + BackupAgent.this.getClass().getName() + ") threw", ex); in doRestoreInternal() 1209 BackupAgent.this.onFullBackup(new FullBackupDataOutput( in doFullBackup() 1212 … Log.d(TAG, "onFullBackup (" + BackupAgent.this.getClass().getName() + ") threw", ex); in doFullBackup() [all …]
|
D | FullBackupAgent.java | 29 public class FullBackupAgent extends BackupAgent {
|
D | BackupAgentHelper.java | 55 public class BackupAgentHelper extends BackupAgent {
|
D | RestoreSet.java | 21 import android.app.backup.BackupAgent.BackupTransportFlags;
|
D | FullBackup.java | 217 if (type == BackupAgent.TYPE_DIRECTORY) { in restoreFile() 670 mRequiredTransportFlags = BackupAgent.FLAG_CLIENT_SIDE_ENCRYPTION_ENABLED; in parseRequiredTransportFlags() 835 flags |= BackupAgent.FLAG_CLIENT_SIDE_ENCRYPTION_ENABLED; in getRequiredFlagsFromString() 838 flags |= BackupAgent.FLAG_DEVICE_TO_DEVICE_TRANSFER; in getRequiredFlagsFromString() 841 flags |= BackupAgent.FLAG_FAKE_CLIENT_SIDE_ENCRYPTION_ENABLED; in getRequiredFlagsFromString()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/restore/ |
D | FullRestoreEngineTest.java | 21 import android.app.backup.BackupAgent; 113 return new TestFile(path, BackupAgent.TYPE_DIRECTORY); in dir() 117 return new TestFile(path, BackupAgent.TYPE_FILE); in file()
|
D | ActiveRestoreSessionTest.java | 26 import android.app.backup.BackupAgent; 108 /* backupTransportFlags */ BackupAgent.FLAG_SKIP_RESTORE_FOR_LAUNCHED_APPS); in testGetBackupEligibilityRules_skipRestoreFlagOn_skipsLaunchedAppRestore() 125 /* backupTransportFlags */ BackupAgent.FLAG_SKIP_RESTORE_FOR_LAUNCHED_APPS); in testGetBackupEligibilityRules_skipRestoreFlagOff_allowsAppRestore()
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | FileMetadata.java | 21 import android.app.backup.BackupAgent; 64 b.append((type == BackupAgent.TYPE_DIRECTORY) ? 'd' : '-'); in dump()
|
/frameworks/base/packages/SettingsLib/DataStore/src/com/android/settingslib/datastore/ |
D | BackupRestoreContext.kt | 19 import android.app.backup.BackupAgent
|
/frameworks/base/tests/HugeBackup/src/com/android/hugebackup/ |
D | HugeAgent.java | 19 import android.app.backup.BackupAgent; 39 public class HugeAgent extends BackupAgent {
|
/frameworks/base/services/core/java/com/android/server/backup/ |
D | AppGrammaticalGenderBackupHelper.java | 19 import static android.app.backup.BackupAgent.FLAG_CLIENT_SIDE_ENCRYPTION_ENABLED;
|
D | SystemGrammaticalGenderBackupHelper.java | 19 import static android.app.backup.BackupAgent.FLAG_CLIENT_SIDE_ENCRYPTION_ENABLED;
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/ |
D | KeyValueBackupTaskTest.java | 76 import android.app.backup.BackupAgent; 499 BackupAgent pmAgent = spy(createPmAgent()); in testRunTask_whenNonPmPackageAndNonIncremental_doesNotBackUpPm() 513 BackupAgent pmAgent = spy(createPmAgent()); in testRunTask_whenNonPmPackageAndPmAndNonIncremental_backsUpPm() 528 BackupAgent pmAgent = spy(createPmAgent()); in testRunTask_whenNonPmPackageAndIncremental_backsUpPm() 1031 int flags = BackupAgent.FLAG_CLIENT_SIDE_ENCRYPTION_ENABLED; in testRunTask_whenTransportProvidesFlags_passesThemToTheAgent() 1057 int flags = BackupAgent.FLAG_CLIENT_SIDE_ENCRYPTION_ENABLED; in testRunTask_whenTransportProvidesFlagsAndMultipleAgents_passesToAll() 1060 BackupAgent agent1 = agentMocks.get(0).agent; in testRunTask_whenTransportProvidesFlagsAndMultipleAgents_passesToAll() 1061 BackupAgent agent2 = agentMocks.get(1).agent; in testRunTask_whenTransportProvidesFlagsAndMultipleAgents_passesToAll() 1075 int flags = BackupAgent.FLAG_CLIENT_SIDE_ENCRYPTION_ENABLED; in testRunTask_whenTransportChangeFlagsAfterTaskCreation() 1339 BackupAgent pmAgent = spy(createPmAgent()); in testRunTask_whenPmAgentWritesData_callsTransportPerformBackupWithAgentData() [all …]
|
/frameworks/base/services/backup/ |
D | flags.aconfig | 33 description: "Enables clearing the pipe buffer after restoring a single file to a BackupAgent."
|
/frameworks/multidex/library/jack-meta/ |
D | legacyMultidexInstallation.jpp | 29 | class android.app.backup.BackupAgent
|
/frameworks/base/packages/LocalTransport/src/com/android/localtransport/ |
D | LocalTransport.java | 20 import android.app.backup.BackupAgent; 179 flags |= BackupAgent.FLAG_FAKE_CLIENT_SIDE_ENCRYPTION_ENABLED; in getTransportFlags() 182 flags |= BackupAgent.FLAG_DEVICE_TO_DEVICE_TRANSFER; in getTransportFlags() 185 flags |= BackupAgent.FLAG_CLIENT_SIDE_ENCRYPTION_ENABLED; in getTransportFlags()
|
/frameworks/base/services/backup/java/com/android/server/backup/restore/ |
D | ActiveRestoreSession.java | 27 import android.app.backup.BackupAgent; 316 & BackupAgent.FLAG_SKIP_RESTORE_FOR_LAUNCHED_APPS) != 0; in getBackupEligibilityRules()
|
D | FullRestoreEngine.java | 30 import android.app.backup.BackupAgent; 679 return file.type == BackupAgent.TYPE_DIRECTORY && (file.mode & OsConstants.S_IWUSR) == 0; in isReadOnlyDir()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/ |
D | UserBackupManagerServiceTest.java | 35 import android.app.backup.BackupAgent; 251 BackupAgent.FLAG_DEVICE_TO_DEVICE_TRANSFER); in testGetBackupDestinationFromTransport_returnsDeviceTransferForD2dTransport()
|
/frameworks/base/services/backup/java/com/android/server/backup/keyvalue/ |
D | KeyValueBackupTask.java | 30 import android.app.backup.BackupAgent; 865 …BackupAgent pmAgent = mBackupManagerService.makeMetadataAgentWithEligibilityRules(mBackupEligibili… in extractPmAgentData() 981 if (resultCode == BackupAgent.RESULT_ERROR) { in checkAgentResult() 985 Preconditions.checkState(resultCode == BackupAgent.RESULT_SUCCESS); in checkAgentResult()
|
/frameworks/base/services/backup/java/com/android/server/backup/utils/ |
D | TarBackupReader.java | 47 import android.app.backup.BackupAgent; 164 info.type = BackupAgent.TYPE_FILE; in readTarHeaders() 167 info.type = BackupAgent.TYPE_DIRECTORY; in readTarHeaders()
|