Home
last modified time | relevance | path

Searched refs:dataStream (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/libs/androidfw/
DBackupHelpers.cpp205 write_delete_file(BackupDataWriter* dataStream, const String8& key) in write_delete_file() argument
208 return dataStream->WriteEntityHeader(key, -1); in write_delete_file()
212 write_update_file(BackupDataWriter* dataStream, int fd, int mode, const String8& key, in write_update_file() argument
234 err = dataStream->WriteEntityHeader(key, bytesLeft); in write_update_file()
244 err = dataStream->WriteEntityData(&metadata, sizeof(metadata)); in write_update_file()
257 err = dataStream->WriteEntityData(buf, amt); in write_update_file()
271 err = dataStream->WriteEntityData(buf, amt); in write_update_file()
287 write_update_file(BackupDataWriter* dataStream, const String8& key, char const* realFilename) in write_update_file() argument
302 err = write_update_file(dataStream, fd, st.st_mode, key, realFilename); in write_update_file()
334 back_up_files(int oldSnapshotFD, BackupDataWriter* dataStream, int newSnapshotFD, in back_up_files() argument
[all …]
/frameworks/base/graphics/java/android/graphics/drawable/
DIcon.java405 DataOutputStream dataStream = new DataOutputStream(stream); in writeToStream() local
407 dataStream.writeInt(VERSION_STREAM_SERIALIZER); in writeToStream()
408 dataStream.writeByte(mType); in writeToStream()
412 getBitmap().compress(Bitmap.CompressFormat.PNG, 100, dataStream); in writeToStream()
415 dataStream.writeInt(getDataLength()); in writeToStream()
416 dataStream.write(getDataBytes(), getDataOffset(), getDataLength()); in writeToStream()
419 dataStream.writeUTF(getResPackage()); in writeToStream()
420 dataStream.writeInt(getResId()); in writeToStream()
423 dataStream.writeUTF(getUriString()); in writeToStream()
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
DExifParser.java754 CountedDataInputStream dataStream = new CountedDataInputStream(inputStream); in seekTiffData() local
755 if (dataStream.readShort() != JpegHeader.SOI) { in seekTiffData()
759 short marker = dataStream.readShort(); in seekTiffData()
762 int length = dataStream.readUnsignedShort(); in seekTiffData()
769 header = dataStream.readInt(); in seekTiffData()
770 headerTail = dataStream.readShort(); in seekTiffData()
773 mTiffStartPosition = dataStream.getReadByteCount(); in seekTiffData()
780 if (length < 2 || (length - 2) != dataStream.skip(length - 2)) { in seekTiffData()
784 marker = dataStream.readShort(); in seekTiffData()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerBackupHelper.java163 ByteArrayOutputStream dataStream = new ByteArrayOutputStream(); in backupAccountAccessPermissions() local
166 serializer.setOutput(dataStream, StandardCharsets.UTF_8.name()); in backupAccountAccessPermissions()
204 return dataStream.toByteArray(); in backupAccountAccessPermissions()
211 ByteArrayInputStream dataStream = new ByteArrayInputStream(data); in restoreAccountAccessPermissions() local
213 parser.setInput(dataStream, StandardCharsets.UTF_8.name()); in restoreAccountAccessPermissions()
/frameworks/base/core/jni/
Dandroid_backup_FileBackupHelperBase.cpp49 BackupDataWriter* dataStream = (BackupDataWriter*)data; in performBackup_native() local
63 err = back_up_files(oldStateFD, dataStream, newStateFD, filesUTF, keysUTF, fileCount); in performBackup_native()
/frameworks/base/include/androidfw/
DBackupHelpers.h136 int back_up_files(int oldSnapshotFD, BackupDataWriter* dataStream, int newSnapshotFD,
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerService.java17382 ByteArrayOutputStream dataStream = new ByteArrayOutputStream(); in getPreferredActivityBackup() local
17385 serializer.setOutput(dataStream, StandardCharsets.UTF_8.name()); in getPreferredActivityBackup()
17403 return dataStream.toByteArray(); in getPreferredActivityBackup()
17443 ByteArrayOutputStream dataStream = new ByteArrayOutputStream(); in getDefaultAppsBackup() local
17446 serializer.setOutput(dataStream, StandardCharsets.UTF_8.name()); in getDefaultAppsBackup()
17464 return dataStream.toByteArray(); in getDefaultAppsBackup()
17499 ByteArrayOutputStream dataStream = new ByteArrayOutputStream(); in getIntentFilterVerificationBackup() local
17502 serializer.setOutput(dataStream, StandardCharsets.UTF_8.name()); in getIntentFilterVerificationBackup()
17520 return dataStream.toByteArray(); in getIntentFilterVerificationBackup()
17556 ByteArrayOutputStream dataStream = new ByteArrayOutputStream(); in getPermissionGrantBackup() local
[all …]