/frameworks/base/services/backup/java/com/android/server/backup/restore/ |
D | ActiveRestoreSession.java | 65 private final UserBackupManagerService mBackupManagerService; field in ActiveRestoreSession 78 mBackupManagerService = backupManagerService; in ActiveRestoreSession() 93 mBackupManagerService.getContext().enforceCallingOrSelfPermission( in getAvailableRestoreSets() 122 mBackupManagerService.getBackupHandler().removeMessages(MSG_RESTORE_SESSION_TIMEOUT); in getAvailableRestoreSets() 124 UserBackupManagerService.BackupWakeLock wakelock = mBackupManagerService.getWakelock(); in getAvailableRestoreSets() 133 Message msg = mBackupManagerService.getBackupHandler().obtainMessage( in getAvailableRestoreSets() 137 mBackupManagerService.getBackupHandler().sendMessage(msg); in getAvailableRestoreSets() 149 mBackupManagerService.getContext().enforceCallingOrSelfPermission( in restoreAll() 182 synchronized (mBackupManagerService.getQueueLock()) { in restoreAll() 212 mBackupManagerService.getContext().enforceCallingOrSelfPermission( in restorePackages() [all …]
|
D | FullRestoreEngine.java | 82 private final UserBackupManagerService mBackupManagerService; field in FullRestoreEngine 156 mBackupManagerService = backupManagerService; in FullRestoreEngine() 189 mBackupManagerService = null; in FullRestoreEngine() 272 mBackupManagerService.getPackageManager(), allowApks, info, signatures, in restoreOneFile() 274 mBackupManagerService.getContext()); in restoreOneFile() 316 instream, mBackupManagerService.getContext(), in restoreOneFile() 377 mBackupManagerService.getPackageManager() in restoreOneFile() 396 mBackupManagerService.clearApplicationDataBeforeRestore(pkg); in restoreOneFile() 413 mAgent = mBackupManagerService.bindToAgentSynchronous(mTargetApp, in restoreOneFile() 460 mBackupManagerService.prepareOperationTimeout(token, 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 | 63 private final UserBackupManagerService mBackupManagerService; field in PerformAdbRestoreTask 77 this.mBackupManagerService = backupManagerService; in PerformAdbRestoreTask() 95 if (!mBackupManagerService.backupPasswordMatches(mCurrentPassword)) { in run() 113 mBackupManagerService.getPackageManager(), in run() 115 mBackupManagerService.getUserId(), in run() 116 mBackupManagerService.getContext(), in run() 118 FullRestoreEngine mEngine = new FullRestoreEngine(mBackupManagerService, in run() 147 mBackupManagerService.getWakelock().release(); in run()
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | KeyValueAdbBackupEngine.java | 55 private UserBackupManagerService mBackupManagerService; field in KeyValueAdbBackupEngine 75 mBackupManagerService = backupManagerService; in KeyValueAdbBackupEngine() 149 return mBackupManagerService.bindToAgentSynchronous(targetApp, in bindToAgent() 161 int token = mBackupManagerService.generateRandomIntegerToken(); in invokeAgentForAdbBackup() 164 mBackupManagerService.prepareOperationTimeout(token, kvBackupAgentTimeoutMillis, null, in invokeAgentForAdbBackup() 169 mBackupManagerService.getBackupManagerBinder(), token); in invokeAgentForAdbBackup() 178 if (!mBackupManagerService.waitUntilOperationComplete(token)) { in invokeAgentForAdbBackup() 243 mBackupManagerService.getBackupManagerBinder().opComplete(mToken, 0); in run() 257 int token = mBackupManagerService.generateRandomIntegerToken(); in writeBackupData() 264 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/internal/ |
D | PerformInitializeTask.java | 52 private final UserBackupManagerService mBackupManagerService; field in PerformInitializeTask 81 mBackupManagerService = backupManagerService; in PerformInitializeTask() 149 mBackupManagerService.resetBackupState(stateFileDir); in run() 151 mBackupManagerService.recordInitPending(false, transportName, transportDirName); in run() 157 mBackupManagerService.recordInitPending(true, transportName, transportDirName); in run() 164 mBackupManagerService.getAlarmManager().set( in run() 167 mBackupManagerService.getRunInitIntent()); in run()
|
D | PerformClearTask.java | 32 private final UserBackupManagerService mBackupManagerService; field in PerformClearTask 41 mBackupManagerService = backupManagerService; in PerformClearTask() 56 File stateDir = new File(mBackupManagerService.getBaseStateDir(), transportDirName); in run() 78 mBackupManagerService.getWakelock().release(); in run()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/restore/ |
D | PerformUnifiedRestoreTaskTest.java | 91 private UserBackupManagerService mBackupManagerService; field in PerformUnifiedRestoreTaskTest 138 mRestoreTask = new PerformUnifiedRestoreTask(mBackupManagerService, mTransportConnection, in setUp() 155 when(mBackupManagerService.getExcludedRestoreKeys(eq(PACKAGE_NAME))) in testFilterExcludedKeys() 169 when(mBackupManagerService.getExcludedRestoreKeys(eq(PACKAGE_NAME))) in testGetExcludedKeysForPackage_alwaysReturnsLatestKeys() 175 when(mBackupManagerService.getExcludedRestoreKeys(eq(PACKAGE_NAME))) in testGetExcludedKeysForPackage_alwaysReturnsLatestKeys() 182 when(mBackupManagerService.getExcludedRestoreKeys(eq(NON_SYSTEM_PACKAGE_NAME))) in testStageBackupData_stageForNonSystemPackageWithKeysToExclude() 190 when(mBackupManagerService.getExcludedRestoreKeys(any())) in testStageBackupData_stageForNonSystemPackageWithNoKeysToExclude() 198 when(mBackupManagerService.getExcludedRestoreKeys(any())) in testStageBackupData_doNotStageForSystemPackageWithNoKeysToExclude() 206 when(mBackupManagerService.getExcludedRestoreKeys(eq(SYSTEM_PACKAGE_NAME))) in testStageBackupData_stageForSystemPackageWithKeysToExclude() 380 when(mBackupManagerService.getDataDir()).thenReturn(mContext.getCacheDir()); in setupForRestoreKeyValueState() [all …]
|
D | ActiveRestoreSessionTest.java | 60 private UserBackupManagerService mBackupManagerService; field in ActiveRestoreSessionTest 85 when(mBackupManagerService.getEligibilityRulesForOperation(anyInt())).thenReturn( in setUp() 87 when(mBackupManagerService.getTransportManager()).thenReturn(mTransportManager); in setUp() 88 when(mBackupManagerService.getContext()).thenReturn(mContext); in setUp() 93 mRestoreSession = new ActiveRestoreSession(mBackupManagerService, in setUp()
|
/frameworks/base/services/backup/java/com/android/server/backup/keyvalue/ |
D | KeyValueBackupTask.java | 250 private final UserBackupManagerService mBackupManagerService; field in KeyValueBackupTask 321 mBackupManagerService = backupManagerService; in KeyValueBackupTask() 339 mDataDirectory = mBackupManagerService.getDataDir(); in KeyValueBackupTask() 341 mQueueLock = mBackupManagerService.getQueueLock(); in KeyValueBackupTask() 379 mBackupManagerService.dataChangedImpl(packageName); in run() 387 mBackupManagerService.resetBackupState(mStateDirectory); in run() 592 if (mBackupManagerService.isBackupOperationInProgress()) { in startTask() 630 mBackupManagerService.resetBackupState(mStateDirectory); in startTask() 647 mBackupManagerService, in createFullBackupTask() 744 mBackupManagerService.bindToAgentSynchronous( in bindAgent() [all …]
|
D | KeyValueBackupReporter.java | 66 private final UserBackupManagerService mBackupManagerService; field in KeyValueBackupReporter 74 mBackupManagerService = backupManagerService; in KeyValueBackupReporter() 266 mBackupManagerService.logBackupComplete(packageName); in onPackageBackupComplete()
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/ |
D | KeyValueBackupTaskTest.java | 199 private UserBackupManagerService mBackupManagerService; field in KeyValueBackupTaskTest 245 mBackupManagerService = in setUp() 250 mBackupManagerService, in setUp() 254 mBackupManagerService.getBackupHandler(), in setUp() 256 mBackupManagerService.getAgentTimeoutParameters()); in setUp() 257 when(mBackupManagerService.getBaseStateDir()).thenReturn(mBaseStateDir); in setUp() 258 when(mBackupManagerService.getDataDir()).thenReturn(mDataDir); in setUp() 259 when(mBackupManagerService.getBackupManagerBinder()).thenReturn(mBackupManager); in setUp() 261 mBackupHandler = mBackupManagerService.getBackupHandler(); in setUp() 264 mReporter = spy(new KeyValueBackupReporter(mBackupManagerService, mObserver, in setUp() [all …]
|
D | KeyValueBackupReporterTest.java | 45 @Mock private UserBackupManagerService mBackupManagerService; field in KeyValueBackupReporterTest 56 mBackupManagerService, mObserver, mBackupManagerMonitorEventSender); in setUp()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/fullbackup/ |
D | PerformFullTransportBackupTaskTest.java | 40 UserBackupManagerService mBackupManagerService; field in PerformFullTransportBackupTaskTest 48 when(mBackupManagerService.getTransportManager()).thenReturn(mTransportManager); in setUp() 59 mBackupManagerService, in testNewWithCurrentTransport_noTransportConnection_throws()
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/restore/ |
D | ActiveRestoreSessionTest.java | 98 @Mock private UserBackupManagerService mBackupManagerService; field in ActiveRestoreSessionTest 137 when(mBackupManagerService.getAgentTimeoutParameters()).thenReturn(agentTimeoutParameters); in setUp() 140 new BackupHandler(mBackupManagerService, mOperationStorage, handlerThread); in setUp() 146 mBackupManagerService, in setUp() 153 when(mBackupManagerService.getPendingRestores()).thenReturn(new ArrayDeque<>()); in setUp() 251 doCallRealMethod().when(mBackupManagerService).setRestoreInProgress(anyBoolean()); in testRestoreAll() 252 when(mBackupManagerService.isRestoreInProgress()).thenCallRealMethod(); in testRestoreAll() 264 assertThat(mBackupManagerService.isRestoreInProgress()).isFalse(); in testRestoreAll() 326 when(mBackupManagerService.isRestoreInProgress()).thenReturn(true); in testRestoreAll_whenRestoreInProgress_addsToPendingRestores() 334 assertThat(mBackupManagerService.getPendingRestores()).hasSize(1); in testRestoreAll_whenRestoreInProgress_addsToPendingRestores() [all …]
|
/frameworks/base/services/robotests/src/com/android/server/testing/shadows/ |
D | ShadowPerformUnifiedRestoreTask.java | 52 private UserBackupManagerService mBackupManagerService; field in ShadowPerformUnifiedRestoreTask 72 mBackupManagerService = backupManagerService; in __constructor__() 82 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() 374 mBackupManagerService, in createPerformInitializeTask()
|