diff options
author | Wu-cheng Li <wuchengli@google.com> | 2010-08-27 18:09:48 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-08-27 18:09:48 -0700 |
commit | 7fe6d3f13ae18a85c09bf38ea1f3281280a9fd48 (patch) | |
tree | 0bf8ce2c5fe5236dde1cdaf5572cb2e3ca5a87c6 /core/java/android/hardware | |
parent | bf88d55b9f413b58072de6e7d3e3ccdcf1dd3672 (diff) | |
parent | 705c2e66dcb358c865cf912a5496825088044b79 (diff) | |
download | frameworks_base-7fe6d3f13ae18a85c09bf38ea1f3281280a9fd48.zip frameworks_base-7fe6d3f13ae18a85c09bf38ea1f3281280a9fd48.tar.gz frameworks_base-7fe6d3f13ae18a85c09bf38ea1f3281280a9fd48.tar.bz2 |
am 705c2e66: am d851e6fe: Merge "Unhide camera fps range API and deprecate old ones." into gingerbread
Merge commit '705c2e66dcb358c865cf912a5496825088044b79'
* commit '705c2e66dcb358c865cf912a5496825088044b79':
Unhide camera fps range API and deprecate old ones.
Diffstat (limited to 'core/java/android/hardware')
-rw-r--r-- | core/java/android/hardware/Camera.java | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/core/java/android/hardware/Camera.java b/core/java/android/hardware/Camera.java index e432a47..530f1b3 100644 --- a/core/java/android/hardware/Camera.java +++ b/core/java/android/hardware/Camera.java @@ -1224,7 +1224,6 @@ public class Camera { * The array index of minimum preview fps for use with {@link * #getPreviewFpsRange(int[])} or {@link * #getSupportedPreviewFpsRange()}. - * @hide */ public static final int PREVIEW_FPS_MIN_INDEX = 0; @@ -1232,7 +1231,6 @@ public class Camera { * The array index of maximum preview fps for use with {@link * #getPreviewFpsRange(int[])} or {@link * #getSupportedPreviewFpsRange()}. - * @hide */ public static final int PREVIEW_FPS_MAX_INDEX = 1; @@ -1471,7 +1469,9 @@ public class Camera { * target frame rate. The actual frame rate depends on the driver. * * @param fps the frame rate (frames per second) + * @deprecated replaced by {@link #setPreviewFpsRange(int,int)} */ + @Deprecated public void setPreviewFrameRate(int fps) { set(KEY_PREVIEW_FRAME_RATE, fps); } @@ -1482,7 +1482,9 @@ public class Camera { * depends on the driver. * * @return the frame rate setting (frames per second) + * @deprecated replaced by {@link #getPreviewFpsRange(int[])} */ + @Deprecated public int getPreviewFrameRate() { return getInt(KEY_PREVIEW_FRAME_RATE); } @@ -1492,7 +1494,9 @@ public class Camera { * * @return a list of supported preview frame rates. null if preview * frame rate setting is not supported. + * @deprecated replaced by {@link #getSupportedPreviewFpsRange()} */ + @Deprecated public List<Integer> getSupportedPreviewFrameRates() { String str = get(KEY_PREVIEW_FRAME_RATE + SUPPORTED_VALUES_SUFFIX); return splitInt(str); @@ -1509,7 +1513,6 @@ public class Camera { * @throws RuntimeException if fps range is invalid. * @see #setPreviewCallbackWithBuffer(Camera.PreviewCallback) * @see #getSupportedPreviewFpsRange() - * @hide */ public void setPreviewFpsRange(int min, int max) { set(KEY_PREVIEW_FPS_RANGE, "" + min + "," + max); @@ -1523,12 +1526,11 @@ public class Camera { * @see #PREVIEW_FPS_MIN_INDEX * @see #PREVIEW_FPS_MAX_INDEX * @see #getSupportedPreviewFpsRange() - * @hide */ public void getPreviewFpsRange(int[] range) { if (range == null || range.length != 2) { throw new IllegalArgumentException( - "range must be an float array with two elements."); + "range must be an array with two elements."); } splitInt(get(KEY_PREVIEW_FPS_RANGE), range); } @@ -1549,7 +1551,6 @@ public class Camera { * minimum fps). * @see #PREVIEW_FPS_MIN_INDEX * @see #PREVIEW_FPS_MAX_INDEX - * @hide */ public List<int[]> getSupportedPreviewFpsRange() { String str = get(KEY_PREVIEW_FPS_RANGE + SUPPORTED_VALUES_SUFFIX); |