/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/tasks/ |
D | EncryptedKvBackupTaskTest.java | 151 assertThrows(IOException.class, () -> mTask.performBackup(NON_INCREMENTAL)); in testPerformBackup_rotationRequired_deletesListings() 169 () -> mTask.performBackup(INCREMENTAL)); in testPerformBackup_rotationRequiredButIncremental_throws() 184 mTask.performBackup(NON_INCREMENTAL); in testPerformBackup_rotationRequiredAndNonIncremental_performsNonIncrementalBackup() 203 assertThrows(IOException.class, () -> mTask.performBackup(NON_INCREMENTAL)); in testPerformBackup_existingStateButNonIncremental_deletesListings() 220 assertThrows(IOException.class, () -> mTask.performBackup(NON_INCREMENTAL)); in testPerformBackup_keyValueListingMissing_deletesChunkListingAndPerformsNonIncremental() 238 assertThrows(IOException.class, () -> mTask.performBackup(NON_INCREMENTAL)); in testPerformBackup_chunkListingMissing_deletesKeyValueListingAndPerformsNonIncremental() 255 mTask.performBackup(INCREMENTAL); in testPerformBackup_existingStateAndIncremental_performsIncrementalBackup() 266 mTask.performBackup(NON_INCREMENTAL); in testPerformBackup_noExistingStateAndNonIncremental_performsNonIncrementalBackup() 281 mTask.performBackup(INCREMENTAL); in testPerformBackup_incremental_savesNewListings() 293 mTask.performBackup(NON_INCREMENTAL); in testPerformBackup_nonIncremental_savesNewListings()
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/ |
D | KeyValueBackupTaskTest.java | 309 verify(transportMock.transport, never()).performBackup(any(), any(), anyInt()); in testRunTask_whenQueueEmpty_doesNotCallTransport() 405 when(transportMock.transport.performBackup( in testRunTask_whenTransportReturnsTransportErrorForPm_cleansUpPmFiles() 420 when(transportMock.transport.performBackup( in testRunTask_whenTransportReturnsTransportErrorForPm_resetsBackupState() 567 verify(transportMock.transport, never()).performBackup(any(), any(), anyInt()); in testRunTask_whenTransportReturnsErrorForInitialization() 586 verify(transportMock.transport, never()).performBackup(any(), any(), anyInt()); in testRunTask_whenTransportThrowsDuringInitialization() 599 .performBackup(argThat(packageInfo(PACKAGE_1)), any(), anyInt()); in testRunTask_whenPackageUnknown() 616 .performBackup(argThat(packageInfo(PACKAGE_2)), any(), anyInt()); in testRunTask_whenFirstPackageUnknown_callsTransportForSecondPackage() 629 .performBackup(argThat(packageInfo(PACKAGE_1)), any(), anyInt()); in testRunTask_whenPackageNotEligibleForBackup() 645 .performBackup(argThat(packageInfo(PACKAGE_2)), any(), anyInt()); in testRunTask_whenFirstPackageNotEligibleForBackup_callsTransportForSecondPackage() 675 .performBackup(argThat(packageInfo(PACKAGE_2)), any(), anyInt()); in testRunTask_whenFirstPackageDoesFullBackup_callsTransportForSecondPackage() [all …]
|
/frameworks/base/core/java/android/app/backup/ |
D | BackupTransport.java | 325 public int performBackup(PackageInfo packageInfo, ParcelFileDescriptor inFd, int flags) { in performBackup() method in BackupTransport 326 return performBackup(packageInfo, inFd); in performBackup() 333 public int performBackup(PackageInfo packageInfo, ParcelFileDescriptor inFd) { in performBackup() method in BackupTransport 702 public int performBackup(PackageInfo packageInfo, ParcelFileDescriptor inFd, int flags) in performBackup() method in BackupTransport.TransportImpl 704 return BackupTransport.this.performBackup(packageInfo, inFd, flags); in performBackup()
|
D | BackupHelper.java | 72 public void performBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in performBackup() method
|
D | BackupHelperDispatcher.java | 48 public void performBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in performBackup() method in BackupHelperDispatcher 97 helper.performBackup(oldState, data, newState); in doOneBackup()
|
D | BackupAgentHelper.java | 66 mDispatcher.performBackup(oldState, data, newState); in onBackup()
|
D | AbsoluteFileBackupHelper.java | 57 public void performBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in performBackup() method in AbsoluteFileBackupHelper
|
D | SharedPreferencesBackupHelper.java | 94 public void performBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in performBackup() method in SharedPreferencesBackupHelper
|
D | FileBackupHelper.java | 73 public void performBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in performBackup() method in FileBackupHelper
|
D | WallpaperBackupHelper.java | 77 public void performBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in performBackup() method in WallpaperBackupHelper
|
D | BlobBackupHelper.java | 239 public void performBackup(ParcelFileDescriptor oldStateFd, BackupDataOutput data, in performBackup() method in BlobBackupHelper
|
/frameworks/base/packages/BackupEncryption/test/unittest/src/com/android/server/backup/encryption/transport/ |
D | IntermediateEncryptingTransportTest.java | 112 mIntermediateEncryptingTransport.performBackup(mTestPackage, mParcelFileDescriptor, 0); in testPerformBackup_shouldEncryptTrue_encryptsDataAndPassesToDelegate() 116 verify(mRealTransport, times(1)).performBackup(eq(mTestPackage), any(), eq(0)); in testPerformBackup_shouldEncryptTrue_encryptsDataAndPassesToDelegate() 126 mIntermediateEncryptingTransport.performBackup(mTestPackage, mParcelFileDescriptor, 0); in testPerformBackup_shouldEncryptFalse_doesntEncryptDataAndPassedToDelegate() 130 .performBackup(eq(mTestPackage), eq(mParcelFileDescriptor), eq(0)); in testPerformBackup_shouldEncryptFalse_doesntEncryptDataAndPassedToDelegate()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/backup/ |
D | BackupHelper.kt | 101 override fun performBackup( in performBackup() method in com.android.systemui.backup.BackupHelper.NoOverwriteFileBackupHelper 107 super.performBackup(oldState, data, newState) in performBackup()
|
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/transport/ |
D | IntermediateEncryptingTransport.java | 85 public int performBackup(PackageInfo packageInfo, ParcelFileDescriptor inFd, int flags) in performBackup() method in IntermediateEncryptingTransport 88 return super.performBackup(packageInfo, inFd, flags); in performBackup() 107 return super.performBackup( in performBackup()
|
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/tasks/ |
D | EncryptedBackupTask.java | 103 performBackup( in performNonIncrementalBackup() 126 performBackup( in performIncrementalBackup() 160 private ChunksMetadataProto.ChunkListing performBackup( in performBackup() method in EncryptedBackupTask
|
D | EncryptedKvBackupTask.java | 146 public void performBackup(boolean incremental) in performBackup() method in EncryptedKvBackupTask
|
/frameworks/base/services/backup/backuplib/java/com/android/server/backup/transport/ |
D | DelegatingTransport.java | 180 public int performBackup(PackageInfo packageInfo, in performBackup() method in DelegatingTransport 182 return getDelegate().performBackup(packageInfo, inFd, flags); in performBackup()
|
/frameworks/base/core/java/com/android/internal/backup/ |
D | IBackupTransport.aidl | 145 int performBackup(in PackageInfo packageInfo, in ParcelFileDescriptor inFd, int flags); in performBackup() method
|
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/transport/ |
D | DelegatingTransportTest.java | 169 when(mBackupTransport.performBackup(mPackageInfo, mFd, mFlags)).thenReturn(exp); in testPerformBackup() 171 int ret = mDelegatingTransport.performBackup(mPackageInfo, mFd, mFlags); in testPerformBackup() 174 verify(mBackupTransport, times(1)).performBackup(mPackageInfo, mFd, mFlags); in testPerformBackup()
|
/frameworks/base/packages/EncryptedLocalTransport/src/com/android/encryptedlocaltransport/ |
D | EncryptedLocalTransport.java | 51 public int performBackup( in performBackup() method in EncryptedLocalTransport
|
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/ |
D | KeyValueEncrypter.java | 61 backupTask.performBackup(/* incremental */ false); in encryptKeyValueData()
|
/frameworks/base/packages/LocalTransport/src/com/android/localtransport/ |
D | LocalTransport.java | 199 public int performBackup(PackageInfo packageInfo, ParcelFileDescriptor data) { in performBackup() method in LocalTransport 200 return performBackup(packageInfo, data, /*flags=*/ 0); in performBackup() 204 public int performBackup(PackageInfo packageInfo, ParcelFileDescriptor data, int flags) { in performBackup() method in LocalTransport
|
/frameworks/base/tests/backup/src/com/android/backuptest/ |
D | BackupTestActivity.java | 145 h.performBackup(null, data, state);
|
/frameworks/base/packages/BackupEncryption/test/robolectric-integration/src/com/android/server/backup/encryption/ |
D | RoundTripTest.java | 178 backupTask.performBackup(/* incremental */ false); in performNonIncrementalKeyValueBackup()
|
/frameworks/base/core/java/com/android/server/backup/ |
D | AccountSyncSettingsBackupHelper.java | 98 public void performBackup(ParcelFileDescriptor oldState, BackupDataOutput output, in performBackup() method in AccountSyncSettingsBackupHelper
|