Home
last modified time | relevance | path

Searched refs:mBackupWriter (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/core/java/android/app/backup/
DBackupDataOutput.java72 long mBackupWriter; field in BackupDataOutput
94 mBackupWriter = ctor(fd); in BackupDataOutput()
95 if (mBackupWriter == 0) { in BackupDataOutput()
131 int result = writeEntityHeader_native(mBackupWriter, key, dataSize); in writeEntityHeader()
147 int result = writeEntityData_native(mBackupWriter, data, size); in writeEntityData()
157 setKeyPrefix_native(mBackupWriter, keyPrefix); in setKeyPrefix()
164 dtor(mBackupWriter); in finalize()
171 private native static void dtor(long mBackupWriter); in dtor() argument
173 … private native static int writeEntityHeader_native(long mBackupWriter, String key, int dataSize); in writeEntityHeader_native() argument
174 private native static int writeEntityData_native(long mBackupWriter, byte[] data, int size); in writeEntityData_native() argument
[all …]
DFileBackupHelperBase.java77 int err = performBackup_native(oldStateFd, data.mBackupWriter, newStateFd, files, keys); in performBackup_checked()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/encryption/chunking/
DDiffScriptBackupWriterTest.java47 private BackupWriter mBackupWriter; field in DiffScriptBackupWriterTest
52 mBackupWriter = new DiffScriptBackupWriter(mDiffScriptWriter); in setUp()
58 mBackupWriter.writeBytes(TEST_BYTES); in writeBytes_writesBytesToWriter()
68 mBackupWriter.writeChunk(0, 10); in writeChunk_writesChunkToWriter()
75 mBackupWriter.writeBytes(TEST_BYTES); in getBytesWritten_returnsTotalSum()
76 mBackupWriter.writeBytes(TEST_BYTES); in getBytesWritten_returnsTotalSum()
77 mBackupWriter.writeChunk(/*start=*/ 0, /*length=*/ 10); in getBytesWritten_returnsTotalSum()
79 long bytesWritten = mBackupWriter.getBytesWritten(); in getBytesWritten_returnsTotalSum()
86 mBackupWriter.flush(); in flush_flushesWriter()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/fullbackup/
DAppMetadataBackupWriterTest.java71 private AppMetadataBackupWriter mBackupWriter; field in AppMetadataBackupWriterTest
89 mBackupWriter = new AppMetadataBackupWriter(output, mPackageManager); in setUp()
117 mBackupWriter.backupManifest(packageInfo, manifestFile, mFilesDir, /* withApk */ false); in testBackupManifest_withoutApkOrSignatures_writesCorrectData()
152 mBackupWriter.backupManifest(packageInfo, manifestFile, mFilesDir, /* withApk */ true); in testBackupManifest_withApk_writesApk()
188 mBackupWriter.backupManifest(packageInfo, manifestFile, mFilesDir, /* withApk */ false); in testBackupManifest_withSignatures_writesCorrectSignatures()
218 mBackupWriter.backupManifest(packageInfo, manifestFile, mFilesDir, /* withApk */ false); in testBackupManifest_withoutInstallerPackage_writesEmptyInstaller()
233 mBackupWriter.backupManifest(packageInfo, manifestFile, mFilesDir, /* withApk */ false); in testBackupManifest_whenRunPreviouslyWithSameData_producesSameBytesOnSecondRun()
239 mBackupWriter.backupManifest(packageInfo, manifestFile, mFilesDir, /* withApk */ false); in testBackupManifest_whenRunPreviouslyWithSameData_producesSameBytesOnSecondRun()
264 mBackupWriter.backupWidget(packageInfo, metadataFile, mFilesDir, widgetBytes); in testBackupWidget_writesCorrectData()
292 mBackupWriter.backupWidget( in testBackupWidget_withNullWidgetData_throwsNullPointerException()
[all …]
/frameworks/base/core/jni/
Dandroid_app_backup_FullBackup.cpp44 jfieldID mBackupWriter; member
105 ? (BackupDataWriter*) env->GetLongField(bdo, sBackupDataOutput.mBackupWriter) in backupToTar()
137 sBackupDataOutput.mBackupWriter = GetFieldIDOrDie(env, bdoClazz, "mBackupWriter", "J"); in register_android_app_backup_FullBackup()