/frameworks/base/core/java/android/app/backup/ |
D | BackupTransport.java | 41 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 …]
|
D | BackupManager.java | 121 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/ |
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 | 83 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/ |
D | PerformFullTransportBackupTask.java | 28 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 …]
|
D | FullBackupEngine.java | 29 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/ |
D | PerformInitializeTask.java | 23 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/ |
D | EncryptedLocalTransport.java | 19 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/ |
D | KeyValueBackupTask.java | 34 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 …]
|
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/transport/ |
D | BackupTransportClient.java | 20 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()
|
D | TransportStatusCallback.java | 19 import android.app.backup.BackupTransport; 82 return BackupTransport.TRANSPORT_ERROR; in getOperationStatus()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/transport/ |
D | TransportStatusCallbackTest.java | 21 import android.app.backup.BackupTransport; 71 assertThat(result).isEqualTo(BackupTransport.TRANSPORT_ERROR); in testGetOperationStatus_operationTimesOut_returnsError()
|
D | BackupTransportClientTest.java | 23 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/ |
D | PerformUnifiedRestoreTask.java | 38 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/ |
D | PerformUnifiedRestoreTaskTest.java | 30 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/ |
D | flags.aconfig | 7 description: "Enforce behavior determined by BackupTransport implementation on whether to skip "
|
/frameworks/base/packages/LocalTransport/src/com/android/localtransport/ |
D | LocalTransport.java | 25 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/ |
D | PerformInitializeTaskTest.java | 19 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/ |
D | TransportManager.java | 28 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/ |
D | BackupEligibilityRules.java | 29 import android.app.backup.BackupTransport;
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/ |
D | TransportManagerTest.java | 51 import android.app.backup.BackupTransport; 220 BackupTransport.EXTRA_TRANSPORT_REGISTRATION)), in testRegisterTransports_passesRegistrationExtraToGetTransportClient()
|
/frameworks/base/cmds/bmgr/src/com/android/commands/bmgr/ |
D | Bmgr.java | 25 import android.app.backup.BackupTransport; 654 public int result = BackupTransport.TRANSPORT_ERROR;
|
/frameworks/base/boot/hiddenapi/ |
D | hiddenapi-max-target-o.txt | 4207 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 …]
|