Searched defs:rect (Results 26 - 50 of 107) sorted by relevance

12345

/frameworks/support/v17/leanback/src/android/support/v17/leanback/graphics/
H A DBoundsRule.java113 * @param rect Represents the current bounds.
116 public void calculateBounds(Rect rect, Rect result) { argument
118 result.left = rect.left;
120 result.left = doCalculate(rect.left, left, rect.width());
124 result.right = rect.right;
126 result.right = doCalculate(rect.left, right, rect.width());
130 result.top = rect.top;
132 result.top = doCalculate(rect
[all...]
/frameworks/base/core/tests/coretests/src/android/util/
H A DInternalSelectionView.java156 // draw background rect
160 // draw forground rect
196 public void getRectForRow(Rect rect, int row) { argument
199 rect.set(mPaddingLeft,
255 // set the row that is closest to the rect
/frameworks/base/libs/hwui/
H A DBakedOpRenderer.cpp170 void BakedOpRenderer::clearColorBuffer(const Rect& rect) { argument
171 if (rect.contains(Rect(mRenderTarget.viewportWidth, mRenderTarget.viewportHeight))) {
175 // Requested rect is subset of viewport - scissor to it to avoid over-clearing
177 mRenderState.scissor().set(rect.left, mRenderTarget.viewportHeight - rect.bottom,
178 rect.getWidth(), rect.getHeight());
252 bounds.doIntersect(clip->rect);
278 SkRegion::Cliperator it(region, clip->rect.toSkIRect());
280 const SkIRect& r = it.rect();
[all...]
H A DClipArea.h102 explicit ClipBase(const Rect& rect) argument
104 , rect(rect) {}
109 Rect rect; member in struct:android::uirenderer::ClipBase
115 explicit ClipRect(const Rect& rect) argument
116 : ClipBase(rect) {}
H A DDamageAccumulator.cpp40 // When this frame is pop'd, this rect is mapped through the above transform
181 SkRect* rect = &frame->pendingDirty; local
184 mapRect(frame->renderNode->properties(), *rect, rect);
186 mapRect(frame->matrix4, *rect, rect);
237 // Root node never has a transform, so this is the fully mapped dirty rect
H A DFrameInfoVisualizer.cpp146 float* rect; local
150 rect = mFastRects.get();
155 rect = mJankyRects.get();
162 rect[ri + 0] = right - lineWidth;
163 rect[ri + 1] = baseline;
164 rect[ri + 2] = right;
165 rect[ri + 3] = baseline;
178 float* rect; local
182 rect = mFastRects.get();
186 rect
[all...]
H A DRect.h76 inline Rect(const SkIRect& rect): // NOLINT, implicit argument
77 left(rect.fLeft),
78 top(rect.fTop),
79 right(rect.fRight),
80 bottom(rect.fBottom) {
83 inline Rect(const SkRect& rect): // NOLINT, implicit argument
84 left(rect.fLeft),
85 top(rect.fTop),
86 right(rect.fRight),
87 bottom(rect
294 operator <<(std::ostream& os, const Rect& rect) argument
[all...]
H A DLayerBuilder.cpp38 bool intersects(const Rect& rect) const {
39 if (!rect.intersects(mBounds)) return false;
42 if (rect.intersects(op->computedState.clippedBounds)) {
140 // Identical round rect clip state means both ops will clip in the same way, or not at all.
189 // Therefore it's safe to simply always merge flags, and use the bounds as the clip rect.
235 void LayerBuilder::deferLayerClear(const Rect& rect) { argument
236 mClearRects.push_back(rect);
265 for (auto&& rect : mClearRects) {
266 bounds.unionWith(rect);
267 Vertex::set(currentVert++, rect
[all...]
H A DPathCache.h157 } rect; member in union:android::uirenderer::PathDescription::Shape
/frameworks/base/libs/hwui/pipeline/skia/
H A DRenderNodeDrawable.cpp75 SkRect rect = possibleRect.toSkRect(); local
77 if (pendingClip && !pendingClip->contains(rect)) {
80 canvas->clipRRect(SkRRect::MakeRectXY(rect, radius, radius), SkClipOp::kIntersect, true);
83 (void)rect.intersect(*pendingClip);
85 canvas->clipRect(rect);
193 // Render transparent rect to increment overdraw for repaint area.
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/
H A DAssistOrbView.java244 private void updateCircleRect(Rect rect, float offset, boolean useStaticSize) { argument
249 rect.set(left, top, (int) (left + circleSize), (int) (top + circleSize));
/frameworks/base/services/core/jni/
H A Dcom_android_server_input_InputWindowHandle.cpp135 const SkIRect& rect = it.rect(); local
136 mInfo->addTouchableRegion(Rect(rect.fLeft, rect.fTop, rect.fRight, rect.fBottom));
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/geometry/
H A DQuad.java57 * @param rect a RectF instance.
60 public static Quad fromRect(RectF rect) { argument
61 return new Quad(new PointF(rect.left, rect.top),
62 new PointF(rect.right, rect.top),
63 new PointF(rect.left, rect.bottom),
64 new PointF(rect.right, rect
112 fromRotatedRect(RectF rect, float angle) argument
125 fromTransformedRect(RectF rect, Matrix matrix) argument
[all...]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DMultiProducerActivity.java282 public ColorPulse(int color1, int color2, Rect rect) { argument
285 if (rect != null) {
286 mRect = new Rect(rect.left + BORDER_WIDTH / 2, rect.top + BORDER_WIDTH / 2,
287 rect.right - BORDER_WIDTH / 2, rect.bottom - BORDER_WIDTH / 2);
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DRegion_Delegate.java329 /*package*/ static boolean nativeGetBounds(long native_region, Rect rect) { argument
337 rect.left = rect.top = rect.right = rect.bottom = 0;
341 rect.left = bounds.x;
342 rect.top = bounds.y;
343 rect.right = bounds.x + bounds.width;
344 rect.bottom = bounds.y + bounds.height;
389 /*package*/ static boolean nativeOp(long native_dst, Rect rect, lon argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgeWindow.java52 public void resized(Rect rect, Rect rect2, Rect rect3, Rect rect4, Rect rect5, Rect rect6, argument
/frameworks/native/libs/gui/tests/
H A DSurfaceTextureClient_test.cpp502 android_native_rect_t rect = {-2, -13, 40, 18}; local
503 native_window_set_crop(mANW.get(), &rect);
/frameworks/native/libs/nativewindow/
H A DAHardwareBuffer.cpp112 int32_t fence, const ARect* rect, void** outVirtualAddress) {
125 if (!rect) {
128 bounds.set(Rect(rect->left, rect->top, rect->right, rect->bottom));
111 AHardwareBuffer_lock(AHardwareBuffer* buffer, uint64_t usage, int32_t fence, const ARect* rect, void** outVirtualAddress) argument
/frameworks/native/opengl/tests/hwc/
H A DhwcRects.cpp297 Rectangle rect = parseRect(rectDesc); local
300 rectangle.push_back(rect);
368 Rectangle rect; local
381 rect.format = format->format;
384 rect.displayFrame = hwcTestParseHwcRect(in, error);
393 rect.sourceDim = HwcTestDim(rect.displayFrame.right
394 - rect.displayFrame.left,
395 rect.displayFrame.bottom
396 - rect
[all...]
/frameworks/av/media/ndk/
H A DNdkImage.cpp666 media_status_t AImage_getCropRect(const AImage* image, /*out*/AImageCropRect* rect) { argument
668 if (image == nullptr || rect == nullptr) {
669 ALOGE("%s: bad argument. image %p rect %p",
670 __FUNCTION__, image, rect);
684 rect->left = 0;
685 rect->top = 0;
686 rect->right = width;
687 rect->bottom = height;
/frameworks/base/core/java/android/content/res/
H A DCompatibilityInfo.java322 * Translate the screen rect to the application frame.
324 public void translateRectInScreenToAppWinFrame(Rect rect) { argument
325 rect.scale(applicationInvertedScale);
379 public void translateRectInAppWindowToScreen(Rect rect) { argument
380 rect.scale(applicationScale);
386 public void translateRectInScreenToAppWindow(Rect rect) { argument
387 rect.scale(applicationInvertedScale);
/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DParameterUtils.java126 public final Rect rect; field in class:ParameterUtils.WeightedRectangle
134 public WeightedRectangle(Rect rect, int weight) { argument
135 this.rect = checkNotNull(rect, "rect must not be null");
150 rect,
153 int x = clipLower(rect.left, /*lo*/0, rect, "left");
154 int y = clipLower(rect.top, /*lo*/0, rect, "to
208 clipLower(int value, int lo, Rect rect, String name) argument
212 clip(int value, int lo, int hi, Rect rect, String name) argument
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DRegion.java255 * Perform the specified Op on this region and the specified rect. Return
264 * Perform the specified Op on this region and the specified rect. Return
281 * Set this region to the result of performing the Op on the specified rect
284 public boolean op(Rect rect, Region region, Op op) { argument
285 return nativeOp(mNativeRegion, rect, region.mNativeRegion,
416 private static native boolean nativeGetBounds(long native_region, Rect rect); argument
422 private static native boolean nativeOp(long native_dst, Rect rect, argument
/frameworks/native/libs/ui/
H A DGraphicBuffer.cpp229 status_t GraphicBuffer::lock(uint32_t inUsage, const Rect& rect, void** vaddr) argument
231 if (rect.left < 0 || rect.right > width ||
232 rect.top < 0 || rect.bottom > height) {
234 rect.left, rect.top, rect.right, rect.bottom,
238 status_t res = getBufferMapper().lock(handle, inUsage, rect, vadd
249 lockYCbCr(uint32_t inUsage, const Rect& rect, android_ycbcr* ycbcr) argument
276 lockAsync(uint32_t inUsage, const Rect& rect, void** vaddr, int fenceFd) argument
282 lockAsync(uint64_t inProducerUsage, uint64_t inConsumerUsage, const Rect& rect, void** vaddr, int fenceFd) argument
305 lockAsyncYCbCr(uint32_t inUsage, const Rect& rect, android_ycbcr* ycbcr, int fenceFd) argument
[all...]
/frameworks/native/services/surfaceflinger/tests/hwc2/
H A DHwc2TestProperties.cpp550 const hwc_rect_t& rect = curr.rects[i]; local
551 dmp << "\t\trect: left " << rect.left << ", top " << rect.top
552 << ", right " << rect.right << ", bottom " << rect.bottom << "\n";
672 const hwc_rect_t& rect = curr.rects[i]; local
673 dmp << "\t\trect: left " << rect.left << ", top " << rect.top
674 << ", right " << rect.right << ", bottom " << rect
[all...]

Completed in 1177 milliseconds

12345