/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 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/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/native/libs/ui/ |
H A D | GraphicBuffer.cpp | 234 status_t GraphicBuffer::lock(uint32_t inUsage, const Rect& rect, void** vaddr) argument 236 if (rect.left < 0 || rect.right > width || 237 rect.top < 0 || rect.bottom > height) { 239 rect.left, rect.top, rect.right, rect.bottom, 243 status_t res = getBufferMapper().lock(handle, inUsage, rect, vadd 254 lockYCbCr(uint32_t inUsage, const Rect& rect, android_ycbcr* ycbcr) argument 281 lockAsync(uint32_t inUsage, const Rect& rect, void** vaddr, int fenceFd) argument 287 lockAsync(uint64_t inProducerUsage, uint64_t inConsumerUsage, const Rect& rect, void** vaddr, int fenceFd) argument 310 lockAsyncYCbCr(uint32_t inUsage, const Rect& rect, android_ycbcr* ycbcr, int fenceFd) argument [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/scroll/ |
H A D | RequestRectangleVisibleWithInternalScroll.java | 65 // the rect we want to make visible is offset to match 67 Rect rect = new Rect(); 68 rect.set(0, 0, 0, mTextBlob.getHeight()); 69 rect.offset(0, mTextBlob.getScrollY()); 70 mTextBlob.requestRectangleOnScreen(rect);
|
/frameworks/base/graphics/java/android/graphics/drawable/shapes/ |
H A D | RoundRectShape.java | 45 * Specifies an outer (round)rect and an optional inner (round)rect. 52 * rect to each side of the outer rect. For no inner, pass 100 final RectF rect = rect(); 101 outline.setRoundRect((int) Math.ceil(rect.left), (int) Math.ceil(rect.top), 102 (int) Math.floor(rect.right), (int) Math.floor(rect [all...] |
/frameworks/minikin/tests/unittest/ |
H A D | LayoutTest.cpp | 82 MinikinRect rect; local 98 layout.getBounds(&rect); 99 EXPECT_EQ(0.0f, rect.mLeft); 100 EXPECT_EQ(10.0f, rect.mTop); 101 EXPECT_EQ(70.0f, rect.mRight); 102 EXPECT_EQ(0.0f, rect.mBottom); 118 layout.getBounds(&rect); 119 EXPECT_EQ(0.0f, rect.mLeft); 120 EXPECT_EQ(10.0f, rect.mTop); 121 EXPECT_EQ(90.0f, rect 176 MinikinRect rect; local 280 MinikinRect rect; local [all...] |
/frameworks/base/libs/hwui/ |
H A D | Rect.h | 60 inline Rect(const SkIRect& rect) argument 62 left(rect.fLeft) 63 , top(rect.fTop) 64 , right(rect.fRight) 65 , bottom(rect.fBottom) {} 67 inline Rect(const SkRect& rect) argument 69 left(rect.fLeft) 70 , top(rect.fTop) 71 , right(rect.fRight) 72 , bottom(rect 250 operator <<(std::ostream& os, const Rect& rect) argument [all...] |
H A D | SkiaCanvasProxy.cpp | 86 void SkiaCanvasProxy::onDrawOval(const SkRect& rect, const SkPaint& paint) { argument 87 mCanvas->drawOval(rect.fLeft, rect.fTop, rect.fRight, rect.fBottom, paint); 90 void SkiaCanvasProxy::onDrawRect(const SkRect& rect, const SkPaint& paint) { argument 91 mCanvas->drawRect(rect.fLeft, rect.fTop, rect.fRight, rect 96 const SkRect& rect = roundRect.rect(); local 107 onDrawArc(const SkRect& rect, SkScalar startAngle, SkScalar sweepAngle, bool useCenter, const SkPaint& paint) argument 212 SkRect rect; local 471 onClipRect(const SkRect& rect, SkClipOp op, ClipEdgeStyle) argument [all...] |
H A D | FrameInfoVisualizer.cpp | 148 float* rect; local 152 rect = mFastRects.get(); 157 rect = mJankyRects.get(); 164 rect[ri + 0] = right - lineWidth; 165 rect[ri + 1] = baseline; 166 rect[ri + 2] = right; 167 rect[ri + 3] = baseline; 181 float* rect; local 185 rect = mFastRects.get(); 189 rect [all...] |
H A D | OpDumper.cpp | 38 (!op.localClip->rect.contains(localBounds) || op.localClip->intersectWithRoot)) { 39 output << std::fixed << std::setprecision(0) << " clip=" << op.localClip->rect
|
/frameworks/base/core/jni/ |
H A D | android_view_TextureView.cpp | 146 Rect rect(Rect::EMPTY_RECT); 148 rect.left = GET_INT(dirtyRect, gRectClassInfo.left); 149 rect.top = GET_INT(dirtyRect, gRectClassInfo.top); 150 rect.right = GET_INT(dirtyRect, gRectClassInfo.right); 151 rect.bottom = GET_INT(dirtyRect, gRectClassInfo.bottom); 153 rect.set(Rect(0x3FFF, 0x3FFF)); 157 int32_t status = native_window_lock(window.get(), &buffer, &rect); 173 nativeCanvas->clipRect(rect.left, rect.top, rect [all...] |
/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
|
H A D | FillBuffer.h | 30 const android_native_rect_t& rect);
|
/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/native/headers/media_plugin/media/editor/ |
H A D | II420ColorConverter.h | 22 #include <android/rect.h>
|
/frameworks/native/include/media/editor/ |
H A D | II420ColorConverter.h | 22 #include <android/rect.h>
|
/frameworks/base/libs/hwui/tests/unit/ |
H A D | VectorDrawableAtlasTests.cpp | 46 ASSERT_TRUE(VDRects[i].rect.width() == 10 && VDRects[i].rect.height() == 10); 52 ASSERT_FALSE(VDRects[i].rect.intersect(VDRects[j].rect)); 64 // first rect is using atlas and last is a standalone surface 73 ASSERT_EQ(VDRects[i].rect, VDRect.rect); 83 ASSERT_TRUE(VDRects[i].rect.width() == 10 && VDRects[i].rect.height() == 10); 85 ASSERT_FALSE(VDRects[i].rect [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/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/template/ |
H A D | RecyclerMixinTest.java | 107 Rect rect = new Rect(); 108 insetDrawable.getPadding(rect); 110 assertEquals(new Rect(123, 0, 0, 0), rect); 123 Rect rect = new Rect(); 124 insetDrawable.getPadding(rect); 126 assertEquals(new Rect(123, 0, 456, 0), rect); 141 Rect rect = new Rect(); 142 insetDrawable.getPadding(rect); 144 assertEquals(new Rect(0, 0, 123, 0), rect); 162 Rect rect [all...] |
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/template/ |
H A D | ListMixinTest.java | 112 Rect rect = new Rect(); 113 insetDrawable.getPadding(rect); 115 assertEquals(new Rect(123, 0, 0, 0), rect); 128 Rect rect = new Rect(); 129 insetDrawable.getPadding(rect); 131 assertEquals(new Rect(123, 0, 456, 0), rect); 146 Rect rect = new Rect(); 147 insetDrawable.getPadding(rect); 149 assertEquals(new Rect(0, 0, 123, 0), rect); 167 Rect rect [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | GraphicBuffer.cpp | 175 Rect rect(Rect::EMPTY_RECT); 177 rect.left = GET_INT(dirtyRect, gRectClassInfo.left); 178 rect.top = GET_INT(dirtyRect, gRectClassInfo.top); 179 rect.right = GET_INT(dirtyRect, gRectClassInfo.right); 180 rect.bottom = GET_INT(dirtyRect, gRectClassInfo.bottom); 182 rect.set(Rect(buffer->getWidth(), buffer->getHeight())); 186 status_t status = buffer->lock(LOCK_CANVAS_USAGE, rect, &bits); 211 nativeCanvas->clipRect(rect.left, rect.top, rect [all...] |
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
H A D | ParameterUtils.java | 126 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 D | Canvas.java | 787 * @param rect The rect to intersect with the current clip 801 public boolean clipRect(@NonNull RectF rect, @NonNull Region.Op op) { argument 803 return nClipRect(mNativeCanvasWrapper, rect.left, rect.top, rect.right, rect.bottom, 811 * @param rect The rectangle to intersect with the current clip. 825 public boolean clipRect(@NonNull Rect rect, @NonNull Region.Op op) { argument 827 return nClipRect(mNativeCanvasWrapper, rect 837 clipRectUnion(@onNull Rect rect) argument 849 clipRect(@onNull RectF rect) argument 861 clipOutRect(@onNull RectF rect) argument 873 clipRect(@onNull Rect rect) argument 885 clipOutRect(@onNull Rect rect) argument 1127 quickReject(@onNull RectF rect, @NonNull EdgeType type) argument 1803 drawRect(@onNull RectF rect, @NonNull Paint paint) argument 1853 drawRoundRect(@onNull RectF rect, float rx, float ry, @NonNull Paint paint) argument [all...] |
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | Letterbox.java | 28 * outer rect and an inner rect. 84 * Returns true if any part of the letterbox overlaps with the given {@code rect}. 86 public boolean isOverlappingWith(Rect rect) { argument 87 return mTop.isOverlappingWith(rect) || mLeft.isOverlappingWith(rect) 88 || mBottom.isOverlappingWith(rect) || mRight.isOverlappingWith(rect); 171 public boolean isOverlappingWith(Rect rect) { argument 175 return Rect.intersects(rect, mLayoutFram [all...] |
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/ |
H A D | RecyclerViewParallax.java | 170 Rect rect = new Rect( 172 recyclerView.offsetDescendantRectToMyCoords(trackingView, rect); 187 rect.offset((int) tx, (int) ty); 189 source.setIntPropertyValue(getIndex(), rect.top + mOffset 190 + (int) (mFraction * rect.height())); 192 source.setIntPropertyValue(getIndex(), rect.left + mOffset 193 + (int) (mFraction * rect.width()));
|