Home
last modified time | relevance | path

Searched refs:BackupAgent (Results 1 – 25 of 39) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/app/backup/
DBackupAgentTest.java24 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 …]
DBackupManagerTest.java74 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()
DFullBackupTest.java101 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/
DForwardingBackupAgent.java33 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/
DBackupAgent.java140 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 …]
DFullBackupAgent.java29 public class FullBackupAgent extends BackupAgent {
DBackupAgentHelper.java55 public class BackupAgentHelper extends BackupAgent {
DRestoreSet.java21 import android.app.backup.BackupAgent.BackupTransportFlags;
DFullBackup.java217 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/
DFullRestoreEngineTest.java21 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()
DActiveRestoreSessionTest.java26 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/
DFileMetadata.java21 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/
DBackupRestoreContext.kt19 import android.app.backup.BackupAgent
/frameworks/base/tests/HugeBackup/src/com/android/hugebackup/
DHugeAgent.java19 import android.app.backup.BackupAgent;
39 public class HugeAgent extends BackupAgent {
/frameworks/base/services/core/java/com/android/server/backup/
DAppGrammaticalGenderBackupHelper.java19 import static android.app.backup.BackupAgent.FLAG_CLIENT_SIDE_ENCRYPTION_ENABLED;
DSystemGrammaticalGenderBackupHelper.java19 import static android.app.backup.BackupAgent.FLAG_CLIENT_SIDE_ENCRYPTION_ENABLED;
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/
DKeyValueBackupTaskTest.java76 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/
Dflags.aconfig33 description: "Enables clearing the pipe buffer after restoring a single file to a BackupAgent."
/frameworks/multidex/library/jack-meta/
DlegacyMultidexInstallation.jpp29 | class android.app.backup.BackupAgent
/frameworks/base/packages/LocalTransport/src/com/android/localtransport/
DLocalTransport.java20 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/
DActiveRestoreSession.java27 import android.app.backup.BackupAgent;
316 & BackupAgent.FLAG_SKIP_RESTORE_FOR_LAUNCHED_APPS) != 0; in getBackupEligibilityRules()
DFullRestoreEngine.java30 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/
DUserBackupManagerServiceTest.java35 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/
DKeyValueBackupTask.java30 import android.app.backup.BackupAgent;
865BackupAgent 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/
DTarBackupReader.java47 import android.app.backup.BackupAgent;
164 info.type = BackupAgent.TYPE_FILE; in readTarHeaders()
167 info.type = BackupAgent.TYPE_DIRECTORY; in readTarHeaders()

12