Home
last modified time | relevance | path

Searched refs:TRANSPORT_ERROR (Results 1 – 14 of 14) 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
236 return BackupTransport.TRANSPORT_ERROR; in initializeDevice()
248 return BackupTransport.TRANSPORT_ERROR; in clearBackupData()
260 return BackupTransport.TRANSPORT_ERROR; in finishBackup()
324 return BackupTransport.TRANSPORT_ERROR; in performBackup()
366 return BackupTransport.TRANSPORT_ERROR; in startRestore()
410 return BackupTransport.TRANSPORT_ERROR; in getRestoreData()
532 return BackupTransport.TRANSPORT_ERROR; in sendBackupData()
DBackupManager.java114 public static final int ERROR_TRANSPORT_ABORTED = BackupTransport.TRANSPORT_ERROR;
/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.java554 .thenReturn(BackupTransport.TRANSPORT_ERROR); in testRunTask_whenTransportReturnsErrorForInitialization()
1869 .thenReturn(BackupTransport.TRANSPORT_ERROR); in testRunTask_whenTransportReturnsError_notifiesCorrectly()
1885 .thenReturn(BackupTransport.TRANSPORT_ERROR); in testRunTask_whenTransportReturnsError_logsBackupTransportFailureEvent()
1899 .thenReturn(BackupTransport.TRANSPORT_ERROR); in testRunTask_whenTransportReturnsError_revertsTask()
1913 .thenReturn(BackupTransport.TRANSPORT_ERROR); in testRunTask_whenTransportReturnsError_updatesFilesAndCleansUp()
/frameworks/base/packages/LocalTransport/src/com/android/localtransport/
DLocalTransport.java260 return TRANSPORT_ERROR; in performBackupInternal()
323 return TRANSPORT_ERROR; in performBackupInternal()
446 return TRANSPORT_ERROR; in tearDownFullBackup()
485 return TRANSPORT_ERROR; in performFullBackup()
501 return TRANSPORT_ERROR; in performFullBackup()
514 return TRANSPORT_ERROR; in sendBackupData()
532 return TRANSPORT_ERROR; in sendBackupData()
544 return TRANSPORT_ERROR; in sendBackupData()
550 return TRANSPORT_ERROR; in sendBackupData()
685 return TRANSPORT_ERROR; in getRestoreData()
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/restore/
DPerformUnifiedRestoreTask.java384 mStatus = BackupTransport.TRANSPORT_ERROR; in startRestore()
396 mStatus = BackupTransport.TRANSPORT_ERROR; in startRestore()
408 mStatus = BackupTransport.TRANSPORT_ERROR; in startRestore()
444 mStatus = BackupTransport.TRANSPORT_ERROR; in startRestore()
461 mStatus = BackupTransport.TRANSPORT_ERROR; in startRestore()
947 status = BackupTransport.TRANSPORT_ERROR; in run()
989 status = BackupTransport.TRANSPORT_ERROR; in run()
998 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.java561 status = BackupTransport.TRANSPORT_ERROR; in finishTask()
606 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.java607 public int result = BackupTransport.TRANSPORT_ERROR;
/frameworks/base/api/
Dsystem-current.txt929 field public static final int TRANSPORT_ERROR = -1000; // 0xfffffc18
/frameworks/base/non-updatable-api/
Dsystem-current.txt929 field public static final int TRANSPORT_ERROR = -1000; // 0xfffffc18