Loading services/backup/java/com/android/server/backup/BackupManagerService.java +4 −3 Original line number Original line Diff line number Diff line Loading @@ -2877,7 +2877,7 @@ public class BackupManagerService implements BackupManagerServiceInterface { // The backend reports that our dataset has been wiped. Note this in // The backend reports that our dataset has been wiped. Note this in // the event log; the no-success code below will reset the backup // the event log; the no-success code below will reset the backup // state as well. // state as well. EventLog.writeEvent(EventLogTags.BACKUP_RESET, mTransport.transportDirName()); EventLog.writeEvent(EventLogTags.BACKUP_RESET, transportName); } } } catch (Exception e) { } catch (Exception e) { Slog.e(TAG, "Error in backup thread", e); Slog.e(TAG, "Error in backup thread", e); Loading Loading @@ -9781,7 +9781,8 @@ if (MORE_DEBUG) Slog.v(TAG, " + got " + nRead + "; now wanting " + (size - soF } } Slog.i(TAG, "Initializing (wiping) backup transport storage: " + transportName); Slog.i(TAG, "Initializing (wiping) backup transport storage: " + transportName); EventLog.writeEvent(EventLogTags.BACKUP_START, transport.transportDirName()); String transportDirName = transport.transportDirName(); EventLog.writeEvent(EventLogTags.BACKUP_START, transportDirName); long startRealtime = SystemClock.elapsedRealtime(); long startRealtime = SystemClock.elapsedRealtime(); int status = transport.initializeDevice(); int status = transport.initializeDevice(); Loading @@ -9794,7 +9795,7 @@ if (MORE_DEBUG) Slog.v(TAG, " + got " + nRead + "; now wanting " + (size - soF Slog.i(TAG, "Device init successful"); Slog.i(TAG, "Device init successful"); int millis = (int) (SystemClock.elapsedRealtime() - startRealtime); int millis = (int) (SystemClock.elapsedRealtime() - startRealtime); EventLog.writeEvent(EventLogTags.BACKUP_INITIALIZE); EventLog.writeEvent(EventLogTags.BACKUP_INITIALIZE); resetBackupState(new File(mBaseStateDir, transport.transportDirName())); resetBackupState(new File(mBaseStateDir, transportDirName)); EventLog.writeEvent(EventLogTags.BACKUP_SUCCESS, 0, millis); EventLog.writeEvent(EventLogTags.BACKUP_SUCCESS, 0, millis); synchronized (mQueueLock) { synchronized (mQueueLock) { recordInitPendingLocked(false, transportName); recordInitPendingLocked(false, transportName); Loading services/backup/java/com/android/server/backup/internal/PerformBackupTask.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -339,7 +339,7 @@ public class PerformBackupTask implements BackupRestoreTask { // The backend reports that our dataset has been wiped. Note this in // The backend reports that our dataset has been wiped. Note this in // the event log; the no-success code below will reset the backup // the event log; the no-success code below will reset the backup // state as well. // state as well. EventLog.writeEvent(EventLogTags.BACKUP_RESET, mTransport.transportDirName()); EventLog.writeEvent(EventLogTags.BACKUP_RESET, transportName); } } } catch (Exception e) { } catch (Exception e) { Slog.e(TAG, "Error in backup thread", e); Slog.e(TAG, "Error in backup thread", e); Loading services/backup/java/com/android/server/backup/internal/PerformInitializeTask.java +3 −2 Original line number Original line Diff line number Diff line Loading @@ -79,7 +79,8 @@ public class PerformInitializeTask implements Runnable { } } Slog.i(TAG, "Initializing (wiping) backup transport storage: " + transportName); Slog.i(TAG, "Initializing (wiping) backup transport storage: " + transportName); EventLog.writeEvent(EventLogTags.BACKUP_START, transport.transportDirName()); String transportDirName = transport.transportDirName(); EventLog.writeEvent(EventLogTags.BACKUP_START, transportDirName); long startRealtime = SystemClock.elapsedRealtime(); long startRealtime = SystemClock.elapsedRealtime(); int status = transport.initializeDevice(); int status = transport.initializeDevice(); Loading @@ -94,7 +95,7 @@ public class PerformInitializeTask implements Runnable { EventLog.writeEvent(EventLogTags.BACKUP_INITIALIZE); EventLog.writeEvent(EventLogTags.BACKUP_INITIALIZE); backupManagerService backupManagerService .resetBackupState(new File(backupManagerService.getBaseStateDir(), .resetBackupState(new File(backupManagerService.getBaseStateDir(), transport.transportDirName())); transportDirName)); EventLog.writeEvent(EventLogTags.BACKUP_SUCCESS, 0, millis); EventLog.writeEvent(EventLogTags.BACKUP_SUCCESS, 0, millis); synchronized (backupManagerService.getQueueLock()) { synchronized (backupManagerService.getQueueLock()) { backupManagerService.recordInitPendingLocked(false, transportName); backupManagerService.recordInitPendingLocked(false, transportName); Loading Loading
services/backup/java/com/android/server/backup/BackupManagerService.java +4 −3 Original line number Original line Diff line number Diff line Loading @@ -2877,7 +2877,7 @@ public class BackupManagerService implements BackupManagerServiceInterface { // The backend reports that our dataset has been wiped. Note this in // The backend reports that our dataset has been wiped. Note this in // the event log; the no-success code below will reset the backup // the event log; the no-success code below will reset the backup // state as well. // state as well. EventLog.writeEvent(EventLogTags.BACKUP_RESET, mTransport.transportDirName()); EventLog.writeEvent(EventLogTags.BACKUP_RESET, transportName); } } } catch (Exception e) { } catch (Exception e) { Slog.e(TAG, "Error in backup thread", e); Slog.e(TAG, "Error in backup thread", e); Loading Loading @@ -9781,7 +9781,8 @@ if (MORE_DEBUG) Slog.v(TAG, " + got " + nRead + "; now wanting " + (size - soF } } Slog.i(TAG, "Initializing (wiping) backup transport storage: " + transportName); Slog.i(TAG, "Initializing (wiping) backup transport storage: " + transportName); EventLog.writeEvent(EventLogTags.BACKUP_START, transport.transportDirName()); String transportDirName = transport.transportDirName(); EventLog.writeEvent(EventLogTags.BACKUP_START, transportDirName); long startRealtime = SystemClock.elapsedRealtime(); long startRealtime = SystemClock.elapsedRealtime(); int status = transport.initializeDevice(); int status = transport.initializeDevice(); Loading @@ -9794,7 +9795,7 @@ if (MORE_DEBUG) Slog.v(TAG, " + got " + nRead + "; now wanting " + (size - soF Slog.i(TAG, "Device init successful"); Slog.i(TAG, "Device init successful"); int millis = (int) (SystemClock.elapsedRealtime() - startRealtime); int millis = (int) (SystemClock.elapsedRealtime() - startRealtime); EventLog.writeEvent(EventLogTags.BACKUP_INITIALIZE); EventLog.writeEvent(EventLogTags.BACKUP_INITIALIZE); resetBackupState(new File(mBaseStateDir, transport.transportDirName())); resetBackupState(new File(mBaseStateDir, transportDirName)); EventLog.writeEvent(EventLogTags.BACKUP_SUCCESS, 0, millis); EventLog.writeEvent(EventLogTags.BACKUP_SUCCESS, 0, millis); synchronized (mQueueLock) { synchronized (mQueueLock) { recordInitPendingLocked(false, transportName); recordInitPendingLocked(false, transportName); Loading
services/backup/java/com/android/server/backup/internal/PerformBackupTask.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -339,7 +339,7 @@ public class PerformBackupTask implements BackupRestoreTask { // The backend reports that our dataset has been wiped. Note this in // The backend reports that our dataset has been wiped. Note this in // the event log; the no-success code below will reset the backup // the event log; the no-success code below will reset the backup // state as well. // state as well. EventLog.writeEvent(EventLogTags.BACKUP_RESET, mTransport.transportDirName()); EventLog.writeEvent(EventLogTags.BACKUP_RESET, transportName); } } } catch (Exception e) { } catch (Exception e) { Slog.e(TAG, "Error in backup thread", e); Slog.e(TAG, "Error in backup thread", e); Loading
services/backup/java/com/android/server/backup/internal/PerformInitializeTask.java +3 −2 Original line number Original line Diff line number Diff line Loading @@ -79,7 +79,8 @@ public class PerformInitializeTask implements Runnable { } } Slog.i(TAG, "Initializing (wiping) backup transport storage: " + transportName); Slog.i(TAG, "Initializing (wiping) backup transport storage: " + transportName); EventLog.writeEvent(EventLogTags.BACKUP_START, transport.transportDirName()); String transportDirName = transport.transportDirName(); EventLog.writeEvent(EventLogTags.BACKUP_START, transportDirName); long startRealtime = SystemClock.elapsedRealtime(); long startRealtime = SystemClock.elapsedRealtime(); int status = transport.initializeDevice(); int status = transport.initializeDevice(); Loading @@ -94,7 +95,7 @@ public class PerformInitializeTask implements Runnable { EventLog.writeEvent(EventLogTags.BACKUP_INITIALIZE); EventLog.writeEvent(EventLogTags.BACKUP_INITIALIZE); backupManagerService backupManagerService .resetBackupState(new File(backupManagerService.getBaseStateDir(), .resetBackupState(new File(backupManagerService.getBaseStateDir(), transport.transportDirName())); transportDirName)); EventLog.writeEvent(EventLogTags.BACKUP_SUCCESS, 0, millis); EventLog.writeEvent(EventLogTags.BACKUP_SUCCESS, 0, millis); synchronized (backupManagerService.getQueueLock()) { synchronized (backupManagerService.getQueueLock()) { backupManagerService.recordInitPendingLocked(false, transportName); backupManagerService.recordInitPendingLocked(false, transportName); Loading