/frameworks/base/libs/androidfw/ |
D | BackupHelpers.cpp | 204 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/ |
D | Icon.java | 459 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/ |
D | ExifParser.java | 754 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/ |
D | AccountManagerBackupHelper.java | 165 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/ |
D | Metrics.java | 62 try (FileInputStreamSource dataStream = new FileInputStreamSource(file)) { in logText() argument 63 mLogs.addTestLog(label, LogDataType.TEXT, dataStream); in logText()
|
/frameworks/base/core/jni/ |
D | android_backup_FileBackupHelperBase.cpp | 49 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/ |
D | BackupHelpers.h | 136 int back_up_files(int oldSnapshotFD, BackupDataWriter* dataStream, int newSnapshotFD,
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageManagerService.java | 20057 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();
|