Home
last modified time | relevance | path

Searched refs:rectangle (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/base/core/java/android/widget/
DSmartSelectSprite.java74 RectangleWithTextSelectionLayout(RectF rectangle, int textSelectionLayout) { in RectangleWithTextSelectionLayout() argument
75 mRectangle = Objects.requireNonNull(rectangle); in RectangleWithTextSelectionLayout()
252 for (RoundedRectangleShape rectangle : mReversedRectangles) { in setLeftBoundary()
253 final float rectangleLeftBoundary = boundarySoFar - rectangle.getBoundingWidth(); in setLeftBoundary()
255 rectangle.setStartBoundary(0); in setLeftBoundary()
257 rectangle.setStartBoundary(rectangle.getBoundingWidth()); in setLeftBoundary()
259 rectangle.setStartBoundary( in setLeftBoundary()
260 rectangle.getBoundingWidth() - boundarySoFar + leftBoundary); in setLeftBoundary()
269 for (RoundedRectangleShape rectangle : mRectangles) { in setRightBoundary()
270 final float rectangleRightBoundary = rectangle.getBoundingWidth() + boundarySoFar; in setRightBoundary()
[all …]
DSelectionActionModeHelper.java438 final RectF rectangle = extractor.apply(list.get(index)); in mergeRectangleIntoList() local
439 if (rectangle.isEmpty()) { in mergeRectangleIntoList()
458 final RectF rectangle = extractor.apply(list.get(index)); in movePointInsideNearestRectangle() local
459 final float candidateY = rectangle.centerY(); in movePointInsideNearestRectangle()
462 if (point.x > rectangle.right) { in movePointInsideNearestRectangle()
463 candidateX = rectangle.right; in movePointInsideNearestRectangle()
464 } else if (point.x < rectangle.left) { in movePointInsideNearestRectangle()
465 candidateX = rectangle.left; in movePointInsideNearestRectangle()
DHorizontalScrollView.java1616 public boolean requestChildRectangleOnScreen(View child, Rect rectangle, in requestChildRectangleOnScreen() argument
1619 rectangle.offset(child.getLeft() - child.getScrollX(), in requestChildRectangleOnScreen()
1622 return scrollToChildRect(rectangle, immediate); in requestChildRectangleOnScreen()
DScrollView.java1659 public boolean requestChildRectangleOnScreen(View child, Rect rectangle, in requestChildRectangleOnScreen() argument
1662 rectangle.offset(child.getLeft() - child.getScrollX(), in requestChildRectangleOnScreen()
1665 return scrollToChildRect(rectangle, immediate); in requestChildRectangleOnScreen()
/frameworks/native/cmds/surfacereplayer/replayer/trace_creator/
Dtrace_creator.py118 change.crop.rectangle.left, change.crop.rectangle.top, \
119 change.crop.rectangle.right, change.crop.rectangle.bottom = crop()
121 change.final_crop.rectangle.left, \
122 change.final_crop.rectangle.top, \
123 change.final_crop.rectangle.right,\
124 change.final_crop.rectangle.bottom = final_crop()
213 return rectangle()
216 return rectangle()
229 return [rectangle() in range(x)]
269 change.projection.viewport.bottom = rectangle()
[all …]
/frameworks/base/graphics/java/android/graphics/
DYuvImage.java123 public boolean compressToJpeg(Rect rectangle, int quality, OutputStream stream) { in compressToJpeg() argument
125 if (!wholeImage.contains(rectangle)) { in compressToJpeg()
138 adjustRectangle(rectangle); in compressToJpeg()
139 int[] offsets = calculateOffsets(rectangle.left, rectangle.top); in compressToJpeg()
141 return nativeCompressToJpeg(mData, mFormat, rectangle.width(), in compressToJpeg()
142 rectangle.height(), offsets, mStrides, quality, stream, in compressToJpeg()
/frameworks/native/opengl/tests/hwc/
DhwcRects.cpp164 list<Rectangle> rectangle; variable
300 rectangle.push_back(rect); in main()
309 list = hwcTestCreateLayerList(rectangle.size()); in main()
316 for (std::list<Rectangle>::iterator it = rectangle.begin(); in main()
317 it != rectangle.end(); ++it, ++layer) { in main()
/frameworks/native/cmds/surfacereplayer/replayer/
DReplayer.cpp485 cc.rectangle().left(), cc.rectangle().top(), cc.rectangle().right(), in setCrop()
486 cc.rectangle().bottom()); in setCrop()
488 Rect r = Rect(cc.rectangle().left(), cc.rectangle().top(), cc.rectangle().right(), in setCrop()
489 cc.rectangle().bottom()); in setCrop()
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DAndroidCamera2Settings.java299 Rect rectangle = source.rect; in legacyAreasToMeteringRectangles() local
303 double oldLeft = (rectangle.left + 1000) / 2000.0; in legacyAreasToMeteringRectangles()
304 double oldTop = (rectangle.top + 1000) / 2000.0; in legacyAreasToMeteringRectangles()
305 double oldRight = (rectangle.right + 1000) / 2000.0; in legacyAreasToMeteringRectangles()
306 double oldBottom = (rectangle.bottom + 1000) / 2000.0; in legacyAreasToMeteringRectangles()
/frameworks/base/core/tests/coretests/src/android/text/
DLayoutTest.java335 final RectF rectangle = rectangles.get(0); in testGetSelectionWithASingleLineSelection() local
337 assertEquals(0, rectangle.left, 0.0f); in testGetSelectionWithASingleLineSelection()
338 assertEquals(0, rectangle.top, 0.0f); in testGetSelectionWithASingleLineSelection()
339 assertTrue(rectangle.right > 0); in testGetSelectionWithASingleLineSelection()
340 assertTrue(rectangle.bottom > 0); in testGetSelectionWithASingleLineSelection()
455 final RectF rectangle = rectangles.get(0); in testGetSelectionPathWithASingleLineSelection() local
463 assertEquals(rectangle, pathRectangle); in testGetSelectionPathWithASingleLineSelection()
/frameworks/native/opengl/tests/testViewport/
DREADME18 Actual: screen is blue with offset white rectangle.
/frameworks/base/core/java/android/view/autofill/
DAutofillPopupWindow.java196 public boolean requestRectangleOnScreen(Rect rectangle, boolean immediate) { in update()
197 return anchor.requestRectangleOnScreen(rectangle, immediate); in update()
/frameworks/base/core/java/android/view/
DViewParent.java342 public boolean requestChildRectangleOnScreen(@NonNull View child, Rect rectangle, in requestChildRectangleOnScreen() argument
DIWindowSession.aidl248 oneway void onRectangleOnScreenRequested(IBinder token, in Rect rectangle); in onRectangleOnScreenRequested() argument
DWindowlessWindowManager.java471 android.graphics.Rect rectangle) { in onRectangleOnScreenRequested() argument
DViewRootImpl.java5094 boolean scrollToRectOrFocus(Rect rectangle, boolean immediate) { in scrollToRectOrFocus() argument
5122 rectangle = null; in scrollToRectOrFocus()
5125 + " rectangle=" + rectangle + " ci=" + ci in scrollToRectOrFocus()
5127 if (focus == lastScrolledFocus && !mScrollMayChange && rectangle == null) { in scrollToRectOrFocus()
5146 if (rectangle == null) { in scrollToRectOrFocus()
5159 mTempRect.set(rectangle); in scrollToRectOrFocus()
9982 public boolean requestChildRectangleOnScreen(View child, Rect rectangle, boolean immediate) { in requestChildRectangleOnScreen() argument
9983 if (rectangle == null) { in requestChildRectangleOnScreen()
9986 rectangle.offset(child.getLeft() - child.getScrollX(), in requestChildRectangleOnScreen()
9988 final boolean scrolled = scrollToRectOrFocus(rectangle, immediate); in requestChildRectangleOnScreen()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DAccessibilityController.java1857 public void onRectangleOnScreenRequested(int displayId, Rect rectangle) { in onRectangleOnScreenRequested() argument
1862 "rectangle={" + rectangle + "}"); in onRectangleOnScreenRequested()
1865 mCallbacksDispatcher.onRectangleOnScreenRequested(displayId, rectangle); in onRectangleOnScreenRequested()
1891 void onRectangleOnScreenRequested(int displayId, Rect rectangle) { in onRectangleOnScreenRequested() argument
1894 FLAGS_MAGNIFICATION_CALLBACK, "rectangle={" + rectangle + "}"); in onRectangleOnScreenRequested()
1897 Slog.i(LOG_TAG, "Rectangle on screen requested: " + rectangle); in onRectangleOnScreenRequested()
1900 mCallbacks::onRectangleOnScreenRequested, displayId, rectangle.left, in onRectangleOnScreenRequested()
1901 rectangle.top, rectangle.right, rectangle.bottom); in onRectangleOnScreenRequested()
DSession.java652 public void onRectangleOnScreenRequested(IBinder token, Rect rectangle) { in onRectangleOnScreenRequested() argument
656 mService.onRectangleOnScreenRequested(token, rectangle); in onRectangleOnScreenRequested()
/frameworks/native/cmds/surfacereplayer/proto/src/
Dtrace.proto86 required Rectangle rectangle = 1; field
/frameworks/native/services/surfaceflinger/tests/
DSurfaceInterceptor_test.cpp541 bool hasLeft(change.crop().rectangle().left() == CROP_UPDATE.left); in cropUpdateFound()
542 bool hasTop(change.crop().rectangle().top() == CROP_UPDATE.top); in cropUpdateFound()
543 bool hasRight(change.crop().rectangle().right() == CROP_UPDATE.right); in cropUpdateFound()
544 bool hasBottom(change.crop().rectangle().bottom() == CROP_UPDATE.bottom); in cropUpdateFound()
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/
Dfind_region.rscript59 int mWidth = (((int) (8 + width)) & ~3); // bounding rectangle that is a power of 8 big
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/
Dfind_region.rscript75 (((int)(8 + width)) & ~3); // bounding rectangle that is a power of 8 big
/frameworks/rs/script_api/
Drs_graphics.spec546 summary: Draw a rectangle
548 Low performance utility function for drawing a simple rectangle. Not
/frameworks/rs/script_api/include/
Drs_graphics.rsh843 * rsgDrawRect: Draw a rectangle
847 * Low performance utility function for drawing a simple rectangle. Not
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DRemoteInputView.java1091 public boolean requestRectangleOnScreen(Rect rectangle) { in requestRectangleOnScreen() argument

12