/frameworks/base/libs/hwui/tests/unit/ |
H A D | ClipAreaTests.cpp | 33 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()); 98 area.clipPathWithTransform(path, &Matrix4::identity(), SkRegion::kIntersect_Op); 99 EXPECT_FALSE(area.isEmpty()); 100 EXPECT_FALSE(area.isSimple()); 101 EXPECT_FALSE(area [all...] |
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
H A D | SizeAreaComparator.java | 28 * 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 D | ParameterUtils.java | 56 /** 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 D | LegacyResultMapper.java | 388 for (Camera.Area area : meteringAreaList) { 391 activeArray, zoomData, area);
|
H A D | LegacyMetadataMapper.java | 290 Log.v(TAG, String.format("mapScalerStreamConfigs - largest JPEG area %dx%d, AR=%f", 941 // Use the largest jpeg size (by area) for both active array and pixel array 1199 long area = size.width * (long) size.height; 1202 return baseDuration + area * stallPerArea;
|
/frameworks/base/core/java/android/hardware/camera2/utils/ |
H A D | SizeAreaComparator.java | 28 * 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 D | MCRegionFragmentTest.cpp | 44 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 D | FragmentRefTest.cpp | 46 MemoryArea* area = local 50 llvm::StringRef region = area->request(0, 4096);
|
/frameworks/opt/telephony/src/java/android/telephony/ |
H A D | SmsCbLocation.java | 86 * 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/support/design/tests/src/android/support/design/testutils/ |
H A D | TestUtilsMatchers.java | 238 // just the center half rect of the content area 239 final Rect area = new Rect(); 240 fab.getContentRect(area); 242 final int rectHeightQuarter = area.height() / 4; 243 final int rectWidthQuarter = area.width() / 4; 244 area.left += rectWidthQuarter; 245 area.top += rectHeightQuarter; 246 area.right -= rectWidthQuarter; 247 area.bottom -= rectHeightQuarter; 252 fillColor, area, [all...] |
/frameworks/base/libs/hwui/ |
H A D | ShadowTessellator.cpp | 96 // the shadow is within the clip area. 128 double area = 0; local 137 area += a; 142 if (area != 0) { 143 centroid = (Vector2){static_cast<float>(sumx / (3 * area)), 144 static_cast<float>(sumy / (3 * area))};
|
H A D | BakedOpRenderer.cpp | 103 OffscreenBuffer* BakedOpRenderer::copyToLayer(const Rect& area) { argument 104 const uint32_t width = area.getWidth(); 105 const uint32_t height = area.getHeight(); 107 if (!area.isEmpty() && width != 0 && height != 0) { 112 area.left, mRenderTarget.viewportHeight - area.bottom, width, height);
|
H A D | BakedOpRenderer.h | 75 WARN_UNUSED_RESULT OffscreenBuffer* copyToLayer(const Rect& area);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | ScrimView.java | 167 public void setExcludedArea(Rect area) { argument 168 if (area == null) { 174 int left = Math.max(area.left, 0); 175 int top = Math.max(area.top, 0); 176 int right = Math.min(area.right, getWidth()); 177 int bottom = Math.min(area.bottom, getHeight());
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
H A D | GcSnapshot.java | 497 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/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | StatusBarIconController.java | 410 * Sets the dark area so {@link #setIconsDark} only affects the icons in the specified area. 412 * @param darkArea the area in which icons should change it's tint, in logical screen 504 * @return true if more than half of the {@param view} area are in {@param area}, false 507 private static boolean isInArea(Rect area, View view) { argument 508 if (area.isEmpty()) { 511 sTmpRect.set(area); 515 int intersectStart = Math.max(left, area.left); 516 int intersectEnd = Math.min(left + view.getWidth(), area [all...] |
H A D | ScrimController.java | 523 public void setExcludedBackgroundArea(Rect area) { argument 524 mScrimBehind.setExcludedArea(area);
|
/frameworks/rs/java/tests/HealingBrush/src/rs/example/android/com/healingbrush/ |
H A D | Healing.java | 113 int area = calcMaskArea(mask); 115 int steps = (int) Math.sqrt(area);
|
/frameworks/native/opengl/libagl/ |
H A D | primitives.cpp | 258 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 D | context.h | 565 GGLcoord area() const { return m_area; } function in struct:android::gl::compute_iterators_t
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/ |
H A D | TaskStack.java | 429 * @param touchArea the area in which touch will initiate this dock state 430 * @param dockArea the visible dock area 432 * the initial touch area. This is also the new dock area to 455 * Returns whether {@param x} and {@param y} are contained in the area scaled to the 458 public boolean areaContainsPoint(RectF area, int width, int height, float x, float y) { argument 459 int left = (int) (area.left * width); 460 int top = (int) (area.top * height); 461 int right = (int) (area.right * width); 462 int bottom = (int) (area [all...] |
/frameworks/base/core/java/android/hardware/ |
H A D | Camera.java | 1983 * {@link Parameters#getMaxNumFocusAreas()}. If metering or focusing area 1995 * every pixel in the area. This means that a large metering area with 1996 * the same weight as a smaller area will have more effect in the 2013 * Create an area with specified rectangle and weight. 2015 * @param rect the bounds of the area. 2016 * @param weight the weight of the area. 2023 * Compares {@code obj} to this area. 2025 * @param obj the object to compare this area with. 2027 * the same as those of this area [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Path_Delegate.java | 194 Area area = new Area(pathDelegate.mPath); 195 if (area.isRectangular()) {
|
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/ |
H A D | Palette.java | 651 * If the bitmap's area is greater than the value specified, then the bitmap 652 * will be resized so that it's area matches {@code area}. If the 659 * @param area the number of pixels that the intemediary scaled down Bitmap should cover, 663 public Builder resizeBitmapArea(final int area) { argument 664 mResizeArea = area;
|
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/ |
H A D | PduParser.java | 1318 * @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);
|