Home
last modified time | relevance | path

Searched refs:TRANSPORT_ERROR (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/core/java/android/app/backup/
DBackupTransport.java53 public static final int TRANSPORT_ERROR = -1000; field in BackupTransport
250 return BackupTransport.TRANSPORT_ERROR; in initializeDevice()
262 return BackupTransport.TRANSPORT_ERROR; in clearBackupData()
274 return BackupTransport.TRANSPORT_ERROR; in finishBackup()
339 return BackupTransport.TRANSPORT_ERROR; in performBackup()
381 return BackupTransport.TRANSPORT_ERROR; in startRestore()
425 return BackupTransport.TRANSPORT_ERROR; in getRestoreData()
547 return BackupTransport.TRANSPORT_ERROR; in sendBackupData()
761 callback.onOperationCompleteWithStatus(BackupTransport.TRANSPORT_ERROR); in initializeDevice()
772 callback.onOperationCompleteWithStatus(BackupTransport.TRANSPORT_ERROR); in performBackup()
[all …]
DBackupManager.java121 public static final int ERROR_TRANSPORT_ABORTED = BackupTransport.TRANSPORT_ERROR;
/frameworks/base/services/robotests/backup/src/com/android/server/backup/internal/
DPerformInitializeTaskTest.java19 import static android.app.backup.BackupTransport.TRANSPORT_ERROR;
143 configureTransport(mTransportClient, TRANSPORT_ERROR, 0); in testRun_whenInitializeDeviceFails()
158 configureTransport(mTransportClient, TRANSPORT_ERROR, 0); in testRun_whenInitializeDeviceFails_callsObserverAndListenerCorrectly()
163 verify(mObserver).onResult(eq(mTransportName), eq(TRANSPORT_ERROR)); in testRun_whenInitializeDeviceFails_callsObserverAndListenerCorrectly()
164 verify(mObserver).backupFinished(eq(TRANSPORT_ERROR)); in testRun_whenInitializeDeviceFails_callsObserverAndListenerCorrectly()
171 configureTransport(mTransportClient, TRANSPORT_ERROR, 0); in testRun_whenInitializeDeviceFails_schedulesAlarm()
182 configureTransport(mTransportClient, TRANSPORT_OK, TRANSPORT_ERROR); in testRun_whenFinishBackupFails()
196 configureTransport(mTransportClient, TRANSPORT_OK, TRANSPORT_ERROR); in testRun_whenFinishBackupFails_callsObserverAndListenerCorrectly()
201 verify(mObserver).onResult(eq(mTransportName), eq(TRANSPORT_ERROR)); in testRun_whenFinishBackupFails_callsObserverAndListenerCorrectly()
202 verify(mObserver).backupFinished(eq(TRANSPORT_ERROR)); in testRun_whenFinishBackupFails_callsObserverAndListenerCorrectly()
[all …]
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/
DTaskExceptionTest.java40 assertThat(exception.getStatus()).isEqualTo(BackupTransport.TRANSPORT_ERROR); in testStateCompromised()
61 assertThat(exception.getStatus()).isEqualTo(BackupTransport.TRANSPORT_ERROR); in testStateCompromised_whenCauseNotInstanceOfTaskException()
98 assertThat(exception.getStatus()).isEqualTo(BackupTransport.TRANSPORT_ERROR); in testCausedBy_whenCauseNotInstanceOfTaskException()
107 assertThat(exception.getStatus()).isEqualTo(BackupTransport.TRANSPORT_ERROR); in testCreate()
DKeyValueBackupTaskTest.java578 .thenReturn(BackupTransport.TRANSPORT_ERROR); in testRunTask_whenTransportReturnsErrorForInitialization()
1928 .thenReturn(BackupTransport.TRANSPORT_ERROR); in testRunTask_whenTransportReturnsError_notifiesCorrectly()
1944 .thenReturn(BackupTransport.TRANSPORT_ERROR); in testRunTask_whenTransportReturnsError_logsBackupTransportFailureEvent()
1958 .thenReturn(BackupTransport.TRANSPORT_ERROR); in testRunTask_whenTransportReturnsError_revertsTask()
1973 .thenReturn(BackupTransport.TRANSPORT_ERROR); in testRunTask_whenTransportReturnsErrorForGenericPackage_updatesFilesAndCleansUp()
1999 .thenReturn(BackupTransport.TRANSPORT_ERROR); in testRunTask_whenTransportReturnsErrorForPm_updatesFilesAndCleansUp()
/frameworks/base/packages/EncryptedLocalTransport/src/com/android/encryptedlocaltransport/
DEncryptedLocalTransport.java63 return BackupTransport.TRANSPORT_ERROR; in performBackup()
73 return BackupTransport.TRANSPORT_ERROR; in performBackup()
97 return BackupTransport.TRANSPORT_ERROR; in getRestoreData()
/frameworks/base/packages/LocalTransport/src/com/android/localtransport/
DLocalTransport.java291 return TRANSPORT_ERROR; in performBackupInternal()
354 return TRANSPORT_ERROR; in performBackupInternal()
477 return TRANSPORT_ERROR; in tearDownFullBackup()
516 return TRANSPORT_ERROR; in performFullBackup()
532 return TRANSPORT_ERROR; in performFullBackup()
545 return TRANSPORT_ERROR; in sendBackupData()
563 return TRANSPORT_ERROR; in sendBackupData()
575 return TRANSPORT_ERROR; in sendBackupData()
581 return TRANSPORT_ERROR; in sendBackupData()
725 return TRANSPORT_ERROR; in getRestoreData()
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/transport/
DBackupTransportClient.java163 return result == null ? BackupTransport.TRANSPORT_ERROR : result; in requestBackupTime()
197 return result == null ? BackupTransport.TRANSPORT_ERROR : result; in getCurrentRestoreSet()
255 return result == null ? BackupTransport.TRANSPORT_ERROR : result; in requestFullBackupTime()
329 return result == null ? BackupTransport.TRANSPORT_ERROR : result; in getBackupQuota()
365 return result == null ? BackupTransport.TRANSPORT_ERROR : result; in getTransportFlags()
466 callback.onOperationCompleteWithStatus(BackupTransport.TRANSPORT_ERROR); in cancelActiveCallbacks()
DTransportStatusCallback.java82 return BackupTransport.TRANSPORT_ERROR; in getOperationStatus()
/frameworks/base/services/backup/java/com/android/server/backup/keyvalue/
DTaskException.java31 private static final int DEFAULT_STATUS = BackupTransport.TRANSPORT_ERROR;
DKeyValueBackupTask.java487 if (result == BackupTransport.TRANSPORT_ERROR in sendNoDataChangedTo()
797 status = BackupTransport.TRANSPORT_ERROR; in finishTask()
842 case BackupTransport.TRANSPORT_ERROR: in getBackupFinishedStatus()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/transport/
DTransportStatusCallbackTest.java71 assertThat(result).isEqualTo(BackupTransport.TRANSPORT_ERROR); in testGetOperationStatus_operationTimesOut_returnsError()
DBackupTransportClientTest.java196 assertThat(status).isEqualTo(BackupTransport.TRANSPORT_ERROR); in testFinishBackup_canceledBeforeCompletion_returnsError()
/frameworks/base/services/backup/java/com/android/server/backup/restore/
DPerformUnifiedRestoreTask.java480 mStatus = BackupTransport.TRANSPORT_ERROR; in startRestore()
494 mStatus = BackupTransport.TRANSPORT_ERROR; in startRestore()
506 mStatus = BackupTransport.TRANSPORT_ERROR; in startRestore()
546 mStatus = BackupTransport.TRANSPORT_ERROR; in startRestore()
566 mStatus = BackupTransport.TRANSPORT_ERROR; in startRestore()
755 mStatus = BackupTransport.TRANSPORT_ERROR; in dispatchNextRestore()
1245 status = BackupTransport.TRANSPORT_ERROR; in run()
1287 status = BackupTransport.TRANSPORT_ERROR; in run()
1296 if (status == BackupTransport.TRANSPORT_ERROR) { in run()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/restore/
DPerformUnifiedRestoreTaskTest.java221 setupForRestoreKeyValueState(BackupTransport.TRANSPORT_ERROR); in testFailedKeyValueRestore_continueAfterFeatureEnabled_nextStateIsRunningQueue()
243 setupForRestoreKeyValueState(BackupTransport.TRANSPORT_ERROR); in testFailedKeyValueRestore_continueAfterFeatureDisabled_nextStateIsFinal()
/frameworks/base/services/backup/java/com/android/server/backup/internal/
DPerformInitializeTask.java172 result = BackupTransport.TRANSPORT_ERROR; in run()
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/
DFullBackupEngine.java289 result = BackupTransport.TRANSPORT_ERROR; in backupOnePackage()
/frameworks/base/cmds/bmgr/src/com/android/commands/bmgr/
DBmgr.java654 public int result = BackupTransport.TRANSPORT_ERROR;
/frameworks/base/core/api/
Dsystem-current.txt1925 field public static final int TRANSPORT_ERROR = -1000; // 0xfffffc18