Home
last modified time | relevance | path

Searched refs:performBackup (Results 1 – 25 of 32) sorted by relevance

12

/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/tasks/
DEncryptedKvBackupTaskTest.java151 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/
DKeyValueBackupTaskTest.java309 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/
DBackupTransport.java325 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()
DBackupHelper.java72 public void performBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in performBackup() method
DBackupHelperDispatcher.java48 public void performBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in performBackup() method in BackupHelperDispatcher
97 helper.performBackup(oldState, data, newState); in doOneBackup()
DBackupAgentHelper.java66 mDispatcher.performBackup(oldState, data, newState); in onBackup()
DAbsoluteFileBackupHelper.java57 public void performBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in performBackup() method in AbsoluteFileBackupHelper
DSharedPreferencesBackupHelper.java94 public void performBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in performBackup() method in SharedPreferencesBackupHelper
DFileBackupHelper.java73 public void performBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in performBackup() method in FileBackupHelper
DWallpaperBackupHelper.java77 public void performBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in performBackup() method in WallpaperBackupHelper
DBlobBackupHelper.java239 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/
DIntermediateEncryptingTransportTest.java112 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/
DBackupHelper.kt101 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/
DIntermediateEncryptingTransport.java85 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/
DEncryptedBackupTask.java103 performBackup( in performNonIncrementalBackup()
126 performBackup( in performIncrementalBackup()
160 private ChunksMetadataProto.ChunkListing performBackup( in performBackup() method in EncryptedBackupTask
DEncryptedKvBackupTask.java146 public void performBackup(boolean incremental) in performBackup() method in EncryptedKvBackupTask
/frameworks/base/services/backup/backuplib/java/com/android/server/backup/transport/
DDelegatingTransport.java180 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/
DIBackupTransport.aidl145 int performBackup(in PackageInfo packageInfo, in ParcelFileDescriptor inFd, int flags); in performBackup() method
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/transport/
DDelegatingTransportTest.java169 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/
DEncryptedLocalTransport.java51 public int performBackup( in performBackup() method in EncryptedLocalTransport
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/
DKeyValueEncrypter.java61 backupTask.performBackup(/* incremental */ false); in encryptKeyValueData()
/frameworks/base/packages/LocalTransport/src/com/android/localtransport/
DLocalTransport.java199 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/
DBackupTestActivity.java145 h.performBackup(null, data, state);
/frameworks/base/packages/BackupEncryption/test/robolectric-integration/src/com/android/server/backup/encryption/
DRoundTripTest.java178 backupTask.performBackup(/* incremental */ false); in performNonIncrementalKeyValueBackup()
/frameworks/base/core/java/com/android/server/backup/
DAccountSyncSettingsBackupHelper.java98 public void performBackup(ParcelFileDescriptor oldState, BackupDataOutput output, in performBackup() method in AccountSyncSettingsBackupHelper

12