summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEarl Ou <shunhsingou@google.com>2012-08-06 07:13:24 (GMT)
committerEarl Ou <shunhsingou@google.com>2012-08-07 09:41:36 (GMT)
commitb8efaa090f3500057ae95e2ef8710d3ec4d69d3f (patch)
tree6e189e436aa3163a8978b75171ff11dd930bccfe /tests
parent98ad41f842f8f926bb44a4f9bb03492e26eb0346 (diff)
downloadandroid_packages_apps_Snap-b8efaa090f3500057ae95e2ef8710d3ec4d69d3f.zip
android_packages_apps_Snap-b8efaa090f3500057ae95e2ef8710d3ec4d69d3f.tar.gz
android_packages_apps_Snap-b8efaa090f3500057ae95e2ef8710d3ec4d69d3f.tar.bz2
1. Use xml to record true data for ExifParserTest 2. A ExifTestRunner
Change-Id: I6f0133a42670f5f4cbfa37a06bac41a8f6beceef
Diffstat (limited to 'tests')
-rwxr-xr-xtests/res/raw/galaxy_nexus.jpg (renamed from tests/res/raw/test_galaxy_nexus.jpg)bin1018845 -> 1018845 bytes
-rw-r--r--tests/res/xml/galaxy_nexus.xml47
2 files changed, 47 insertions, 0 deletions
diff --git a/tests/res/raw/test_galaxy_nexus.jpg b/tests/res/raw/galaxy_nexus.jpg
index de91df6..de91df6 100755
--- a/tests/res/raw/test_galaxy_nexus.jpg
+++ b/tests/res/raw/galaxy_nexus.jpg
Binary files differ
diff --git a/tests/res/xml/galaxy_nexus.xml b/tests/res/xml/galaxy_nexus.xml
new file mode 100644
index 0000000..e9a43af
--- /dev/null
+++ b/tests/res/xml/galaxy_nexus.xml
@@ -0,0 +1,47 @@
+<exif>
+ <ifd name="ifd0">
+ <tag id="0x100" name="ImageWidth">2560</tag>
+ <tag id="0x101" name="ImageHeight">1920</tag>
+ <tag id="0x10f" name="Make">google</tag>
+ <tag id="0x110" name="Model">Nexus S</tag>
+ <tag id="0x112" name="Orientation">1</tag>
+ <tag id="0x131" name="Software">MASTER</tag>
+ <tag id="0x132" name="DateTime">2012:07:30 16:28:42</tag>
+ <tag id="0x213" name="YCbCrPositioning">1</tag>
+ </ifd>
+ <ifd name="exif-ifd">
+ <tag id="0x829A" name="ExposureTime">1/40</tag>
+ <tag id="0x829D" name="FNumber">26/10</tag>
+ <tag id="0x8822" name="ExposureProgram">3</tag>
+ <tag id="0x8827" name="IsoSpeedRatings">100</tag>
+ <tag id="0x9000" name="ExifVersion">48 50 50 48</tag>
+ <tag id="0x9003" name="DateTimeTimeOriginal">2012:07:30 16:28:42</tag>
+ <tag id="0x9004" name="DateTimeTimeDigitized">2012:07:30 16:28:42</tag>
+ <tag id="0x9201" name="ShutterSpeed">50/10</tag>
+ <tag id="0x9202" name="ApertureValue">30/10</tag>
+ <tag id="0x9203" name="BrightnessValue">30/10</tag>
+ <tag id="0x9204" name="ExposureBiasValue">0/0</tag>
+ <tag id="0x9205" name="MaxApertureValue">30/10</tag>
+ <tag id="0x9207" name="MeteringMode">2</tag>
+ <tag id="0x9209" name="Flash">0</tag>
+ <tag id="0x920A" name="FocalLength">343/100</tag>
+ <tag id="0x9286" name="UserComment">0 0 0 73 73 67 83 65 85 115 101 114 32 99 111 109 109 101 110 116 115 0</tag>
+ <tag id="0xA001" name="ColoSpace">1</tag>
+ <tag id="0xA002" name="PixelXDimension">2560</tag>
+ <tag id="0xA003" name="PixelYDimension">1920</tag>
+ <tag id="0xA402" name="ExposureMode">0</tag>
+ <tag id="0xA403" name="WhithBalance">0</tag>
+ <tag id="0xA406" name="SceneCaptureType">0</tag>
+ </ifd>
+ <ifd name="ifd1">
+ <tag id="0x103" name="Compression">6</tag>
+ <tag id="0x11A" name="XResolution">72/1</tag>
+ <tag id="0x11B" name="YResolution">72/1</tag>
+ <tag id="0x128" name="ResolutionUnit">2</tag>
+ <tag id="0x100" name="ImageWidth">320</tag>
+ <tag id="0x101" name="ImageHeight">240</tag>
+ <tag id="0x112" name="Orientation">1</tag>
+ <tag id="0x201" name="JpegInterchangeFormat">690</tag>
+ <tag id="0x202" name="JpegInterchangeFormatLength">10447</tag>
+ </ifd>
+</exif>