/frameworks/base/core/java/android/app/backup/ |
D | BackupTransport.java | 36 public class BackupTransport { class 245 return BackupTransport.TRANSPORT_ERROR; in initializeDevice() 257 return BackupTransport.TRANSPORT_ERROR; in clearBackupData() 269 return BackupTransport.TRANSPORT_ERROR; in finishBackup() 334 return BackupTransport.TRANSPORT_ERROR; in performBackup() 376 return BackupTransport.TRANSPORT_ERROR; in startRestore() 420 return BackupTransport.TRANSPORT_ERROR; in getRestoreData() 499 return BackupTransport.TRANSPORT_PACKAGE_REJECTED; in performFullBackup() 526 return BackupTransport.TRANSPORT_OK; in checkFullBackupSize() 542 return BackupTransport.TRANSPORT_ERROR; in sendBackupData() [all …]
|
D | BackupManager.java | 116 public static final int ERROR_TRANSPORT_ABORTED = BackupTransport.TRANSPORT_ERROR; 129 BackupTransport.TRANSPORT_PACKAGE_REJECTED; 139 BackupTransport.TRANSPORT_QUOTA_EXCEEDED; 148 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; 407 .thenReturn(BackupTransport.TRANSPORT_PACKAGE_REJECTED); in testRunTask_whenTransportReturnsTransportErrorForPm_cleansUpPmFiles() 422 .thenReturn(BackupTransport.TRANSPORT_PACKAGE_REJECTED); in testRunTask_whenTransportReturnsTransportErrorForPm_resetsBackupState() 556 .thenReturn(BackupTransport.TRANSPORT_ERROR); in testRunTask_whenTransportReturnsErrorForInitialization() 1346 .thenReturn(BackupTransport.TRANSPORT_OK); in testRunTask_whenPerformBackupSucceeds_callsTransportFinishBackup() 1359 when(transportMock.transport.finishBackup()).thenReturn(BackupTransport.TRANSPORT_OK); in testRunTask_whenFinishBackupSucceeds_updatesFilesAndCleansUp() 1380 when(transportMock.transport.finishBackup()).thenReturn(BackupTransport.TRANSPORT_OK); in testRunTask_whenFinishBackupSucceedsForPm_cleansUp() 1404 when(transportMock.transport.finishBackup()).thenReturn(BackupTransport.TRANSPORT_OK); in testRunTask_whenFinishBackupSucceedsForPm_doesNotUnbindPm() 1466 .thenReturn(BackupTransport.TRANSPORT_PACKAGE_REJECTED); in testRunTask_whenTransportRejectsPackage_doesNotCallFinishBackup() 1481 .thenReturn(BackupTransport.TRANSPORT_PACKAGE_REJECTED); in testRunTask_whenTransportRejectsPackage_updatesFilesAndCleansUp() [all …]
|
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/transport/ |
D | IntermediateEncryptingTransport.java | 21 import android.app.backup.BackupTransport; 93 return BackupTransport.TRANSPORT_ERROR; in performBackup() 102 return BackupTransport.TRANSPORT_ERROR; in performBackup() 111 return BackupTransport.TRANSPORT_ERROR; in performBackup() 124 return BackupTransport.TRANSPORT_ERROR; in getRestoreData() 129 return BackupTransport.TRANSPORT_ERROR; in getRestoreData() 135 if (status != BackupTransport.TRANSPORT_OK) { in getRestoreData() 141 return BackupTransport.TRANSPORT_ERROR; in getRestoreData() 150 return BackupTransport.TRANSPORT_ERROR; in getRestoreData() 153 return BackupTransport.TRANSPORT_OK; in getRestoreData()
|
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/tasks/ |
D | EncryptedFullBackupDataProcessor.java | 22 import android.app.backup.BackupTransport; 117 return BackupTransport.TRANSPORT_QUOTA_EXCEEDED; in pushData() 121 return BackupTransport.TRANSPORT_ERROR; in pushData() 128 return BackupTransport.TRANSPORT_ERROR; in pushData() 131 return BackupTransport.TRANSPORT_OK; in pushData() 155 return BackupTransport.TRANSPORT_QUOTA_EXCEEDED; in finish() 157 return BackupTransport.TRANSPORT_ERROR; in finish() 164 return BackupTransport.TRANSPORT_OK; in finish()
|
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/ |
D | PerformFullTransportBackupTask.java | 31 import android.app.backup.BackupTransport; 377 int flags = mUserInitiated ? BackupTransport.FLAG_USER_INITIATED : 0; in run() 387 if (backupPackageStatus == BackupTransport.TRANSPORT_OK) { in run() 403 if (backupPackageStatus == BackupTransport.TRANSPORT_OK) { in run() 460 && backupPackageStatus == BackupTransport.TRANSPORT_OK); in run() 462 if (backupPackageStatus == BackupTransport.TRANSPORT_QUOTA_EXCEEDED) { in run() 480 if (backupRunnerResult == BackupTransport.TRANSPORT_OK) { in run() 486 if (backupPackageStatus == BackupTransport.TRANSPORT_OK) { in run() 504 if (backupPackageStatus == BackupTransport.TRANSPORT_OK) { in run() 506 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/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 | 36 import android.app.backup.BackupTransport; 351 int status = BackupTransport.TRANSPORT_OK; in run() 408 int flags = BackupTransport.FLAG_DATA_NOT_CHANGED; in informTransportOfUnchangedApps() 410 flags |= BackupTransport.FLAG_USER_INITIATED; in informTransportOfUnchangedApps() 476 if (result == BackupTransport.TRANSPORT_ERROR in sendNoDataChangedTo() 477 || result == BackupTransport.TRANSPORT_NOT_INITIALIZED) { in sendNoDataChangedTo() 621 if (status != BackupTransport.TRANSPORT_OK) { in startTask() 741 if (mHasDataToBackup && (status == BackupTransport.TRANSPORT_OK) && (currentToken == 0)) { in finishTask() 755 if (status == BackupTransport.TRANSPORT_NOT_INITIALIZED) { in finishTask() 761 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/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/tasks/ |
D | EncryptedFullBackupDataProcessorTest.java | 27 import android.app.backup.BackupTransport; 141 assertThat(result).isEqualTo(BackupTransport.TRANSPORT_OK); in pushData_noError_returnsOk() 156 assertThat(result).isEqualTo(BackupTransport.TRANSPORT_ERROR); in pushData_ioExceptionOnCopy_returnsError() 169 assertThat(result).isEqualTo(BackupTransport.TRANSPORT_ERROR); in pushData_exceptionDuringUpload_returnsError() 184 assertThat(result).isEqualTo(BackupTransport.TRANSPORT_QUOTA_EXCEEDED); in pushData_quotaExceptionDuringUpload_doesNotLogAndReturnsQuotaExceeded() 201 assertThat(result).isEqualTo(BackupTransport.TRANSPORT_ERROR); in pushData_unexpectedEncryptedBackup_logs() 249 assertThat(result).isEqualTo(BackupTransport.TRANSPORT_OK); in finish_noException_returnsTransportOk() 260 assertThat(result).isEqualTo(BackupTransport.TRANSPORT_ERROR); in finish_exceptionDuringUpload_returnsTransportError() 302 assertThat(result).isEqualTo(BackupTransport.TRANSPORT_QUOTA_EXCEEDED); in finish_backupFailedWithQuotaException_doesNotCallbackAndReturnsQuotaExceeded()
|
/frameworks/base/services/backup/java/com/android/server/backup/restore/ |
D | PerformUnifiedRestoreTask.java | 37 import android.app.backup.BackupTransport; 397 if (mStatus != BackupTransport.TRANSPORT_OK) { in startRestore() 399 mStatus = BackupTransport.TRANSPORT_ERROR; in startRestore() 411 mStatus = BackupTransport.TRANSPORT_ERROR; in startRestore() 423 mStatus = BackupTransport.TRANSPORT_ERROR; in startRestore() 459 mStatus = BackupTransport.TRANSPORT_ERROR; in startRestore() 476 mStatus = BackupTransport.TRANSPORT_ERROR; in startRestore() 712 if (transport.getRestoreData(stage) != BackupTransport.TRANSPORT_OK) { in initiateOneRestore() 908 int status = BackupTransport.TRANSPORT_OK; in run() 932 while (status == BackupTransport.TRANSPORT_OK) { in run() [all …]
|
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/ |
D | FullBackupDataProcessor.java | 19 import android.app.backup.BackupTransport;
|
/frameworks/base/packages/BackupEncryption/test/unittest/src/com/android/server/backup/encryption/transport/ |
D | IntermediateEncryptingTransportTest.java | 30 import android.app.backup.BackupTransport; 81 when(mRealTransport.getRestoreData(any())).thenReturn(BackupTransport.TRANSPORT_OK); in setUp()
|
/frameworks/base/packages/LocalTransport/src/com/android/localtransport/ |
D | LocalTransport.java | 23 import android.app.backup.BackupTransport; 54 public class LocalTransport extends BackupTransport { 214 if ((flags & BackupTransport.FLAG_DATA_NOT_CHANGED) != 0) { in performBackupInternal() 217 return BackupTransport.TRANSPORT_OK; in performBackupInternal()
|
/frameworks/base/services/backup/backuplib/java/com/android/server/backup/transport/ |
D | DelegatingTransport.java | 20 import android.app.backup.BackupTransport;
|
/frameworks/base/services/backup/java/com/android/server/backup/utils/ |
D | AppBackupUtils.java | 26 import android.app.backup.BackupTransport;
|
/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/backuplib/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/ |
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; 628 public int result = BackupTransport.TRANSPORT_ERROR;
|
/frameworks/base/config/ |
D | preloaded-classes | 826 android.app.backup.BackupTransport$TransportImpl 827 android.app.backup.BackupTransport
|