Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/app/backup/
DBackupTransport.java36 public class BackupTransport { class
236 return BackupTransport.TRANSPORT_ERROR; in initializeDevice()
248 return BackupTransport.TRANSPORT_ERROR; in clearBackupData()
260 return BackupTransport.TRANSPORT_ERROR; in finishBackup()
324 return BackupTransport.TRANSPORT_ERROR; in performBackup()
366 return BackupTransport.TRANSPORT_ERROR; in startRestore()
410 return BackupTransport.TRANSPORT_ERROR; in getRestoreData()
489 return BackupTransport.TRANSPORT_PACKAGE_REJECTED; in performFullBackup()
516 return BackupTransport.TRANSPORT_OK; in checkFullBackupSize()
532 return BackupTransport.TRANSPORT_ERROR; in sendBackupData()
[all …]
DBackupManager.java114 public static final int ERROR_TRANSPORT_ABORTED = BackupTransport.TRANSPORT_ERROR;
127 BackupTransport.TRANSPORT_PACKAGE_REJECTED;
137 BackupTransport.TRANSPORT_QUOTA_EXCEEDED;
146 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.java79 import android.app.backup.BackupTransport;
405 .thenReturn(BackupTransport.TRANSPORT_PACKAGE_REJECTED); in testRunTask_whenTransportReturnsTransportErrorForPm_cleansUpPmFiles()
420 .thenReturn(BackupTransport.TRANSPORT_PACKAGE_REJECTED); in testRunTask_whenTransportReturnsTransportErrorForPm_resetsBackupState()
554 .thenReturn(BackupTransport.TRANSPORT_ERROR); in testRunTask_whenTransportReturnsErrorForInitialization()
1343 .thenReturn(BackupTransport.TRANSPORT_OK); in testRunTask_whenPerformBackupSucceeds_callsTransportFinishBackup()
1356 when(transportMock.transport.finishBackup()).thenReturn(BackupTransport.TRANSPORT_OK); in testRunTask_whenFinishBackupSucceeds_updatesFilesAndCleansUp()
1377 when(transportMock.transport.finishBackup()).thenReturn(BackupTransport.TRANSPORT_OK); in testRunTask_whenFinishBackupSucceedsForPm_cleansUp()
1401 when(transportMock.transport.finishBackup()).thenReturn(BackupTransport.TRANSPORT_OK); in testRunTask_whenFinishBackupSucceedsForPm_doesNotUnbindPm()
1463 .thenReturn(BackupTransport.TRANSPORT_PACKAGE_REJECTED); in testRunTask_whenTransportRejectsPackage_doesNotCallFinishBackup()
1478 .thenReturn(BackupTransport.TRANSPORT_PACKAGE_REJECTED); in testRunTask_whenTransportRejectsPackage_updatesFilesAndCleansUp()
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/
DPerformFullTransportBackupTask.java31 import android.app.backup.BackupTransport;
373 int flags = mUserInitiated ? BackupTransport.FLAG_USER_INITIATED : 0; in run()
383 if (backupPackageStatus == BackupTransport.TRANSPORT_OK) { in run()
399 if (backupPackageStatus == BackupTransport.TRANSPORT_OK) { in run()
456 && backupPackageStatus == BackupTransport.TRANSPORT_OK); in run()
458 if (backupPackageStatus == BackupTransport.TRANSPORT_QUOTA_EXCEEDED) { in run()
476 if (backupRunnerResult == BackupTransport.TRANSPORT_OK) { in run()
482 if (backupPackageStatus == BackupTransport.TRANSPORT_OK) { in run()
500 if (backupPackageStatus == BackupTransport.TRANSPORT_OK) { in run()
502 if (backupRunnerResult != BackupTransport.TRANSPORT_OK) { in run()
[all …]
DFullBackupEngine.java30 import android.app.backup.BackupTransport;
214 return BackupTransport.TRANSPORT_OK; in preflightCheck()
224 return BackupTransport.AGENT_ERROR; in preflightCheck()
229 int result = BackupTransport.AGENT_ERROR; in backupOnePackage()
257 result = BackupTransport.TRANSPORT_OK; in backupOnePackage()
261 result = BackupTransport.AGENT_ERROR; in backupOnePackage()
276 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()
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()
171 result = BackupTransport.TRANSPORT_ERROR; in run()
/frameworks/base/services/backup/java/com/android/server/backup/keyvalue/
DKeyValueBackupTask.java36 import android.app.backup.BackupTransport;
342 int status = BackupTransport.TRANSPORT_OK; in run()
423 if (status != BackupTransport.TRANSPORT_OK) { in startTask()
542 if (mHasDataToBackup && (status == BackupTransport.TRANSPORT_OK) && (currentToken == 0)) { in finishTask()
555 if (status == BackupTransport.TRANSPORT_NOT_INITIALIZED) { in finishTask()
561 status = BackupTransport.TRANSPORT_ERROR; in finishTask()
576 && status == BackupTransport.TRANSPORT_OK in finishTask()
601 case BackupTransport.TRANSPORT_OK: in getBackupFinishedStatus()
602 case BackupTransport.TRANSPORT_QUOTA_EXCEEDED: in getBackupFinishedStatus()
603 case BackupTransport.TRANSPORT_PACKAGE_REJECTED: in getBackupFinishedStatus()
[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/restore/
DPerformUnifiedRestoreTask.java36 import android.app.backup.BackupTransport;
382 if (mStatus != BackupTransport.TRANSPORT_OK) { in startRestore()
384 mStatus = BackupTransport.TRANSPORT_ERROR; in startRestore()
396 mStatus = BackupTransport.TRANSPORT_ERROR; in startRestore()
408 mStatus = BackupTransport.TRANSPORT_ERROR; in startRestore()
444 mStatus = BackupTransport.TRANSPORT_ERROR; in startRestore()
461 mStatus = BackupTransport.TRANSPORT_ERROR; in startRestore()
702 if (transport.getRestoreData(stage) != BackupTransport.TRANSPORT_OK) { in initiateOneRestore()
867 int status = BackupTransport.TRANSPORT_OK; in run()
891 while (status == BackupTransport.TRANSPORT_OK) { in run()
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DAppBackupUtils.java26 import android.app.backup.BackupTransport;
/frameworks/base/services/backup/java/com/android/server/backup/
DTransportManager.java23 import android.app.backup.BackupTransport;
637 extras.putBoolean(BackupTransport.EXTRA_TRANSPORT_REGISTRATION, true); in registerTransport()
/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/packages/LocalTransport/src/com/android/localtransport/
DLocalTransport.java22 import android.app.backup.BackupTransport;
53 public class LocalTransport extends BackupTransport {
/frameworks/base/services/robotests/backup/src/com/android/server/backup/
DTransportManagerTest.java46 import android.app.backup.BackupTransport;
215 BackupTransport.EXTRA_TRANSPORT_REGISTRATION)), in testRegisterTransports_passesRegistrationExtraToGetTransportClient()
/frameworks/base/cmds/bmgr/src/com/android/commands/bmgr/
DBmgr.java24 import android.app.backup.BackupTransport;
607 public int result = BackupTransport.TRANSPORT_ERROR;
/frameworks/base/config/
Dpreloaded-classes540 android.app.backup.BackupTransport$TransportImpl
541 android.app.backup.BackupTransport
Dboot-image-profile.txt32602 Landroid/app/backup/BackupTransport$TransportImpl;
32603 Landroid/app/backup/BackupTransport;
40842 HSPLandroid/app/backup/BackupTransport$TransportImpl;->configurationIntent()Landroid/content/Intent;
40843 HSPLandroid/app/backup/BackupTransport$TransportImpl;->currentDestinationString()Ljava/lang/String;
40844 HSPLandroid/app/backup/BackupTransport$TransportImpl;->dataManagementIntentLabel()Ljava/lang/CharSe…
40845 HSPLandroid/app/backup/BackupTransport$TransportImpl;->dataManagementIntent()Landroid/content/Inten…
40846 HSPLandroid/app/backup/BackupTransport$TransportImpl;-><init>(Landroid/app/backup/BackupTransport;)V
40847 HSPLandroid/app/backup/BackupTransport$TransportImpl;->name()Ljava/lang/String;
40848 HSPLandroid/app/backup/BackupTransport$TransportImpl;->transportDirName()Ljava/lang/String;
40849 HSPLandroid/app/backup/BackupTransport;->configurationIntent()Landroid/content/Intent;
[all …]
Dhiddenapi-greylist-max-o.txt4210 Landroid/app/backup/BackupTransport$TransportImpl;->abortFullRestore()I
4211 Landroid/app/backup/BackupTransport$TransportImpl;->cancelFullBackup()V
4212 Landroid/app/backup/BackupTransport$TransportImpl;->checkFullBackupSize(J)I
4213 Landroid/app/backup/BackupTransport$TransportImpl;->clearBackupData(Landroid/content/pm/PackageInfo…
4214 Landroid/app/backup/BackupTransport$TransportImpl;->configurationIntent()Landroid/content/Intent;
4215 Landroid/app/backup/BackupTransport$TransportImpl;->currentDestinationString()Ljava/lang/String;
4216 Landroid/app/backup/BackupTransport$TransportImpl;->dataManagementIntent()Landroid/content/Intent;
4217 Landroid/app/backup/BackupTransport$TransportImpl;->dataManagementLabel()Ljava/lang/String;
4218 Landroid/app/backup/BackupTransport$TransportImpl;->finishBackup()I
4219 Landroid/app/backup/BackupTransport$TransportImpl;->finishRestore()V
[all …]
/frameworks/base/api/
Dsystem-current.txt889 public class BackupTransport {
890 ctor public BackupTransport();
/frameworks/base/non-updatable-api/
Dsystem-current.txt889 public class BackupTransport {
890 ctor public BackupTransport();