Merge "Unhide ExifThumbnail.getThumbnailRange() and make it match the comment." into nyc-dev
am: e1d0cab
* commit 'e1d0cabb5f4ccc43d7fa1d84a02a87a8683f8537':
Unhide ExifThumbnail.getThumbnailRange() and make it match the comment.
Change-Id: Ic637439d4d49829f46c64ecced05c838e45fc211
This commit is contained in:
@@ -20135,6 +20135,7 @@ package android.media {
|
||||
method public int getAttributeInt(java.lang.String, int);
|
||||
method public boolean getLatLong(float[]);
|
||||
method public byte[] getThumbnail();
|
||||
method public long[] getThumbnailRange();
|
||||
method public boolean hasThumbnail();
|
||||
method public void saveAttributes() throws java.io.IOException;
|
||||
method public void setAttribute(java.lang.String, java.lang.String);
|
||||
|
||||
@@ -21627,6 +21627,7 @@ package android.media {
|
||||
method public int getAttributeInt(java.lang.String, int);
|
||||
method public boolean getLatLong(float[]);
|
||||
method public byte[] getThumbnail();
|
||||
method public long[] getThumbnailRange();
|
||||
method public boolean hasThumbnail();
|
||||
method public void saveAttributes() throws java.io.IOException;
|
||||
method public void setAttribute(java.lang.String, java.lang.String);
|
||||
|
||||
@@ -20200,6 +20200,7 @@ package android.media {
|
||||
method public int getAttributeInt(java.lang.String, int);
|
||||
method public boolean getLatLong(float[]);
|
||||
method public byte[] getThumbnail();
|
||||
method public long[] getThumbnailRange();
|
||||
method public boolean hasThumbnail();
|
||||
method public void saveAttributes() throws java.io.IOException;
|
||||
method public void setAttribute(java.lang.String, java.lang.String);
|
||||
|
||||
@@ -1079,12 +1079,16 @@ public class ExifInterface {
|
||||
*
|
||||
* @return two-element array, the offset in the first value, and length in
|
||||
* the second, or {@code null} if no thumbnail was found.
|
||||
* @hide
|
||||
*/
|
||||
public long[] getThumbnailRange() {
|
||||
if (!mHasThumbnail) {
|
||||
return null;
|
||||
}
|
||||
|
||||
long[] range = new long[2];
|
||||
range[0] = mThumbnailOffset;
|
||||
range[1] = mThumbnailLength;
|
||||
|
||||
return range;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user