Home | History | Annotate | Download | only in legacy

Lines Matching refs:Area

24 import android.hardware.Camera.Area;
58 /** The default normalized area uses the default normalized rectangle with a weight=1 */
59 public static final Camera.Area CAMERA_AREA_DEFAULT =
60 new Camera.Area(new Rect(NORMALIZED_RECTANGLE_DEFAULT),
89 * The metering area scaled to the range of [-1000, 1000].
92 public final Camera.Area meteringArea;
106 public MeteringData(Area meteringArea, Rect previewMetering, Rect reportedMetering) {
283 * Returns the largest supported picture size, as compared by its area.
293 * Convert a camera area into a human-readable string.
295 public static String stringFromArea(Camera.Area area) {
296 if (area == null) {
300 Rect r = area.rect;
308 sb.append(area.weight);
316 * Convert a camera area list into a human-readable string
319 public static String stringFromAreaList(List<Camera.Area> areaList) {
327 for (Camera.Area area : areaList) {
328 if (area == null) {
331 sb.append(stringFromArea(area));
787 Area area} is bound by {@code [-1000, 1000]}.</p>
795 * @return the metering area, the reported/effective metering rectangles
822 * Try to intersect normalized area with [-1000, 1000] rectangle; otherwise
827 Camera.Area meteringArea;
833 meteringArea = new Camera.Area(RECTANGLE_EMPTY,
836 meteringArea = new Camera.Area(normalizedIntersected,
850 * - Transform the calculated metering area back into active array space
855 Camera.Area normalizedAreaUnbounded = new Camera.Area(
876 * Convert the normalized camera area from [-1000, 1000] coordinate space
886 * @param area the normalized camera area
891 Rect activeArray, ZoomData zoomData, Camera.Area area) {
892 return convertCameraAreaToActiveArrayRectangle(activeArray, zoomData, area,
915 Camera.Area fakeArea = new Camera.Area(face.rect, /*weight*/1);
940 Camera.Area pointedArea = new Area(pointedRect, /*weight*/1);
952 Rect activeArray, ZoomData zoomData, Camera.Area area, boolean usePreviewCrop) {
979 Rect reportedMetering = ParamsUtils.mapRect(transform, area.rect);
986 int weight = area.weight;
990 + stringFromArea(area) + " has too small weight, clip to 0");
994 return new WeightedRectangle(reportedMetering, area.weight);