summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2011-10-27 18:07:01 +0800
committerWu-cheng Li <wuchengli@google.com>2011-10-28 00:38:02 +0800
commit0f4f97b70f6ad59b32e78720ba7357733bdef3e9 (patch)
treee5c7ce8445d6c74dc463530f5bf4070ee1ad3e69 /core
parent763480fbcabedfc2f425484ed74bc1e2e1392176 (diff)
downloadframeworks_base-0f4f97b70f6ad59b32e78720ba7357733bdef3e9.zip
frameworks_base-0f4f97b70f6ad59b32e78720ba7357733bdef3e9.tar.gz
frameworks_base-0f4f97b70f6ad59b32e78720ba7357733bdef3e9.tar.bz2
Update camera continuous autofocus javadoc.
Suppose applications call autoFocus in CAF picture mode. If CAF is in the middle of scanning, the picture is very likely to be blurry. Change focus callback to return when the scanning finishes. bug:5514415 Change-Id: Ibcb8f92a5263d7dbd7cce54df3617fb21c6255d4
Diffstat (limited to 'core')
-rw-r--r--core/java/android/hardware/Camera.java21
1 files changed, 12 insertions, 9 deletions
diff --git a/core/java/android/hardware/Camera.java b/core/java/android/hardware/Camera.java
index caad6fd..68f0247 100644
--- a/core/java/android/hardware/Camera.java
+++ b/core/java/android/hardware/Camera.java
@@ -1687,15 +1687,18 @@ public class Camera {
* aggressive than {@link #FOCUS_MODE_CONTINUOUS_VIDEO}. Auto focus
* starts when the parameter is set.
*
- * <p>If applications call {@link #autoFocus(AutoFocusCallback)} in this
- * mode, the focus callback will immediately return with a boolean that
- * indicates whether the focus is sharp or not. The apps can then decide
- * if they want to take a picture immediately or to change the focus
- * mode to auto, and run a full autofocus cycle. The focus position is
- * locked after autoFocus call. If applications want to resume the
- * continuous focus, cancelAutoFocus must be called. Restarting the
- * preview will not resume the continuous autofocus. To stop continuous
- * focus, applications should change the focus mode to other modes.
+ * <p>Applications can call {@link #autoFocus(AutoFocusCallback)} in
+ * this mode. If the autofocus is in the middle of scanning, the focus
+ * callback will return when it completes. If the autofocus is not
+ * scanning, the focus callback will immediately return with a boolean
+ * that indicates whether the focus is sharp or not. The apps can then
+ * decide if they want to take a picture immediately or to change the
+ * focus mode to auto, and run a full autofocus cycle. The focus
+ * position is locked after autoFocus call. If applications want to
+ * resume the continuous focus, cancelAutoFocus must be called.
+ * Restarting the preview will not resume the continuous autofocus. To
+ * stop continuous focus, applications should change the focus mode to
+ * other modes.
*
* @see #FOCUS_MODE_CONTINUOUS_VIDEO
*/