Searched refs:OpState (Results 1 – 6 of 6) sorted by relevance
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/internal/ |
H A 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() 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() 138 statePendingTokens = mOpStorage.operationTokensForOpState(OpState.PENDING); in testRemoveOperation() 147 mOpStorage.registerOperationForPackages(TOKEN_1, OpState.PENDING, MULTIPLE_PKGS_1, in testRemoveOperation_removesPackageMappings() 149 mOpStorage.registerOperationForPackages(TOKEN_2, OpState.PENDING, MULTIPLE_PKGS_2, in testRemoveOperation_removesPackageMappings() 172 mOpStorage.registerOperation(TOKEN_3, OpState.PENDING, mCallback, OpType.BACKUP); in testIsBackupOperationInProgress() [all …]
|
/aosp14/frameworks/base/services/backup/java/com/android/server/backup/ |
H A 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()
|
H A D | UserBackupManagerService.java | 109 import com.android.server.backup.OperationStorage.OpState; 2014 mOperationStorage.registerOperation(token, OpState.PENDING, callback, operationType); in prepareOperationTimeout()
|
/aosp14/frameworks/base/services/backup/java/com/android/server/backup/internal/ |
H A D | LifecycleOperationStorage.java | 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() 289 op.state = OpState.ACKNOWLEDGED; in onOperationComplete() 326 int state = (op != null) ? op.state : OpState.TIMEOUT; in cancelOperation() 327 if (state == OpState.ACKNOWLEDGED) { in cancelOperation() 335 } else if (state == OpState.PENDING) { in cancelOperation() [all …]
|
/aosp14/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/ |
H A D | PerformFullTransportBackupTask.java | 47 import com.android.server.backup.OperationStorage.OpState; 280 mOperationStorage.registerOperationForPackages(mCurrentOpToken, OpState.PENDING, in PerformFullTransportBackupTask() 867 mOperationStorage.registerOperationForPackages(mCurrentOpToken, OpState.PENDING, in registerTask()
|
/aosp14/frameworks/base/services/backup/java/com/android/server/backup/keyvalue/ |
H A D | KeyValueBackupTask.java | 59 import com.android.server.backup.OperationStorage.OpState; 348 mOperationStorage.registerOperation(mCurrentOpToken, OpState.PENDING, this, OpType.BACKUP); in registerTask()
|