/frameworks/native/opengl/tests/hwc/ |
D | hwcRects.cpp | 297 Rectangle rect = parseRect(rectDesc); in main() local 300 rectangle.push_back(rect); in main() 368 Rectangle rect; in parseRect() local 381 rect.format = format->format; in parseRect() 384 rect.displayFrame = hwcTestParseHwcRect(in, error); in parseRect() 393 rect.sourceDim = HwcTestDim(rect.displayFrame.right in parseRect() 394 - rect.displayFrame.left, in parseRect() 395 rect.displayFrame.bottom in parseRect() 396 - rect.displayFrame.top); in parseRect() 397 rect.sourceCrop.left = 0; in parseRect() [all …]
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
D | UiObject.java | 242 Rect rect = getVisibleBounds(); in swipeUp() local 243 if(rect.height() <= SWIPE_MARGIN_LIMIT * 2) in swipeUp() 245 return getInteractionController().swipe(rect.centerX(), in swipeUp() 246 rect.bottom - SWIPE_MARGIN_LIMIT, rect.centerX(), rect.top + SWIPE_MARGIN_LIMIT, in swipeUp() 270 Rect rect = getVisibleBounds(); in swipeDown() local 271 if(rect.height() <= SWIPE_MARGIN_LIMIT * 2) in swipeDown() 273 return getInteractionController().swipe(rect.centerX(), in swipeDown() 274 rect.top + SWIPE_MARGIN_LIMIT, rect.centerX(), in swipeDown() 275 rect.bottom - SWIPE_MARGIN_LIMIT, steps); in swipeDown() 298 Rect rect = getVisibleBounds(); in swipeLeft() local [all …]
|
D | UiScrollable.java | 421 Rect rect = new Rect(); in scrollForward() local 422 node.getBoundsInScreen(rect); in scrollForward() 432 int swipeAreaAdjust = (int)(rect.height() * getSwipeDeadZonePercentage()); in scrollForward() 434 downX = rect.centerX(); in scrollForward() 435 downY = rect.bottom - swipeAreaAdjust; in scrollForward() 436 upX = rect.centerX(); in scrollForward() 437 upY = rect.top + swipeAreaAdjust; in scrollForward() 439 int swipeAreaAdjust = (int)(rect.width() * getSwipeDeadZonePercentage()); in scrollForward() 442 downX = rect.right - swipeAreaAdjust; in scrollForward() 443 downY = rect.centerY(); in scrollForward() [all …]
|
/frameworks/minikin/tests/unittest/ |
D | LayoutTest.cpp | 54 MinikinRect rect; in TEST_F() local 67 layout.getBounds(&rect); in TEST_F() 68 EXPECT_EQ(0.0f, rect.mLeft); in TEST_F() 69 EXPECT_EQ(10.0f, rect.mTop); in TEST_F() 70 EXPECT_EQ(70.0f, rect.mRight); in TEST_F() 71 EXPECT_EQ(0.0f, rect.mBottom); in TEST_F() 85 layout.getBounds(&rect); in TEST_F() 86 EXPECT_EQ(0.0f, rect.mLeft); in TEST_F() 87 EXPECT_EQ(10.0f, rect.mTop); in TEST_F() 88 EXPECT_EQ(90.0f, rect.mRight); in TEST_F() [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | LargeBitmap.java | 52 public Bitmap decodeRegion(Rect rect, BitmapFactory.Options options) { in decodeRegion() argument 54 if (rect.left < 0 || rect.top < 0 || rect.right > getWidth() || rect.bottom > getHeight()) in decodeRegion() 56 return nativeDecodeRegion(mNativeLargeBitmap, rect.left, rect.top, in decodeRegion() 57 rect.right - rect.left, rect.bottom - rect.top, options); in decodeRegion()
|
D | Outline.java | 182 public void setRect(@NonNull Rect rect) { in setRect() argument 183 setRect(rect.left, rect.top, rect.right, rect.bottom); in setRect() 209 public void setRoundRect(@NonNull Rect rect, float radius) { in setRoundRect() argument 210 setRoundRect(rect.left, rect.top, rect.right, rect.bottom, radius); in setRoundRect() 271 public void setOval(@NonNull Rect rect) { in setOval() argument 272 setOval(rect.left, rect.top, rect.right, rect.bottom); in setOval()
|
D | YuvImage.java | 214 private void adjustRectangle(Rect rect) { in adjustRectangle() argument 215 int width = rect.width(); in adjustRectangle() 216 int height = rect.height(); in adjustRectangle() 221 rect.left &= ~1; in adjustRectangle() 222 rect.top &= ~1; in adjustRectangle() 223 rect.right = rect.left + width; in adjustRectangle() 224 rect.bottom = rect.top + height; in adjustRectangle() 230 rect.left &= ~1; in adjustRectangle() 231 rect.right = rect.left + width; in adjustRectangle()
|
D | BitmapRegionDecoder.java | 190 public Bitmap decodeRegion(Rect rect, BitmapFactory.Options options) { in decodeRegion() argument 194 if (rect.right <= 0 || rect.bottom <= 0 || rect.left >= getWidth() in decodeRegion() 195 || rect.top >= getHeight()) in decodeRegion() 197 return nativeDecodeRegion(mNativeBitmapRegionDecoder, rect.left, rect.top, in decodeRegion() 198 rect.right - rect.left, rect.bottom - rect.top, options, in decodeRegion()
|
/frameworks/native/services/surfaceflinger/ |
D | LayerProtoHelper.cpp | 59 void LayerProtoHelper::writeToProto(const Rect& rect, std::function<RectProto*()> getRectProto) { in writeToProto() argument 60 if (rect.left != 0 || rect.right != 0 || rect.top != 0 || rect.bottom != 0) { in writeToProto() 63 rectProto->set_left(rect.left); in writeToProto() 64 rectProto->set_top(rect.top); in writeToProto() 65 rectProto->set_bottom(rect.bottom); in writeToProto() 66 rectProto->set_right(rect.right); in writeToProto() 70 void LayerProtoHelper::writeToProto(const FloatRect& rect, in writeToProto() argument 72 if (rect.left != 0 || rect.right != 0 || rect.top != 0 || rect.bottom != 0) { in writeToProto() 75 rectProto->set_left(rect.left); in writeToProto() 76 rectProto->set_top(rect.top); in writeToProto() [all …]
|
/frameworks/native/libs/ui/ |
D | GraphicBuffer.cpp | 269 status_t GraphicBuffer::lock(uint32_t inUsage, const Rect& rect, void** vaddr, in lock() argument 271 if (rect.left < 0 || rect.right > width || in lock() 272 rect.top < 0 || rect.bottom > height) { in lock() 274 rect.left, rect.top, rect.right, rect.bottom, in lock() 279 status_t res = getBufferMapper().lock(handle, inUsage, rect, vaddr, outBytesPerPixel, in lock() 292 status_t GraphicBuffer::lockYCbCr(uint32_t inUsage, const Rect& rect, in lockYCbCr() argument 295 if (rect.left < 0 || rect.right > width || in lockYCbCr() 296 rect.top < 0 || rect.bottom > height) { in lockYCbCr() 298 rect.left, rect.top, rect.right, rect.bottom, in lockYCbCr() 302 status_t res = getBufferMapper().lockYCbCr(handle, inUsage, rect, ycbcr); in lockYCbCr() [all …]
|
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/views/ |
D | TaskViewTransform.java | 63 public RectF rect = new RectF(); field in TaskViewTransform 75 rect.set(tv.getLeft(), tv.getTop(), tv.getRight(), tv.getBottom()); in fillIn() 88 rect.set(other.rect); in copyFrom() 100 && rect.equals(other.rect); in isSame() 113 rect.setEmpty(); in reset() 130 return ((int) rect.left != v.getLeft()) || ((int) rect.right != v.getRight()) || in hasRectChangedFrom() 131 ((int) rect.top != v.getTop()) || ((int) rect.bottom != v.getBottom()); in hasRectChangedFrom() 156 v.setLeftTopRightBottom((int) rect.left, (int) rect.top, (int) rect.right, in applyToTaskView() 157 (int) rect.bottom); in applyToTaskView() 178 rect.round(toViewRect); in applyToTaskView() [all …]
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | NotificationExpandButton.java | 59 private void extendRectToMinTouchSize(Rect rect) { in extendRectToMinTouchSize() argument 61 rect.left = rect.centerX() - touchTargetSize / 2; in extendRectToMinTouchSize() 62 rect.right = rect.left + touchTargetSize; in extendRectToMinTouchSize() 63 rect.top = rect.centerY() - touchTargetSize / 2; in extendRectToMinTouchSize() 64 rect.bottom = rect.top + touchTargetSize; in extendRectToMinTouchSize()
|
/frameworks/native/services/surfaceflinger/tests/fakehwc/ |
D | FakeComposerUtils.h | 31 inline ::std::ostream& operator<<(::std::ostream& os, const hwc_rect_t& rect) { 32 return os << "(" << rect.left << "," 33 << rect.top << "," 34 << rect.right << "," 35 << rect.bottom << ")"; 38 inline ::std::ostream& operator<<(::std::ostream& os, const hwc_frect_t& rect) { 39 return os << "(" << rect.left << "," 40 << rect.top << "," 41 << rect.right << "," 42 << rect.bottom << ")";
|
/frameworks/base/core/jni/ |
D | android_view_TextureView.cpp | 145 Rect rect(Rect::EMPTY_RECT); in android_view_TextureView_lockCanvas() local 147 rect.left = GET_INT(dirtyRect, gRectClassInfo.left); in android_view_TextureView_lockCanvas() 148 rect.top = GET_INT(dirtyRect, gRectClassInfo.top); in android_view_TextureView_lockCanvas() 149 rect.right = GET_INT(dirtyRect, gRectClassInfo.right); in android_view_TextureView_lockCanvas() 150 rect.bottom = GET_INT(dirtyRect, gRectClassInfo.bottom); in android_view_TextureView_lockCanvas() 152 rect.set(Rect(0x3FFF, 0x3FFF)); in android_view_TextureView_lockCanvas() 156 int32_t status = native_window_lock(window.get(), &buffer, &rect); in android_view_TextureView_lockCanvas() 172 nativeCanvas->clipRect(rect.left, rect.top, rect.right, rect.bottom, in android_view_TextureView_lockCanvas() 177 int(rect.left), int(rect.top), int(rect.right), int(rect.bottom)); in android_view_TextureView_lockCanvas()
|
/frameworks/native/services/vr/hardware_composer/aidl/android/dvr/ |
D | parcelable_composer_layer.cpp | 94 for (auto& rect: layer_.visible_regions) { in writeToParcel() local 95 ret = parcel->writeInt32(rect.left); in writeToParcel() 96 ret = parcel->writeInt32(rect.top); in writeToParcel() 97 ret = parcel->writeInt32(rect.right); in writeToParcel() 98 ret = parcel->writeInt32(rect.bottom); in writeToParcel() 105 for (auto& rect: layer_.damaged_regions) { in writeToParcel() local 106 ret = parcel->writeInt32(rect.left); in writeToParcel() 107 ret = parcel->writeInt32(rect.top); in writeToParcel() 108 ret = parcel->writeInt32(rect.right); in writeToParcel() 109 ret = parcel->writeInt32(rect.bottom); in writeToParcel() [all …]
|
/frameworks/base/libs/hwui/ |
D | Rect.h | 60 inline Rect(const SkIRect& rect) // NOLINT(google-explicit-constructor) in Rect() argument 62 left(rect.fLeft) in Rect() 63 , top(rect.fTop) in Rect() 64 , right(rect.fRight) in Rect() 65 , bottom(rect.fBottom) {} in Rect() 67 inline Rect(const SkRect& rect) // NOLINT(google-explicit-constructor) in Rect() argument 69 left(rect.fLeft) in Rect() 70 , top(rect.fTop) in Rect() 71 , right(rect.fRight) in Rect() 72 , bottom(rect.fBottom) {} in Rect() [all …]
|
/frameworks/base/core/java/android/hardware/camera2/utils/ |
D | ParamsUtils.java | 64 public static Rect createRect(RectF rect) { in createRect() argument 65 checkNotNull(rect, "rect must not be null"); in createRect() 68 rect.roundOut(r); in createRect() 86 public static Rect mapRect(Matrix transform, Rect rect) { in mapRect() argument 88 checkNotNull(rect, "rect must not be null"); in mapRect() 90 RectF rectF = new RectF(rect); in mapRect() 105 public static Size createSize(Rect rect) { in createSize() argument 106 checkNotNull(rect, "rect must not be null"); in createSize() 108 return new Size(rect.width(), rect.height()); in createSize()
|
/frameworks/base/graphics/java/android/graphics/drawable/shapes/ |
D | OvalShape.java | 37 canvas.drawOval(rect(), paint); in draw() 42 final RectF rect = rect(); in getOutline() local 43 outline.setOval((int) Math.ceil(rect.left), (int) Math.ceil(rect.top), in getOutline() 44 (int) Math.floor(rect.right), (int) Math.floor(rect.bottom)); in getOutline()
|
D | RectShape.java | 45 final RectF rect = rect(); in getOutline() local 46 outline.setRect((int) Math.ceil(rect.left), (int) Math.ceil(rect.top), in getOutline() 47 (int) Math.floor(rect.right), (int) Math.floor(rect.bottom)); in getOutline() 58 protected final RectF rect() { in rect() method in RectShape
|
/frameworks/base/core/tests/coretests/src/android/widget/scroll/ |
D | RequestRectangleVisible.java | 43 final Rect rect = new Rect(); in onCreate() local 61 rect.set(0, 0, childToMakeVisible.getLeft(), childToMakeVisible.getHeight()); in onCreate() 62 childToMakeVisible.requestRectangleOnScreen(rect, true); in onCreate() 69 rect.set(0, 0, topBlob.getWidth(), topBlob.getHeight()); in onCreate() 70 topBlob.requestRectangleOnScreen(rect, true); in onCreate() 77 rect.set(0, 0, childToMakeVisible.getLeft(), childToMakeVisible.getHeight()); in onCreate() 78 childToMakeVisible.requestRectangleOnScreen(rect, true); in onCreate() 85 rect.set(0, 0, bottomBlob.getWidth(), bottomBlob.getHeight()); in onCreate() 86 bottomBlob.requestRectangleOnScreen(rect, true); in onCreate()
|
/frameworks/base/core/java/android/view/ |
D | AppTransitionAnimationSpec.java | 20 public final Rect rect; field in AppTransitionAnimationSpec 23 public AppTransitionAnimationSpec(int taskId, GraphicBuffer buffer, Rect rect) { in AppTransitionAnimationSpec() argument 25 this.rect = rect; in AppTransitionAnimationSpec() 31 rect = in.readParcelable(null); in AppTransitionAnimationSpec() 43 dest.writeParcelable(rect, 0 /* flags */); in writeToParcel() 60 return "{taskId: " + taskId + ", buffer: " + buffer + ", rect: " + rect + "}"; in toString()
|
/frameworks/native/services/surfaceflinger/CompositionEngine/src/ |
D | DumpHelpers.cpp | 66 void dumpVal(std::string& out, const char* name, const FloatRect& rect) { in dumpVal() argument 67 StringAppendF(&out, "%s=[%f %f %f %f] ", name, rect.left, rect.top, rect.right, rect.bottom); in dumpVal() 70 void dumpVal(std::string& out, const char* name, const Rect& rect) { in dumpVal() argument 71 StringAppendF(&out, "%s=[%d %d %d %d] ", name, rect.left, rect.top, rect.right, rect.bottom); in dumpVal()
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
D | ListItemRequestRectAboveThinFirstItemTest.java | 62 final Rect rect = new Rect(); in testSecondItemRequestRectAboveTop() local 63 second.getDrawingRect(rect); in testSecondItemRequestRectAboveTop() 64 rect.offset(0, -2 * second.getBottom()); in testSecondItemRequestRectAboveTop() 66 getActivity().requestRectangleOnScreen(1, rect); in testSecondItemRequestRectAboveTop() 87 final Rect rect = new Rect(); in testSecondToLastItemRequestRectBelowBottom() local 88 secondToLast.getDrawingRect(rect); in testSecondToLastItemRequestRectBelowBottom() 89 rect.offset(0, in testSecondToLastItemRequestRectBelowBottom() 93 getActivity().requestRectangleOnScreen(secondToLastIndex, rect); in testSecondToLastItemRequestRectBelowBottom()
|
/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/template/ |
D | RecyclerMixinTest.java | 104 Rect rect = new Rect(); in testDividerLegacyInset() local 105 insetDrawable.getPadding(rect); in testDividerLegacyInset() 107 assertEquals(new Rect(123, 0, 0, 0), rect); in testDividerLegacyInset() 120 Rect rect = new Rect(); in testDividerInsets() local 121 insetDrawable.getPadding(rect); in testDividerInsets() 123 assertEquals(new Rect(123, 0, 456, 0), rect); in testDividerInsets() 138 Rect rect = new Rect(); in testDividerInsetLegacyRtl() local 139 insetDrawable.getPadding(rect); in testDividerInsetLegacyRtl() 141 assertEquals(new Rect(0, 0, 123, 0), rect); in testDividerInsetLegacyRtl() 159 Rect rect = new Rect(); in testDividerInsetsRtl() local [all …]
|
/frameworks/base/libs/hwui/tests/unit/ |
D | VectorDrawableAtlasTests.cpp | 46 ASSERT_TRUE(VDRects[i].rect.width() == 10 && VDRects[i].rect.height() == 10); in RENDERTHREAD_SKIA_PIPELINE_TEST() 52 ASSERT_FALSE(VDRects[i].rect.intersect(VDRects[j].rect)); in RENDERTHREAD_SKIA_PIPELINE_TEST() 73 ASSERT_EQ(VDRects[i].rect, VDRect.rect); in RENDERTHREAD_SKIA_PIPELINE_TEST() 83 ASSERT_TRUE(VDRects[i].rect.width() == 10 && VDRects[i].rect.height() == 10); in RENDERTHREAD_SKIA_PIPELINE_TEST() 85 ASSERT_FALSE(VDRects[i].rect.intersect(VDRects[j].rect)); in RENDERTHREAD_SKIA_PIPELINE_TEST() 105 ASSERT_TRUE(VDRects[i].rect.width() == 10 && VDRects[i].rect.height() == 10); in RENDERTHREAD_SKIA_PIPELINE_TEST()
|