Searched refs:rect (Results 126 - 150 of 191) sorted by relevance

12345678

/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/
H A DSurfaceCompositionMeasuringActivity.java270 Rect rect = new Rect();
271 getWindow().getDecorView().getWindowVisibleDisplayFrame(rect);
272 mWidth = rect.right;
273 mHeight = rect.bottom;
/frameworks/native/include/ui/
H A DRect.h25 #include <android/rect.h>
84 // an empty rect has a zero width or height, or is invalid
113 // the following 4 functions return the 4 corners of the rect as Point
/frameworks/native/opengl/tests/hwc/
H A DhwcTestLib.h111 std::string hwcTestRect2str(const struct hwc_rect& rect);
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DTaskStackLayoutAlgorithm.java186 * Computes the freeform and stack rect for this state.
188 * @param freeformRectOut the freeform rect to be written out
189 * @param stackRectOut the stack rect, we only write out the top of the stack
190 * @param taskStackBounds the full rect that the freeform rect can take up
231 // The task bounds (untransformed) for layout. This rect is anchored at mTaskRoot.
243 // This is the bounds of the stack action above the stack rect
456 // Anchor the task rect top aligned to the stack rect
795 float screenY = tmpTransform.rect
[all...]
H A DTaskStackViewTouchHandler.java642 mTmpTransform.rect.set(Utilities.RECTF_EVALUATOR.evaluate(dismissFraction,
643 fromTransform.rect, toTransform.rect));
/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/
H A DDividerView.java777 private void alignTopLeft(Rect containingRect, Rect rect) { argument
778 int width = rect.width();
779 int height = rect.height();
780 rect.set(containingRect.left, containingRect.top,
784 private void alignBottomRight(Rect containingRect, Rect rect) { argument
785 int width = rect.width();
786 int height = rect.height();
787 rect.set(containingRect.right - width, containingRect.bottom - height,
/frameworks/base/core/java/android/widget/
H A DListView.java577 public boolean requestChildRectangleOnScreen(View child, Rect rect, boolean immediate) { argument
579 int rectTopWithinChild = rect.top;
581 // offset so rect is in coordinates of the this view
582 rect.offset(child.getLeft(), child.getTop());
583 rect.offset(-child.getScrollX(), -child.getScrollY());
591 // leave room for top fading edge as long as rect isn't at very top
601 // leave room for bottom fading edge as long as rect isn't at very bottom
603 || (rect.bottom < (bottomOfBottomChild - fadingEdge))) {
610 if (rect.bottom > listUnfadedBottom && rect
[all...]
H A DRemoteViews.java497 final Rect rect = getSourceBounds(v);
499 fillInIntent.setSourceBounds(rect);
568 final Rect rect = getSourceBounds(view);
571 intent.setSourceBounds(rect);
793 final Rect rect = getSourceBounds(v);
796 intent.setSourceBounds(rect);
819 final Rect rect = new Rect();
820 rect.left = (int) (pos[0] * appScale + 0.5f);
821 rect.top = (int) (pos[1] * appScale + 0.5f);
822 rect
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/
H A DLayerDrawable.java1708 final Rect rect = mTmpRect;
1709 r.mDrawable.getPadding(rect);
1710 if (rect.left != mPaddingL[i] || rect.top != mPaddingT[i]
1711 || rect.right != mPaddingR[i] || rect.bottom != mPaddingB[i]) {
1712 mPaddingL[i] = rect.left;
1713 mPaddingT[i] = rect.top;
1714 mPaddingR[i] = rect.right;
1715 mPaddingB[i] = rect
[all...]
/frameworks/base/libs/hwui/
H A DBakedOpDispatcher.cpp154 // dirty rect to the object's bounds.
249 || !clipState->rect.contains(shadowBounds)) {
251 shadowBounds.doIntersect(clipState->rect);
413 SkRect rect = getBoundsOfFill(op); local
416 path.moveTo(rect.centerX(), rect.centerY());
418 path.arcTo(rect, op.startAngle, op.sweepAngle, !op.useCenter);
554 .setModelViewMapUnitToRect(state.computedState.clipState->rect)
582 SkRect rect = getBoundsOfFill(op); local
583 path.addOval(rect);
[all...]
H A DDeferredDisplayList.cpp79 bool intersects(const Rect& rect) { argument
80 if (!rect.intersects(mBounds)) return false;
83 if (rect.intersects(mOps[i].state->mBounds)) {
196 // Identical round rect clip state means both ops will clip in the same way, or not at all.
282 * Contains the effective clip rect shared by all merged ops. Initialized to the layer viewport,
380 // the clip if we aren't recording a complex clip (and can thus trust it to be a rect)
H A DTessellationCache.cpp439 SkRect rect = SkRect::MakeWH(description.shape.roundRect.width, local
445 rect.outset(outset, outset);
450 path.addRoundRect(rect, rx, ry);
H A DPathCache.h151 } rect; member in union:android::uirenderer::PathDescription::Shape
/frameworks/base/core/java/android/gesture/
H A DGestureOverlayView.java530 Rect rect = touchMove(event);
531 if (rect != null) {
532 invalidate(rect);
/frameworks/base/core/java/android/view/
H A DFocusFinder.java122 // fill in interesting rect from focused
128 // make up a rect at top left or bottom right of root
275 * direction from a source rect? This is the core routine that determines
318 * exclusively in the beam of the source rect.
369 * Includes an edge case for an empty rect (which is used in some cases when
483 * @param source The source rect.
484 * @param dest The destination rect.
734 private void getRect(View view, Rect rect) { argument
735 view.getDrawingRect(rect);
736 mRoot.offsetDescendantRectToMyCoords(view, rect);
[all...]
H A DViewGroup.java5307 // in case the dirty rect extends outside the bounds of this container
5347 * do; all we want to do here is schedule a traversal with the appropriate dirty rect.
5391 * Quick invalidation method that simply transforms the dirty rect into the parent's
5422 * @param rect A rectangle defined in descendant's coordinate space.
5424 public final void offsetDescendantRectToMyCoords(View descendant, Rect rect) { argument
5425 offsetRectBetweenParentAndChild(descendant, rect, true, false);
5432 * @param rect A rectangle defined in descendant's coordinate space.
5434 public final void offsetRectIntoDescendantCoords(View descendant, Rect rect) { argument
5435 offsetRectBetweenParentAndChild(descendant, rect, false, false);
5439 * Helper method that offsets a rect eithe
5442 offsetRectBetweenParentAndChild(View descendant, Rect rect, boolean offsetFromChildToParent, boolean clipToBounds) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_graphics_drawable_VectorDrawable.cpp106 SkRect rect; local
107 GraphicsJNI::jrect_to_rect(env, jrect, &rect);
109 return tree->draw(canvas, colorFilter, rect, needsMirroring, canReuseCache);
/frameworks/base/graphics/java/android/graphics/
H A DMatrix.java524 /** Controlls how the src rect should align into the dst rect for
737 * back into it. This is accomplished by transforming the 4 corners of rect,
740 * @param rect The rectangle to transform.
743 public boolean mapRect(RectF rect) { argument
744 return mapRect(rect, rect);
/frameworks/base/core/java/android/app/assist/
H A DAssistStructure.java405 Rect rect = new Rect();
406 view.getBoundsOnScreen(rect);
407 mX = rect.left - view.getLeft();
408 mY = rect.top - view.getTop();
409 mWidth = rect.width();
410 mHeight = rect.height();
/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DLegacyResultMapper.java389 WeightedRectangle rect =
393 meteringRectList.add(rect.toMetering());
/frameworks/base/core/tests/coretests/src/android/util/
H A DListScenario.java572 * @param rect The rectangle, in the child's coordinates.
574 public void requestRectangleOnScreen(int childIndex, final Rect rect) { argument
579 child.requestRectangleOnScreen(rect);
/frameworks/av/media/libstagefright/
H A DACodec.cpp4744 OMX_CONFIG_RECTTYPE rect; local
4745 InitOMXParams(&rect);
4746 rect.nPortIndex = portIndex;
4753 &rect, sizeof(rect)) != OK) {
4754 rect.nLeft = 0;
4755 rect.nTop = 0;
4756 rect.nWidth = videoDef->nFrameWidth;
4757 rect.nHeight = videoDef->nFrameHeight;
4760 if (rect
[all...]
/frameworks/base/libs/hwui/tests/common/
H A DTestUtils.h59 EXPECT_EQ((expRect), reinterpret_cast<const ClipRect*>(clipStatePtr)->rect); \
61 ADD_FAILURE() << "ClipState not a rect"; \
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/
H A DRecentsImpl.java378 updateHeaderBarLayout(stack, null /* window rect override*/);
585 * be different from the current window rect if recents is resizing
643 * Given the stable insets and the rect for our window, calculates the insets that affect our
649 // Display rect without insets - available app space
718 mTmpTransform.rect.round(toTaskRect);
727 // Update the destination rect
734 RectF toTaskRect = toTransform.rect;
745 * Returns the transition rect for the given task id.
777 mHeaderBar.onTaskViewSizeChanged((int) toTransform.rect.width(),
778 (int) toTransform.rect
[all...]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
H A DFaceSquareFilter.java72 // For every face in faces, draw a white rect around the
73 // face following the rect member of the Face
84 Rect tempRect = faces[i].rect;

Completed in 660 milliseconds

12345678