Home
last modified time | relevance | path

Searched refs:BackupTransport (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/base/core/java/android/app/backup/
DBackupTransport.java41 public class BackupTransport { class
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()
504 return BackupTransport.TRANSPORT_PACKAGE_REJECTED; in performFullBackup()
531 return BackupTransport.TRANSPORT_OK; in checkFullBackupSize()
547 return BackupTransport.TRANSPORT_ERROR; in sendBackupData()
[all …]
DBackupManager.java121 public static final int ERROR_TRANSPORT_ABORTED = BackupTransport.TRANSPORT_ERROR;
134 BackupTransport.TRANSPORT_PACKAGE_REJECTED;
144 BackupTransport.TRANSPORT_QUOTA_EXCEEDED;
153 public static final int ERROR_AGENT_FAILURE = BackupTransport.AGENT_ERROR;
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/
DTaskExceptionTest.java23 import android.app.backup.BackupTransport;
40 assertThat(exception.getStatus()).isEqualTo(BackupTransport.TRANSPORT_ERROR); in testStateCompromised()
45 Exception cause = TaskException.forStatus(BackupTransport.TRANSPORT_NOT_INITIALIZED); in testStateCompromised_whenCauseInstanceOfTaskException()
50 assertThat(exception.getStatus()).isEqualTo(BackupTransport.TRANSPORT_NOT_INITIALIZED); in testStateCompromised_whenCauseInstanceOfTaskException()
61 assertThat(exception.getStatus()).isEqualTo(BackupTransport.TRANSPORT_ERROR); in testStateCompromised_whenCauseNotInstanceOfTaskException()
69 () -> TaskException.forStatus(BackupTransport.TRANSPORT_OK)); in testForStatus_whenTransportOk_throws()
75 TaskException.forStatus(BackupTransport.TRANSPORT_NOT_INITIALIZED); in testForStatus_whenTransportNotInitialized()
78 assertThat(exception.getStatus()).isEqualTo(BackupTransport.TRANSPORT_NOT_INITIALIZED); in testForStatus_whenTransportNotInitialized()
83 Exception cause = TaskException.forStatus(BackupTransport.TRANSPORT_NOT_INITIALIZED); in testCausedBy_whenCauseInstanceOfTaskException_returnsCause()
98 assertThat(exception.getStatus()).isEqualTo(BackupTransport.TRANSPORT_ERROR); in testCausedBy_whenCauseNotInstanceOfTaskException()
[all …]
DKeyValueBackupTaskTest.java83 import android.app.backup.BackupTransport;
426 .thenReturn(BackupTransport.TRANSPORT_PACKAGE_REJECTED); in testRunTask_whenTransportReturnsTransportErrorForPm_cleansUpPmFiles()
441 .thenReturn(BackupTransport.TRANSPORT_PACKAGE_REJECTED); in testRunTask_whenTransportReturnsTransportErrorForPm_resetsBackupState()
578 .thenReturn(BackupTransport.TRANSPORT_ERROR); in testRunTask_whenTransportReturnsErrorForInitialization()
1369 .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()
1521 .thenReturn(BackupTransport.TRANSPORT_PACKAGE_REJECTED); in testRunTask_whenTransportRejectsPackage_doesNotCallFinishBackup()
1536 .thenReturn(BackupTransport.TRANSPORT_PACKAGE_REJECTED); in testRunTask_whenTransportRejectsPackage_updatesFilesAndCleansUp()
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/
DPerformFullTransportBackupTask.java28 import android.app.backup.BackupTransport;
412 int flags = mUserInitiated ? BackupTransport.FLAG_USER_INITIATED : 0; in run()
422 if (backupPackageStatus == BackupTransport.TRANSPORT_OK) { in run()
438 if (backupPackageStatus == BackupTransport.TRANSPORT_OK) { in run()
495 && backupPackageStatus == BackupTransport.TRANSPORT_OK); in run()
497 if (backupPackageStatus == BackupTransport.TRANSPORT_QUOTA_EXCEEDED) { 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()
[all …]
DFullBackupEngine.java29 import android.app.backup.BackupTransport;
222 return BackupTransport.TRANSPORT_OK; in preflightCheck()
235 return BackupTransport.AGENT_ERROR; in preflightCheck()
240 int result = BackupTransport.AGENT_ERROR; in backupOnePackage()
268 result = BackupTransport.TRANSPORT_OK; in backupOnePackage()
274 result = BackupTransport.AGENT_ERROR; in backupOnePackage()
289 result = BackupTransport.TRANSPORT_ERROR; in backupOnePackage()
/frameworks/base/services/backup/java/com/android/server/backup/internal/
DPerformInitializeTask.java23 import android.app.backup.BackupTransport;
113 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()
172 result = BackupTransport.TRANSPORT_ERROR; in run()
/frameworks/base/packages/EncryptedLocalTransport/src/com/android/encryptedlocaltransport/
DEncryptedLocalTransport.java19 import android.app.backup.BackupTransport;
63 return BackupTransport.TRANSPORT_ERROR; in performBackup()
73 return BackupTransport.TRANSPORT_ERROR; in performBackup()
97 return BackupTransport.TRANSPORT_ERROR; in getRestoreData()
100 return BackupTransport.TRANSPORT_OK; in getRestoreData()
/frameworks/base/services/backup/java/com/android/server/backup/keyvalue/
DKeyValueBackupTask.java34 import android.app.backup.BackupTransport;
362 int status = BackupTransport.TRANSPORT_OK; in run()
419 int flags = BackupTransport.FLAG_DATA_NOT_CHANGED; in informTransportOfUnchangedApps()
421 flags |= BackupTransport.FLAG_USER_INITIATED; in informTransportOfUnchangedApps()
487 if (result == BackupTransport.TRANSPORT_ERROR in sendNoDataChangedTo()
488 || result == BackupTransport.TRANSPORT_NOT_INITIALIZED) { in sendNoDataChangedTo()
633 if (status != BackupTransport.TRANSPORT_OK) { in startTask()
776 if (mHasDataToBackup && (status == BackupTransport.TRANSPORT_OK) && (currentToken == 0)) { in finishTask()
791 if (status == BackupTransport.TRANSPORT_NOT_INITIALIZED) { in finishTask()
797 status = BackupTransport.TRANSPORT_ERROR; in finishTask()
[all …]
DTaskException.java19 import android.app.backup.BackupTransport;
31 private static final int DEFAULT_STATUS = BackupTransport.TRANSPORT_ERROR;
47 status != BackupTransport.TRANSPORT_OK, "Exception based on TRANSPORT_OK"); in forStatus()
DKeyValueBackupReporter.java22 import android.app.backup.BackupTransport;
114 if (status == BackupTransport.TRANSPORT_OK) { in onTransportInitialized()
/frameworks/base/services/backup/java/com/android/server/backup/transport/
DBackupTransportClient.java20 import android.app.backup.BackupTransport;
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()
DTransportStatusCallback.java19 import android.app.backup.BackupTransport;
82 return BackupTransport.TRANSPORT_ERROR; in getOperationStatus()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/transport/
DTransportStatusCallbackTest.java21 import android.app.backup.BackupTransport;
71 assertThat(result).isEqualTo(BackupTransport.TRANSPORT_ERROR); in testGetOperationStatus_operationTimesOut_returnsError()
DBackupTransportClientTest.java23 import android.app.backup.BackupTransport;
196 assertThat(status).isEqualTo(BackupTransport.TRANSPORT_ERROR); in testFinishBackup_canceledBeforeCompletion_returnsError()
/frameworks/base/services/backup/java/com/android/server/backup/restore/
DPerformUnifiedRestoreTask.java38 import android.app.backup.BackupTransport;
472 if (mStatus != BackupTransport.TRANSPORT_OK) { in startRestore()
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()
880 if (transport.getRestoreData(stage) != BackupTransport.TRANSPORT_OK) { in initiateOneRestore()
1124 int status = BackupTransport.TRANSPORT_OK; in run()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/restore/
DPerformUnifiedRestoreTaskTest.java30 import android.app.backup.BackupTransport;
221 setupForRestoreKeyValueState(BackupTransport.TRANSPORT_ERROR); in testFailedKeyValueRestore_continueAfterFeatureEnabled_nextStateIsRunningQueue()
243 setupForRestoreKeyValueState(BackupTransport.TRANSPORT_ERROR); in testFailedKeyValueRestore_continueAfterFeatureDisabled_nextStateIsFinal()
/frameworks/base/services/backup/
Dflags.aconfig7 description: "Enforce behavior determined by BackupTransport implementation on whether to skip "
/frameworks/base/packages/LocalTransport/src/com/android/localtransport/
DLocalTransport.java25 import android.app.backup.BackupTransport;
61 public class LocalTransport extends BackupTransport {
231 if ((flags & BackupTransport.FLAG_DATA_NOT_CHANGED) != 0) { in performBackupInternal()
234 return BackupTransport.TRANSPORT_OK; in performBackupInternal()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/internal/
DPerformInitializeTaskTest.java19 import static android.app.backup.BackupTransport.TRANSPORT_ERROR;
20 import static android.app.backup.BackupTransport.TRANSPORT_OK;
/frameworks/base/services/backup/java/com/android/server/backup/
DTransportManager.java28 import android.app.backup.BackupTransport;
721 extras.putBoolean(BackupTransport.EXTRA_TRANSPORT_REGISTRATION, true); in registerTransport()
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DBackupEligibilityRules.java29 import android.app.backup.BackupTransport;
/frameworks/base/services/robotests/backup/src/com/android/server/backup/
DTransportManagerTest.java51 import android.app.backup.BackupTransport;
220 BackupTransport.EXTRA_TRANSPORT_REGISTRATION)), in testRegisterTransports_passesRegistrationExtraToGetTransportClient()
/frameworks/base/cmds/bmgr/src/com/android/commands/bmgr/
DBmgr.java25 import android.app.backup.BackupTransport;
654 public int result = BackupTransport.TRANSPORT_ERROR;
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt4207 Landroid/app/backup/BackupTransport$TransportImpl;->abortFullRestore()I
4208 Landroid/app/backup/BackupTransport$TransportImpl;->cancelFullBackup()V
4209 Landroid/app/backup/BackupTransport$TransportImpl;->checkFullBackupSize(J)I
4210 Landroid/app/backup/BackupTransport$TransportImpl;->clearBackupData(Landroid/content/pm/PackageInfo…
4211 Landroid/app/backup/BackupTransport$TransportImpl;->configurationIntent()Landroid/content/Intent;
4212 Landroid/app/backup/BackupTransport$TransportImpl;->currentDestinationString()Ljava/lang/String;
4213 Landroid/app/backup/BackupTransport$TransportImpl;->dataManagementIntent()Landroid/content/Intent;
4214 Landroid/app/backup/BackupTransport$TransportImpl;->dataManagementLabel()Ljava/lang/String;
4215 Landroid/app/backup/BackupTransport$TransportImpl;->finishBackup()I
4216 Landroid/app/backup/BackupTransport$TransportImpl;->finishRestore()V
[all …]

12