Home
last modified time | relevance | path

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

12

/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/tests/coretests/src/android/app/backup/
DBackupAgentTest.java23 import android.app.backup.BackupAgent.IncludeExcludeRules;
52 private BackupAgent mBackupAgent;
76 private BackupAgent getAgentForOperationType(@OperationType int operationType) { in getAgentForOperationType()
77 BackupAgent agent = new TestFullBackupAgent(); in getAgentForOperationType()
82 private static class TestFullBackupAgent extends BackupAgent {
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/core/java/android/app/backup/
DBackupAgent.java136 public abstract class BackupAgent extends ContextWrapper { class
238 public BackupAgent() { in BackupAgent() method in BackupAgent
1065 BackupAgent.this.onBackup(oldState, output, newState); in doBackup()
1068 Log.d(TAG, "onBackup (" + BackupAgent.this.getClass().getName() + ") threw", ex); in doBackup()
1071 Log.d(TAG, "onBackup (" + BackupAgent.this.getClass().getName() + ") threw", ex); in doBackup()
1124 BackupAgent.this.onRestore(input, appVersionCode, newState, in doRestoreInternal()
1128 Log.d(TAG, "onRestore (" + BackupAgent.this.getClass().getName() + ") threw", ex); in doRestoreInternal()
1131 Log.d(TAG, "onRestore (" + BackupAgent.this.getClass().getName() + ") threw", ex); in doRestoreInternal()
1163 BackupAgent.this.onFullBackup(new FullBackupDataOutput( in doFullBackup()
1166 … 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()
669 mRequiredTransportFlags = BackupAgent.FLAG_CLIENT_SIDE_ENCRYPTION_ENABLED; in parseRequiredTransportFlags()
834 flags |= BackupAgent.FLAG_CLIENT_SIDE_ENCRYPTION_ENABLED; in getRequiredFlagsFromString()
837 flags |= BackupAgent.FLAG_DEVICE_TO_DEVICE_TRANSFER; in getRequiredFlagsFromString()
840 flags |= BackupAgent.FLAG_FAKE_CLIENT_SIDE_ENCRYPTION_ENABLED; in getRequiredFlagsFromString()
/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()
DPackageManagerBackupAgent.java19 import android.app.backup.BackupAgent;
63 public class PackageManagerBackupAgent extends BackupAgent {
DUserBackupManagerService.java48 import android.app.backup.BackupAgent;
929 public BackupAgent makeMetadataAgent() { in makeMetadataAgent()
933 public BackupAgent makeMetadataAgentWithEligibilityRules( in makeMetadataAgentWithEligibilityRules()
4376 if ((transport.getTransportFlags() & BackupAgent.FLAG_DEVICE_TO_DEVICE_TRANSFER) != 0) { in getOperationTypeFromTransport()
/frameworks/base/tests/HugeBackup/src/com/android/hugebackup/
DHugeAgent.java19 import android.app.backup.BackupAgent;
39 public class HugeAgent extends BackupAgent {
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/
DUserBackupManagerServiceTest.java26 import android.app.backup.BackupAgent;
158 BackupAgent.FLAG_DEVICE_TO_DEVICE_TRANSFER); in testGetOperationTypeFromTransport_returnsMigrationForMigrationTransport()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/
DKeyValueBackupTaskTest.java76 import android.app.backup.BackupAgent;
488 BackupAgent pmAgent = spy(createPmAgent()); in testRunTask_whenNonPmPackageAndNonIncremental_doesNotBackUpPm()
502 BackupAgent pmAgent = spy(createPmAgent()); in testRunTask_whenNonPmPackageAndPmAndNonIncremental_backsUpPm()
517 BackupAgent pmAgent = spy(createPmAgent()); in testRunTask_whenNonPmPackageAndIncremental_backsUpPm()
1020 int flags = BackupAgent.FLAG_CLIENT_SIDE_ENCRYPTION_ENABLED; in testRunTask_whenTransportProvidesFlags_passesThemToTheAgent()
1046 int flags = BackupAgent.FLAG_CLIENT_SIDE_ENCRYPTION_ENABLED; in testRunTask_whenTransportProvidesFlagsAndMultipleAgents_passesToAll()
1049 BackupAgent agent1 = agentMocks.get(0).agent; in testRunTask_whenTransportProvidesFlagsAndMultipleAgents_passesToAll()
1050 BackupAgent agent2 = agentMocks.get(1).agent; in testRunTask_whenTransportProvidesFlagsAndMultipleAgents_passesToAll()
1064 int flags = BackupAgent.FLAG_CLIENT_SIDE_ENCRYPTION_ENABLED; in testRunTask_whenTransportChangeFlagsAfterTaskCreation()
1328 BackupAgent pmAgent = spy(createPmAgent()); in testRunTask_whenPmAgentWritesData_callsTransportPerformBackupWithAgentData()
[all …]
/frameworks/base/packages/LocalTransport/src/com/android/localtransport/
DLocalTransport.java20 import android.app.backup.BackupAgent;
165 flags |= BackupAgent.FLAG_FAKE_CLIENT_SIDE_ENCRYPTION_ENABLED; in getTransportFlags()
168 flags |= BackupAgent.FLAG_DEVICE_TO_DEVICE_TRANSFER; in getTransportFlags()
171 flags |= BackupAgent.FLAG_CLIENT_SIDE_ENCRYPTION_ENABLED; in getTransportFlags()
/frameworks/multidex/library/jack-meta/
DlegacyMultidexInstallation.jpp29 | class android.app.backup.BackupAgent
/frameworks/base/services/backup/backuplib/java/com/android/server/backup/transport/
DDelegatingTransport.java19 import android.app.backup.BackupAgent;
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DTarBackupReader.java46 import android.app.backup.BackupAgent;
156 info.type = BackupAgent.TYPE_FILE; in readTarHeaders()
159 info.type = BackupAgent.TYPE_DIRECTORY; in readTarHeaders()
/frameworks/base/packages/WallpaperBackup/src/com/android/wallpaperbackup/
DWallpaperBackupAgent.java24 import android.app.backup.BackupAgent;
55 public class WallpaperBackupAgent extends BackupAgent {
/frameworks/base/services/backup/java/com/android/server/backup/keyvalue/
DKeyValueBackupTask.java32 import android.app.backup.BackupAgent;
853BackupAgent pmAgent = mBackupManagerService.makeMetadataAgentWithEligibilityRules(mBackupEligibili… in extractPmAgentData()
968 if (resultCode == BackupAgent.RESULT_ERROR) { in checkAgentResult()
972 Preconditions.checkState(resultCode == BackupAgent.RESULT_SUCCESS); in checkAgentResult()
/frameworks/base/core/java/android/app/
DActivityThread.java41 import android.app.backup.BackupAgent;
384 private final SparseArray<ArrayMap<String, BackupAgent>> mBackupAgentsByUser =
4364 ArrayMap<String, BackupAgent> backupAgents = getBackupAgentsForUser(data.userId); in handleCreateBackupAgent()
4365 BackupAgent agent = backupAgents.get(packageName); in handleCreateBackupAgent()
4377 agent = (BackupAgent) cl.loadClass(classname).newInstance(); in handleCreateBackupAgent()
4428 ArrayMap<String, BackupAgent> backupAgents = getBackupAgentsForUser(data.userId); in handleDestroyBackupAgent()
4429 BackupAgent agent = backupAgents.get(packageName); in handleDestroyBackupAgent()
4443 private ArrayMap<String, BackupAgent> getBackupAgentsForUser(int userId) { in getBackupAgentsForUser()
4444 ArrayMap<String, BackupAgent> backupAgents = mBackupAgentsByUser.get(userId); in getBackupAgentsForUser()
/frameworks/base/boot/
Dboot-image-profile.txt2949 HSPLandroid/app/backup/BackupAgent$BackupServiceBinder;-><init>(Landroid/app/backup/BackupAgent;)V
2950 HSPLandroid/app/backup/BackupAgent$BackupServiceBinder;-><init>(Landroid/app/backup/BackupAgent;Lan…
2951 HSPLandroid/app/backup/BackupAgent$BackupServiceBinder;->doBackup(Landroid/os/ParcelFileDescriptor;…
2952 HSPLandroid/app/backup/BackupAgent$SharedPrefsSynchronizer;-><init>(Landroid/app/backup/BackupAgent
2953 HSPLandroid/app/backup/BackupAgent$SharedPrefsSynchronizer;->run()V
2954 HSPLandroid/app/backup/BackupAgent;-><init>()V
2955 HSPLandroid/app/backup/BackupAgent;->access$300(Landroid/app/backup/BackupAgent;)V
2956 HSPLandroid/app/backup/BackupAgent;->attach(Landroid/content/Context;)V
2957 HSPLandroid/app/backup/BackupAgent;->getHandler()Landroid/os/Handler;
2958 HSPLandroid/app/backup/BackupAgent;->onBind()Landroid/os/IBinder;
[all …]
Dpreloaded-classes783 android.app.backup.BackupAgent$BackupServiceBinder
784 android.app.backup.BackupAgent$SharedPrefsSynchronizer
785 android.app.backup.BackupAgent
/frameworks/base/config/
Dpreloaded-classes780 android.app.backup.BackupAgent$BackupServiceBinder
781 android.app.backup.BackupAgent$SharedPrefsSynchronizer
782 android.app.backup.BackupAgent
Dboot-image-profile.txt2947 HSPLandroid/app/backup/BackupAgent$BackupServiceBinder;-><init>(Landroid/app/backup/BackupAgent;)V
2948 HSPLandroid/app/backup/BackupAgent$BackupServiceBinder;-><init>(Landroid/app/backup/BackupAgent;Lan…
2949 HSPLandroid/app/backup/BackupAgent$BackupServiceBinder;->doBackup(Landroid/os/ParcelFileDescriptor;…
2950 HSPLandroid/app/backup/BackupAgent$SharedPrefsSynchronizer;-><init>(Landroid/app/backup/BackupAgent
2951 HSPLandroid/app/backup/BackupAgent$SharedPrefsSynchronizer;->run()V
2952 HSPLandroid/app/backup/BackupAgent;-><init>()V
2953 HSPLandroid/app/backup/BackupAgent;->access$300(Landroid/app/backup/BackupAgent;)V
2954 HSPLandroid/app/backup/BackupAgent;->attach(Landroid/content/Context;)V
2955 HSPLandroid/app/backup/BackupAgent;->getHandler()Landroid/os/Handler;
2956 HSPLandroid/app/backup/BackupAgent;->onBind()Landroid/os/IBinder;
[all …]

12