/frameworks/base/services/backup/java/com/android/server/backup/restore/ |
D | ActiveRestoreSession.java | 56 private final UserBackupManagerService mBackupManagerService; field in ActiveRestoreSession 67 mBackupManagerService = backupManagerService; in ActiveRestoreSession() 81 mBackupManagerService.getContext().enforceCallingOrSelfPermission( in getAvailableRestoreSets() 110 mBackupManagerService.getBackupHandler().removeMessages(MSG_RESTORE_SESSION_TIMEOUT); in getAvailableRestoreSets() 112 UserBackupManagerService.BackupWakeLock wakelock = mBackupManagerService.getWakelock(); in getAvailableRestoreSets() 121 Message msg = mBackupManagerService.getBackupHandler().obtainMessage( in getAvailableRestoreSets() 124 mBackupManagerService.getBackupHandler().sendMessage(msg); in getAvailableRestoreSets() 136 mBackupManagerService.getContext().enforceCallingOrSelfPermission( in restoreAll() 169 synchronized (mBackupManagerService.getQueueLock()) { in restoreAll() 197 mBackupManagerService.getContext().enforceCallingOrSelfPermission( in restorePackages() [all …]
|
D | FullRestoreEngine.java | 71 private final UserBackupManagerService mBackupManagerService; field in FullRestoreEngine 141 mBackupManagerService = backupManagerService; in FullRestoreEngine() 236 mBackupManagerService.getPackageManager(), allowApks, info, signatures, in restoreOneFile() 279 instream, mBackupManagerService.getContext(), in restoreOneFile() 340 mBackupManagerService.getPackageManager() in restoreOneFile() 359 mBackupManagerService.clearApplicationDataBeforeRestore(pkg); in restoreOneFile() 376 mAgent = mBackupManagerService.bindToAgentSynchronous(mTargetApp, in restoreOneFile() 415 mBackupManagerService.prepareOperationTimeout(token, in restoreOneFile() 428 mBackupManagerService.getBackupManagerBinder()); in restoreOneFile() 440 mBackupManagerService, in restoreOneFile() [all …]
|
D | AdbRestoreFinishedRunnable.java | 16 private final UserBackupManagerService mBackupManagerService; field in AdbRestoreFinishedRunnable 22 mBackupManagerService = backupManagerService; in AdbRestoreFinishedRunnable() 28 mAgent.doRestoreFinished(mToken, mBackupManagerService.getBackupManagerBinder()); in run()
|
D | RestoreFileRunnable.java | 38 private final UserBackupManagerService mBackupManagerService; field in RestoreFileRunnable 52 this.mBackupManagerService = backupManagerService; in RestoreFileRunnable() 60 mToken, mBackupManagerService.getBackupManagerBinder()); in run()
|
D | PerformAdbRestoreTask.java | 69 private final UserBackupManagerService mBackupManagerService; field in PerformAdbRestoreTask 106 this.mBackupManagerService = backupManagerService; in PerformAdbRestoreTask() 140 if (!mBackupManagerService.backupPasswordMatches(mCurrentPassword)) { in run() 159 FullRestoreEngine mEngine = new FullRestoreEngine(mBackupManagerService, null, in run() 187 mBackupManagerService.getWakelock().release(); in run()
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | KeyValueAdbBackupEngine.java | 54 private UserBackupManagerService mBackupManagerService; field in KeyValueAdbBackupEngine 74 mBackupManagerService = backupManagerService; in KeyValueAdbBackupEngine() 148 return mBackupManagerService.bindToAgentSynchronous(targetApp, in bindToAgent() 159 int token = mBackupManagerService.generateRandomIntegerToken(); in invokeAgentForAdbBackup() 162 mBackupManagerService.prepareOperationTimeout(token, kvBackupAgentTimeoutMillis, null, in invokeAgentForAdbBackup() 167 mBackupManagerService.getBackupManagerBinder(), token); in invokeAgentForAdbBackup() 176 if (!mBackupManagerService.waitUntilOperationComplete(token)) { in invokeAgentForAdbBackup() 241 mBackupManagerService.getBackupManagerBinder().opComplete(mToken, 0); in run() 255 int token = mBackupManagerService.generateRandomIntegerToken(); in writeBackupData() 262 mBackupManagerService.prepareOperationTimeout(token, kvBackupAgentTimeoutMillis, null, in writeBackupData() [all …]
|
D | KeyValueAdbRestoreEngine.java | 40 private final UserBackupManagerService mBackupManagerService; field in KeyValueAdbRestoreEngine 51 mBackupManagerService = backupManagerService; in KeyValueAdbRestoreEngine() 97 mBackupManagerService.getBackupManagerBinder()); in invokeAgentForAdbRestore()
|
/frameworks/base/services/backup/java/com/android/server/backup/keyvalue/ |
D | KeyValueBackupTask.java | 234 private final UserBackupManagerService mBackupManagerService; field in KeyValueBackupTask 302 mBackupManagerService = backupManagerService; in KeyValueBackupTask() 320 mDataDirectory = mBackupManagerService.getDataDir(); in KeyValueBackupTask() 322 mQueueLock = mBackupManagerService.getQueueLock(); in KeyValueBackupTask() 328 mBackupManagerService.putOperation( in registerTask() 333 mBackupManagerService.removeOperation(mCurrentOpToken); in unregisterTask() 356 mBackupManagerService.dataChangedImpl(packageName); in run() 362 mBackupManagerService.resetBackupState(mStateDirectory); in run() 388 if (mBackupManagerService.isBackupOperationInProgress()) { in startTask() 420 mBackupManagerService.resetBackupState(mStateDirectory); in startTask() [all …]
|
D | KeyValueBackupReporter.java | 66 private final UserBackupManagerService mBackupManagerService; field in KeyValueBackupReporter 74 mBackupManagerService = backupManagerService; in KeyValueBackupReporter() 270 mBackupManagerService.logBackupComplete(packageName); in onPackageBackupComplete()
|
/frameworks/base/services/backup/java/com/android/server/backup/internal/ |
D | PerformInitializeTask.java | 52 private final UserBackupManagerService mBackupManagerService; field in PerformInitializeTask 81 mBackupManagerService = backupManagerService; in PerformInitializeTask() 148 mBackupManagerService.resetBackupState(stateFileDir); in run() 150 mBackupManagerService.recordInitPending(false, transportName, transportDirName); in run() 156 mBackupManagerService.recordInitPending(true, transportName, transportDirName); in run() 163 mBackupManagerService.getAlarmManager().set( in run() 166 mBackupManagerService.getRunInitIntent()); in run()
|
D | PerformClearTask.java | 32 private final UserBackupManagerService mBackupManagerService; field in PerformClearTask 41 mBackupManagerService = backupManagerService; in PerformClearTask() 55 File stateDir = new File(mBackupManagerService.getBaseStateDir(), transportDirName); in run() 77 mBackupManagerService.getWakelock().release(); in run()
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/ |
D | KeyValueBackupTaskTest.java | 182 private UserBackupManagerService mBackupManagerService; field in KeyValueBackupTaskTest 227 mBackupManagerService = in setUp() 231 mBackupManagerService, in setUp() 235 mBackupManagerService.getBackupHandler(), in setUp() 237 mBackupManagerService.getAgentTimeoutParameters()); in setUp() 238 when(mBackupManagerService.getBaseStateDir()).thenReturn(mBaseStateDir); in setUp() 239 when(mBackupManagerService.getDataDir()).thenReturn(mDataDir); in setUp() 240 when(mBackupManagerService.getBackupManagerBinder()).thenReturn(mBackupManager); in setUp() 242 mBackupHandler = mBackupManagerService.getBackupHandler(); in setUp() 245 mReporter = spy(new KeyValueBackupReporter(mBackupManagerService, mObserver, mMonitor)); in setUp() [all …]
|
D | KeyValueBackupReporterTest.java | 44 @Mock private UserBackupManagerService mBackupManagerService; field in KeyValueBackupReporterTest 52 mReporter = new KeyValueBackupReporter(mBackupManagerService, mObserver, mMonitor); in setUp()
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/restore/ |
D | ActiveRestoreSessionTest.java | 95 @Mock private UserBackupManagerService mBackupManagerService; field in ActiveRestoreSessionTest 132 when(mBackupManagerService.getAgentTimeoutParameters()).thenReturn(agentTimeoutParameters); in setUp() 133 BackupHandler backupHandler = new BackupHandler(mBackupManagerService, handlerThread); in setUp() 139 mBackupManagerService, in setUp() 146 when(mBackupManagerService.getPendingRestores()).thenReturn(new ArrayDeque<>()); in setUp() 243 doCallRealMethod().when(mBackupManagerService).setRestoreInProgress(anyBoolean()); in testRestoreAll() 244 when(mBackupManagerService.isRestoreInProgress()).thenCallRealMethod(); in testRestoreAll() 256 assertThat(mBackupManagerService.isRestoreInProgress()).isFalse(); in testRestoreAll() 318 when(mBackupManagerService.isRestoreInProgress()).thenReturn(true); in testRestoreAll_whenRestoreInProgress_addsToPendingRestores() 326 assertThat(mBackupManagerService.getPendingRestores()).hasSize(1); in testRestoreAll_whenRestoreInProgress_addsToPendingRestores() [all …]
|
/frameworks/base/services/robotests/src/com/android/server/testing/shadows/ |
D | ShadowPerformUnifiedRestoreTask.java | 50 private UserBackupManagerService mBackupManagerService; field in ShadowPerformUnifiedRestoreTask 68 mBackupManagerService = backupManagerService; in __constructor__() 78 mBackupManagerService.setRestoreInProgress(false); in execute()
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/internal/ |
D | PerformInitializeTaskTest.java | 75 @Mock private UserBackupManagerService mBackupManagerService; field in PerformInitializeTaskTest 97 when(mBackupManagerService.getAlarmManager()).thenReturn(mAlarmManager); in setUp() 98 when(mBackupManagerService.getRunInitIntent()).thenReturn(mRunInitIntent); in setUp() 121 verify(mBackupManagerService) in testRun_callsBackupManagerCorrectly() 123 verify(mBackupManagerService) in testRun_callsBackupManagerCorrectly() 150 verify(mBackupManagerService) in testRun_whenInitializeDeviceFails() 189 verify(mBackupManagerService) in testRun_whenFinishBackupFails() 372 mBackupManagerService, in createPerformInitializeTask()
|