Home
last modified time | relevance | path

Searched refs:exifData (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Gallery2/tests/src/com/android/gallery3d/exif/
DExifDataTest.java94 ExifData exifData = new ExifData(ByteOrder.BIG_ENDIAN); in testAddTag() local
98 assertTrue(exifData.addTag(t) == null); in testAddTag()
102 assertFalse(exifData.hasCompressedThumbnail()); in testAddTag()
103 assertFalse(exifData.hasUncompressedStrip()); in testAddTag()
106 exifData.setStripBytes(3, new byte[] { in testAddTag()
109 assertTrue(exifData.hasUncompressedStrip()); in testAddTag()
110 exifData.setCompressedThumbnail(new byte[] { in testAddTag()
113 assertTrue(exifData.hasCompressedThumbnail()); in testAddTag()
116 exifData.clearThumbnailAndStrips(); in testAddTag()
117 assertFalse(exifData.hasCompressedThumbnail()); in testAddTag()
[all …]
DExifReaderTest.java49 ExifData exifData = reader.read(getImageInputStream()); in testRead() local
51 checkIfd(exifData.getIfdData(i), mGroundTruth.get(i)); in testRead()
53 checkThumbnail(exifData); in testRead()
59 private void checkThumbnail(ExifData exifData) { in checkThumbnail() argument
66 IfdData ifd1 = exifData.getIfdData(IfdId.TYPE_IFD_1); in checkThumbnail()
77 assertTrue(getImageTitle(), exifData.hasCompressedThumbnail()); in checkThumbnail()
78 byte[] thumbnail = exifData.getCompressedThumbnail(); in checkThumbnail()
136 byteCountTag.getValueAt(i), exifData.getStrip(i).length); in checkThumbnail()
139 byteCountTag.getValueAt(i), exifData.getStrip(i).length); in checkThumbnail()
DExifOutputStreamTest.java74 ExifData exifData = new ExifReader(mInterface).read(exifInputStream); in testExifOutputStream() local
79 exifOutputStream.setExifData(exifData); in testExifOutputStream()
93 assertEquals(getImageTitle(), exifData, reExifData); in testExifOutputStream() local
99 exifOutputStream.setExifData(exifData); in testExifOutputStream()
117 assertEquals(getImageTitle(), exifData, reExifData); in testExifOutputStream() local
156 ExifData exifData = new ExifReader(mInterface).read(imageInputStream); in testOutputSpeed() local
167 exifOutputStream.setExifData(exifData); in testOutputSpeed()
DExifXmlReader.java52 List<Map<Short, List<String>>> exifData = in readXml() local
55 exifData.add(new HashMap<Short, List<String>>()); in readXml()
84 List<String> tagData = exifData.get(ifdId).get(id); in readXml()
87 exifData.get(ifdId).put(id, tagData); in readXml()
98 return exifData; in readXml()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
DExifReader.java47 ExifData exifData = new ExifData(parser.getByteOrder()); in read() local
54 exifData.addIfdData(new IfdData(parser.getCurrentIfd())); in read()
61 exifData.getIfdData(tag.getIfd()).setTag(tag); in read()
69 exifData.getIfdData(tag.getIfd()).setTag(tag); in read()
74 exifData.setCompressedThumbnail(buf); in read()
82 exifData.setStripBytes(parser.getStripIndex(), buf); in read()
90 return exifData; in read()
DExifOutputStream.java94 protected void setExifData(ExifData exifData) { in setExifData() argument
95 mExifData = exifData; in setExifData()