Home
last modified time | relevance | path

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

/cts/tests/tests/media/misc/src/android/media/misc/cts/
DExifInterfaceTest.java781 ExifInterface exif = new ExifInterface(imageFile.getAbsolutePath()); in testGetSetDateTime() local
782 assertEquals(expectedDatetimeValue, exif.getDateTime()); in testGetSetDateTime()
783 assertEquals(expectedDatetimeValue, exif.getDateTimeOriginal()); in testGetSetDateTime()
784 assertEquals(expectedDatetimeValue, exif.getDateTimeDigitized()); in testGetSetDateTime()
785 assertEquals(expectedDatetimeValue, exif.getGpsDateTime()); in testGetSetDateTime()
787 exif.setAttribute(ExifInterface.TAG_DATETIME, dateTimeValue); in testGetSetDateTime()
788 exif.setAttribute(ExifInterface.TAG_DATETIME_ORIGINAL, dateTimeOriginalValue); in testGetSetDateTime()
789 exif.saveAttributes(); in testGetSetDateTime()
792 exif = new ExifInterface(imageFile.getAbsolutePath()); in testGetSetDateTime()
793 assertEquals(dateTimeValue, exif.getAttribute(ExifInterface.TAG_DATETIME)); in testGetSetDateTime()
[all …]
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DRedactionTestHelper.java65 final ExifInterface exif = new ExifInterface(file); in getExifMetadataFromFile() local
66 return dumpExifGpsTagsToMap(exif); in getExifMetadataFromFile()
76 final ExifInterface exif = new ExifInterface(is); in getExifMetadataFromUri() local
77 return dumpExifGpsTagsToMap(exif); in getExifMetadataFromUri()
88 final ExifInterface exif; in getExifMetadataFromRawResource() local
90 exif = new ExifInterface(in); in getExifMetadataFromRawResource()
92 return dumpExifGpsTagsToMap(exif); in getExifMetadataFromRawResource()
130 private static HashMap<String, String> dumpExifGpsTagsToMap(ExifInterface exif) { in dumpExifGpsTagsToMap() argument
133 res.put(tag, exif.getAttribute(tag)); in dumpExifGpsTagsToMap()
/cts/tests/camera/src/android/hardware/cts/
DCameraTest.java928 ExifInterface exif = new ExifInterface(mJpegPath); in testJpegThumbnailSizeByCamera() local
929 assertTrue(exif.hasThumbnail()); in testJpegThumbnailSizeByCamera()
930 byte[] thumb = exif.getThumbnail(); in testJpegThumbnailSizeByCamera()
954 exif = new ExifInterface(mJpegPath); in testJpegThumbnailSizeByCamera()
955 assertFalse(exif.hasThumbnail()); in testJpegThumbnailSizeByCamera()
995 ExifInterface exif = new ExifInterface(mJpegPath); in testJpegExifByCamera() local
997 boolean extraExiftestPassed = checkExtraExifTagsSucceeds(failedCause, exif); in testJpegExifByCamera()
1000 String datetime = exif.getAttribute(ExifInterface.TAG_DATETIME); in testJpegExifByCamera()
1015 checkGpsDataNull(exif); in testJpegExifByCamera()
1016 double exifFocalLength = exif.getAttributeDouble(ExifInterface.TAG_FOCAL_LENGTH, -1); in testJpegExifByCamera()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/intents/
DCameraIntentsActivity.java473 final ExifInterface exif = new ExifInterface(new FileInputStream(mImageTarget)); in handleIntentPictureResult() local
474 if (!checkExifAttribute(exif, ExifInterface.TAG_MAKE) in handleIntentPictureResult()
475 || !checkExifAttribute(exif, ExifInterface.TAG_MODEL) in handleIntentPictureResult()
476 || !checkExifAttribute(exif, ExifInterface.TAG_DATETIME)) { in handleIntentPictureResult()
483 if (exif.getLatLong(latLong)) { in handleIntentPictureResult()
528 private boolean checkExifAttribute(ExifInterface exif, String tag) { in checkExifAttribute() argument
529 final String res = exif.getAttribute(tag); in checkExifAttribute()
/cts/tests/PhotoPicker/src/android/photopicker/cts/util/
DResultsAssertionsUtils.java198 final ExifInterface exif = new ExifInterface(is); in assertImageExifRedacted() local
200 exif.getLatLong(latLong); in assertImageExifRedacted()
206 String xmp = exif.getAttribute(ExifInterface.TAG_XMP); in assertImageExifRedacted()
/cts/tests/mediaprovider/src/android/provider/cts/media/
DMediaStore_Images_MediaTest.java421 final ExifInterface exif = new ExifInterface(is);
423 exif.getLatLong(latLong);
427 String xmp = exif.getAttribute(ExifInterface.TAG_XMP);
441 final ExifInterface exif = new ExifInterface(is);
443 exif.getLatLong(latLong);
447 String xmp = exif.getAttribute(ExifInterface.TAG_XMP);
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/
DDetermineFovActivity.java84 ExifInterface exif = new ExifInterface(pictureFile); in onCreate() local
85 int exifOrientation = exif.getAttributeInt(ExifInterface.TAG_ORIENTATION, in onCreate()
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/
DStorageOwnedFilesTest.java230 HashMap<String, String> exif = getExifMetadataFromFile(IMAGE_FILE_2_METADATA); in owned_accessLocationMetadata() local
231 assertExifMetadataMatch(exif, originalExif); in owned_accessLocationMetadata()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java3430 ExifInterface exif = new ExifInterface(blobFilename); in verifyJpegKeys() local
3434 !exif.hasThumbnail()); in verifyJpegKeys()
3437 expectedThumbnailSize, exif.hasThumbnail()); in verifyJpegKeys()
3446 int exifOrientation = exif.getAttributeInt(ExifInterface.TAG_ORIENTATION, in verifyJpegKeys()
3475 verifyJpegExifExtraTags(exif, expectedSize, captureResult, staticInfo, allStaticInfo, in verifyJpegKeys()
3686 private static void verifyJpegExifExtraTags(ExifInterface exif, Size jpegSize, in verifyJpegExifExtraTags() argument
3704 int exifWidth = exif.getAttributeInt(ExifInterface.TAG_IMAGE_WIDTH, /*defaultValue*/0); in verifyJpegExifExtraTags()
3705 int exifHeight = exif.getAttributeInt(ExifInterface.TAG_IMAGE_LENGTH, /*defaultValue*/0); in verifyJpegExifExtraTags()
3708 int exifOrientation = exif.getAttributeInt(ExifInterface.TAG_ORIENTATION, in verifyJpegExifExtraTags()
3755 String dateTime = exif.getAttribute(ExifInterface.TAG_DATETIME); in verifyJpegExifExtraTags()
[all …]
/cts/tests/camera/src/android/hardware/camera2/cts/
DCameraExtensionSessionTest.java1815 ExifInterface exif = new ExifInterface(blobFilename); in verifyJpegOrientation() local
1816 int exifWidth = exif.getAttributeInt(ExifInterface.TAG_IMAGE_WIDTH, /*defaultValue*/0); in verifyJpegOrientation()
1817 int exifHeight = exif.getAttributeInt(ExifInterface.TAG_IMAGE_LENGTH, /*defaultValue*/0); in verifyJpegOrientation()
1819 int exifOrientation = exif.getAttributeInt(ExifInterface.TAG_ORIENTATION, in verifyJpegOrientation()
/cts/hostsidetests/scopedstorage/general/src/android/scopedstorage/cts/general/
DScopedStorageDeviceTest.java888 HashMap<String, String> exif = getExifMetadataFromFile(jpgFile); in testMetaDataRedaction() local
889 assertExifMetadataMatch(exif, originalExif); in testMetaDataRedaction()
1337 HashMap<String, String> exif = getExifMetadataFromFile(imgFile); in testAccessMediaLocationInvalidation() local
1338 assertExifMetadataMatch(exif, originalExif); in testAccessMediaLocationInvalidation()