Searched refs:OpState (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/internal/ |
D | LifecycleOperationStorageTest.java | 28 import com.android.server.backup.OperationStorage.OpState; 72 mOpStorage.registerOperation(TOKEN_1, OpState.PENDING, mCallback, OpType.BACKUP_WAIT); in testRegisterOperation_singleOperation() 82 mOpStorage.registerOperation(TOKEN_1, OpState.PENDING, mCallback, OpType.BACKUP_WAIT); in testRegisterOperation_multipleOperations() 83 mOpStorage.registerOperation(TOKEN_2, OpState.ACKNOWLEDGED, mCallback, OpType.BACKUP_WAIT); in testRegisterOperation_multipleOperations() 86 Set<Integer> statePendingTokens = mOpStorage.operationTokensForOpState(OpState.PENDING); in testRegisterOperation_multipleOperations() 88 mOpStorage.operationTokensForOpState(OpState.ACKNOWLEDGED); in testRegisterOperation_multipleOperations() 98 mOpStorage.registerOperationForPackages(TOKEN_1, OpState.PENDING, in testRegisterOperationForPackages_singlePackage() 109 mOpStorage.registerOperationForPackages(TOKEN_1, OpState.PENDING, in testRegisterOperationForPackages_multiplePackage() 111 mOpStorage.registerOperationForPackages(TOKEN_2, OpState.PENDING, in testRegisterOperationForPackages_multiplePackage() 126 mOpStorage.registerOperation(TOKEN_2, OpState.PENDING, mCallback, OpType.BACKUP_WAIT); in testRemoveOperation() [all …]
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | OperationStorage.java | 46 OpState.PENDING, 47 OpState.ACKNOWLEDGED, 48 OpState.TIMEOUT 50 public @interface OpState { annotation 86 void registerOperation(int token, @OpState int initialState, in registerOperation() 99 void registerOperationForPackages(int token, @OpState int initialState, in registerOperationForPackages() 155 Set<Integer> operationTokensForOpState(@OpState int state); in operationTokensForOpState()
|
D | UserBackupManagerService.java | 110 import com.android.server.backup.OperationStorage.OpState; 2018 mOperationStorage.registerOperation(token, OpState.PENDING, callback, operationType); in prepareOperationTimeout()
|
/frameworks/base/services/backup/java/com/android/server/backup/internal/ |
D | LifecycleOperationStorage.java | 91 public void registerOperation(int token, @OpState int initialState, in registerOperation() 98 public void registerOperationForPackages(int token, @OpState int initialState, in registerOperationForPackages() 144 if (op.type == OpType.BACKUP && op.state == OpState.PENDING) { in isBackupOperationInProgress() 183 public Set<Integer> operationTokensForOpState(@OpState int state) { in operationTokensForOpState() 213 @OpState int finalState = OpState.PENDING; in waitUntilOperationComplete() 222 if (op.state == OpState.PENDING) { in waitUntilOperationComplete() 251 return finalState == OpState.ACKNOWLEDGED; in waitUntilOperationComplete() 274 if (op.state == OpState.TIMEOUT) { in onOperationComplete() 279 } else if (op.state == OpState.ACKNOWLEDGED) { in onOperationComplete() 286 } else if (op.state == OpState.PENDING) { in onOperationComplete() [all …]
|
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/ |
D | PerformFullTransportBackupTask.java | 47 import com.android.server.backup.OperationStorage.OpState; 280 mOperationStorage.registerOperationForPackages(mCurrentOpToken, OpState.PENDING, in PerformFullTransportBackupTask() 870 mOperationStorage.registerOperationForPackages(mCurrentOpToken, OpState.PENDING, in registerTask()
|
/frameworks/base/services/backup/java/com/android/server/backup/keyvalue/ |
D | KeyValueBackupTask.java | 59 import com.android.server.backup.OperationStorage.OpState; 348 mOperationStorage.registerOperation(mCurrentOpToken, OpState.PENDING, this, OpType.BACKUP); in registerTask()
|