/frameworks/base/core/java/android/view/ |
H A D | AppTransitionAnimationSpec.java | 19 public final Rect rect; field in class:AppTransitionAnimationSpec 21 public AppTransitionAnimationSpec(int taskId, GraphicBuffer buffer, Rect rect) { argument 23 this.rect = rect; 29 rect = in.readParcelable(null); 41 dest.writeParcelable(rect, 0 /* flags */); 58 return "{taskId: " + taskId + ", buffer: " + buffer + ", rect: " + rect + "}";
|
/frameworks/base/graphics/java/android/graphics/drawable/shapes/ |
H A D | RectShape.java | 43 final RectF rect = rect(); 44 outline.setRect((int) Math.ceil(rect.left), (int) Math.ceil(rect.top), 45 (int) Math.floor(rect.right), (int) Math.floor(rect.bottom)); 56 protected final RectF rect() { method in class:RectShape
|
/frameworks/base/libs/hwui/pipeline/skia/ |
H A D | SkiaProfileRenderer.cpp | 24 SkRect rect = SkRect::MakeLTRB(left, top, right, bottom); local 25 mCanvas->drawRect(rect, paint); 30 SkRect rect = SkRect::MakeLTRB(rects[index + 0], rects[index + 1], rects[index + 2], local 32 mCanvas->drawRect(rect, paint);
|
H A D | AnimatedDrawables.h | 47 SkRect rect = SkRect::MakeLTRB(mLeft->value, mTop->value, mRight->value, mBottom->value); variable 48 canvas->drawRoundRect(rect, mRx->value, mRy->value, mPaint->value);
|
/frameworks/native/services/vr/hardware_composer/aidl/android/dvr/ |
H A D | parcelable_composer_layer.cpp | 94 for (auto& rect: layer_.visible_regions) { 95 ret = parcel->writeInt32(rect.left); 96 ret = parcel->writeInt32(rect.top); 97 ret = parcel->writeInt32(rect.right); 98 ret = parcel->writeInt32(rect.bottom); 105 for (auto& rect: layer_.damaged_regions) { 106 ret = parcel->writeInt32(rect.left); 107 ret = parcel->writeInt32(rect.top); 108 ret = parcel->writeInt32(rect.right); 109 ret = parcel->writeInt32(rect 200 hwc_rect_t rect; local 220 hwc_rect_t rect; local [all...] |
/frameworks/opt/bitmap/src/com/android/bitmap/util/ |
H A D | RectUtils.java | 47 // 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/base/core/java/com/android/internal/widget/ |
H A D | NotificationExpandButton.java | 60 private void extendRectToMinTouchSize(Rect rect) { argument 62 rect.left = rect.centerX() - touchTargetSize / 2; 63 rect.right = rect.left + touchTargetSize; 64 rect.top = rect.centerY() - touchTargetSize / 2; 65 rect.bottom = rect.top + touchTargetSize;
|
/frameworks/native/libs/gui/tests/ |
H A D | FillBuffer.cpp | 55 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/support/design/src/android/support/design/widget/ |
H A D | ViewGroupUtils.java | 34 * will be the bounding rect of the real transformed rect. 36 * @param descendant view defining the original coordinate system of rect 37 * @param rect (in/out) the rect to offset from descendant to this view's coordinate system 39 static void offsetDescendantRect(ViewGroup parent, View descendant, Rect rect) { argument 55 rectF.set(rect); 57 rect.set((int) (rectF.left + 0.5f), (int) (rectF.top + 0.5f), 62 * Retrieve the transformed bounding rect of an arbitrary descendant view. 66 * @param out rect t [all...] |
/frameworks/av/media/libeffects/loudness/dsp/core/ |
H A D | dynamic_range_compression.cpp | 83 const float rect = std::max(overshoot, 0.0f); local 85 const float cv = rect * slope_; 112 const float rect = std::max(overshoot, 0.0f); local 114 const float cv = rect * slope_;
|
/frameworks/base/core/java/android/hardware/camera2/utils/ |
H A D | ParamsUtils.java | 58 * @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 D | LargeBitmap.java | 44 * 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 D | BitmapRegionDecoder.java | 174 * Decodes a rectangle region in the image specified by rect. 176 * @param rect The rectangle that specified the region to be decode. 187 public Bitmap decodeRegion(Rect rect, BitmapFactory.Options options) { argument 191 if (rect.right <= 0 || rect.bottom <= 0 || rect.left >= getWidth() 192 || rect.top >= getHeight()) 194 return nativeDecodeRegion(mNativeBitmapRegionDecoder, rect.left, rect.top, 195 rect [all...] |
H A D | Outline.java | 120 * or round rect support clipping. 170 * Sets the Outline to the rounded rect defined by the input rect, and 180 public void setRect(@NonNull Rect rect) { argument 181 setRect(rect.left, rect.top, rect.right, rect.bottom); 185 * Sets the Outline to the rounded rect defined by the input rect, an 207 setRoundRect(@onNull Rect rect, float radius) argument 269 setOval(@onNull Rect rect) argument [all...] |
H A D | YuvImage.java | 214 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/minikin/tests/unittest/ |
H A D | LayoutTest.cpp | 68 MinikinRect rect; local 83 layout.getBounds(&rect); 84 EXPECT_EQ(0.0f, rect.mLeft); 85 EXPECT_EQ(0.0f, rect.mTop); 86 EXPECT_EQ(70.0f, rect.mRight); 87 EXPECT_EQ(10.0f, rect.mBottom); 102 layout.getBounds(&rect); 103 EXPECT_EQ(0.0f, rect.mLeft); 104 EXPECT_EQ(0.0f, rect.mTop); 105 EXPECT_EQ(90.0f, rect 157 MinikinRect rect; local 256 MinikinRect rect; local [all...] |
/frameworks/base/core/java/android/hardware/camera2/params/ |
H A D | MeteringRectangle.java | 128 * @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/libs/hwui/ |
H A D | CanvasState.h | 136 const Rect& rect, float radius, bool highPriority = true) { 137 mSnapshot->setClippingRoundRect(allocator, rect, radius, highPriority); 135 setClippingRoundRect(LinearAllocator& allocator, const Rect& rect, float radius, bool highPriority = true) argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | TaskViewTransform.java | 62 // 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/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | ExpandableOutlineView.java | 87 protected void setOutlineRect(RectF rect) { argument 88 if (rect != null) { 89 setOutlineRect(rect.left, rect.top, rect.right, rect.bottom);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/ |
H A D | WindowFrameTests.java | 108 public void assertRect(Rect rect, int left, int top, int right, int bottom) { argument 109 assertEquals(left, rect.left); 110 assertEquals(top, rect.top); 111 assertEquals(right, rect.right); 112 assertEquals(bottom, rect.bottom);
|
/frameworks/native/libs/ui/ |
H A D | GraphicBufferMapper.cpp | 73 static inline Gralloc2::IMapper::Rect asGralloc2Rect(const Rect& rect) { argument 75 outRect.left = rect.left; 76 outRect.top = rect.top; 77 outRect.width = rect.width(); 78 outRect.height = rect.height();
|
/frameworks/native/services/surfaceflinger/tests/hwc2/ |
H A D | Hwc2TestLayers.cpp | 275 const auto rect = aboveOpaqueLayers.begin(); local 276 if (rect->left != 0 || rect->top != 0 || rect->right != mDisplayArea.width 277 || rect->bottom != mDisplayArea.height)
|
/frameworks/support/design/lollipop/android/support/design/widget/ |
H A D | FloatingActionButtonLollipop.java | 200 void getPadding(Rect rect) { argument 208 rect.set(hPadding, vPadding, hPadding, vPadding); 210 rect.set(0, 0, 0, 0);
|
/frameworks/support/design/tests/src/android/support/design/widget/ |
H A D | CoordinatorLayoutTest.java | 439 public boolean getInsetDodgeRect(CoordinatorLayout parent, View child, Rect rect) { 440 // Any non-empty rect is fine here. 441 rect.set(0, 0, 10, 10); 737 public boolean getInsetDodgeRect(CoordinatorLayout parent, View child, Rect rect) { argument 738 rect.set(child.getLeft(), child.getTop(), child.getRight(), child.getBottom());
|