Home
last modified time | relevance | path

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

/cts/tests/camera/src/android/hardware/cts/
DCameraTest.java895 ExifInterface exif = new ExifInterface(mJpegPath); in testJpegThumbnailSizeByCamera() local
896 assertTrue(exif.hasThumbnail()); in testJpegThumbnailSizeByCamera()
897 byte[] thumb = exif.getThumbnail(); in testJpegThumbnailSizeByCamera()
921 exif = new ExifInterface(mJpegPath); in testJpegThumbnailSizeByCamera()
922 assertFalse(exif.hasThumbnail()); in testJpegThumbnailSizeByCamera()
963 ExifInterface exif = new ExifInterface(mJpegPath); in testJpegExifByCamera() local
965 boolean extraExiftestPassed = checkExtraExifTagsSucceeds(failedCause, exif); in testJpegExifByCamera()
968 String datetime = exif.getAttribute(ExifInterface.TAG_DATETIME); in testJpegExifByCamera()
983 checkGpsDataNull(exif); in testJpegExifByCamera()
984 double exifFocalLength = exif.getAttributeDouble(ExifInterface.TAG_FOCAL_LENGTH, -1); in testJpegExifByCamera()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DExifInterfaceTest.java661 ExifInterface exif = new ExifInterface(imageFile.getAbsolutePath()); in testSetDateTime() local
662 exif.setAttribute(ExifInterface.TAG_DATETIME, dateTimeValue); in testSetDateTime()
663 exif.setAttribute(ExifInterface.TAG_DATETIME_ORIGINAL, dateTimeOriginalValue); in testSetDateTime()
664 exif.saveAttributes(); in testSetDateTime()
667 exif = new ExifInterface(imageFile.getAbsolutePath()); in testSetDateTime()
668 assertEquals(dateTimeValue, exif.getAttribute(ExifInterface.TAG_DATETIME)); in testSetDateTime()
669 assertEquals(dateTimeOriginalValue, exif.getAttribute(ExifInterface.TAG_DATETIME_ORIGINAL)); in testSetDateTime()
672 exif.setAttribute(ExifInterface.TAG_DATETIME, null); in testSetDateTime()
673 exif.saveAttributes(); in testSetDateTime()
676 exif = new ExifInterface(imageFile.getAbsolutePath()); in testSetDateTime()
[all …]
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java2284 ExifInterface exif = new ExifInterface(blobFilename); in verifyJpegKeys() local
2288 !exif.hasThumbnail()); in verifyJpegKeys()
2291 expectedThumbnailSize, exif.hasThumbnail()); in verifyJpegKeys()
2300 int exifOrientation = exif.getAttributeInt(ExifInterface.TAG_ORIENTATION, in verifyJpegKeys()
2329 verifyJpegExifExtraTags(exif, expectedSize, captureResult, staticInfo, collector, in verifyJpegKeys()
2430 private static void verifyJpegExifExtraTags(ExifInterface exif, Size jpegSize, in verifyJpegExifExtraTags() argument
2447 int exifWidth = exif.getAttributeInt(ExifInterface.TAG_IMAGE_WIDTH, /*defaultValue*/0); in verifyJpegExifExtraTags()
2448 int exifHeight = exif.getAttributeInt(ExifInterface.TAG_IMAGE_LENGTH, /*defaultValue*/0); in verifyJpegExifExtraTags()
2451 int exifOrientation = exif.getAttributeInt(ExifInterface.TAG_ORIENTATION, in verifyJpegExifExtraTags()
2498 String dateTime = exif.getAttribute(ExifInterface.TAG_DATETIME); in verifyJpegExifExtraTags()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/intents/
DCameraIntentsActivity.java469 final ExifInterface exif = new ExifInterface(new FileInputStream(mImageTarget)); in handleIntentPictureResult() local
470 if (!checkExifAttribute(exif, ExifInterface.TAG_MAKE) in handleIntentPictureResult()
471 || !checkExifAttribute(exif, ExifInterface.TAG_MODEL) in handleIntentPictureResult()
472 || !checkExifAttribute(exif, ExifInterface.TAG_DATETIME)) { in handleIntentPictureResult()
479 if (exif.getLatLong(latLong)) { in handleIntentPictureResult()
520 private boolean checkExifAttribute(ExifInterface exif, String tag) { in checkExifAttribute() argument
521 final String res = exif.getAttribute(tag); in checkExifAttribute()
/cts/tests/tests/provider/src/android/provider/cts/
DMediaStore_Images_MediaTest.java329 final ExifInterface exif = new ExifInterface(is);
331 exif.getLatLong(latLong);
335 String xmp = exif.getAttribute(ExifInterface.TAG_XMP);
370 final ExifInterface exif = new ExifInterface(is);
372 exif.getLatLong(latLong);
376 String xmp = exif.getAttribute(ExifInterface.TAG_XMP);