Home
last modified time | relevance | path

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

/frameworks/base/libs/androidfw/
DBackupHelpers.cpp204 write_delete_file(BackupDataWriter* dataStream, const String8& key) in write_delete_file() argument
207 return dataStream->WriteEntityHeader(key, -1); in write_delete_file()
211 write_update_file(BackupDataWriter* dataStream, int fd, int mode, const String8& key, in write_update_file() argument
233 err = dataStream->WriteEntityHeader(key, bytesLeft); in write_update_file()
243 err = dataStream->WriteEntityData(&metadata, sizeof(metadata)); in write_update_file()
256 err = dataStream->WriteEntityData(buf, amt); in write_update_file()
270 err = dataStream->WriteEntityData(buf, amt); in write_update_file()
286 write_update_file(BackupDataWriter* dataStream, const String8& key, char const* realFilename) in write_update_file() argument
301 err = write_update_file(dataStream, fd, st.st_mode, key, realFilename); in write_update_file()
333 back_up_files(int oldSnapshotFD, BackupDataWriter* dataStream, int newSnapshotFD, in back_up_files() argument
[all …]
/frameworks/base/graphics/java/android/graphics/drawable/
DIcon.java459 DataOutputStream dataStream = new DataOutputStream(stream); in writeToStream() local
461 dataStream.writeInt(VERSION_STREAM_SERIALIZER); in writeToStream()
462 dataStream.writeByte(mType); in writeToStream()
467 getBitmap().compress(Bitmap.CompressFormat.PNG, 100, dataStream); in writeToStream()
470 dataStream.writeInt(getDataLength()); in writeToStream()
471 dataStream.write(getDataBytes(), getDataOffset(), getDataLength()); in writeToStream()
474 dataStream.writeUTF(getResPackage()); in writeToStream()
475 dataStream.writeInt(getResId()); in writeToStream()
478 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.java165 ByteArrayOutputStream dataStream = new ByteArrayOutputStream(); in backupAccountAccessPermissions() local
167 serializer.setOutput(dataStream, StandardCharsets.UTF_8.name()); in backupAccountAccessPermissions()
207 return dataStream.toByteArray(); in backupAccountAccessPermissions()
218 ByteArrayInputStream dataStream = new ByteArrayInputStream(data); in restoreAccountAccessPermissions() local
220 parser.setInput(dataStream, StandardCharsets.UTF_8.name()); in restoreAccountAccessPermissions()
/frameworks/base/tests/SystemMemoryTest/host/src/com/android/tests/sysmem/host/
DMetrics.java62 try (FileInputStreamSource dataStream = new FileInputStreamSource(file)) { in logText() argument
63 mLogs.addTestLog(label, LogDataType.TEXT, dataStream); in logText()
/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/libs/androidfw/include/androidfw/
DBackupHelpers.h136 int back_up_files(int oldSnapshotFD, BackupDataWriter* dataStream, int newSnapshotFD,
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerService.java20057 ByteArrayOutputStream dataStream = new ByteArrayOutputStream();
20060 serializer.setOutput(dataStream, StandardCharsets.UTF_8.name());
20078 return dataStream.toByteArray();
20115 ByteArrayOutputStream dataStream = new ByteArrayOutputStream();
20118 serializer.setOutput(dataStream, StandardCharsets.UTF_8.name());
20136 return dataStream.toByteArray();
20176 ByteArrayOutputStream dataStream = new ByteArrayOutputStream();
20179 serializer.setOutput(dataStream, StandardCharsets.UTF_8.name());
20197 return dataStream.toByteArray();