Home
last modified time | relevance | path

Searched refs:TRANSPORT_OK (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/services/robotests/backup/src/com/android/server/backup/internal/
DPerformInitializeTaskTest.java20 import static android.app.backup.BackupTransport.TRANSPORT_OK;
104 configureTransport(mTransportClient, TRANSPORT_OK, TRANSPORT_OK); in testRun_callsTransportCorrectly()
116 configureTransport(mTransportClient, TRANSPORT_OK, TRANSPORT_OK); in testRun_callsBackupManagerCorrectly()
130 configureTransport(mTransportClient, 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(mTransportClient, TRANSPORT_OK, TRANSPORT_ERROR); in testRun_whenFinishBackupFails()
196 configureTransport(mTransportClient, TRANSPORT_OK, TRANSPORT_ERROR); in testRun_whenFinishBackupFails_callsObserverAndListenerCorrectly()
209 configureTransport(mTransportClient, TRANSPORT_OK, TRANSPORT_ERROR); in testRun_whenFinishBackupFails_logs()
235 configureTransport(mTransportClient, TRANSPORT_OK, TRANSPORT_ERROR); in testRun_whenFinishBackupFails_schedulesAlarm()
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/internal/
DPerformInitializeTask.java113 int result = BackupTransport.TRANSPORT_OK; in run()
134 if (status != BackupTransport.TRANSPORT_OK) { in run()
138 if (status != BackupTransport.TRANSPORT_OK) { in run()
144 if (status == BackupTransport.TRANSPORT_OK) { in run()
152 notifyResult(transportName, BackupTransport.TRANSPORT_OK); in run()
/frameworks/base/packages/LocalTransport/src/com/android/localtransport/
DLocalTransport.java201 return TRANSPORT_OK; in initializeDevice()
234 return BackupTransport.TRANSPORT_OK; in performBackupInternal()
358 return TRANSPORT_OK; in performBackupInternal()
451 return TRANSPORT_OK; in clearBackupData()
483 return TRANSPORT_OK; in tearDownFullBackup()
497 int result = TRANSPORT_OK; in checkFullBackupSize()
504 if (result != TRANSPORT_OK) { in checkFullBackupSize()
538 return TRANSPORT_OK; in performFullBackup()
587 return TRANSPORT_OK; in sendBackupData()
645 return TRANSPORT_OK; in startRestore()
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/
DPerformFullTransportBackupTask.java422 if (backupPackageStatus == BackupTransport.TRANSPORT_OK) { in run()
438 if (backupPackageStatus == BackupTransport.TRANSPORT_OK) { in run()
495 && backupPackageStatus == BackupTransport.TRANSPORT_OK); in run()
515 if (backupRunnerResult == BackupTransport.TRANSPORT_OK) { in run()
521 if (backupPackageStatus == BackupTransport.TRANSPORT_OK) { in run()
539 if (backupPackageStatus == BackupTransport.TRANSPORT_OK) { in run()
541 if (backupRunnerResult != BackupTransport.TRANSPORT_OK) { in run()
557 if (backupPackageStatus != BackupTransport.TRANSPORT_OK) { in run()
624 } else if (backupPackageStatus != BackupTransport.TRANSPORT_OK) { in run()
903 if (mPreflightResult == BackupTransport.TRANSPORT_OK) { in run()
[all …]
DFullBackupEngine.java222 return BackupTransport.TRANSPORT_OK; in preflightCheck()
268 result = BackupTransport.TRANSPORT_OK; in backupOnePackage()
/frameworks/base/packages/EncryptedLocalTransport/src/com/android/encryptedlocaltransport/
DEncryptedLocalTransport.java76 return TRANSPORT_OK; in performBackup()
100 return BackupTransport.TRANSPORT_OK; in getRestoreData()
/frameworks/base/services/backup/java/com/android/server/backup/keyvalue/
DKeyValueBackupTask.java362 int status = BackupTransport.TRANSPORT_OK; in run()
633 if (status != BackupTransport.TRANSPORT_OK) { in startTask()
776 if (mHasDataToBackup && (status == BackupTransport.TRANSPORT_OK) && (currentToken == 0)) { in finishTask()
812 && status == BackupTransport.TRANSPORT_OK in finishTask()
837 case BackupTransport.TRANSPORT_OK: in getBackupFinishedStatus()
1085 return BackupTransport.TRANSPORT_OK; in transportPerformBackup()
1099 if (status == BackupTransport.TRANSPORT_OK) { in transportPerformBackup()
1119 if (status == BackupTransport.TRANSPORT_OK) { in handleTransportStatus()
1275 case BackupTransport.TRANSPORT_OK: in cleanUpAgentForTransportStatus()
DTaskException.java47 status != BackupTransport.TRANSPORT_OK, "Exception based on TRANSPORT_OK"); in forStatus()
DKeyValueBackupReporter.java114 if (status == BackupTransport.TRANSPORT_OK) { in onTransportInitialized()
/frameworks/base/core/java/android/app/backup/
DBackupTransport.java46 public static final int TRANSPORT_OK = 0; field in BackupTransport
531 return BackupTransport.TRANSPORT_OK; in checkFullBackupSize()
646 return BackupTransport.TRANSPORT_OK; in abortFullRestore()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/
DTaskExceptionTest.java69 () -> TaskException.forStatus(BackupTransport.TRANSPORT_OK)); in testForStatus_whenTransportOk_throws()
DKeyValueBackupTaskTest.java1369 .thenReturn(BackupTransport.TRANSPORT_OK); in testRunTask_whenPerformBackupSucceeds_callsTransportFinishBackup()
1382 when(transportMock.transport.finishBackup()).thenReturn(BackupTransport.TRANSPORT_OK); in testRunTask_whenFinishBackupSucceeds_updatesFilesAndCleansUp()
1403 when(transportMock.transport.finishBackup()).thenReturn(BackupTransport.TRANSPORT_OK); in testRunTask_whenFinishBackupSucceedsForPm_cleansUp()
1428 when(transportMock.transport.finishBackup()).thenReturn(BackupTransport.TRANSPORT_OK); in testRunTask_whenFinishBackupSucceedsForPm_doesNotUnbindPm()
1601 .thenReturn(BackupTransport.TRANSPORT_OK); in testRunTask_whenTransportRejectsFirstPackageButLastSucceeds()
1617 .thenReturn(BackupTransport.TRANSPORT_OK); in testRunTask_whenTransportRejectsLastPackageButFirstSucceeds()
1882 copyBackupDataAndReturn(nonIncrementalData, BackupTransport.TRANSPORT_OK)); in testRunTask_whenIncrementalAndTransportRequestsNonIncremental()
2267 return BackupTransport.TRANSPORT_OK; in testRunTask_whenMarkCancelDuringTransportPerformBackup_callsTransportForPackage()
2320 return BackupTransport.TRANSPORT_OK; in testRunTask_whenMarkCancelDuringTransportPerformBackupForFirstPackage_callsTransportForFirstPackageButNotForSecond()
2918 return copyBackupDataAndReturn(backupDataPath, BackupTransport.TRANSPORT_OK); in copyBackupDataTo()
/frameworks/base/services/backup/java/com/android/server/backup/restore/
DPerformUnifiedRestoreTask.java472 if (mStatus != BackupTransport.TRANSPORT_OK) { in startRestore()
880 if (transport.getRestoreData(stage) != BackupTransport.TRANSPORT_OK) { in initiateOneRestore()
1124 int status = BackupTransport.TRANSPORT_OK; in run()
1162 while (status == BackupTransport.TRANSPORT_OK) { in run()
1192 status = BackupTransport.TRANSPORT_OK; in run()
1266 if (status == BackupTransport.TRANSPORT_OK) { in run()
/frameworks/base/core/api/
Dsystem-current.txt1928 field public static final int TRANSPORT_OK = 0; // 0x0