summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorJin Seok Park <jinpark@google.com>2019-11-19 00:49:28 +0900
committerJin Seok Park <jinpark@google.com>2019-11-19 00:49:28 +0900
commitfc73f4d82cd436918b64257c38e59dcf1e7c8a22 (patch)
treed6f904d7dbdaa2e243a73bab3bda1726d13791dd /tools/aapt2/java/JavaClassGenerator.cpp
parent77638134a40d9b9b3b78d429944012d4fd379e60 (diff)
Return correct offsets for getAttributeRange()
Currently, the offset value returned from getAttributeRange() does not take into account the offset to the EXIF data within the image file. This CL fixes the code to return the correct offsets. The existing test code could not detect this issue because it does not explicitly seek to the given offset and retrieve/compare the data. This CL also adds test code to do this. Make tag information is also added because all test files have this information, while only a select few have thumbnail/GPS tag information. This CL also fixes a bug where the thumbnail offset was not being updated if the data was passed with StripOffsets tag. Bug: 143118731, Bug: 143663411 Test: atest ExifInterfaceTest Change-Id: Ib5e33335cfafa81e3584e96d49a764ad873835a9
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions