Home | History | Annotate | Download | only in server

Lines Matching defs:transport

174     // Transport bookkeeping
182 public IBackupTransport transport;
188 transport = _transport;
195 public IBackupTransport transport;
203 transport = _transport;
211 transport = _transport;
220 public IBackupTransport transport;
224 transport = _transport;
259 HashSet<String> mPendingInits = new HashSet<String>(); // transport names
276 IBackupTransport transport = getTransport(mCurrentTransport);
277 if (transport == null) {
278 Slog.v(TAG, "Backup requested but no transport available");
309 (new PerformBackupTask(transport, queue, oldJournal)).run();
324 (new PerformRestoreTask(params.transport, params.observer,
332 (new PerformClearTask(params.transport, params.packageInfo)).run();
356 sets = params.transport.getAvailableRestoreSets();
363 Slog.e(TAG, "Error from transport getting set list");
464 // Set up our transport options and initialize the default transport
477 if (DEBUG) Slog.v(TAG, "Starting with transport " + mCurrentTransport);
479 // Attach to the Google backup transport. When this comes up, it will set
480 // itself as the current transport because we explicitly reset mCurrentTransport
486 // backup transport, make sure it's legitimately part of the OS build
491 if (DEBUG) Slog.v(TAG, "Binding to Google transport");
495 Slog.w(TAG, "Possible Google transport spoof: ignoring " + info);
499 if (DEBUG) Slog.v(TAG, "Google transport not present");
690 + " on transport " + transportName);
692 IBackupTransport transport = getTransport(transportName);
693 String transportDirName = transport.transportDirName();
713 // can't happen; the transport is local
749 // Add a transport to our set of available backends. If 'transport' is null, this
750 // is an unregistration, and the transport's entry is removed from our bookkeeping.
751 private void registerTransport(String name, IBackupTransport transport) {
753 if (DEBUG) Slog.v(TAG, "Registering transport " + name + " = " + transport);
754 if (transport != null) {
755 mTransports.put(name, transport);
770 String transportName = transport.transportDirName();
786 // can't happen, the transport is local
851 if (DEBUG) Slog.v(TAG, "Connected to Google transport");
857 if (DEBUG) Slog.v(TAG, "Disconnected from Google transport");
1087 // Return the given transport
1090 IBackupTransport transport = mTransports.get(transportName);
1091 if (transport == null) {
1092 Slog.w(TAG, "Requested unavailable transport: " + transportName);
1094 return transport;
1233 public PerformBackupTask(IBackupTransport transport, ArrayList<BackupRequest> queue,
1235 mTransport = transport;
1240 mStateDir = new File(mBaseStateDir, transport.transportDirName());
1242 // can't happen; the transport is local
1257 // If we haven't stored package manager metadata yet, we must init the transport.
1260 Slog.i(TAG, "Initializing (wiping) backup state and transport storage");
1267 Slog.e(TAG, "Transport error in initializeDevice()");
1291 // Tell the transport to finish everything it has buffered
1298 Slog.e(TAG, "Transport error in finishBackup()");
1334 // the transport suggests by way of retry/backoff time.
1357 private int doQueuedBackups(IBackupTransport transport) {
1368 int result = processOneBackup(request, agent, transport);
1385 IBackupTransport transport) {
1458 // Now propagate the newly-backed-up data to the transport
1466 result = transport.performBackup(packInfo, backupData);
1475 result = transport.finishBackup();
1478 if (DEBUG) Slog.i(TAG, "no backup data written; not calling transport");
1481 // After successful transport, delete the now-stale data
1492 Slog.e(TAG, "Transport error backing up " + packageName, e);
1569 PerformRestoreTask(IBackupTransport transport, IRestoreObserver observer,
1571 mTransport = transport;
1578 mStateDir = new File(mBaseStateDir, transport.transportDirName());
1580 // can't happen; the transport is local
1616 // !!! TODO: get an actual count from the transport after
1826 // !!! TODO: get the dirs from the transport
1836 // Run the transport's restore pass
1907 PerformClearTask(IBackupTransport transport, PackageInfo packageInfo) {
1908 mTransport = transport;
1919 // Tell the transport to remove all the persistent storage for the app
1923 // can't happen; the transport is local
1929 // can't happen; the transport is local
1948 IBackupTransport transport = getTransport(transportName);
1949 if (transport == null) {
1954 Slog.i(TAG, "Initializing (wiping) backup transport storage: " + transportName);
1955 EventLog.writeEvent(EventLogTags.BACKUP_START, transport.transportDirName());
1957 int status = transport.initializeDevice();
1960 status = transport.finishBackup();
1968 resetBackupState(new File(mBaseStateDir, transport.transportDirName()));
1976 Slog.e(TAG, "Transport error in initializeDevice()");
1982 long delay = transport.requestBackupTime();
2075 // Clear the given package's backup data from the current transport
2172 // NOTE: we currently flush every registered transport, not just
2179 for (String transport : allTransports) {
2180 recordInitPendingLocked(true, transport);
2246 // Report the name of the currently active transport
2273 // Select which transport to use for the next backup operation. If the given
2276 public String selectBackupTransport(String transport) {
2281 if (mTransports.get(transport) != null) {
2283 mCurrentTransport = transport;
2285 Settings.Secure.BACKUP_TRANSPORT, transport);
2289 Slog.w(TAG, "Attempt to select unavailable transport " + transport);
2369 public IRestoreSession beginRestoreSession(String transport) {
2377 mActiveRestoreSession = new ActiveRestoreSession(transport);
2400 ActiveRestoreSession(String transport) {
2401 mRestoreTransport = getTransport(transport);
2415 Slog.w(TAG, "Null transport getting restore sets");
2418 // spin off the transport request to our service thread