Home
last modified time | relevance | path

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

/frameworks/base/services/robotests/src/com/android/server/backup/internal/
DPerformInitializeTaskTest.java20 import static android.app.backup.BackupTransport.TRANSPORT_OK;
102 configureTransport(mTransportBinder, TRANSPORT_OK, TRANSPORT_OK); in testRun_callsTransportCorrectly()
114 configureTransport(mTransportBinder, TRANSPORT_OK, TRANSPORT_OK); in testRun_callsBackupManagerCorrectly()
128 configureTransport(mTransportBinder, TRANSPORT_OK, TRANSPORT_OK); in testRun_callsObserverAndListenerCorrectly()
133 verify(mObserver).onResult(eq(mTransportName), eq(TRANSPORT_OK)); in testRun_callsObserverAndListenerCorrectly()
134 verify(mObserver).backupFinished(eq(TRANSPORT_OK)); in testRun_callsObserverAndListenerCorrectly()
180 configureTransport(mTransportBinder, TRANSPORT_OK, TRANSPORT_ERROR); in testRun_whenFinishBackupFails()
194 configureTransport(mTransportBinder, TRANSPORT_OK, TRANSPORT_ERROR); in testRun_whenFinishBackupFails_callsObserverAndListenerCorrectly()
207 configureTransport(mTransportBinder, TRANSPORT_OK, TRANSPORT_ERROR); in testRun_whenFinishBackupFails_schedulesAlarm()
222 configureTransport(transportMocks.get(1).transport, TRANSPORT_OK, TRANSPORT_OK); in testRun_whenOnlyOneTransportFails()
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/internal/
DPerformBackupTask.java266 mStatus = BackupTransport.TRANSPORT_OK; in beginBackup()
312 if (mStatus == BackupTransport.TRANSPORT_OK && pmState.length() <= 0) { in beginBackup()
319 if (mStatus == BackupTransport.TRANSPORT_OK) { in beginBackup()
335 if (mStatus == BackupTransport.TRANSPORT_OK) { in beginBackup()
347 if (mStatus != BackupTransport.TRANSPORT_OK) { in beginBackup()
383 if (mStatus != BackupTransport.TRANSPORT_OK) { in backupPm()
405 mStatus = BackupTransport.TRANSPORT_OK; in invokeNextAgent()
509 if (mStatus != BackupTransport.TRANSPORT_OK) { in invokeNextAgent()
521 mStatus = BackupTransport.TRANSPORT_OK; in invokeNextAgent()
529 mStatus = BackupTransport.TRANSPORT_OK; in invokeNextAgent()
[all …]
DPerformInitializeTask.java113 int result = BackupTransport.TRANSPORT_OK; in run()
134 if (status == BackupTransport.TRANSPORT_OK) { in run()
139 if (status == BackupTransport.TRANSPORT_OK) { in run()
147 notifyResult(transportName, BackupTransport.TRANSPORT_OK); in run()
/frameworks/base/core/java/com/android/internal/backup/
DLocalTransport.java174 return TRANSPORT_OK; in initializeDevice()
316 return TRANSPORT_OK; in performBackup()
409 return TRANSPORT_OK; in clearBackupData()
441 return TRANSPORT_OK; in tearDownFullBackup()
455 int result = TRANSPORT_OK; in checkFullBackupSize()
462 if (result != TRANSPORT_OK) { in checkFullBackupSize()
496 return TRANSPORT_OK; in performFullBackup()
545 return TRANSPORT_OK; in sendBackupData()
601 return TRANSPORT_OK; in startRestore()
695 return TRANSPORT_OK; in getRestoreData()
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/
DPerformFullTransportBackupTask.java379 if (backupPackageStatus == BackupTransport.TRANSPORT_OK) { in run()
395 if (backupPackageStatus == BackupTransport.TRANSPORT_OK) { in run()
452 && backupPackageStatus == BackupTransport.TRANSPORT_OK); in run()
472 if (backupRunnerResult == BackupTransport.TRANSPORT_OK) { in run()
478 if (backupPackageStatus == BackupTransport.TRANSPORT_OK) { in run()
496 if (backupPackageStatus == BackupTransport.TRANSPORT_OK) { in run()
498 if (backupRunnerResult != BackupTransport.TRANSPORT_OK) { in run()
514 if (backupPackageStatus != BackupTransport.TRANSPORT_OK) { in run()
579 } else if (backupPackageStatus != BackupTransport.TRANSPORT_OK) { in run()
850 if (mPreflightResult == BackupTransport.TRANSPORT_OK) { in run()
[all …]
DFullBackupEngine.java193 return BackupTransport.TRANSPORT_OK; in preflightCheck()
244 result = BackupTransport.TRANSPORT_OK; in backupOnePackage()
/frameworks/base/core/java/android/app/backup/
DBackupTransport.java40 public static final int TRANSPORT_OK = 0; field in BackupTransport
498 return BackupTransport.TRANSPORT_OK; in checkFullBackupSize()
613 return BackupTransport.TRANSPORT_OK; in abortFullRestore()
/frameworks/base/services/backup/java/com/android/server/backup/restore/
DPerformUnifiedRestoreTask.java382 if (mStatus != BackupTransport.TRANSPORT_OK) { in startRestore()
701 if (transport.getRestoreData(stage) != BackupTransport.TRANSPORT_OK) { in initiateOneRestore()
864 int status = BackupTransport.TRANSPORT_OK; in run()
888 while (status == BackupTransport.TRANSPORT_OK) { in run()
916 status = BackupTransport.TRANSPORT_OK; in run()
965 if (status == BackupTransport.TRANSPORT_OK) { in run()
/frameworks/base/services/robotests/src/com/android/server/backup/
DPerformBackupTaskTest.java339 return BackupTransport.TRANSPORT_OK; in mockAndVerifyTransportPerformBackupData()
355 .thenReturn(BackupTransport.TRANSPORT_OK); in testRunTask_whenPerformBackupSucceeds_callsTransportFinishBackup()
433 .thenReturn(BackupTransport.TRANSPORT_OK); in testRunTask_whenTransportRejectsFirstPackageButLastSucceeds()
455 .thenReturn(BackupTransport.TRANSPORT_OK); in testRunTask_whenTransportRejectsLastPackageButFirstSucceeds()
/frameworks/base/api/
Dsystem-current.txt652 field public static final int TRANSPORT_OK = 0; // 0x0
/frameworks/base/config/
Dhiddenapi-public-dex.txt2458 Landroid/app/backup/BackupTransport;->TRANSPORT_OK:I