/frameworks/base/core/java/android/app/backup/ |
D | BackupTransport.java | 36 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 …]
|
D | BackupManager.java | 114 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/ |
D | TaskExceptionTest.java | 23 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 …]
|
D | KeyValueBackupTaskTest.java | 79 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/ |
D | PerformFullTransportBackupTask.java | 31 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 …]
|
D | FullBackupEngine.java | 30 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/ |
D | PerformInitializeTask.java | 23 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/ |
D | KeyValueBackupTask.java | 36 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 …]
|
D | TaskException.java | 19 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()
|
D | KeyValueBackupReporter.java | 22 import android.app.backup.BackupTransport; 114 if (status == BackupTransport.TRANSPORT_OK) { in onTransportInitialized()
|
/frameworks/base/services/backup/java/com/android/server/backup/restore/ |
D | PerformUnifiedRestoreTask.java | 36 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/ |
D | AppBackupUtils.java | 26 import android.app.backup.BackupTransport;
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | TransportManager.java | 23 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/ |
D | PerformInitializeTaskTest.java | 19 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/ |
D | LocalTransport.java | 22 import android.app.backup.BackupTransport; 53 public class LocalTransport extends BackupTransport {
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/ |
D | TransportManagerTest.java | 46 import android.app.backup.BackupTransport; 215 BackupTransport.EXTRA_TRANSPORT_REGISTRATION)), in testRegisterTransports_passesRegistrationExtraToGetTransportClient()
|
/frameworks/base/cmds/bmgr/src/com/android/commands/bmgr/ |
D | Bmgr.java | 24 import android.app.backup.BackupTransport; 607 public int result = BackupTransport.TRANSPORT_ERROR;
|
/frameworks/base/config/ |
D | preloaded-classes | 540 android.app.backup.BackupTransport$TransportImpl 541 android.app.backup.BackupTransport
|
D | boot-image-profile.txt | 32602 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 …]
|
D | hiddenapi-greylist-max-o.txt | 4210 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/ |
D | system-current.txt | 889 public class BackupTransport { 890 ctor public BackupTransport();
|
/frameworks/base/non-updatable-api/ |
D | system-current.txt | 889 public class BackupTransport { 890 ctor public BackupTransport();
|