Home
last modified time | relevance | path

Searched refs:mOperationStorage (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/services/backup/java/com/android/server/backup/restore/
DAdbRestoreFinishedLatch.java40 private final OperationStorage mOperationStorage; field in AdbRestoreFinishedLatch
49 mOperationStorage = operationStorage; in AdbRestoreFinishedLatch()
79 mOperationStorage.removeOperation(mCurrentOpToken); in operationComplete()
88 mOperationStorage.removeOperation(mCurrentOpToken); in handleCancel()
DPerformAdbRestoreTask.java64 private final OperationStorage mOperationStorage; field in PerformAdbRestoreTask
78 mOperationStorage = operationStorage; in PerformAdbRestoreTask()
119 mOperationStorage, null, mObserver, null, null, in run()
DFullRestoreEngine.java83 private final OperationStorage mOperationStorage; field in FullRestoreEngine
157 mOperationStorage = operationStorage; in FullRestoreEngine()
190 mOperationStorage = null; in FullRestoreEngine()
716 mBackupManagerService, mOperationStorage, token); in tearDownAgent()
DPerformUnifiedRestoreTask.java94 private final OperationStorage mOperationStorage; field in PerformUnifiedRestoreTask
191 mOperationStorage = null; in PerformUnifiedRestoreTask()
219 mOperationStorage = operationStorage; in PerformUnifiedRestoreTask()
1131 mOperationStorage, in run()
1322 mOperationStorage.removeOperation(mEphemeralOpToken); in handleCancel()
1534 mOperationStorage.removeOperation(mEphemeralOpToken); in operationComplete()
1610 mOperationStorage.removeOperation(mEphemeralOpToken); in handleCancel()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/
DUserBackupManagerServiceTest.java98 @Mock LifecycleOperationStorage mOperationStorage; field in UserBackupManagerServiceTest
123 mService = new TestBackupService(mContext, mPackageManager, mOperationStorage, in setUp()
261 when(mOperationStorage.operationTokensForPackage(eq("com.android.foo"))).thenReturn( in testAgentDisconnected_cancelsCurrentOperations()
268 verify(mOperationStorage).cancelOperation(eq(123), eq(true), any(IntConsumer.class)); in testAgentDisconnected_cancelsCurrentOperations()
269 verify(mOperationStorage).cancelOperation(eq(456), eq(true), any()); in testAgentDisconnected_cancelsCurrentOperations()
270 verify(mOperationStorage).cancelOperation(eq(789), eq(true), any()); in testAgentDisconnected_cancelsCurrentOperations()
275 when(mOperationStorage.operationTokensForPackage(eq("com.android.foo"))).thenReturn( in testAgentDisconnected_unknownPackageName_cancelsNothing()
281 verify(mOperationStorage, never()) in testAgentDisconnected_unknownPackageName_cancelsNothing()
/frameworks/base/services/backup/java/com/android/server/backup/internal/
DBackupHandler.java89 private final OperationStorage mOperationStorage; field in BackupHandler
103 mOperationStorage = operationStorage; in BackupHandler()
231 mOperationStorage, in handleMessage()
296 backupManagerService, mOperationStorage, params.fd, in handleMessage()
313 mOperationStorage, in handleMessage()
350 mOperationStorage, params.fd, in handleMessage()
482 mOperationStorage, in handleMessage()
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/
DPerformFullTransportBackupTask.java149 OperationStorage mOperationStorage; field in PerformFullTransportBackupTask
181 mOperationStorage = operationStorage; in PerformFullTransportBackupTask()
280 mOperationStorage.registerOperationForPackages(mCurrentOpToken, OpState.PENDING, in PerformFullTransportBackupTask()
286 mOperationStorage.removeOperation(mCurrentOpToken); in unregisterTask()
809 mOperationStorage.removeOperation(mCurrentOpToken); in operationComplete()
819 mOperationStorage.removeOperation(mCurrentOpToken); in handleCancel()
870 mOperationStorage.registerOperationForPackages(mCurrentOpToken, OpState.PENDING, in registerTask()
875 mOperationStorage.removeOperation(mCurrentOpToken); in unregisterTask()
986 mOperationStorage.removeOperation(mCurrentOpToken); in handleCancel()
DPerformAdbBackupTask.java72 private final OperationStorage mOperationStorage; field in PerformAdbBackupTask
100 mOperationStorage = operationStorage; in PerformAdbBackupTask()
508 mOperationStorage.removeOperation(mCurrentOpToken); in handleCancel()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/internal/
DBackupHandlerTest.java49 @Mock private OperationStorage mOperationStorage; field in BackupHandlerTest
118 super(mUserBackupManagerService, mOperationStorage, mHandlerThread); in TestBackupHandler()
/frameworks/base/services/backup/java/com/android/server/backup/keyvalue/
DKeyValueBackupTask.java251 private final OperationStorage mOperationStorage; field in KeyValueBackupTask
322 mOperationStorage = operationStorage; in KeyValueBackupTask()
348 mOperationStorage.registerOperation(mCurrentOpToken, OpState.PENDING, this, OpType.BACKUP); in registerTask()
352 mOperationStorage.removeOperation(mCurrentOpToken); in unregisterTask()
648 mOperationStorage, in createFullBackupTask()
/frameworks/base/services/backup/java/com/android/server/backup/
DUserBackupManagerService.java394 private final LifecycleOperationStorage mOperationStorage; field in UserBackupManagerService
529 mOperationStorage = operationStorage; in UserBackupManagerService()
581 mOperationStorage = new LifecycleOperationStorage(mUserId); in UserBackupManagerService()
584 mBackupHandler = new BackupHandler(this, mOperationStorage, userBackupThread); in UserBackupManagerService()
747 return mOperationStorage; in getOperationStorage()
1974 mOperationStorage.operationTokensForOpType(OpType.BACKUP); in cancelBackups()
1977 mOperationStorage.cancelOperation(token, /* cancelAll */ true, in cancelBackups()
2018 mOperationStorage.registerOperation(token, OpState.PENDING, callback, operationType); in prepareOperationTimeout()
2043 return mOperationStorage.waitUntilOperationComplete(token, operationType -> { in waitUntilOperationComplete()
2053 mOperationStorage.cancelOperation(token, cancelAll, operationType -> { in handleCancel()
[all …]
/frameworks/base/services/robotests/backup/src/com/android/server/backup/restore/
DActiveRestoreSessionTest.java103 @Mock private OperationStorage mOperationStorage; field in ActiveRestoreSessionTest
140 new BackupHandler(mBackupManagerService, mOperationStorage, handlerThread); in setUp()