Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/widget/
DSmartSelectSprite.java77 RectangleWithTextSelectionLayout(RectF rectangle, int textSelectionLayout) { in RectangleWithTextSelectionLayout() argument
78 mRectangle = Preconditions.checkNotNull(rectangle); in RectangleWithTextSelectionLayout()
255 for (RoundedRectangleShape rectangle : mReversedRectangles) { in setLeftBoundary()
256 final float rectangleLeftBoundary = boundarySoFar - rectangle.getBoundingWidth(); in setLeftBoundary()
258 rectangle.setStartBoundary(0); in setLeftBoundary()
260 rectangle.setStartBoundary(rectangle.getBoundingWidth()); in setLeftBoundary()
262 rectangle.setStartBoundary( in setLeftBoundary()
263 rectangle.getBoundingWidth() - boundarySoFar + leftBoundary); in setLeftBoundary()
272 for (RoundedRectangleShape rectangle : mRectangles) { in setRightBoundary()
273 final float rectangleRightBoundary = rectangle.getBoundingWidth() + boundarySoFar; in setRightBoundary()
[all …]
DSelectionActionModeHelper.java405 final RectF rectangle = extractor.apply(list.get(index)); in mergeRectangleIntoList() local
406 if (rectangle.isEmpty()) { in mergeRectangleIntoList()
425 final RectF rectangle = extractor.apply(list.get(index)); in movePointInsideNearestRectangle() local
426 final float candidateY = rectangle.centerY(); in movePointInsideNearestRectangle()
429 if (point.x > rectangle.right) { in movePointInsideNearestRectangle()
430 candidateX = rectangle.right; in movePointInsideNearestRectangle()
431 } else if (point.x < rectangle.left) { in movePointInsideNearestRectangle()
432 candidateX = rectangle.left; in movePointInsideNearestRectangle()
DScrollView.java1631 public boolean requestChildRectangleOnScreen(View child, Rect rectangle, in requestChildRectangleOnScreen() argument
1634 rectangle.offset(child.getLeft() - child.getScrollX(), in requestChildRectangleOnScreen()
1637 return scrollToChildRect(rectangle, immediate); in requestChildRectangleOnScreen()
DHorizontalScrollView.java1592 public boolean requestChildRectangleOnScreen(View child, Rect rectangle, in requestChildRectangleOnScreen() argument
1595 rectangle.offset(child.getLeft() - child.getScrollX(), in requestChildRectangleOnScreen()
1598 return scrollToChildRect(rectangle, immediate); in requestChildRectangleOnScreen()
/frameworks/native/cmds/surfacereplayer/replayer/trace_creator/
Dtrace_creator.py119 change.crop.rectangle.left, change.crop.rectangle.top, \
120 change.crop.rectangle.right, change.crop.rectangle.bottom = crop()
122 change.final_crop.rectangle.left, \
123 change.final_crop.rectangle.top, \
124 change.final_crop.rectangle.right,\
125 change.final_crop.rectangle.bottom = final_crop()
217 return rectangle()
220 return rectangle()
238 return [rectangle() in range(x)]
278 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.cpp483 cc.rectangle().left(), cc.rectangle().top(), cc.rectangle().right(), in setCrop()
484 cc.rectangle().bottom()); in setCrop()
486 Rect r = Rect(cc.rectangle().left(), cc.rectangle().top(), cc.rectangle().right(), in setCrop()
487 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/base/services/core/java/com/android/server/wm/
DAccessibilityController.java164 public void onRectangleOnScreenRequestedLocked(int displayId, Rect rectangle) { in onRectangleOnScreenRequestedLocked() argument
167 displayMagnifier.onRectangleOnScreenRequestedLocked(rectangle); in onRectangleOnScreenRequestedLocked()
339 public void onRectangleOnScreenRequestedLocked(Rect rectangle) { in onRectangleOnScreenRequestedLocked() argument
341 Slog.i(LOG_TAG, "Rectangle on screen requested: " + rectangle); in onRectangleOnScreenRequestedLocked()
348 if (magnifiedRegionBounds.contains(rectangle)) { in onRectangleOnScreenRequestedLocked()
352 args.argi1 = rectangle.left; in onRectangleOnScreenRequestedLocked()
353 args.argi2 = rectangle.top; in onRectangleOnScreenRequestedLocked()
354 args.argi3 = rectangle.right; in onRectangleOnScreenRequestedLocked()
355 args.argi4 = rectangle.bottom; in onRectangleOnScreenRequestedLocked()
DSession.java404 public void onRectangleOnScreenRequested(IBinder token, Rect rectangle) { in onRectangleOnScreenRequested() argument
408 mService.onRectangleOnScreenRequested(token, rectangle); in onRectangleOnScreenRequested()
DWindowManagerService.java1945 public void onRectangleOnScreenRequested(IBinder token, Rect rectangle) { in onRectangleOnScreenRequested() argument
1951 window.getDisplayId(), rectangle); in onRectangleOnScreenRequested() local
/frameworks/native/opengl/tests/testViewport/
DREADME18 Actual: screen is blue with offset white rectangle.
/frameworks/base/core/java/android/view/autofill/
DAutofillPopupWindow.java194 public boolean requestRectangleOnScreen(Rect rectangle, boolean immediate) { in update()
195 return anchor.requestRectangleOnScreen(rectangle, immediate); in update()
/frameworks/base/core/java/android/view/
DViewParent.java340 public boolean requestChildRectangleOnScreen(View child, Rect rectangle, in requestChildRectangleOnScreen() argument
DIWindowSession.aidl230 void onRectangleOnScreenRequested(IBinder token, in Rect rectangle); in onRectangleOnScreenRequested() argument
DViewRootImpl.java3863 boolean scrollToRectOrFocus(Rect rectangle, boolean immediate) { in scrollToRectOrFocus() argument
3891 rectangle = null; in scrollToRectOrFocus()
3894 + " rectangle=" + rectangle + " ci=" + ci in scrollToRectOrFocus()
3896 if (focus == lastScrolledFocus && !mScrollMayChange && rectangle == null) { in scrollToRectOrFocus()
3915 if (rectangle == null) { in scrollToRectOrFocus()
3928 mTempRect.set(rectangle); in scrollToRectOrFocus()
8202 public boolean requestChildRectangleOnScreen(View child, Rect rectangle, boolean immediate) { in requestChildRectangleOnScreen() argument
8203 if (rectangle == null) { in requestChildRectangleOnScreen()
8206 rectangle.offset(child.getLeft() - child.getScrollX(), in requestChildRectangleOnScreen()
8208 final boolean scrolled = scrollToRectOrFocus(rectangle, immediate); in requestChildRectangleOnScreen()
[all …]
DView.java7554 public boolean requestRectangleOnScreen(Rect rectangle) {
7555 return requestRectangleOnScreen(rectangle, false);
7575 public boolean requestRectangleOnScreen(Rect rectangle, boolean immediate) {
7583 position.set(rectangle);
7588 rectangle.set((int) position.left, (int) position.top,
7591 scrolled |= parent.requestChildRectangleOnScreen(child, rectangle, immediate);
DViewGroup.java1058 public boolean requestChildRectangleOnScreen(View child, Rect rectangle, boolean immediate) { in requestChildRectangleOnScreen() argument
/frameworks/native/services/surfaceflinger/tests/
DSurfaceInterceptor_test.cpp465 bool hasLeft(change.crop().rectangle().left() == CROP_UPDATE.left); in cropUpdateFound()
466 bool hasTop(change.crop().rectangle().top() == CROP_UPDATE.top); in cropUpdateFound()
467 bool hasRight(change.crop().rectangle().right() == CROP_UPDATE.right); in cropUpdateFound()
468 bool hasBottom(change.crop().rectangle().bottom() == CROP_UPDATE.bottom); in cropUpdateFound()
/frameworks/native/cmds/surfacereplayer/proto/src/
Dtrace.proto75 required Rectangle rectangle = 1; field
/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.java577 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