Home
last modified time | relevance | path

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

/frameworks/base/services/robotests/backup/src/com/android/server/backup/internal/
DPerformInitializeTaskTest.java19 import static android.app.backup.BackupTransport.TRANSPORT_ERROR;
143 configureTransport(mTransportBinder, TRANSPORT_ERROR, 0); in testRun_whenInitializeDeviceFails()
158 configureTransport(mTransportBinder, 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(mTransportBinder, TRANSPORT_ERROR, 0); in testRun_whenInitializeDeviceFails_schedulesAlarm()
182 configureTransport(mTransportBinder, TRANSPORT_OK, TRANSPORT_ERROR); in testRun_whenFinishBackupFails()
196 configureTransport(mTransportBinder, 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/core/java/android/app/backup/
DBackupTransport.java48 public static final int TRANSPORT_ERROR = -1000; field in BackupTransport
245 return BackupTransport.TRANSPORT_ERROR; in initializeDevice()
257 return BackupTransport.TRANSPORT_ERROR; in clearBackupData()
269 return BackupTransport.TRANSPORT_ERROR; in finishBackup()
334 return BackupTransport.TRANSPORT_ERROR; in performBackup()
376 return BackupTransport.TRANSPORT_ERROR; in startRestore()
420 return BackupTransport.TRANSPORT_ERROR; in getRestoreData()
542 return BackupTransport.TRANSPORT_ERROR; in sendBackupData()
DBackupManager.java116 public static final int ERROR_TRANSPORT_ABORTED = BackupTransport.TRANSPORT_ERROR;
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/transport/
DIntermediateEncryptingTransport.java93 return BackupTransport.TRANSPORT_ERROR; in performBackup()
102 return BackupTransport.TRANSPORT_ERROR; in performBackup()
111 return BackupTransport.TRANSPORT_ERROR; in performBackup()
124 return BackupTransport.TRANSPORT_ERROR; in getRestoreData()
129 return BackupTransport.TRANSPORT_ERROR; in getRestoreData()
141 return BackupTransport.TRANSPORT_ERROR; in getRestoreData()
150 return BackupTransport.TRANSPORT_ERROR; in getRestoreData()
/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.java556 .thenReturn(BackupTransport.TRANSPORT_ERROR); in testRunTask_whenTransportReturnsErrorForInitialization()
1873 .thenReturn(BackupTransport.TRANSPORT_ERROR); in testRunTask_whenTransportReturnsError_notifiesCorrectly()
1889 .thenReturn(BackupTransport.TRANSPORT_ERROR); in testRunTask_whenTransportReturnsError_logsBackupTransportFailureEvent()
1903 .thenReturn(BackupTransport.TRANSPORT_ERROR); in testRunTask_whenTransportReturnsError_revertsTask()
1917 .thenReturn(BackupTransport.TRANSPORT_ERROR); in testRunTask_whenTransportReturnsError_updatesFilesAndCleansUp()
/frameworks/base/packages/LocalTransport/src/com/android/localtransport/
DLocalTransport.java274 return TRANSPORT_ERROR; in performBackupInternal()
337 return TRANSPORT_ERROR; in performBackupInternal()
460 return TRANSPORT_ERROR; in tearDownFullBackup()
499 return TRANSPORT_ERROR; in performFullBackup()
515 return TRANSPORT_ERROR; in performFullBackup()
528 return TRANSPORT_ERROR; in sendBackupData()
546 return TRANSPORT_ERROR; in sendBackupData()
558 return TRANSPORT_ERROR; in sendBackupData()
564 return TRANSPORT_ERROR; in sendBackupData()
706 return TRANSPORT_ERROR; in getRestoreData()
[all …]
/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/BackupEncryption/src/com/android/server/backup/encryption/tasks/
DEncryptedFullBackupDataProcessor.java121 return BackupTransport.TRANSPORT_ERROR; in pushData()
128 return BackupTransport.TRANSPORT_ERROR; in pushData()
157 return BackupTransport.TRANSPORT_ERROR; in finish()
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/tasks/
DEncryptedFullBackupDataProcessorTest.java156 assertThat(result).isEqualTo(BackupTransport.TRANSPORT_ERROR); in pushData_ioExceptionOnCopy_returnsError()
169 assertThat(result).isEqualTo(BackupTransport.TRANSPORT_ERROR); in pushData_exceptionDuringUpload_returnsError()
201 assertThat(result).isEqualTo(BackupTransport.TRANSPORT_ERROR); in pushData_unexpectedEncryptedBackup_logs()
260 assertThat(result).isEqualTo(BackupTransport.TRANSPORT_ERROR); in finish_exceptionDuringUpload_returnsTransportError()
/frameworks/base/services/backup/java/com/android/server/backup/restore/
DPerformUnifiedRestoreTask.java399 mStatus = BackupTransport.TRANSPORT_ERROR; in startRestore()
411 mStatus = BackupTransport.TRANSPORT_ERROR; in startRestore()
423 mStatus = BackupTransport.TRANSPORT_ERROR; in startRestore()
459 mStatus = BackupTransport.TRANSPORT_ERROR; in startRestore()
476 mStatus = BackupTransport.TRANSPORT_ERROR; in startRestore()
988 status = BackupTransport.TRANSPORT_ERROR; in run()
1030 status = BackupTransport.TRANSPORT_ERROR; in run()
1039 if (status == BackupTransport.TRANSPORT_ERROR) { in run()
/frameworks/base/services/backup/java/com/android/server/backup/keyvalue/
DTaskException.java31 private static final int DEFAULT_STATUS = BackupTransport.TRANSPORT_ERROR;
DKeyValueBackupTask.java476 if (result == BackupTransport.TRANSPORT_ERROR in sendNoDataChangedTo()
761 status = BackupTransport.TRANSPORT_ERROR; in finishTask()
806 case BackupTransport.TRANSPORT_ERROR: in getBackupFinishedStatus()
/frameworks/base/services/backup/java/com/android/server/backup/internal/
DPerformInitializeTask.java171 result = BackupTransport.TRANSPORT_ERROR; in run()
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/
DFullBackupEngine.java276 result = BackupTransport.TRANSPORT_ERROR; in backupOnePackage()
/frameworks/base/cmds/bmgr/src/com/android/commands/bmgr/
DBmgr.java628 public int result = BackupTransport.TRANSPORT_ERROR;
/frameworks/base/non-updatable-api/
Dsystem-current.txt1052 field public static final int TRANSPORT_ERROR = -1000; // 0xfffffc18
/frameworks/base/api/
Dsystem-current.txt1104 field public static final int TRANSPORT_ERROR = -1000; // 0xfffffc18