/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/ |
D | ExifUtilsTest.java | 39 final ExifInterface exif = createTestExif(); in testGetDateTime() local 40 assertParseDateTime(exif, ExifUtils::getDateTime); in testGetDateTime() 45 final ExifInterface exif = createTestExif(); in testGetDateTimeOriginal() local 46 assertParseDateTime(exif, ExifUtils::getDateTimeOriginal); in testGetDateTimeOriginal() 51 final ExifInterface exif = createTestExif(); in testGetDateTimeDigitized() local 52 assertParseDateTime(exif, ExifUtils::getDateTimeDigitized); in testGetDateTimeDigitized() 57 final ExifInterface exif = createTestExif(); in testGetGpsDateTime() local 58 assertParseDateTime(exif, ExifUtils::getGpsDateTime); in testGetGpsDateTime() 63 final ExifInterface exif = new ExifInterface(file); in createTestExif() local 64 exif.setAttribute(ExifInterface.TAG_DATETIME, "2016:01:28 09:17:34"); in createTestExif() [all …]
|
/packages/providers/MediaProvider/src/com/android/providers/media/util/ |
D | ExifUtils.java | 69 public static @CurrentTimeMillisLong long getDateTime(@NonNull ExifInterface exif) { in getDateTime() argument 70 return parseDateTime(exif.getAttribute(TAG_DATETIME), in getDateTime() 71 exif.getAttribute(TAG_SUBSEC_TIME), in getDateTime() 72 exif.getAttribute(TAG_OFFSET_TIME)); in getDateTime() 79 public static @CurrentTimeMillisLong long getDateTimeDigitized(@NonNull ExifInterface exif) { in getDateTimeDigitized() argument 80 return parseDateTime(exif.getAttribute(TAG_DATETIME_DIGITIZED), in getDateTimeDigitized() 81 exif.getAttribute(TAG_SUBSEC_TIME_DIGITIZED), in getDateTimeDigitized() 82 exif.getAttribute(TAG_OFFSET_TIME_DIGITIZED)); in getDateTimeDigitized() 89 public static @CurrentTimeMillisLong long getDateTimeOriginal(@NonNull ExifInterface exif) { in getDateTimeOriginal() argument 90 return parseDateTime(exif.getAttribute(TAG_DATETIME_ORIGINAL), in getDateTimeOriginal() [all …]
|
D | SpecialFormatDetector.java | 80 final ExifInterface exif = new ExifInterface(is); in detect() local 81 return detect(exif, file); in detect() 88 public static int detect(ExifInterface exif, File file) throws Exception { in detect() argument 89 if (isMotionPhoto(exif)) { in detect() 129 private static boolean isMotionPhoto(ExifInterface exif) throws Exception { in isMotionPhoto() argument 130 if (!exif.hasAttribute(ExifInterface.TAG_XMP)) { in isMotionPhoto() 133 final String xmp = new String(exif.getAttributeBytes(ExifInterface.TAG_XMP), in isMotionPhoto()
|
D | XmpInterface.java | 151 public static @NonNull XmpInterface fromContainer(@NonNull ExifInterface exif) in fromContainer() argument 153 return fromContainer(exif, MediaProvider.sRedactedExifTags); in fromContainer() 156 public static @NonNull XmpInterface fromContainer(@NonNull ExifInterface exif, in fromContainer() argument 160 if (exif.hasAttribute(ExifInterface.TAG_XMP)) { in fromContainer() 161 buf = exif.getAttributeBytes(ExifInterface.TAG_XMP); in fromContainer() 162 xmpOffsets = exif.getAttributeRange(ExifInterface.TAG_XMP); in fromContainer()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | Exif.java | 21 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 …]
|
D | MediaDetails.java | 21 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 …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/ |
D | MetadataUtils.java | 45 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/data/ |
D | MediaDetails.java | 23 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/Camera2/src/com/android/camera/ |
D | MediaSaverImpl.java | 31 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() 144 private final ExifInterface exif; field in MediaSaverImpl.ImageSaveTask [all …]
|
D | Exif.java | 20 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()
|
D | Storage.java | 34 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 …]
|
D | PhotoModule.java | 50 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/providers/MediaProvider/tests/src/com/android/providers/media/scan/ |
D | ModernMediaScannerTest.java | 227 final ExifInterface exif = mock(ExifInterface.class); in testParseOptionalResolution() local 228 when(exif.getAttribute(ExifInterface.TAG_IMAGE_WIDTH)).thenReturn("640"); in testParseOptionalResolution() 229 when(exif.getAttribute(ExifInterface.TAG_IMAGE_LENGTH)).thenReturn("480"); in testParseOptionalResolution() 230 assertEquals("640\u00d7480", parseOptionalResolution(exif).get()); in testParseOptionalResolution() 256 final ExifInterface exif = new ExifInterface(file); in testParseDateTaken_Complete() local 257 exif.setAttribute(ExifInterface.TAG_DATETIME_ORIGINAL, "2016:01:28 09:17:34"); in testParseDateTaken_Complete() 260 exif.setAttribute(ExifInterface.TAG_OFFSET_TIME_ORIGINAL, "-00:00"); in testParseDateTaken_Complete() 261 assertEquals(1453972654000L, (long) parseOptionalDateTaken(exif, 0L).get()); in testParseDateTaken_Complete() 262 exif.setAttribute(ExifInterface.TAG_OFFSET_TIME_ORIGINAL, "+00:00"); in testParseDateTaken_Complete() 263 assertEquals(1453972654000L, (long) parseOptionalDateTaken(exif, 0L).get()); in testParseDateTaken_Complete() [all …]
|
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/ |
D | TaskCompressImageToJpeg.java | 28 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/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
D | SaveImage.java | 35 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/app/ |
D | MediaSaver.java | 23 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/Camera2/src/com/android/camera/one/v2/ |
D | OneCameraImpl.java | 51 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 …]
|
D | OneCameraZslImpl.java | 48 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/Camera2/ |
D | proguard.flags | 38 # - 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/Camera2/src/com/android/camera/session/ |
D | CaptureSessionImpl.java | 28 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/Gallery2/src/com/android/gallery3d/filtershow/cache/ |
D | ImageLoader.java | 39 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/Gallery/src/com/android/camera/ |
D | MenuHelper.java | 175 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/Messaging/src/com/android/messaging/datamodel/media/ |
D | FileImageRequest.java | 52 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/gallery3d/filtershow/info/ |
D | InfoPanel.java | 34 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/apps/Gallery2/ |
D | proguard.flags | 62 # - 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 {
|