Searched refs:area (Results 1 - 17 of 17) sorted by relevance

/frameworks/base/libs/hwui/unit_tests/
H A DClipAreaTests.cpp33 ClipArea area; local
34 area.setViewportDimensions(kViewportBounds.getWidth(), kViewportBounds.getHeight());
35 return area;
89 ClipArea area(createClipArea());
90 EXPECT_FALSE(area.isEmpty());
94 ClipArea area(createClipArea());
100 area.clipPathWithTransform(path, &transform, SkRegion::kIntersect_Op);
101 EXPECT_FALSE(area.isEmpty());
102 EXPECT_FALSE(area.isSimple());
103 EXPECT_FALSE(area
[all...]
/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DSizeAreaComparator.java28 * Comparator for api1 {@link Camera.Size} objects by the area.
30 * <p>This comparator totally orders by rectangle area. Tie-breaks on width.</p>
48 long area = width * size.height;
51 if (area == area2) {
55 return (area > area2) ? 1 : -1;
59 * Get the largest api1 {@code Camera.Size} from the list by comparing each size's area
H A DParameterUtils.java56 /** The default normalized area uses the default normalized rectangle with a weight=1 */
89 * The metering area scaled to the range of [-1000, 1000].
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) { argument
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
327 for (Camera.Area area
893 convertCameraAreaToActiveArrayRectangle( Rect activeArray, ZoomData zoomData, Camera.Area area) argument
956 convertCameraAreaToActiveArrayRectangle( Rect activeArray, ZoomData zoomData, Camera.Area area, boolean usePreviewCrop) argument
[all...]
H A DLegacyResultMapper.java386 for (Camera.Area area : meteringAreaList) {
389 activeArray, zoomData, area);
H A DLegacyMetadataMapper.java288 Log.v(TAG, String.format("mapScalerStreamConfigs - largest JPEG area %dx%d, AR=%f",
939 // Use the largest jpeg size (by area) for both active array and pixel array
1197 long area = size.width * (long) size.height;
1200 return baseDuration + area * stallPerArea;
/frameworks/base/core/java/android/hardware/camera2/utils/
H A DSizeAreaComparator.java28 * Comparator for {@link Size} objects by the area.
30 * <p>This comparator totally orders by rectangle area. Tie-breaks on width.</p>
47 long area = width * size.getHeight();
50 if (area == area2) {
54 return (area > area2) ? 1 : -1;
58 * Get the largest {@code Size} from the list by comparing each size's area
/frameworks/compile/mclinker/unittests/
H A DMCRegionFragmentTest.cpp44 MemoryArea* area = areaFactory->produce(path, MemoryArea::ReadWrite); local
46 MemoryRegion* region = area->request(0, 4096);
59 MemoryArea* area = areaFactory->produce(path, MemoryArea::ReadWrite); local
61 MemoryRegion* region = area->request(0, 4096);
H A DFragmentRefTest.cpp46 MemoryArea* area = local
50 llvm::StringRef region = area->request(0, 4096);
/frameworks/opt/telephony/src/java/android/telephony/
H A DSmsCbLocation.java86 * Returns the GSM location area code, or UMTS service area code.
87 * @return location area code, -1 if unknown, 0xffff max legal value
127 * Test whether this location is within the location area of the specified object.
129 * @param area the location area to compare with this location
130 * @return true if this location is contained within the specified location area
132 public boolean isInLocationArea(SmsCbLocation area) { argument
133 if (mCid != -1 && mCid != area.mCid) {
136 if (mLac != -1 && mLac != area
[all...]
/frameworks/base/libs/hwui/
H A DShadowTessellator.cpp100 // the shadow is within the clip area.
132 double area = 0; local
141 area += a;
146 if (area != 0) {
147 centroid = (Vector2){static_cast<float>(sumx / (3 * area)),
148 static_cast<float>(sumy / (3 * area))};
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DGcSnapshot.java497 Area area = null;
500 area = new Area(shape);
502 area = Region_Delegate.combineShapes(getClip(), shape, regionOp);
505 assert area != null;
508 if (area != null) {
510 layer.setClip(area);
517 if (area != null) {
518 mClip = area;
654 // know about the clipping area.
660 // clipped area
[all...]
/frameworks/native/opengl/libagl/
H A Dprimitives.cpp258 const GGLcoord area = (m_area + TRI_HALF) >> TRI_FRACTION_BITS; local
260 // triangles with an area smaller than 1.0 are not smooth-shaded
263 if (abs(area) >= minArea) {
265 // factor for deltas/area:
267 // First compute the 1/area with full 32-bits precision,
269 d = gglRecipQNormalized(area, &q);
275 // We'll keep 16-bits of precision for deltas/area. So we need
698 // rho = sqrt( texelArea / area )
700 // lod = log2( texelArea / area ) / 2
701 // lod = (log2( texelArea ) - log2( area )) /
703 const GGLcoord area = abs(lerp.area()); local
[all...]
H A Dcontext.h565 GGLcoord area() const { return m_area; } function in struct:android::gl::compute_iterators_t
/frameworks/base/core/java/android/hardware/
H A DCamera.java1977 * {@link Parameters#getMaxNumFocusAreas()}. If metering or focusing area
1989 * every pixel in the area. This means that a large metering area with
1990 * the same weight as a smaller area will have more effect in the
2007 * Create an area with specified rectangle and weight.
2009 * @param rect the bounds of the area.
2010 * @param weight the weight of the area.
2017 * Compares {@code obj} to this area.
2019 * @param obj the object to compare this area with.
2021 * the same as those of this area
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DPath_Delegate.java191 Area area = new Area(pathDelegate.mPath);
192 if (area.isRectangular()) {
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/
H A DPduParser.java1318 * @param length area size
1319 * @return the values in this area
1323 byte[] area = new byte[length];
1324 int readLen = pduDataStream.read(area, 0, length);
/frameworks/av/services/camera/libcameraservice/api1/client2/
H A DParameters.cpp2528 const char* area = areasStr.string() + areaStart; local
2533 vals[i] = strtol(area, &numEnd, 10);
2534 if (errno || numEnd == area) return BAD_VALUE;
2535 area = numEnd + 1;
2547 // Definition of valid area can be found in
2561 // fixed focus can only set (0,0,0,0,0) focus area
2925 // chosen to maximize its area on the sensor
2976 // center the zoom area within the active area
3037 * ratios. Since each stream will maximize its area withi
[all...]

Completed in 702 milliseconds