Home
last modified time | relevance | path

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

/cts/tests/tests/media/src/android/media/cts/
DExifInterfaceTest.java736 ExifInterface exif = new ExifInterface(imageFile.getAbsolutePath()); in testGetSetDateTime() local
737 assertEquals(expectedDatetimeValue, exif.getDateTime()); in testGetSetDateTime()
738 assertEquals(expectedDatetimeValue, exif.getDateTimeOriginal()); in testGetSetDateTime()
739 assertEquals(expectedDatetimeValue, exif.getDateTimeDigitized()); in testGetSetDateTime()
740 assertEquals(expectedDatetimeValue, exif.getGpsDateTime()); in testGetSetDateTime()
742 exif.setAttribute(ExifInterface.TAG_DATETIME, dateTimeValue); in testGetSetDateTime()
743 exif.setAttribute(ExifInterface.TAG_DATETIME_ORIGINAL, dateTimeOriginalValue); in testGetSetDateTime()
744 exif.saveAttributes(); in testGetSetDateTime()
747 exif = new ExifInterface(imageFile.getAbsolutePath()); in testGetSetDateTime()
748 assertEquals(dateTimeValue, exif.getAttribute(ExifInterface.TAG_DATETIME)); in testGetSetDateTime()
[all …]
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DRedactionTestHelper.java60 final ExifInterface exif = new ExifInterface(file); in getExifMetadata() local
61 return dumpExifGpsTagsToMap(exif); in getExifMetadata()
70 final ExifInterface exif; in getExifMetadataFromRawResource() local
72 exif = new ExifInterface(in); in getExifMetadataFromRawResource()
74 return dumpExifGpsTagsToMap(exif); in getExifMetadataFromRawResource()
112 private static HashMap<String, String> dumpExifGpsTagsToMap(ExifInterface exif) { in dumpExifGpsTagsToMap() argument
115 res.put(tag, exif.getAttribute(tag)); in dumpExifGpsTagsToMap()
/cts/tests/camera/src/android/hardware/cts/
DCameraTest.java927 ExifInterface exif = new ExifInterface(mJpegPath); in testJpegThumbnailSizeByCamera() local
928 assertTrue(exif.hasThumbnail()); in testJpegThumbnailSizeByCamera()
929 byte[] thumb = exif.getThumbnail(); in testJpegThumbnailSizeByCamera()
953 exif = new ExifInterface(mJpegPath); in testJpegThumbnailSizeByCamera()
954 assertFalse(exif.hasThumbnail()); in testJpegThumbnailSizeByCamera()
994 ExifInterface exif = new ExifInterface(mJpegPath); in testJpegExifByCamera() local
996 boolean extraExiftestPassed = checkExtraExifTagsSucceeds(failedCause, exif); in testJpegExifByCamera()
999 String datetime = exif.getAttribute(ExifInterface.TAG_DATETIME); in testJpegExifByCamera()
1014 checkGpsDataNull(exif); in testJpegExifByCamera()
1015 double exifFocalLength = exif.getAttributeDouble(ExifInterface.TAG_FOCAL_LENGTH, -1); in testJpegExifByCamera()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/intents/
DCameraIntentsActivity.java475 final ExifInterface exif = new ExifInterface(new FileInputStream(mImageTarget)); in handleIntentPictureResult() local
476 if (!checkExifAttribute(exif, ExifInterface.TAG_MAKE) in handleIntentPictureResult()
477 || !checkExifAttribute(exif, ExifInterface.TAG_MODEL) in handleIntentPictureResult()
478 || !checkExifAttribute(exif, ExifInterface.TAG_DATETIME)) { in handleIntentPictureResult()
485 if (exif.getLatLong(latLong)) { in handleIntentPictureResult()
526 private boolean checkExifAttribute(ExifInterface exif, String tag) { in checkExifAttribute() argument
527 final String res = exif.getAttribute(tag); in checkExifAttribute()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java2808 ExifInterface exif = new ExifInterface(blobFilename); in verifyJpegKeys() local
2812 !exif.hasThumbnail()); in verifyJpegKeys()
2815 expectedThumbnailSize, exif.hasThumbnail()); in verifyJpegKeys()
2824 int exifOrientation = exif.getAttributeInt(ExifInterface.TAG_ORIENTATION, in verifyJpegKeys()
2853 verifyJpegExifExtraTags(exif, expectedSize, captureResult, staticInfo, collector, in verifyJpegKeys()
2954 private static void verifyJpegExifExtraTags(ExifInterface exif, Size jpegSize, in verifyJpegExifExtraTags() argument
2971 int exifWidth = exif.getAttributeInt(ExifInterface.TAG_IMAGE_WIDTH, /*defaultValue*/0); in verifyJpegExifExtraTags()
2972 int exifHeight = exif.getAttributeInt(ExifInterface.TAG_IMAGE_LENGTH, /*defaultValue*/0); in verifyJpegExifExtraTags()
2975 int exifOrientation = exif.getAttributeInt(ExifInterface.TAG_ORIENTATION, in verifyJpegExifExtraTags()
3022 String dateTime = exif.getAttribute(ExifInterface.TAG_DATETIME); in verifyJpegExifExtraTags()
[all …]
/cts/tests/tests/provider/src/android/provider/cts/media/
DMediaStore_Images_MediaTest.java405 final ExifInterface exif = new ExifInterface(is);
407 exif.getLatLong(latLong);
411 String xmp = exif.getAttribute(ExifInterface.TAG_XMP);
424 final ExifInterface exif = new ExifInterface(is);
426 exif.getLatLong(latLong);
430 String xmp = exif.getAttribute(ExifInterface.TAG_XMP);
/cts/tests/camera/src/android/hardware/camera2/cts/
DCameraExtensionSessionTest.java932 ExifInterface exif = new ExifInterface(blobFilename); in verifyJpegOrientation() local
933 int exifWidth = exif.getAttributeInt(ExifInterface.TAG_IMAGE_WIDTH, /*defaultValue*/0); in verifyJpegOrientation()
934 int exifHeight = exif.getAttributeInt(ExifInterface.TAG_IMAGE_LENGTH, /*defaultValue*/0); in verifyJpegOrientation()
936 int exifOrientation = exif.getAttributeInt(ExifInterface.TAG_ORIENTATION, in verifyJpegOrientation()
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/
DScopedStorageDeviceTest.java867 HashMap<String, String> exif = getExifMetadata(jpgFile); in testMetaDataRedaction() local
868 assertExifMetadataMatch(exif, originalExif); in testMetaDataRedaction()
1248 HashMap<String, String> exif = getExifMetadata(imgFile); in testAccessMediaLocationInvalidation() local
1249 assertExifMetadataMatch(exif, originalExif); in testAccessMediaLocationInvalidation()