/frameworks/base/services/robotests/backup/src/com/android/server/backup/internal/ |
D | PerformInitializeTaskTest.java | 20 import static android.app.backup.BackupTransport.TRANSPORT_OK; 104 configureTransport(mTransportBinder, TRANSPORT_OK, TRANSPORT_OK); in testRun_callsTransportCorrectly() 116 configureTransport(mTransportBinder, TRANSPORT_OK, TRANSPORT_OK); in testRun_callsBackupManagerCorrectly() 130 configureTransport(mTransportBinder, TRANSPORT_OK, TRANSPORT_OK); in testRun_callsObserverAndListenerCorrectly() 135 verify(mObserver).onResult(eq(mTransportName), eq(TRANSPORT_OK)); in testRun_callsObserverAndListenerCorrectly() 136 verify(mObserver).backupFinished(eq(TRANSPORT_OK)); in testRun_callsObserverAndListenerCorrectly() 182 configureTransport(mTransportBinder, TRANSPORT_OK, TRANSPORT_ERROR); in testRun_whenFinishBackupFails() 196 configureTransport(mTransportBinder, TRANSPORT_OK, TRANSPORT_ERROR); in testRun_whenFinishBackupFails_callsObserverAndListenerCorrectly() 209 configureTransport(mTransportBinder, TRANSPORT_OK, TRANSPORT_ERROR); in testRun_whenFinishBackupFails_logs() 235 configureTransport(mTransportBinder, TRANSPORT_OK, TRANSPORT_ERROR); in testRun_whenFinishBackupFails_schedulesAlarm() [all …]
|
/frameworks/base/services/backup/java/com/android/server/backup/internal/ |
D | PerformInitializeTask.java | 113 int result = BackupTransport.TRANSPORT_OK; in run() 133 if (status != BackupTransport.TRANSPORT_OK) { in run() 137 if (status != BackupTransport.TRANSPORT_OK) { in run() 143 if (status == BackupTransport.TRANSPORT_OK) { in run() 151 notifyResult(transportName, BackupTransport.TRANSPORT_OK); in run()
|
/frameworks/base/packages/LocalTransport/src/com/android/localtransport/ |
D | LocalTransport.java | 184 return TRANSPORT_OK; in initializeDevice() 217 return BackupTransport.TRANSPORT_OK; in performBackupInternal() 341 return TRANSPORT_OK; in performBackupInternal() 434 return TRANSPORT_OK; in clearBackupData() 466 return TRANSPORT_OK; in tearDownFullBackup() 480 int result = TRANSPORT_OK; in checkFullBackupSize() 487 if (result != TRANSPORT_OK) { in checkFullBackupSize() 521 return TRANSPORT_OK; in performFullBackup() 570 return TRANSPORT_OK; in sendBackupData() 626 return TRANSPORT_OK; in startRestore() [all …]
|
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/ |
D | PerformFullTransportBackupTask.java | 387 if (backupPackageStatus == BackupTransport.TRANSPORT_OK) { in run() 403 if (backupPackageStatus == BackupTransport.TRANSPORT_OK) { in run() 460 && backupPackageStatus == BackupTransport.TRANSPORT_OK); in run() 480 if (backupRunnerResult == BackupTransport.TRANSPORT_OK) { in run() 486 if (backupPackageStatus == BackupTransport.TRANSPORT_OK) { in run() 504 if (backupPackageStatus == BackupTransport.TRANSPORT_OK) { in run() 506 if (backupRunnerResult != BackupTransport.TRANSPORT_OK) { in run() 522 if (backupPackageStatus != BackupTransport.TRANSPORT_OK) { in run() 589 } else if (backupPackageStatus != BackupTransport.TRANSPORT_OK) { in run() 869 if (mPreflightResult == BackupTransport.TRANSPORT_OK) { in run() [all …]
|
D | FullBackupEngine.java | 214 return BackupTransport.TRANSPORT_OK; in preflightCheck() 257 result = BackupTransport.TRANSPORT_OK; in backupOnePackage()
|
/frameworks/base/core/java/android/app/backup/ |
D | BackupTransport.java | 41 public static final int TRANSPORT_OK = 0; field in BackupTransport 526 return BackupTransport.TRANSPORT_OK; in checkFullBackupSize() 641 return BackupTransport.TRANSPORT_OK; in abortFullRestore()
|
/frameworks/base/packages/EncryptedLocalTransport/src/com/android/encryptedlocaltransport/ |
D | EncryptedLocalTransport.java | 76 return TRANSPORT_OK; in performBackup() 100 return BackupTransport.TRANSPORT_OK; in getRestoreData()
|
/frameworks/base/services/backup/java/com/android/server/backup/keyvalue/ |
D | KeyValueBackupTask.java | 351 int status = BackupTransport.TRANSPORT_OK; in run() 621 if (status != BackupTransport.TRANSPORT_OK) { in startTask() 741 if (mHasDataToBackup && (status == BackupTransport.TRANSPORT_OK) && (currentToken == 0)) { in finishTask() 776 && status == BackupTransport.TRANSPORT_OK in finishTask() 801 case BackupTransport.TRANSPORT_OK: in getBackupFinishedStatus() 1048 return BackupTransport.TRANSPORT_OK; in transportPerformBackup() 1062 if (status == BackupTransport.TRANSPORT_OK) { in transportPerformBackup() 1082 if (status == BackupTransport.TRANSPORT_OK) { in handleTransportStatus() 1238 case BackupTransport.TRANSPORT_OK: in cleanUpAgentForTransportStatus()
|
D | TaskException.java | 47 status != BackupTransport.TRANSPORT_OK, "Exception based on TRANSPORT_OK"); in forStatus()
|
D | KeyValueBackupReporter.java | 114 if (status == BackupTransport.TRANSPORT_OK) { in onTransportInitialized()
|
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/tasks/ |
D | EncryptedFullBackupDataProcessor.java | 131 return BackupTransport.TRANSPORT_OK; in pushData() 164 return BackupTransport.TRANSPORT_OK; in finish()
|
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/transport/ |
D | IntermediateEncryptingTransport.java | 135 if (status != BackupTransport.TRANSPORT_OK) { in getRestoreData() 153 return BackupTransport.TRANSPORT_OK; in getRestoreData()
|
/frameworks/base/services/backup/java/com/android/server/backup/restore/ |
D | PerformUnifiedRestoreTask.java | 397 if (mStatus != BackupTransport.TRANSPORT_OK) { in startRestore() 712 if (transport.getRestoreData(stage) != BackupTransport.TRANSPORT_OK) { in initiateOneRestore() 908 int status = BackupTransport.TRANSPORT_OK; in run() 932 while (status == BackupTransport.TRANSPORT_OK) { in run() 960 status = BackupTransport.TRANSPORT_OK; in run() 1009 if (status == BackupTransport.TRANSPORT_OK) { in run()
|
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/tasks/ |
D | EncryptedFullBackupDataProcessorTest.java | 141 assertThat(result).isEqualTo(BackupTransport.TRANSPORT_OK); in pushData_noError_returnsOk() 249 assertThat(result).isEqualTo(BackupTransport.TRANSPORT_OK); in finish_noException_returnsTransportOk()
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/ |
D | TaskExceptionTest.java | 69 () -> TaskException.forStatus(BackupTransport.TRANSPORT_OK)); in testForStatus_whenTransportOk_throws()
|
D | KeyValueBackupTaskTest.java | 1346 .thenReturn(BackupTransport.TRANSPORT_OK); in testRunTask_whenPerformBackupSucceeds_callsTransportFinishBackup() 1359 when(transportMock.transport.finishBackup()).thenReturn(BackupTransport.TRANSPORT_OK); in testRunTask_whenFinishBackupSucceeds_updatesFilesAndCleansUp() 1380 when(transportMock.transport.finishBackup()).thenReturn(BackupTransport.TRANSPORT_OK); in testRunTask_whenFinishBackupSucceedsForPm_cleansUp() 1404 when(transportMock.transport.finishBackup()).thenReturn(BackupTransport.TRANSPORT_OK); in testRunTask_whenFinishBackupSucceedsForPm_doesNotUnbindPm() 1546 .thenReturn(BackupTransport.TRANSPORT_OK); in testRunTask_whenTransportRejectsFirstPackageButLastSucceeds() 1562 .thenReturn(BackupTransport.TRANSPORT_OK); in testRunTask_whenTransportRejectsLastPackageButFirstSucceeds() 1827 copyBackupDataAndReturn(nonIncrementalData, BackupTransport.TRANSPORT_OK)); in testRunTask_whenIncrementalAndTransportRequestsNonIncremental() 2172 return BackupTransport.TRANSPORT_OK; in testRunTask_whenMarkCancelDuringTransportPerformBackup_callsTransportForPackage() 2225 return BackupTransport.TRANSPORT_OK; in testRunTask_whenMarkCancelDuringTransportPerformBackupForFirstPackage_callsTransportForFirstPackageButNotForSecond() 2809 return copyBackupDataAndReturn(backupDataPath, BackupTransport.TRANSPORT_OK); in copyBackupDataTo()
|
/frameworks/base/packages/BackupEncryption/test/unittest/src/com/android/server/backup/encryption/transport/ |
D | IntermediateEncryptingTransportTest.java | 81 when(mRealTransport.getRestoreData(any())).thenReturn(BackupTransport.TRANSPORT_OK); in setUp()
|
/frameworks/base/non-updatable-api/ |
D | system-current.txt | 1055 field public static final int TRANSPORT_OK = 0; // 0x0
|
/frameworks/base/api/ |
D | system-current.txt | 1107 field public static final int TRANSPORT_OK = 0; // 0x0
|