• Home
  • History
  • Annotate
  • only in /frameworks/support/exifinterface/src/android/support/media/
History log of /frameworks/support/exifinterface/src/android/support/media/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f684bb0b79c106f7e087d13cc6e1886743da0644 13-Mar-2017 Hyundo Moon <hdmoon@google.com> Merge "Fix errorprone warnings in ExifInterface" into nyc-support-25.4-dev
am: 8979cf3175

Change-Id: I0a67c73499619534639511a980f6440506bd878a
89889c49482aed4e9dec66b33f733065e3e1580c 08-Mar-2017 Hyundo Moon <hdmoon@google.com> Fix errorprone warnings in ExifInterface

Bug: 36034215
Test: ./gradlew support-exifinterface:assembleErrorProne (in master)
Also tested with locally modified CTS code.
Change-Id: Id8b03787f95d84f4cbafba4e263ce495035cbd82
xifInterface.java
abc73958d264e1eed7fd401a18be1d9ede8304eb 06-Mar-2017 Aurimas Liutikas <aurimas@google.com> A pass at fixing unchecked javac warnings.

Add types where needed.
Suppress places where we intentionally skip types.

Test: ./gradlew assemble still works
Change-Id: If1350e896948c7e27c212cf7b1a94f08b9131193
xifInterface.java
e2104f4b5c8e3ad63570306a25e61502dfe4c418 05-Mar-2017 Aurimas Liutikas <aurimas@google.com> Add all missing @Override annotations.

Historically, we could not add @Override for certain methods due to
using older SDKs to build support library. That is no longer the case
so we can add @Override everywhere now.

Test: ./gradlew assemble assembleAndroidTest still works
Change-Id: I85e3c1157f0e253e3eab7584189f3bf95cf030e9
xifInterface.java
f96abe0f8ae38bbb9810d2205e050ebe4ef613a1 24-Feb-2017 Hyundo Moon <hdmoon@google.com> ExifInterface: Fix ClassCastException

The private method handleThumbnailFromStrips() was written on the
wrong assumption where the values of some EXIF attributes will be
always long[]. However those values can be int[], which causes a
ClassCastException. This CL fixes the exception by checking the
instance type before casting.

Bug: 35719948
Test: Manually tested with an image file which was manipulated
to have the problematic int[] attributes.
Change-Id: I4884801a8cb208c0cb72cfa696dea3bfcda29adf
xifInterface.java
d56d8611e9a0e06799114a3d4716ac5921c06342 18-Jan-2017 Hyundo Moon <hdmoon@google.com> ExifInterface: Add helper methods to set latitude/longitude

This CL adds two new APIs getLatLong()/setLatLong(double, double)
to help developers to get/set the latitude and longitude values.
Also it deprecates getLatLong(float[]).

Bug: 33219903
Test: ./gradlew support-exifinterface:connectedCheck
Change-Id: I62c25fbd91d803cd77bb49b939f37ca5672c96a2
xifInterface.java
9c853b8f83e4c8bc1817651a968ab099a9620b7e 23-Jan-2017 Hyundo Moon <hdmoon@google.com> Merge "ExifInterface: Accept decimal values for RATIONAL formats" into nyc-support-25.2-dev
77966fe1cfca14edf5d1d95e1decb57cff9ccd47 20-Jan-2017 Hyundo Moon <hdmoon@google.com> ExifInterface: Accept decimal values for RATIONAL formats

Prior to android N, ExifInterface.setAttributes() accepted the
decimal values for SRATIONAL/URATIONAL formats. However in the support
library (and also in android N), decimal values for RATIONAL formats
are rejected. Since this behavior breaks the backward compatibility,
we should make setAttributes() accept decimal values as before.

Bug: 34269464
Test: manually tested with an app
Change-Id: Icacbbbc7d3068e5c6dbb15cba37398bd8764a5c8
xifInterface.java
f83358389f0c4ea37a7e7d9e493857f99baf0440 07-Jan-2017 Chris Banes <chrisbanes@google.com> Fix some issues caught via a static analyzer

I concentrated on the resource leaks rather than
any possible null dereferences.

Test: all pass
Change-Id: I2eab70648068058111b6dc82ba7494a1ff0ecb32
xifInterface.java
46ffc16f1c2e80e8fc401a5a440c3c3a847b4ba7 01-Dec-2016 Hyundo Moon <hdmoon@google.com> ExifInterface: Add JavaDoc in constructor

ExifInterface is not intended to be used with any networking operations.
This CL edits JavaDoc of the constructor ExifInterface(InputStream) to
explicitly state it.

Change-Id: I2c836822671c4fa6d230790a45aa0a73ccba5e53
xifInterface.java
14ea3100458369949fffba9978db2a51dde21bf2 21-Nov-2016 Hyundo Moon <hdmoon@google.com> Add ExifInterface into support library

This CL does the followings:
- Modify ExifInterface.java to use only API <= 9 methods
- Add/modify build scripts (Android.mk, gradle)

Bug: 28299989
Test: Run modified CTS code locally.
Change-Id: I2444e9060afa099a93ea6f6fdf69e03082dde13a
xifInterface.java