Merge "Unhide ExifThumbnail.getThumbnailRange() and make it match the comment." into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
e1d0cabb5f
@@ -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