/frameworks/native/opengl/tests/hwc/ |
D | hwcRects.cpp | 298 Rectangle rect = parseRect(rectDesc); in main() local 301 rectangle.push_back(rect); in main() 369 Rectangle rect; in parseRect() local 383 rect.format = format->format; in parseRect() 386 rect.displayFrame = hwcTestParseHwcRect(in, error); in parseRect() 395 rect.sourceDim = HwcTestDim(rect.displayFrame.right in parseRect() 396 - rect.displayFrame.left, in parseRect() 397 rect.displayFrame.bottom in parseRect() 398 - rect.displayFrame.top); in parseRect() 399 rect.sourceCrop.left = 0; in parseRect() [all …]
|
D | hwcTestLib.cpp | 186 hwc_rect rect; in operator hwc_rect() local 188 rect.left = rect.top = 0; in operator hwc_rect() 190 rect.right = this->_w; in operator hwc_rect() 191 rect.bottom = this->_h; in operator hwc_rect() 193 return rect; in operator hwc_rect() 197 string hwcTestRect2str(const struct hwc_rect& rect) in hwcTestRect2str() argument 202 out << rect.left << ", "; in hwcTestRect2str() 203 out << rect.top << ", "; in hwcTestRect2str() 204 out << rect.right << ", "; in hwcTestRect2str() 205 out << rect.bottom; in hwcTestRect2str() [all …]
|
D | hwcCommit.cpp | 452 Rectangle rect(format->format, startDim); in main() local 454 rectList.push_back(rect); in main() 651 Rectangle rect(format, startDim, startDim); in maxOverlays() local 652 rect.displayFrame.left = x; in maxOverlays() 653 rect.displayFrame.top = y; in maxOverlays() 654 rect.displayFrame.right = x + startDim.width(); in maxOverlays() 655 rect.displayFrame.bottom = y + startDim.height(); in maxOverlays() 657 rectList.push_back(rect); in maxOverlays() 677 Rectangle rect(format, startDim); in supportedTransforms() local 683 rect.transform = id; in supportedTransforms() [all …]
|
/frameworks/testing/uiautomator/library/core-src/com/android/uiautomator/core/ |
D | UiObject.java | 239 Rect rect = getVisibleBounds(); in swipeUp() local 240 if(rect.height() <= SWIPE_MARGIN_LIMIT * 2) in swipeUp() 242 return getInteractionController().swipe(rect.centerX(), in swipeUp() 243 rect.bottom - SWIPE_MARGIN_LIMIT, rect.centerX(), rect.top + SWIPE_MARGIN_LIMIT, in swipeUp() 267 Rect rect = getVisibleBounds(); in swipeDown() local 268 if(rect.height() <= SWIPE_MARGIN_LIMIT * 2) in swipeDown() 270 return getInteractionController().swipe(rect.centerX(), in swipeDown() 271 rect.top + SWIPE_MARGIN_LIMIT, rect.centerX(), in swipeDown() 272 rect.bottom - SWIPE_MARGIN_LIMIT, steps); in swipeDown() 295 Rect rect = getVisibleBounds(); in swipeLeft() local [all …]
|
D | UiScrollable.java | 418 Rect rect = new Rect(); in scrollForward() local 419 node.getBoundsInScreen(rect); in scrollForward() 429 int swipeAreaAdjust = (int)(rect.height() * getSwipeDeadZonePercentage()); in scrollForward() 431 downX = rect.centerX(); in scrollForward() 432 downY = rect.bottom - swipeAreaAdjust; in scrollForward() 433 upX = rect.centerX(); in scrollForward() 434 upY = rect.top + swipeAreaAdjust; in scrollForward() 436 int swipeAreaAdjust = (int)(rect.width() * getSwipeDeadZonePercentage()); in scrollForward() 439 downX = rect.right - swipeAreaAdjust; in scrollForward() 440 downY = rect.centerY(); in scrollForward() [all …]
|
/frameworks/native/libs/ui/ |
D | GraphicBuffer.cpp | 172 status_t GraphicBuffer::lock(uint32_t usage, const Rect& rect, void** vaddr) in lock() argument 174 if (rect.left < 0 || rect.right > this->width || in lock() 175 rect.top < 0 || rect.bottom > this->height) { in lock() 177 rect.left, rect.top, rect.right, rect.bottom, in lock() 181 status_t res = getBufferMapper().lock(handle, usage, rect, vaddr); in lock() 192 status_t GraphicBuffer::lockYCbCr(uint32_t usage, const Rect& rect, in lockYCbCr() argument 195 if (rect.left < 0 || rect.right > this->width || in lockYCbCr() 196 rect.top < 0 || rect.bottom > this->height) { in lockYCbCr() 198 rect.left, rect.top, rect.right, rect.bottom, in lockYCbCr() 202 status_t res = getBufferMapper().lockYCbCr(handle, usage, rect, ycbcr); in lockYCbCr() [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 | 149 public void setRect(@NonNull Rect rect) { in setRect() argument 150 setRect(rect.left, rect.top, rect.right, rect.bottom); in setRect() 173 public void setRoundRect(@NonNull Rect rect, float radius) { in setRoundRect() argument 174 setRoundRect(rect.left, rect.top, rect.right, rect.bottom, radius); in setRoundRect() 201 public void setOval(@NonNull Rect rect) { in setOval() argument 202 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 | 182 public Bitmap decodeRegion(Rect rect, BitmapFactory.Options options) { in decodeRegion() argument 185 if (rect.right <= 0 || rect.bottom <= 0 || rect.left >= getWidth() in decodeRegion() 186 || rect.top >= getHeight()) in decodeRegion() 188 return nativeDecodeRegion(mNativeBitmapRegionDecoder, rect.left, rect.top, in decodeRegion() 189 rect.right - rect.left, rect.bottom - rect.top, options); in decodeRegion()
|
D | Path.java | 280 public boolean isRect(RectF rect) { in isRect() argument 281 return native_isRect(mNativePath, rect); in isRect() 517 public void addRect(RectF rect, Direction dir) { in addRect() argument 518 addRect(rect.left, rect.top, rect.right, rect.bottom, dir); in addRect() 599 public void addRoundRect(RectF rect, float rx, float ry, Direction dir) { in addRoundRect() argument 600 addRoundRect(rect.left, rect.top, rect.right, rect.bottom, rx, ry, dir); in addRoundRect() 625 public void addRoundRect(RectF rect, float[] radii, Direction dir) { in addRoundRect() argument 626 if (rect == null) { in addRoundRect() 629 addRoundRect(rect.left, rect.top, rect.right, rect.bottom, radii, dir); in addRoundRect() 789 private static native boolean native_isRect(long nPath, RectF rect); in native_isRect() argument
|
/frameworks/base/graphics/java/android/graphics/drawable/shapes/ |
D | OvalShape.java | 36 canvas.drawOval(rect(), paint); in draw() 41 final RectF rect = rect(); in getOutline() local 42 outline.setOval((int) Math.ceil(rect.left), (int) Math.ceil(rect.top), in getOutline() 43 (int) Math.floor(rect.right), (int) Math.floor(rect.bottom)); in getOutline()
|
D | RectShape.java | 42 final RectF rect = rect(); in getOutline() local 43 outline.setRect((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() 55 protected final RectF rect() { in rect() method in RectShape
|
D | RoundRectShape.java | 98 final RectF rect = rect(); in getOutline() local 99 outline.setRoundRect((int) Math.ceil(rect.left), (int) Math.ceil(rect.top), in getOutline() 100 (int) Math.floor(rect.right), (int) Math.floor(rect.bottom), in getOutline() 108 RectF r = rect(); in onResize()
|
/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/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/tests/coretests/src/android/widget/listview/ |
D | ListItemRequestRectAboveThinFirstItemTest.java | 60 final Rect rect = new Rect(); in testSecondItemRequestRectAboveTop() local 61 second.getDrawingRect(rect); in testSecondItemRequestRectAboveTop() 62 rect.offset(0, -2 * second.getBottom()); in testSecondItemRequestRectAboveTop() 64 getActivity().requestRectangleOnScreen(1, rect); in testSecondItemRequestRectAboveTop() 85 final Rect rect = new Rect(); in testSecondToLastItemRequestRectBelowBottom() local 86 secondToLast.getDrawingRect(rect); in testSecondToLastItemRequestRectBelowBottom() 87 rect.offset(0, in testSecondToLastItemRequestRectBelowBottom() 91 getActivity().requestRectangleOnScreen(secondToLastIndex, rect); in testSecondToLastItemRequestRectBelowBottom()
|
/frameworks/base/core/jni/ |
D | android_view_TextureView.cpp | 145 Rect 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() 174 clipRect.set(rect.left, rect.top, rect.right, rect.bottom); in android_view_TextureView_lockCanvas() 180 int(rect.left), int(rect.top), int(rect.right), int(rect.bottom)); in android_view_TextureView_lockCanvas()
|
D | android_view_GraphicBuffer.cpp | 169 Rect rect; in android_view_GraphicBuffer_lockCanvas() local 171 rect.left = GET_INT(dirtyRect, gRectClassInfo.left); in android_view_GraphicBuffer_lockCanvas() 172 rect.top = GET_INT(dirtyRect, gRectClassInfo.top); in android_view_GraphicBuffer_lockCanvas() 173 rect.right = GET_INT(dirtyRect, gRectClassInfo.right); in android_view_GraphicBuffer_lockCanvas() 174 rect.bottom = GET_INT(dirtyRect, gRectClassInfo.bottom); in android_view_GraphicBuffer_lockCanvas() 176 rect.set(Rect(buffer->getWidth(), buffer->getHeight())); in android_view_GraphicBuffer_lockCanvas() 180 status_t status = buffer->lock(LOCK_CANVAS_USAGE, rect, &bits); in android_view_GraphicBuffer_lockCanvas() 206 clipRect.set(rect.left, rect.top, rect.right, rect.bottom); in android_view_GraphicBuffer_lockCanvas() 212 int(rect.left), int(rect.top), int(rect.right), int(rect.bottom)); in android_view_GraphicBuffer_lockCanvas()
|
/frameworks/native/libs/gui/tests/ |
D | FillBuffer.cpp | 55 const android_native_rect_t& rect) { in fillYV12BufferRect() argument 64 bool inside = rect.left <= x && x < rect.right && in fillYV12BufferRect() 65 rect.top <= y && y < rect.bottom; in fillYV12BufferRect() 68 bool inside = rect.left <= 2*x && 2*x < rect.right && in fillYV12BufferRect() 69 rect.top <= 2*y && 2*y < rect.bottom; in fillYV12BufferRect()
|
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
D | ParameterUtils.java | 126 public final Rect rect; field in ParameterUtils.WeightedRectangle 134 public WeightedRectangle(Rect rect, int weight) { in WeightedRectangle() argument 135 this.rect = checkNotNull(rect, "rect must not be null"); in WeightedRectangle() 150 rect, in toMetering() 153 int x = clipLower(rect.left, /*lo*/0, rect, "left"); in toMetering() 154 int y = clipLower(rect.top, /*lo*/0, rect, "top"); in toMetering() 155 int w = clipLower(rect.width(), /*lo*/0, rect, "width"); in toMetering() 156 int h = clipLower(rect.height(), /*lo*/0, rect, "height"); in toMetering() 177 int idSafe = clipLower(id, /*lo*/0, rect, "id"); in toFace() 181 rect, in toFace() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | ExpandableOutlineView.java | 64 protected void setOutlineRect(RectF rect) { in setOutlineRect() argument 65 if (rect != null) { in setOutlineRect() 66 setOutlineRect(rect.left, rect.top, rect.right, rect.bottom); in setOutlineRect()
|
/frameworks/base/cmds/wm/src/com/android/commands/wm/ |
D | Wm.java | 173 Rect rect = new Rect(); in runDisplayOverscan() local 176 rect.set(0, 0, 0, 0); in runDisplayOverscan() 185 rect.left = Integer.parseInt(matcher.group(1)); in runDisplayOverscan() 186 rect.top = Integer.parseInt(matcher.group(2)); in runDisplayOverscan() 187 rect.right = Integer.parseInt(matcher.group(3)); in runDisplayOverscan() 188 rect.bottom = Integer.parseInt(matcher.group(4)); in runDisplayOverscan() 192 mWm.setOverscan(Display.DEFAULT_DISPLAY, rect.left, rect.top, rect.right, rect.bottom); in runDisplayOverscan()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/geometry/ |
D | Quad.java | 60 public static Quad fromRect(RectF rect) { in fromRect() argument 61 return new Quad(new PointF(rect.left, rect.top), in fromRect() 62 new PointF(rect.right, rect.top), in fromRect() 63 new PointF(rect.left, rect.bottom), in fromRect() 64 new PointF(rect.right, rect.bottom)); in fromRect() 112 public static Quad fromRotatedRect(RectF rect, float angle) { in fromRotatedRect() argument 113 return Quad.fromRect(rect).rotated(angle); in fromRotatedRect() 125 public static Quad fromTransformedRect(RectF rect, Matrix matrix) { in fromTransformedRect() argument 126 return Quad.fromRect(rect).transformed(matrix); in fromTransformedRect()
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
D | MeteringRectangle.java | 134 public MeteringRectangle(Rect rect, int meteringWeight) { in MeteringRectangle() argument 135 checkNotNull(rect, "rect must not be null"); in MeteringRectangle() 137 mX = checkArgumentNonnegative(rect.left, "rect.left must be nonnegative"); in MeteringRectangle() 138 mY = checkArgumentNonnegative(rect.top, "rect.top must be nonnegative"); in MeteringRectangle() 139 mWidth = checkArgumentNonnegative(rect.width(), "rect.width must be nonnegative"); in MeteringRectangle() 140 mHeight = checkArgumentNonnegative(rect.height(), "rect.height must be nonnegative"); in MeteringRectangle()
|