Home | History | Annotate | Download | only in hardware

Lines Matching defs:Area

1479      * <p>The Area class is used for choosing specific metering and focus areas for
1485 * {@link Parameters#getMaxNumFocusAreas()}. If metering or focusing area
1488 * <p>Each Area consists of a rectangle specifying its bounds, and a weight
1497 * every pixel in the area. This means that a large metering area with
1498 * the same weight as a smaller area will have more effect in the
1509 public static class Area {
1511 * Create an area with specified rectangle and weight.
1513 * @param rect the bounds of the area.
1514 * @param weight the weight of the area.
1516 public Area(Rect rect, int weight) {
1521 * Compares {@code obj} to this area.
1523 * @param obj the object to compare this area with.
1525 * the same as those of this area. {@code false} otherwise.
1529 if (!(obj instanceof Area)) {
1532 Area a = (Area) obj;
1542 * Bounds of the area. (-1000, -1000) represents the top-left of the
1554 * Weight of the area. The weight must range from 1 to 1000, and
1555 * represents a weight for every pixel in the area. This means that a
1556 * large metering area with the same weight as a smaller area will have
2001 private void set(String key, List<Area> areas) {
2007 Area area = areas.get(i);
2008 Rect rect = area.rect;
2018 buffer.append(area.weight);
3216 * camera hardware, autofocus algorithm, the focus area, and the scene.
3256 * focus areas first. If the value is 0, focus area is not supported.</p>
3258 * <p>Each focus area is a rectangle with specified weight. The direction
3267 * interpreted as a per-pixel weight - all pixels in the area have the
3268 * specified weight. This means a small area with the same weight as a
3269 * larger area will have less influence on the focusing than the larger
3270 * area. Focus areas can partially overlap and the driver will add the
3273 * <p>A special case of a {@code null} focus area list means the driver is
3276 * dynamically. Apps can set the focus area list to {@code null} if they
3282 * area cannot be set to be outside the current field of view, even
3285 * <p>Focus area only has effect if the current focus mode is
3292 public List<Area> getFocusAreas() {
3302 public void setFocusAreas(List<Area> focusAreas) {
3324 * metering areas first. If the value is 0, metering area is not
3327 * <p>Each metering area is a rectangle with specified weight. The
3336 * every pixel in the area. This means that a large metering area with
3337 * the same weight as a smaller area will have more effect in the
3341 * <p>A special case of a {@code null} metering area list means the driver
3344 * can set the metering area list to {@code null} if they want the
3350 * metering area cannot be set to be outside the current field of view,
3358 public List<Area> getMeteringAreas() {
3369 public void setMeteringAreas(List<Area> meteringAreas) {
3612 // Splits a comma delimited string to an ArrayList of Area objects.
3615 private ArrayList<Area> splitArea(String str) {
3618 Log.e(TAG, "Invalid area string=" + str);
3622 ArrayList<Area> result = new ArrayList<Area>();
3630 result.add(new Area(rect, array[4]));
3637 Area area = result.get(0);
3638 Rect rect = area.rect;
3640 && rect.bottom == 0 && area.weight == 0) {