Searched defs:rect (Results 1 - 25 of 99) sorted by relevance

1234

/frameworks/base/core/java/android/view/
H A DAppTransitionAnimationSpec.java19 public final Rect rect; field in class:AppTransitionAnimationSpec
21 public AppTransitionAnimationSpec(int taskId, Bitmap bitmap, Rect rect) { argument
24 this.rect = rect;
30 rect = in.readParcelable(null);
42 dest.writeParcelable(rect, 0 /* flags */);
59 return "{taskId: " + taskId + ", bitmap: " + bitmap + ", rect: " + rect + "}";
/frameworks/base/core/java/com/android/internal/widget/
H A DNotificationExpandButton.java55 private void extendRectToMinTouchSize(Rect rect) { argument
57 rect.left = rect.centerX() - touchTargetSize / 2;
58 rect.right = rect.left + touchTargetSize;
59 rect.top = rect.centerY() - touchTargetSize / 2;
60 rect.bottom = rect.top + touchTargetSize;
/frameworks/base/graphics/java/android/graphics/drawable/shapes/
H A DRectShape.java42 final RectF rect = rect();
43 outline.setRect((int) Math.ceil(rect.left), (int) Math.ceil(rect.top),
44 (int) Math.floor(rect.right), (int) Math.floor(rect.bottom));
55 protected final RectF rect() { method in class:RectShape
/frameworks/opt/bitmap/src/com/android/bitmap/util/
H A DRectUtils.java47 // Then translate so that the upper left corner of the rotated full rect is at (0,0).
59 public static void rotateRect(final int degrees, final int px, final int py, final Rect rect) { argument
60 final RectF rectF = new RectF(rect);
64 rect.set((int) rectF.left, (int) rectF.top, (int) rectF.right, (int) rectF.bottom);
/frameworks/support/design/honeycomb/android/support/design/widget/
H A DViewGroupUtilsHoneycomb.java31 public static void offsetDescendantRect(ViewGroup group, View child, Rect rect) { argument
46 rectF.set(rect);
48 rect.set((int) (rectF.left + 0.5f), (int) (rectF.top + 0.5f),
/frameworks/support/design/src/android/support/design/widget/
H A DViewGroupUtils.java27 void offsetDescendantRect(ViewGroup parent, View child, Rect rect); argument
32 public void offsetDescendantRect(ViewGroup parent, View child, Rect rect) { argument
33 parent.offsetDescendantRectToMyCoords(child, rect);
35 // We need to reverse it here so that we get the rect of the view itself rather
37 rect.offset(child.getScrollX(), child.getScrollY());
43 public void offsetDescendantRect(ViewGroup parent, View child, Rect rect) { argument
44 ViewGroupUtilsHoneycomb.offsetDescendantRect(parent, child, rect);
63 * will be the bounding rect of the real transformed rect.
65 * @param descendant view defining the original coordinate system of rect
68 offsetDescendantRect(ViewGroup parent, View descendant, Rect rect) argument
[all...]
/frameworks/native/libs/gui/tests/
H A DFillBuffer.cpp55 const android_native_rect_t& rect) {
64 bool inside = rect.left <= x && x < rect.right &&
65 rect.top <= y && y < rect.bottom;
68 bool inside = rect.left <= 2*x && 2*x < rect.right &&
69 rect.top <= 2*y && 2*y < rect.bottom;
54 fillYV12BufferRect(uint8_t* buf, int w, int h, int stride, const android_native_rect_t& rect) argument
/frameworks/av/media/libeffects/loudness/dsp/core/
H A Ddynamic_range_compression.cpp84 const float rect = std::max(overshoot, 0.0f); local
86 const float cv = rect * slope_;
113 const float rect = std::max(overshoot, 0.0f); local
115 const float cv = rect * slope_;
/frameworks/base/core/java/android/hardware/camera2/utils/
H A DParamsUtils.java58 * @param size a non-{@code null} rect
62 * @throws NullPointerException if {@code rect} was {@code null}
64 public static Rect createRect(RectF rect) { argument
65 checkNotNull(rect, "rect must not be null");
68 rect.roundOut(r);
74 * Map the rectangle in {@code rect} with the transform in {@code transform} into
81 * @param rect a non-{@code null} rectangle
86 public static Rect mapRect(Matrix transform, Rect rect) { argument
88 checkNotNull(rect, "rec
105 createSize(Rect rect) argument
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DLargeBitmap.java44 * Decodes a rectangle region in the image specified by rect.
46 * @param rect The rectangle that specified the region to be decode.
52 public Bitmap decodeRegion(Rect rect, BitmapFactory.Options options) { argument
54 if (rect.left < 0 || rect.top < 0 || rect.right > getWidth() || rect.bottom > getHeight())
56 return nativeDecodeRegion(mNativeLargeBitmap, rect.left, rect.top,
57 rect
[all...]
H A DBitmapRegionDecoder.java174 * Decodes a rectangle region in the image specified by rect.
176 * @param rect The rectangle that specified the region to be decode.
182 public Bitmap decodeRegion(Rect rect, BitmapFactory.Options options) { argument
185 if (rect.right <= 0 || rect.bottom <= 0 || rect.left >= getWidth()
186 || rect.top >= getHeight())
188 return nativeDecodeRegion(mNativeBitmapRegionDecoder, rect.left, rect.top,
189 rect
[all...]
H A DOutline.java113 * or round rect support clipping.
158 * Sets the Outline to the rounded rect defined by the input rect, and
168 public void setRect(@NonNull Rect rect) { argument
169 setRect(rect.left, rect.top, rect.right, rect.bottom);
173 * Sets the Outline to the rounded rect defined by the input rect, an
192 setRoundRect(@onNull Rect rect, float radius) argument
249 setOval(@onNull Rect rect) argument
[all...]
H A DYuvImage.java214 private void adjustRectangle(Rect rect) { argument
215 int width = rect.width();
216 int height = rect.height();
221 rect.left &= ~1;
222 rect.top &= ~1;
223 rect.right = rect.left + width;
224 rect.bottom = rect.top + height;
230 rect
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DExpandableOutlineView.java81 protected void setOutlineRect(RectF rect) { argument
82 if (rect != null) {
83 setOutlineRect(rect.left, rect.top, rect.right, rect.bottom);
/frameworks/base/tools/layoutlib/bridge/src/android/view/
H A DRectShadowPainter.java49 throw new IllegalArgumentException("Outline is not a rect shadow");
123 // called. So, setting a clip rect at 0,0 will clip the top left part of the shadow.
166 * Differs from {@link RectF#isEmpty()} as this first converts the rect to int and then checks.
172 private static boolean isRectEmpty(RectF rect) { argument
173 return (int) rect.left >= (int) rect.right || (int) rect.top >= (int) rect.bottom;
/frameworks/av/media/libstagefright/yuv/
H A DYUVCanvas.cpp42 void YUVCanvas::FillYUVRectangle(const Rect& rect, argument
44 for (int32_t y = rect.top; y < rect.bottom; ++y) {
45 for (int32_t x = rect.left; x < rect.right; ++x) {
/frameworks/base/core/java/android/hardware/camera2/params/
H A DMeteringRectangle.java128 * @param rect a non-{@code null} rectangle with all x,y,w,h dimensions >= 0
134 public MeteringRectangle(Rect rect, int meteringWeight) { argument
135 checkNotNull(rect, "rect must not be null");
137 mX = checkArgumentNonnegative(rect.left, "rect.left must be nonnegative");
138 mY = checkArgumentNonnegative(rect.top, "rect.top must be nonnegative");
139 mWidth = checkArgumentNonnegative(rect.width(), "rect
[all...]
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/
H A DTestSelectionEnvironment.java33 public void showBand(Rect rect) { argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DTaskViewTransform.java62 // This is a window-space rect used for positioning the task in the stack and freeform workspace
63 public RectF rect = new RectF(); field in class:TaskViewTransform
75 rect.set(tv.getLeft(), tv.getTop(), tv.getRight(), tv.getBottom());
88 rect.set(other.rect);
100 && rect.equals(other.rect);
113 rect.setEmpty();
130 return ((int) rect.left != v.getLeft()) || ((int) rect
[all...]
/frameworks/support/design/lollipop/android/support/design/widget/
H A DFloatingActionButtonLollipop.java159 void getPadding(Rect rect) { argument
167 rect.set(hPadding, vPadding, hPadding, vPadding);
169 rect.set(0, 0, 0, 0);
/frameworks/av/media/ndk/
H A DNdkImage.cpp549 media_status_t AImage_getCropRect(const AImage* image, /*out*/AImageCropRect* rect) { argument
551 if (image == nullptr || rect == nullptr) {
552 ALOGE("%s: bad argument. image %p rect %p",
553 __FUNCTION__, image, rect);
567 rect->left = 0;
568 rect->top = 0;
569 rect->right = width;
570 rect->bottom = height;
/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());
256 bounds.doIntersect(clip->rect);
282 SkRegion::Cliperator it(region, clip->rect.toSkIRect());
284 const SkIRect& r = it.rect();
[all...]
H A DClipArea.h102 ClipBase(const Rect& rect) argument
104 , rect(rect) {}
109 Rect rect; member in struct:android::uirenderer::ClipBase
115 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

Completed in 590 milliseconds

1234