/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 | 413 DataOutputStream dataStream = new DataOutputStream(stream); in writeToStream() local 415 dataStream.writeInt(VERSION_STREAM_SERIALIZER); in writeToStream() 416 dataStream.writeByte(mType); in writeToStream() 421 getBitmap().compress(Bitmap.CompressFormat.PNG, 100, dataStream); in writeToStream() 424 dataStream.writeInt(getDataLength()); in writeToStream() 425 dataStream.write(getDataBytes(), getDataOffset(), getDataLength()); in writeToStream() 428 dataStream.writeUTF(getResPackage()); in writeToStream() 429 dataStream.writeInt(getResId()); in writeToStream() 432 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/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 | 21428 ByteArrayOutputStream dataStream = new ByteArrayOutputStream(); in getPreferredActivityBackup() local 21431 serializer.setOutput(dataStream, StandardCharsets.UTF_8.name()); in getPreferredActivityBackup() 21449 return dataStream.toByteArray(); in getPreferredActivityBackup() 21489 ByteArrayOutputStream dataStream = new ByteArrayOutputStream(); in getDefaultAppsBackup() local 21492 serializer.setOutput(dataStream, StandardCharsets.UTF_8.name()); in getDefaultAppsBackup() 21510 return dataStream.toByteArray(); in getDefaultAppsBackup() 21545 ByteArrayOutputStream dataStream = new ByteArrayOutputStream(); in getIntentFilterVerificationBackup() local 21548 serializer.setOutput(dataStream, StandardCharsets.UTF_8.name()); in getIntentFilterVerificationBackup() 21566 return dataStream.toByteArray(); in getIntentFilterVerificationBackup() 21602 ByteArrayOutputStream dataStream = new ByteArrayOutputStream(); in getPermissionGrantBackup() local [all …]
|