/frameworks/base/core/java/android/app/backup/ |
D | BackupTransport.java | 53 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 …]
|
D | BackupManager.java | 121 public static final int ERROR_TRANSPORT_ABORTED = BackupTransport.TRANSPORT_ERROR;
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/internal/ |
D | PerformInitializeTaskTest.java | 19 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/ |
D | TaskExceptionTest.java | 40 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()
|
D | KeyValueBackupTaskTest.java | 578 .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/ |
D | EncryptedLocalTransport.java | 63 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/ |
D | LocalTransport.java | 291 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/ |
D | BackupTransportClient.java | 163 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()
|
D | TransportStatusCallback.java | 82 return BackupTransport.TRANSPORT_ERROR; in getOperationStatus()
|
/frameworks/base/services/backup/java/com/android/server/backup/keyvalue/ |
D | TaskException.java | 31 private static final int DEFAULT_STATUS = BackupTransport.TRANSPORT_ERROR;
|
D | KeyValueBackupTask.java | 487 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/ |
D | TransportStatusCallbackTest.java | 71 assertThat(result).isEqualTo(BackupTransport.TRANSPORT_ERROR); in testGetOperationStatus_operationTimesOut_returnsError()
|
D | BackupTransportClientTest.java | 196 assertThat(status).isEqualTo(BackupTransport.TRANSPORT_ERROR); in testFinishBackup_canceledBeforeCompletion_returnsError()
|
/frameworks/base/services/backup/java/com/android/server/backup/restore/ |
D | PerformUnifiedRestoreTask.java | 480 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/ |
D | PerformUnifiedRestoreTaskTest.java | 221 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/ |
D | PerformInitializeTask.java | 172 result = BackupTransport.TRANSPORT_ERROR; in run()
|
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/ |
D | FullBackupEngine.java | 289 result = BackupTransport.TRANSPORT_ERROR; in backupOnePackage()
|
/frameworks/base/cmds/bmgr/src/com/android/commands/bmgr/ |
D | Bmgr.java | 654 public int result = BackupTransport.TRANSPORT_ERROR;
|
/frameworks/base/core/api/ |
D | system-current.txt | 1925 field public static final int TRANSPORT_ERROR = -1000; // 0xfffffc18
|