Loading api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -10115,6 +10115,7 @@ package android.media { method public void setAuxiliaryOutputFile(java.lang.String); method public void setCamera(android.hardware.Camera); method public void setCaptureRate(double); method public void setLocation(float, float); method public void setMaxDuration(int) throws java.lang.IllegalArgumentException; method public void setMaxFileSize(long) throws java.lang.IllegalArgumentException; method public void setOnErrorListener(android.media.MediaRecorder.OnErrorListener); media/java/android/media/MediaRecorder.java +4 −5 Original line number Diff line number Diff line Loading @@ -347,7 +347,7 @@ public class MediaRecorder } /** * Store the geodata (latitude and longitude) in the output file. * Set and store the geodata (latitude and longitude) in the output file. * This method should be called before prepare(). The geodata is * stored in udta box if the output format is OutputFormat.THREE_GPP * or OutputFormat.MPEG_4, and is ignored for other output formats. Loading @@ -361,18 +361,17 @@ public class MediaRecorder * @throws IllegalArgumentException if the given latitude or * longitude is out of range. * * {@hide} */ public void setGeoData(float latitude, float longitude) { public void setLocation(float latitude, float longitude) { int latitudex10000 = (int) (latitude * 10000 + 0.5); int longitudex10000 = (int) (longitude * 10000 + 0.5); if (latitudex10000 > 900000 || latitudex10000 < -900000) { String msg = "Unsupported latitude: " + latitude; String msg = "Latitude: " + latitude + " out of range."; throw new IllegalArgumentException(msg); } if (longitudex10000 > 1800000 || longitudex10000 < -1800000) { String msg = "Unsupported longitude: " + longitude; String msg = "Longitude: " + longitude + " out of range"; throw new IllegalArgumentException(msg); } Loading Loading
api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -10115,6 +10115,7 @@ package android.media { method public void setAuxiliaryOutputFile(java.lang.String); method public void setCamera(android.hardware.Camera); method public void setCaptureRate(double); method public void setLocation(float, float); method public void setMaxDuration(int) throws java.lang.IllegalArgumentException; method public void setMaxFileSize(long) throws java.lang.IllegalArgumentException; method public void setOnErrorListener(android.media.MediaRecorder.OnErrorListener);
media/java/android/media/MediaRecorder.java +4 −5 Original line number Diff line number Diff line Loading @@ -347,7 +347,7 @@ public class MediaRecorder } /** * Store the geodata (latitude and longitude) in the output file. * Set and store the geodata (latitude and longitude) in the output file. * This method should be called before prepare(). The geodata is * stored in udta box if the output format is OutputFormat.THREE_GPP * or OutputFormat.MPEG_4, and is ignored for other output formats. Loading @@ -361,18 +361,17 @@ public class MediaRecorder * @throws IllegalArgumentException if the given latitude or * longitude is out of range. * * {@hide} */ public void setGeoData(float latitude, float longitude) { public void setLocation(float latitude, float longitude) { int latitudex10000 = (int) (latitude * 10000 + 0.5); int longitudex10000 = (int) (longitude * 10000 + 0.5); if (latitudex10000 > 900000 || latitudex10000 < -900000) { String msg = "Unsupported latitude: " + latitude; String msg = "Latitude: " + latitude + " out of range."; throw new IllegalArgumentException(msg); } if (longitudex10000 > 1800000 || longitudex10000 < -1800000) { String msg = "Unsupported longitude: " + longitude; String msg = "Longitude: " + longitude + " out of range"; throw new IllegalArgumentException(msg); } Loading