Skip to content

Commit 1d4a255

Browse files
joefernandezAndroid (Google) Code Review
authored andcommitted
Merge "docs: Camera class JavaDoc FixIts for ICS"
2 parents b4e7d4c + 464cb21 commit 1d4a255

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

core/java/android/hardware/Camera.java

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ public static class CameraInfo {
201201
public static final int CAMERA_FACING_FRONT = 1;
202202

203203
/**
204-
* The direction that the camera faces to. It should be
204+
* The direction that the camera faces. It should be
205205
* CAMERA_FACING_BACK or CAMERA_FACING_FRONT.
206206
*/
207207
public int facing;
@@ -1055,9 +1055,9 @@ public interface FaceDetectionListener
10551055
/**
10561056
* Notify the listener of the detected faces in the preview frame.
10571057
*
1058-
* @param faces the detected faces. The list is sorted by the score.
1059-
* The highest score is the first element.
1060-
* @param camera the Camera service object
1058+
* @param faces The detected faces in a list sorted by the confidence score.
1059+
* The highest scored face is the first element.
1060+
* @param camera The {@link Camera} service object
10611061
*/
10621062
void onFaceDetection(Face[] faces, Camera camera);
10631063
}
@@ -1105,7 +1105,7 @@ public final void startFaceDetection() {
11051105
/**
11061106
* Stops the face detection.
11071107
*
1108-
* @see #startFaceDetection(int)
1108+
* @see #startFaceDetection()
11091109
*/
11101110
public final void stopFaceDetection() {
11111111
_stopFaceDetection();
@@ -1116,8 +1116,12 @@ public final void stopFaceDetection() {
11161116
private native final void _stopFaceDetection();
11171117

11181118
/**
1119-
* The information of a face from camera face detection.
1119+
* Information about a face identified through camera face detection.
1120+
*
1121+
* <p>When face detection is used with a camera, the {@link FaceDetectionListener} returns a
1122+
* list of face objects for use in focusing and metering.</p>
11201123
*
1124+
* @see FaceDetectionListener
11211125
*/
11221126
public static class Face {
11231127
/**
@@ -1138,15 +1142,15 @@ public Face() {
11381142
* the sensor sees. The direction is not affected by the rotation or
11391143
* mirroring of {@link #setDisplayOrientation(int)}.</p>
11401144
*
1141-
* @see #startFaceDetection(int)
1145+
* @see #startFaceDetection()
11421146
*/
11431147
public Rect rect;
11441148

11451149
/**
1146-
* The confidence level of the face. The range is 1 to 100. 100 is the
1150+
* The confidence level for the detection of the face. The range is 1 to 100. 100 is the
11471151
* highest confidence.
11481152
*
1149-
* @see #startFaceDetection(int)
1153+
* @see #startFaceDetection()
11501154
*/
11511155
public int score;
11521156

@@ -3144,7 +3148,7 @@ public void setMeteringAreas(List<Area> meteringAreas) {
31443148
* supported.
31453149
*
31463150
* @return the maximum number of detected face supported by the camera.
3147-
* @see #startFaceDetection(int)
3151+
* @see #startFaceDetection()
31483152
*/
31493153
public int getMaxNumDetectedFaces() {
31503154
return getInt(KEY_MAX_NUM_DETECTED_FACES_HW, 0);

0 commit comments

Comments
 (0)