Home
last modified time | relevance | path

Searched refs:rectangle (Results 1 – 25 of 26) 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.java448 final RectF rectangle = extractor.apply(list.get(index)); in mergeRectangleIntoList() local
449 if (rectangle.isEmpty()) { in mergeRectangleIntoList()
468 final RectF rectangle = extractor.apply(list.get(index)); in movePointInsideNearestRectangle() local
469 final float candidateY = rectangle.centerY(); in movePointInsideNearestRectangle()
472 if (point.x > rectangle.right) { in movePointInsideNearestRectangle()
473 candidateX = rectangle.right; in movePointInsideNearestRectangle()
474 } else if (point.x < rectangle.left) { in movePointInsideNearestRectangle()
475 candidateX = rectangle.left; in movePointInsideNearestRectangle()
DHorizontalScrollView.java1691 public boolean requestChildRectangleOnScreen(View child, Rect rectangle, in requestChildRectangleOnScreen() argument
1694 rectangle.offset(child.getLeft() - child.getScrollX(), in requestChildRectangleOnScreen()
1697 return scrollToChildRect(rectangle, immediate); in requestChildRectangleOnScreen()
DScrollView.java1793 public boolean requestChildRectangleOnScreen(View child, Rect rectangle, in requestChildRectangleOnScreen() argument
1796 rectangle.offset(child.getLeft() - child.getScrollX(), in requestChildRectangleOnScreen()
1799 return scrollToChildRect(rectangle, immediate); in requestChildRectangleOnScreen()
/frameworks/base/graphics/java/android/graphics/
DYuvImage.java218 public boolean compressToJpeg(Rect rectangle, int quality, OutputStream stream) { in compressToJpeg() argument
228 if (!wholeImage.contains(rectangle)) { in compressToJpeg()
241 adjustRectangle(rectangle); in compressToJpeg()
242 int[] offsets = calculateOffsets(rectangle.left, rectangle.top); in compressToJpeg()
244 return nativeCompressToJpeg(mData, mFormat, rectangle.width(), in compressToJpeg()
245 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/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/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/tests/coretests/src/android/text/
DLayoutTest.java355 final RectF rectangle = rectangles.get(0); in testGetSelectionWithASingleLineSelection() local
357 assertEquals(0, rectangle.left, 0.0f); in testGetSelectionWithASingleLineSelection()
358 assertEquals(0, rectangle.top, 0.0f); in testGetSelectionWithASingleLineSelection()
359 assertTrue(rectangle.right > 0); in testGetSelectionWithASingleLineSelection()
360 assertTrue(rectangle.bottom > 0); in testGetSelectionWithASingleLineSelection()
475 final RectF rectangle = rectangles.get(0); in testGetSelectionPathWithASingleLineSelection() local
483 assertEquals(rectangle, pathRectangle); in testGetSelectionPathWithASingleLineSelection()
/frameworks/base/libs/hwui/aconfig/
Dhwui_flags.aconfig38 description: "Draw a solid rectangle background behind text instead of a stroke outline"
/frameworks/base/core/java/android/view/
DViewParent.java343 public boolean requestChildRectangleOnScreen(@NonNull View child, Rect rectangle, in requestChildRectangleOnScreen() argument
DIWindowSession.aidl262 oneway void onRectangleOnScreenRequested(IBinder token, in Rect rectangle); in onRectangleOnScreenRequested() argument
DWindowlessWindowManager.java584 android.graphics.Rect rectangle) { in onRectangleOnScreenRequested() argument
DViewRootImpl.java6044 boolean scrollToRectOrFocus(Rect rectangle, boolean immediate) { in scrollToRectOrFocus() argument
6072 rectangle = null; in scrollToRectOrFocus()
6075 + " rectangle=" + rectangle + " ci=" + ci in scrollToRectOrFocus()
6077 if (focus == lastScrolledFocus && !mScrollMayChange && rectangle == null) { in scrollToRectOrFocus()
6096 if (rectangle == null) { in scrollToRectOrFocus()
6109 mTempRect.set(rectangle); in scrollToRectOrFocus()
11033 public boolean requestChildRectangleOnScreen(View child, Rect rectangle, boolean immediate) { in requestChildRectangleOnScreen() argument
11034 if (rectangle == null) { in requestChildRectangleOnScreen()
11037 rectangle.offset(child.getLeft() - child.getScrollX(), in requestChildRectangleOnScreen()
11039 final boolean scrolled = scrollToRectOrFocus(rectangle, immediate); in requestChildRectangleOnScreen()
[all …]
DView.java8449 public boolean requestRectangleOnScreen(Rect rectangle) {
8450 return requestRectangleOnScreen(rectangle, false);
8470 public boolean requestRectangleOnScreen(Rect rectangle, boolean immediate) {
8478 position.set(rectangle);
8483 rectangle.set((int) position.left, (int) position.top,
8486 scrolled |= parent.requestChildRectangleOnScreen(child, rectangle, immediate);
DViewGroup.java1083 public boolean requestChildRectangleOnScreen(View child, Rect rectangle, boolean immediate) { in requestChildRectangleOnScreen() argument
/frameworks/base/services/core/java/com/android/server/wm/
DAccessibilityController.java2124 public void onRectangleOnScreenRequested(int displayId, Rect rectangle) { in onRectangleOnScreenRequested() argument
2129 "rectangle={" + rectangle + "}"); in onRectangleOnScreenRequested()
2132 mCallbacksDispatcher.onRectangleOnScreenRequested(displayId, rectangle); in onRectangleOnScreenRequested()
2158 void onRectangleOnScreenRequested(int displayId, Rect rectangle) { in onRectangleOnScreenRequested() argument
2161 FLAGS_MAGNIFICATION_CALLBACK, "rectangle={" + rectangle + "}"); in onRectangleOnScreenRequested()
2164 Slog.i(LOG_TAG, "Rectangle on screen requested: " + rectangle); in onRectangleOnScreenRequested()
2167 mCallbacks::onRectangleOnScreenRequested, displayId, rectangle.left, in onRectangleOnScreenRequested()
2168 rectangle.top, rectangle.right, rectangle.bottom); in onRectangleOnScreenRequested()
DSession.java716 public void onRectangleOnScreenRequested(IBinder token, Rect rectangle) { in onRectangleOnScreenRequested() argument
720 mService.onRectangleOnScreenRequested(token, rectangle); in onRectangleOnScreenRequested()
DWindowManagerService.java2222 public void onRectangleOnScreenRequested(IBinder token, Rect rectangle) { in onRectangleOnScreenRequested() argument
2230 window.getDisplayId(), rectangle); in onRectangleOnScreenRequested() local
/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/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DRemoteInputView.java1046 public boolean requestRectangleOnScreen(Rect rectangle) { in requestRectangleOnScreen() argument
/frameworks/rs/script_api/include/
Drs_graphics.rsh843 * rsgDrawRect: Draw a rectangle
847 * Low performance utility function for drawing a simple rectangle. Not

12