Home
last modified time | relevance | path

Searched refs:dataStream (Results 1 – 6 of 6) 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/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.java17165 ByteArrayOutputStream dataStream = new ByteArrayOutputStream();
17168 serializer.setOutput(dataStream, StandardCharsets.UTF_8.name());
17186 return dataStream.toByteArray();
17226 ByteArrayOutputStream dataStream = new ByteArrayOutputStream();
17229 serializer.setOutput(dataStream, StandardCharsets.UTF_8.name());
17247 return dataStream.toByteArray();
17282 ByteArrayOutputStream dataStream = new ByteArrayOutputStream();
17285 serializer.setOutput(dataStream, StandardCharsets.UTF_8.name());
17303 return dataStream.toByteArray();
17339 ByteArrayOutputStream dataStream = new ByteArrayOutputStream();
[all …]