Lines Matching defs:backup

17 package com.android.server.backup.internal;
19 import static com.android.server.backup.BackupManagerService.DEBUG;
20 import static com.android.server.backup.BackupManagerService.DEBUG_BACKUP_TRACE;
21 import static com.android.server.backup.BackupManagerService.KEY_WIDGET_STATE;
22 import static com.android.server.backup.BackupManagerService.MORE_DEBUG;
23 import static com.android.server.backup.BackupManagerService.OP_PENDING;
24 import static com.android.server.backup.BackupManagerService.OP_TYPE_BACKUP;
25 import static com.android.server.backup.BackupManagerService.OP_TYPE_BACKUP_WAIT;
26 import static com.android.server.backup.BackupManagerService.PACKAGE_MANAGER_SENTINEL;
27 import static com.android.server.backup.internal.BackupHandler.MSG_BACKUP_OPERATION_TIMEOUT;
28 import static com.android.server.backup.internal.BackupHandler.MSG_BACKUP_RESTORE_STEP;
33 import android.app.backup.BackupDataInput;
34 import android.app.backup.BackupDataOutput;
35 import android.app.backup.BackupManager;
36 import android.app.backup.BackupManagerMonitor;
37 import android.app.backup.BackupTransport;
38 import android.app.backup.IBackupManagerMonitor;
39 import android.app.backup.IBackupObserver;
56 import com.android.internal.backup.IBackupTransport;
60 import com.android.server.backup.BackupAgentTimeoutParameters;
61 import com.android.server.backup.BackupRestoreTask;
62 import com.android.server.backup.DataChangedJournal;
63 import com.android.server.backup.KeyValueBackupJob;
64 import com.android.server.backup.PackageManagerBackupAgent;
65 import com.android.server.backup.BackupManagerService;
66 import com.android.server.backup.fullbackup.PerformFullTransportBackupTask;
67 import com.android.server.backup.transport.TransportClient;
68 import com.android.server.backup.transport.TransportUtils;
69 import com.android.server.backup.utils.AppBackupUtils;
70 import com.android.server.backup.utils.BackupManagerMonitorUtils;
71 import com.android.server.backup.utils.BackupObserverUtils;
88 * This class handles the process of backing up a given list of key/value backup packages.
93 * If required, backup @pm@.
94 * For each pending key/value backup package:
110 * response from a backup agent. This is used to plumb timeouts and completion callbacks.
179 Slog.d(TAG, "Skipping backup since one is already in progress.");
222 // and reposting the next chunk to the primary backup handler thread.
251 // We're starting a backup pass. Initialize the transport if we haven't already.
287 // backup queue if apps have been added/removed since the last time
288 // we performed a backup. Drop it from the working queue now that
289 // we're committed to evaluating it for backup regardless.
303 Slog.v(TAG, "Beginning backup of " + mQueue.size() + " targets");
313 Slog.i(TAG, "Initializing (wiping) backup state and transport storage");
328 Slog.d(TAG, "Skipping backup of package metadata.");
340 Slog.e(TAG, "Error in backup thread during init", e);
341 backupManagerService.addBackupTrace("Exception in backup thread during init: " + e);
351 // In case of any other error, it's backup transport error.
370 // Because the PMBA is a local instance, it has already executed its backup callback and
375 Slog.e(TAG, "Error in backup thread during pm", e);
376 backupManagerService.addBackupTrace("Exception in backup thread during pm: " + e);
420 Slog.d(TAG, "starting key/value backup of " + request);
424 // requested a backup but was then uninstalled. The request was
427 // package's backup agent.
433 // The manifest has changed but we had a stale backup request pending.
437 + " no longer supports backup; skipping");
439 // Shouldn't happen in case of requested backup, as pre-check was done in
449 // It's possible that this app *formerly* was enqueued for key/value backup,
451 // Don't proceed with a key/value backup for it in this case.
456 // Shouldn't happen in case of requested backup, as pre-check was done in
468 // receive broadcasts, we won't run it for backup.
496 Slog.d(TAG, "error in bind/backup", ex);
550 // Mark packages that we didn't backup (because backup was cancelled, etc.) as needing
551 // backup.
556 // Either backup was successful, in which case we of course do not need
561 Slog.e(TAG, "Unable to remove backup journal file " + mJournal);
565 // done a backup, we can now record what the current backup dataset token
584 // Set up the next backup pass - at this point we can set mBackupRunning
617 // The full-backup task is now responsible for calling onFinish() on mListener, which
649 Slog.i(TAG, "K/V backup pass finished.");
650 // Only once we're entirely finished do we release the wakelock for k/v backup.
691 // In a full backup, we pass a null ParcelFileDescriptor as
693 // an incremental backup is required, and a blank state otherwise.
719 // Initiate the target's backup pass
731 Slog.e(TAG, "Error invoking for backup on " + packageName + ". " + e);
881 failAgent(mAgentBinder, "Illegal backup key: " + key);
917 // we're in such a bad state that we can't contemplate doing backup
963 // TRANSPORT_NON_INCREMENTAL_BACKUP_REQUIRED is only valid if the backup was
964 // incremental, as if the backup is non-incremental there is no state to
989 Slog.i(TAG, "no backup data written; not calling transport");
1010 // The transport has rejected backup of this specific package. Roll it
1040 // of the backup pass in state BACKUP_PM. Instead we retry this state (see
1085 " hit quota limit on k/v backup");
1138 // Restage it for the next time we run a backup pass.
1152 Slog.i(TAG, "Reverting backup queue - restaging everything");
1156 // We want to reset the backup schedule based on whatever the transport suggests