Home
last modified time | relevance | path

Searched refs:exif (Results 1 – 4 of 4) sorted by relevance

/cts/tests/tests/media/src/android/media/cts/
DExifInterfaceTest.java496 ExifInterface exif = new ExifInterface(imageFile.getAbsolutePath()); in testSetDateTime() local
497 exif.setAttribute(ExifInterface.TAG_DATETIME, dateTimeValue); in testSetDateTime()
498 exif.setAttribute(ExifInterface.TAG_DATETIME_ORIGINAL, dateTimeOriginalValue); in testSetDateTime()
499 exif.saveAttributes(); in testSetDateTime()
502 exif = new ExifInterface(imageFile.getAbsolutePath()); in testSetDateTime()
503 assertEquals(dateTimeValue, exif.getAttribute(ExifInterface.TAG_DATETIME)); in testSetDateTime()
504 assertEquals(dateTimeOriginalValue, exif.getAttribute(ExifInterface.TAG_DATETIME_ORIGINAL)); in testSetDateTime()
507 exif.setAttribute(ExifInterface.TAG_DATETIME, null); in testSetDateTime()
508 exif.saveAttributes(); in testSetDateTime()
511 exif = new ExifInterface(imageFile.getAbsolutePath()); in testSetDateTime()
[all …]
/cts/tests/camera/src/android/hardware/cts/
DCameraTest.java858 ExifInterface exif = new ExifInterface(JPEG_PATH); in testJpegThumbnailSizeByCamera() local
859 assertTrue(exif.hasThumbnail()); in testJpegThumbnailSizeByCamera()
860 byte[] thumb = exif.getThumbnail(); in testJpegThumbnailSizeByCamera()
884 exif = new ExifInterface(JPEG_PATH); in testJpegThumbnailSizeByCamera()
885 assertFalse(exif.hasThumbnail()); in testJpegThumbnailSizeByCamera()
925 ExifInterface exif = new ExifInterface(JPEG_PATH); in testJpegExifByCamera() local
927 boolean extraExiftestPassed = checkExtraExifTagsSucceeds(failedCause, exif); in testJpegExifByCamera()
930 String datetime = exif.getAttribute(ExifInterface.TAG_DATETIME); in testJpegExifByCamera()
945 checkGpsDataNull(exif); in testJpegExifByCamera()
946 double exifFocalLength = exif.getAttributeDouble(ExifInterface.TAG_FOCAL_LENGTH, -1); in testJpegExifByCamera()
[all …]
/cts/tests/tests/provider/src/android/provider/cts/
DMediaStoreUiTest.java233 final ExifInterface exif = new ExifInterface(new FileInputStream(target)); in testImageCapture() local
234 assertAttribute(exif, ExifInterface.TAG_MAKE); in testImageCapture()
235 assertAttribute(exif, ExifInterface.TAG_MODEL); in testImageCapture()
236 assertAttribute(exif, ExifInterface.TAG_DATETIME); in testImageCapture()
239 private static void assertAttribute(ExifInterface exif, String tag) { in assertAttribute() argument
240 final String res = exif.getAttribute(tag); in assertAttribute()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java2031 ExifInterface exif = new ExifInterface(jpegFilename); in verifyJpegKeys() local
2035 !exif.hasThumbnail()); in verifyJpegKeys()
2038 expectedThumbnailSize, exif.hasThumbnail()); in verifyJpegKeys()
2047 int exifOrientation = exif.getAttributeInt(ExifInterface.TAG_ORIENTATION, in verifyJpegKeys()
2076 verifyJpegExifExtraTags(exif, expectedSize, captureResult, staticInfo, collector, in verifyJpegKeys()
2177 private static void verifyJpegExifExtraTags(ExifInterface exif, Size jpegSize, in verifyJpegExifExtraTags() argument
2194 int exifWidth = exif.getAttributeInt(ExifInterface.TAG_IMAGE_WIDTH, /*defaultValue*/0); in verifyJpegExifExtraTags()
2195 int exifHeight = exif.getAttributeInt(ExifInterface.TAG_IMAGE_LENGTH, /*defaultValue*/0); in verifyJpegExifExtraTags()
2198 int exifOrientation = exif.getAttributeInt(ExifInterface.TAG_ORIENTATION, in verifyJpegExifExtraTags()
2245 String dateTime = exif.getAttribute(ExifInterface.TAG_DATETIME); in verifyJpegExifExtraTags()
[all …]