Home
last modified time | relevance | path

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

12345

/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/
DModernMediaScannerTest.java109 final ExifInterface exif = new ExifInterface(file); in testParseDateTaken_Complete() local
110 exif.setAttribute(ExifInterface.TAG_DATETIME_ORIGINAL, "2016:01:28 09:17:34"); in testParseDateTaken_Complete()
113 exif.setAttribute(ExifInterface.TAG_OFFSET_TIME_ORIGINAL, "-00:00"); in testParseDateTaken_Complete()
114 assertEquals(1453972654000L, (long) parseOptionalDateTaken(exif, 0L).get()); in testParseDateTaken_Complete()
115 exif.setAttribute(ExifInterface.TAG_OFFSET_TIME_ORIGINAL, "+00:00"); in testParseDateTaken_Complete()
116 assertEquals(1453972654000L, (long) parseOptionalDateTaken(exif, 0L).get()); in testParseDateTaken_Complete()
119 exif.setAttribute(ExifInterface.TAG_OFFSET_TIME_ORIGINAL, "-07:00"); in testParseDateTaken_Complete()
120 assertEquals(1453972654000L + 25200000L, (long) parseOptionalDateTaken(exif, 0L).get()); in testParseDateTaken_Complete()
121 exif.setAttribute(ExifInterface.TAG_OFFSET_TIME_ORIGINAL, "+07:00"); in testParseDateTaken_Complete()
122 assertEquals(1453972654000L - 25200000L, (long) parseOptionalDateTaken(exif, 0L).get()); in testParseDateTaken_Complete()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DMediaDetails.java21 import com.android.gallery3d.exif.ExifInterface;
22 import com.android.gallery3d.exif.ExifTag;
23 import com.android.gallery3d.exif.Rational;
136 ExifInterface exif = new ExifInterface(); in extractExifInfo() local
138 exif.readExif(filePath); in extractExifInfo()
145 setExifData(details, exif.getTag(ExifInterface.TAG_FLASH), in extractExifInfo()
147 setExifData(details, exif.getTag(ExifInterface.TAG_IMAGE_WIDTH), in extractExifInfo()
149 setExifData(details, exif.getTag(ExifInterface.TAG_IMAGE_LENGTH), in extractExifInfo()
151 setExifData(details, exif.getTag(ExifInterface.TAG_MAKE), in extractExifInfo()
153 setExifData(details, exif.getTag(ExifInterface.TAG_MODEL), in extractExifInfo()
[all …]
DExif.java21 import com.android.gallery3d.exif.ExifInterface;
36 ExifInterface exif = new ExifInterface(); in getOrientation() local
38 exif.readExif(is); in getOrientation()
39 Integer val = exif.getTagIntValue(ExifInterface.TAG_ORIENTATION); in getOrientation()
57 ExifInterface exif = new ExifInterface(); in getExif() local
59 exif.readExif(jpegData); in getExif()
63 return exif; in getExif()
69 public static int getOrientation(ExifInterface exif) { in getOrientation() argument
70 Integer val = exif.getTagIntValue(ExifInterface.TAG_ORIENTATION); in getOrientation()
85 ExifInterface exif = getExif(jpegData); in getOrientation()
[all …]
DLocalImage.java37 import com.android.gallery3d.exif.ExifInterface;
38 import com.android.gallery3d.exif.ExifTag;
197 ExifInterface exif = new ExifInterface(); in onDecodeOriginal() local
200 exif.readExif(mLocalFilePath); in onDecodeOriginal()
201 thumbData = exif.getThumbnail(); in onDecodeOriginal()
/packages/apps/Camera2/src/com/android/camera/data/
DMediaDetails.java23 import com.android.camera.exif.ExifInterface;
24 import com.android.camera.exif.ExifTag;
138 ExifInterface exif = new ExifInterface(); in extractExifInfo() local
140 exif.readExif(filePath); in extractExifInfo()
147 setExifData(details, exif.getTag(ExifInterface.TAG_FLASH), in extractExifInfo()
149 setExifData(details, exif.getTag(ExifInterface.TAG_IMAGE_WIDTH), in extractExifInfo()
151 setExifData(details, exif.getTag(ExifInterface.TAG_IMAGE_LENGTH), in extractExifInfo()
153 setExifData(details, exif.getTag(ExifInterface.TAG_MAKE), in extractExifInfo()
155 setExifData(details, exif.getTag(ExifInterface.TAG_MODEL), in extractExifInfo()
157 setExifData(details, exif.getTag(ExifInterface.TAG_APERTURE_VALUE), in extractExifInfo()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/
DMetadataUtils.java45 static boolean hasExifGpsFields(@Nullable Bundle exif) { in hasExifGpsFields() argument
46 return exif != null && (exif.containsKey(ExifInterface.TAG_GPS_LATITUDE) in hasExifGpsFields()
47 && exif.containsKey(ExifInterface.TAG_GPS_LONGITUDE) in hasExifGpsFields()
48 && exif.containsKey(ExifInterface.TAG_GPS_LATITUDE_REF) in hasExifGpsFields()
49 && exif.containsKey(ExifInterface.TAG_GPS_LONGITUDE_REF)); in hasExifGpsFields()
70 static float[] getExifGpsCoords(Bundle exif) { in getExifGpsCoords() argument
71 assert hasExifGpsFields(exif); in getExifGpsCoords()
73 String lat = exif.getString(ExifInterface.TAG_GPS_LATITUDE); in getExifGpsCoords()
74 String lon = exif.getString(ExifInterface.TAG_GPS_LONGITUDE); in getExifGpsCoords()
75 String latRef = exif.getString(ExifInterface.TAG_GPS_LATITUDE_REF); in getExifGpsCoords()
[all …]
/packages/apps/Camera2/src/com/android/camera/
DMediaSaverImpl.java30 import com.android.camera.exif.ExifInterface;
70 int height, int orientation, ExifInterface exif, OnMediaSavedListener l) { in addImage() argument
71 addImage(data, title, date, loc, width, height, orientation, exif, l, in addImage()
77 int height, int orientation, ExifInterface exif, OnMediaSavedListener l, in addImage() argument
85 width, height, orientation, mimeType, exif, mContentResolver, l); in addImage()
96 ExifInterface exif, OnMediaSavedListener l) { in addImage() argument
99 addImage(data, title, date, loc, 0, 0, orientation, exif, l, in addImage()
104 int orientation, ExifInterface exif, OnMediaSavedListener l) { in addImage() argument
105 addImage(data, title, System.currentTimeMillis(), loc, width, height, orientation, exif, l, in addImage()
145 private final ExifInterface exif; field in MediaSaverImpl.ImageSaveTask
[all …]
DExif.java20 import com.android.camera.exif.ExifInterface;
28 ExifInterface exif = new ExifInterface(); in getExif() local
30 exif.readExif(jpegData); in getExif()
34 return exif; in getExif()
38 public static int getOrientation(ExifInterface exif) { in getOrientation() argument
39 Integer val = exif.getTagIntValue(ExifInterface.TAG_ORIENTATION); in getOrientation()
50 ExifInterface exif = getExif(jpegData); in getOrientation()
51 return getOrientation(exif); in getOrientation()
DStorage.java34 import com.android.camera.exif.ExifInterface;
101 Location location, int orientation, ExifInterface exif, byte[] jpeg, int width, in addImage() argument
104 return addImage(resolver, title, date, location, orientation, exif, jpeg, width, height, in addImage()
130 Location location, int orientation, ExifInterface exif, byte[] data, int width, in addImage() argument
136 bitmap, width, height, mimeType, exif); in addImage()
161 int height, String mimeType, ExifInterface exif) { in addImageToMediaStore() argument
168 writeBitmap(uri, exif, bitmap, resolver); in addImageToMediaStore()
183 private void writeBitmap(Uri uri, ExifInterface exif, Bitmap bitmap, ContentResolver resolver) in writeBitmap() argument
186 if (exif != null) { in writeBitmap()
187 exif.writeExif(bitmap, os); in writeBitmap()
[all …]
DPhotoModule.java50 import com.android.camera.exif.ExifInterface;
51 import com.android.camera.exif.ExifTag;
52 import com.android.camera.exif.Rational;
813 ExifInterface exif; field in PhotoModule.ResizeBundle
823 final ExifInterface exif = dataBundle.exif; in cropJpegDataToAspectRatio() local
847 exif.setTagValue(ExifInterface.TAG_PIXEL_X_DIMENSION, new Integer(newWidth)); in cropJpegDataToAspectRatio()
848 exif.setTagValue(ExifInterface.TAG_PIXEL_Y_DIMENSION, new Integer(newHeight)); in cropJpegDataToAspectRatio()
906 final ExifInterface exif = Exif.getExif(originalJpegData); in onPictureTaken() local
912 dataBundle.exif = exif; in onPictureTaken()
922 saveFinalPhoto(result.jpegData, name, result.exif, camera); in onPictureTaken()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
DSaveImage.java35 import com.android.gallery3d.exif.ExifInterface;
245 ExifInterface exif = new ExifInterface(); in getExifData() local
254 exif.readExif(inStream); in getExifData()
263 return exif; in getExifData()
266 public boolean putExifData(File file, ExifInterface exif, Bitmap image, in putExifData() argument
271 s = exif.getExifWriterStream(file.getAbsolutePath()); in putExifData()
318 private void updateExifData(ExifInterface exif, long time) { in updateExifData() argument
320 exif.addDateTimeStampTag(ExifInterface.TAG_DATE_TIME, time, in updateExifData()
322 exif.setTag(exif.buildTag(ExifInterface.TAG_ORIENTATION, in updateExifData()
325 exif.removeCompressedThumbnail(); in updateExifData()
[all …]
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/
DTaskCompressImageToJpeg.java28 import com.android.camera.exif.ExifInterface;
97 public Map<Integer, Integer> exifGetMinimalTags(ExifInterface exif) { in exifGetMinimalTags() argument
99 map.put(ExifInterface.TAG_ORIENTATION, Exif.getOrientation(exif)); in exifGetMinimalTags()
100 map.put(ExifInterface.TAG_PIXEL_X_DIMENSION, exif.getTagIntValue( in exifGetMinimalTags()
102 map.put(ExifInterface.TAG_PIXEL_Y_DIMENSION, exif.getTagIntValue( in exifGetMinimalTags()
341 final ExifInterface exif = createExif(Optional.fromNullable(exifData), resultImage, in run() local
343 mSession.getCollector().decorateAtTimeWriteToDisk(exif); in run()
345 resultImage.width, resultImage.height, resultImage.orientation.getDegrees(), exif); in run()
400 ExifInterface exif; in createExif() local
402 exif = exifData.get(); in createExif()
[all …]
/packages/apps/Camera2/src/com/android/camera/one/v2/
DOneCameraImpl.java51 import com.android.camera.exif.ExifInterface;
52 import com.android.camera.exif.ExifTag;
53 import com.android.camera.exif.Rational;
474 ExifInterface exif = null; in saveJpegPicture() local
476 exif = new ExifInterface(); in saveJpegPicture()
477 exif.readExif(jpegData); in saveJpegPicture()
479 Integer w = exif.getTagIntValue(ExifInterface.TAG_PIXEL_X_DIMENSION); in saveJpegPicture()
481 Integer h = exif.getTagIntValue(ExifInterface.TAG_PIXEL_Y_DIMENSION); in saveJpegPicture()
485 rotation = Exif.getOrientation(exif); in saveJpegPicture()
489 ExifTag directionRefTag = exif.buildTag( in saveJpegPicture()
[all …]
DOneCameraZslImpl.java48 import com.android.camera.exif.ExifInterface;
49 import com.android.camera.exif.ExifTag;
50 import com.android.camera.exif.Rational;
616 ExifInterface exif = new ExifInterface(); in savePicture() local
622 exif.setTag(exif.buildTag(ExifInterface.TAG_PIXEL_X_DIMENSION, size.getWidth())); in savePicture()
623 exif.setTag(exif.buildTag(ExifInterface.TAG_PIXEL_Y_DIMENSION, size.getHeight())); in savePicture()
625 exif.setTag( in savePicture()
626 exif.buildTag(ExifInterface.TAG_ORIENTATION, ExifInterface.Orientation.TOP_LEFT)); in savePicture()
630 ExifTag directionRefTag = exif.buildTag(ExifInterface.TAG_GPS_IMG_DIRECTION_REF, in savePicture()
633 exif.buildTag(ExifInterface.TAG_GPS_IMG_DIRECTION, new Rational(heading, 1)); in savePicture()
[all …]
/packages/apps/Gallery/src/com/android/camera/
DMenuHelper.java175 ExifInterface exif = getExif(image); in hasLatLngData() local
176 if (exif == null) return false; in hasLatLngData()
178 return exif.getLatLong(latlng); in hasLatLngData()
220 ExifInterface exif) { in setLatLngDetails() argument
222 if (exif.getLatLong(latlng)) { in setLatLngDetails()
270 ExifInterface exif = getExif(image); in onShowMapClicked()
272 if (exif != null) { in onShowMapClicked()
274 if (exif.getLatLong(latlng)) { in onShowMapClicked()
316 ExifInterface exif = getExif(image); in showExifInformation() local
317 if (exif == null) { in showExifInformation()
[all …]
/packages/apps/Camera2/src/com/android/camera/session/
DCaptureSessionImpl.java28 import com.android.camera.exif.ExifInterface;
298 int height, int orientation, ExifInterface exif) { in saveAndFinish() argument
310 orientation, exif, new MediaSaver.OnMediaSavedListener() { in saveAndFinish()
323 orientation, exif, data, width, height, FilmstripItemData.MIME_TYPE_JPEG); in saveAndFinish()
376 ExifInterface exif = null; in finish()
378 exif = new ExifInterface(); in finish()
379 exif.readExif(jpegData); in finish()
382 exif = null; in finish()
384 CaptureSessionImpl.this.saveAndFinish(jpegData, width, height, rotation, exif); in finish()
/packages/apps/Camera2/src/com/android/camera/app/
DMediaSaver.java23 import com.android.camera.exif.ExifInterface;
87 int orientation, ExifInterface exif, OnMediaSavedListener l); in addImage() argument
109 int orientation, ExifInterface exif, OnMediaSavedListener l, String mimeType); in addImage() argument
127 ExifInterface exif, OnMediaSavedListener l); in addImage() argument
147 ExifInterface exif, OnMediaSavedListener l); in addImage() argument
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/
DImageLoader.java39 import com.android.gallery3d.exif.ExifInterface;
40 import com.android.gallery3d.exif.ExifTag;
132 ExifInterface exif = new ExifInterface(); in getMetadataOrientation() local
142 exif.readExif(path); in getMetadataOrientation()
145 exif.readExif(is); in getMetadataOrientation()
147 return parseExif(exif); in getMetadataOrientation()
162 private static int parseExif(ExifInterface exif){ in parseExif() argument
163 Integer tagval = exif.getTagIntValue(ExifInterface.TAG_ORIENTATION); in parseExif()
573 ExifInterface exif = new ExifInterface(); in getExif() local
574 exif.readExif(path); in getExif()
[all …]
/packages/apps/Camera2/
Dproguard.flags38 # - Required for running exif tests on userdebug
39 -keep class com.android.gallery3d.exif.ExifTag { *; }
40 -keep class com.android.gallery3d.exif.ExifData { *; }
41 -keep class com.android.gallery3d.exif.ExifInterface { *; }
42 -keepclassmembers class com.android.gallery3d.exif.Util {
/packages/apps/Gallery2/
Dproguard.flags62 # - Required for running exif tests on userdebug
63 -keep class com.android.gallery3d.exif.ExifTag { *; }
64 -keep class com.android.gallery3d.exif.ExifData { *; }
65 -keep class com.android.gallery3d.exif.ExifInterface { *; }
66 -keepclassmembers class com.android.gallery3d.exif.Util {
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/info/
DInfoPanel.java34 import com.android.gallery3d.exif.ExifInterface;
35 import com.android.gallery3d.exif.ExifTag;
97 List<ExifTag> exif = PrimaryImage.getImage().getEXIF(); in onCreateView() local
100 if (exif != null) { in onCreateView()
101 for (ExifTag tag : exif) { in onCreateView()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DXmpInterface.java150 public static @NonNull XmpInterface fromContainer(@NonNull ExifInterface exif) in fromContainer() argument
152 return fromContainer(exif, Collections.emptySet()); in fromContainer()
155 public static @NonNull XmpInterface fromContainer(@NonNull ExifInterface exif, in fromContainer() argument
159 if (exif.hasAttribute(ExifInterface.TAG_XMP)) { in fromContainer()
160 buf = exif.getAttributeBytes(ExifInterface.TAG_XMP); in fromContainer()
161 xmpOffsets = exif.getAttributeRange(ExifInterface.TAG_XMP); in fromContainer()
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DFileImageRequest.java52 final ExifInterface exif = new ExifInterface(mPath); in loadBitmapInternal() local
53 if (exif.hasThumbnail()) { in loadBitmapInternal()
54 thumbnail = exif.getThumbnail(); in loadBitmapInternal()
80 if (com.android.messaging.util.exif.ExifInterface. in loadBitmapInternal()
/packages/apps/Gallery2/src/com/android/photos/drawables/
DDataUriThumbnailDrawable.java33 ExifInterface exif = new ExifInterface(data); in getPreferredImageBytes() local
34 if (exif.hasThumbnail()) { in getPreferredImageBytes()
35 thumbnail = exif.getThumbnail(); in getPreferredImageBytes()
/packages/providers/MediaProvider/src/com/android/providers/media/scan/
DModernMediaScanner.java727 final ExifInterface exif = new ExifInterface(is); in scanItemImage() local
730 parseOptionalOrZero(exif.getAttribute(ExifInterface.TAG_IMAGE_WIDTH))); in scanItemImage()
732 parseOptionalOrZero(exif.getAttribute(ExifInterface.TAG_IMAGE_LENGTH))); in scanItemImage()
734 parseOptionalDateTaken(exif, lastModifiedTime(file, attrs) * 1000)); in scanItemImage()
736 parseOptionalOrientation(exif.getAttributeInt(ExifInterface.TAG_ORIENTATION, in scanItemImage()
740 parseOptional(exif.getAttribute(ExifInterface.TAG_IMAGE_DESCRIPTION))); in scanItemImage()
743 final XmpInterface xmp = XmpInterface.fromContainer(exif); in scanItemImage()
816 static @NonNull Optional<Long> parseOptionalDateTaken(@NonNull ExifInterface exif, in parseOptionalDateTaken() argument
818 final long originalTime = exif.getDateTimeOriginal(); in parseOptionalDateTaken()
819 if (exif.hasAttribute(ExifInterface.TAG_OFFSET_TIME_ORIGINAL)) { in parseOptionalDateTaken()
[all …]

12345