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

12

/frameworks/base/core/java/android/widget/
H A DSmartSelectSprite.java77 RectangleWithTextSelectionLayout(RectF rectangle, int textSelectionLayout) { argument
78 mRectangle = Preconditions.checkNotNull(rectangle);
93 * A rounded rectangle with a configurable corner radius and the ability to expand outside of
94 * its bounding rectangle and clip against it.
101 * The direction in which the rectangle will perform its expansion. A rectangle can expand
104 * user's action being on the first line will have the top rectangle and expansion direction
126 /** How offset the left edge of the rectangle is from the left side of the bounding box. */
128 /** How offset the right edge of the rectangle is from the left side of the bounding box. */
158 * In order to achieve the "rounded rectangle hit
548 contains(final RectF rectangle, final PointF point) argument
[all...]
H A DSelectionActionModeHelper.java348 * Merges a {@link RectF} into an existing list of any objects which contain a rectangle.
352 * <li>No rectangle is redundant (contained within a bigger rectangle)</li>
356 * @param list the list of rectangles (or other rectangle containers) to merge the new
357 * rectangle into
398 final RectF rectangle = extractor.apply(list.get(index));
399 if (rectangle.isEmpty()) {
418 final RectF rectangle = extractor.apply(list.get(index));
419 final float candidateY = rectangle.centerY();
422 if (point.x > rectangle
[all...]
H A DHorizontalScrollView.java1361 * @param rect The rectangle.
1380 * a rectangle completely on the screen (or, if taller than the screen,
1409 // that the entire rectangle is in view (or at least the first
1427 // entire rectangle is in view (or at least the first screen
1494 public boolean requestChildRectangleOnScreen(View child, Rect rectangle, argument
1497 rectangle.offset(child.getLeft() - child.getScrollX(),
1500 return scrollToChildRect(rectangle, immediate);
H A DScrollView.java1388 * @param rect The rectangle.
1407 * a rectangle completely on the screen (or, if taller than the screen,
1436 // that the entire rectangle is in view (or at least the first
1454 // entire rectangle is in view (or at least the first screen
1521 public boolean requestChildRectangleOnScreen(View child, Rect rectangle, argument
1524 rectangle.offset(child.getLeft() - child.getScrollX(),
1527 return scrollToChildRect(rectangle, immediate);
/frameworks/base/graphics/java/android/graphics/
H A DYuvImage.java27 * To compress a rectangle region in the YUV data, users have to specify the
109 * Compress a rectangle region in the YuvImage to a jpeg.
113 * @param rectangle The rectangle region to be compressed. The medthod checks if rectangle is
114 * inside the image. Also, the method modifies rectangle if the chroma pixels
120 * @throws IllegalArgumentException if rectangle is invalid; quality is not within [0,
123 public boolean compressToJpeg(Rect rectangle, int quality, OutputStream stream) { argument
125 if (!wholeImage.contains(rectangle)) {
127 "rectangle i
[all...]
/frameworks/native/cmds/surfacereplayer/replayer/trace_creator/
H A 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()
285 def rectangle(): function
[all...]
/frameworks/support/compat/src/androidTest/java/android/support/v4/testutils/
H A DTestUtils.java100 * Checks whether the specified rectangle matches the specified left / top / right /
103 public static void assertRectangleBounds(String failMessagePrefix, @NonNull Rect rectangle, argument
105 assertEquals(failMessagePrefix + " left", rectangle.left, left);
106 assertEquals(failMessagePrefix + " top", rectangle.top, top);
107 assertEquals(failMessagePrefix + " right", rectangle.right, right);
108 assertEquals(failMessagePrefix + " bottom", rectangle.bottom, bottom);
/frameworks/support/viewpager/src/androidTest/java/android/support/v4/testutils/
H A DTestUtils.java100 * Checks whether the specified rectangle matches the specified left / top / right /
103 public static void assertRectangleBounds(String failMessagePrefix, @NonNull Rect rectangle, argument
105 assertEquals(failMessagePrefix + " left", rectangle.left, left);
106 assertEquals(failMessagePrefix + " top", rectangle.top, top);
107 assertEquals(failMessagePrefix + " right", rectangle.right, right);
108 assertEquals(failMessagePrefix + " bottom", rectangle.bottom, bottom);
/frameworks/native/cmds/surfacereplayer/replayer/
H A DReplayer.cpp487 cc.rectangle().left(), cc.rectangle().top(), cc.rectangle().right(),
488 cc.rectangle().bottom());
490 Rect r = Rect(cc.rectangle().left(), cc.rectangle().top(), cc.rectangle().right(),
491 cc.rectangle().bottom());
498 fcc.rectangle().left(), fcc.rectangle()
[all...]
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
H A DAndroidCamera2Settings.java50 /** Crop rectangle for digital zoom (measured WRT the active array). */
189 // Compute the crop rectangle to be passed to the framework
198 // Compute the effective crop rectangle to be used for computing focus/metering coordinates
299 Rect rectangle = source.rect;
303 double oldLeft = (rectangle.left + 1000) / 2000.0;
304 double oldTop = (rectangle.top + 1000) / 2000.0;
305 double oldRight = (rectangle.right + 1000) / 2000.0;
306 double oldBottom = (rectangle.bottom + 1000) / 2000.0;
543 * Calculate the effective crop rectangle for this preview viewport;
547 * <p>Assumes the zoom level of the provided desired crop rectangle
[all...]
/frameworks/native/opengl/tests/hwc/
H A DhwcRects.cpp48 * # White YV12 rectangle, with overlapping turquoise
49 * # RGBA8888 rectangle at 30%% (alpha: 0.7) transparency
68 * of the graphic format and then the display frame rectangle where
69 * the frame will be displayed. The display frame rectangle is
164 list<Rectangle> rectangle; variable
249 // Parse rectangle descriptions
251 string rectDesc(""); // String description of a single rectangle
285 // Description of a rectangle is complete when all opening
296 // Parse string description of rectangle
300 rectangle
[all...]
/frameworks/base/core/java/android/view/
H A DViewParent.java96 * rectangle must be invalidated in the parent. If the specified rectangle
151 * <p>Returns the clipped visible part of the rectangle <code>r</code>, defined in the
155 * <p>The resulting rectangle is always axis aligned. If a rotation is applied to a node in the
156 * View hierarchy, the result is the axis-aligned bounding box of the visible rectangle.</p>
159 * @param r The input rectangle, defined in the child coordinate system. Will be overwritten to
160 * contain the resulting visible rectangle, expressed in global (root) coordinates
165 * @return true if the resulting rectangle is not empty, false otherwise
317 * Called when a child of this group wants a particular rectangle to be
322 * <li>rectangle wil
339 requestChildRectangleOnScreen(View child, Rect rectangle, boolean immediate) argument
[all...]
H A DIWindowSession.aidl216 * Notifies that a rectangle on the screen has been requested.
218 void onRectangleOnScreenRequested(IBinder token, in Rect rectangle);
H A DViewRootImpl.java3381 // The dirty rectangle can be modified by Surface.lockCanvas()
3544 boolean scrollToRectOrFocus(Rect rectangle, boolean immediate) { argument
3559 // case 'rectangle' is null), or in response to a
3560 // requestChildRectangleOnScreen() call (in which case 'rectangle'
3562 // rectangle is).
3570 // to a rectangle; first we want to make sure the entire focus
3572 rectangle = null;
3575 + " rectangle=" + rectangle + " ci=" + ci
3577 if (focus == lastScrolledFocus && !mScrollMayChange && rectangle
7765 requestChildRectangleOnScreen(View child, Rect rectangle, boolean immediate) argument
[all...]
H A DView.java341 * The geometry of a view is that of a rectangle. A view has a location,
350 * coordinate of the rectangle representing the view. The latter returns the
351 * top, or Y, coordinate of the rectangle representing the view. These methods
361 * rectangle representing the view. For instance, calling {@link #getRight()}
6073 // want as long as it's a 1dp foreground-colored rectangle.
6912 * @param previouslyFocusedRect The rectangle of the view that had focus
6997 * Request that a rectangle of this view be visible on the screen,
7007 * @param rectangle The rectangle in the View's content coordinate space
7010 public boolean requestRectangleOnScreen(Rect rectangle) { argument
7031 requestRectangleOnScreen(Rect rectangle, boolean immediate) argument
[all...]
/frameworks/native/services/surfaceflinger/tests/
H A DSurfaceInterceptor_test.cpp426 bool hasLeft(change.crop().rectangle().left() == CROP_UPDATE.left);
427 bool hasTop(change.crop().rectangle().top() == CROP_UPDATE.top);
428 bool hasRight(change.crop().rectangle().right() == CROP_UPDATE.right);
429 bool hasBottom(change.crop().rectangle().bottom() == CROP_UPDATE.bottom);
442 bool hasLeft(change.final_crop().rectangle().left() == CROP_UPDATE.left);
443 bool hasTop(change.final_crop().rectangle().top() == CROP_UPDATE.top);
444 bool hasRight(change.final_crop().rectangle().right() == CROP_UPDATE.right);
445 bool hasBottom(change.final_crop().rectangle().bottom() == CROP_UPDATE.bottom);
/frameworks/base/core/tests/coretests/src/android/text/
H A DLayoutTest.java306 "Did not expect any rectangles, got a rectangle with (left: %f,"
323 * The selection we expect will only cover the letter "a". Hence, we expect one rectangle
324 * to be generated and this rectangle should start at the top left of the canvas and should
333 final RectF rectangle = rectangles.get(0);
335 assertEquals(0, rectangle.left, 0.0f);
336 assertEquals(0, rectangle.top, 0.0f);
337 assertTrue(rectangle.right > 0);
338 assertTrue(rectangle.bottom > 0);
443 * In the single line selection case, we expect that only one rectangle covering the letter
445 * that rectangle a
[all...]
/frameworks/base/services/core/java/com/android/server/wm/
H A DAccessibilityController.java147 public void onRectangleOnScreenRequestedLocked(Rect rectangle) { argument
149 mDisplayMagnifier.onRectangleOnScreenRequestedLocked(rectangle);
301 public void onRectangleOnScreenRequestedLocked(Rect rectangle) { argument
303 Slog.i(LOG_TAG, "Rectangle on screen requested: " + rectangle);
310 if (magnifiedRegionBounds.contains(rectangle)) {
314 args.argi1 = rectangle.left;
315 args.argi2 = rectangle.top;
316 args.argi3 = rectangle.right;
317 args.argi4 = rectangle.bottom;
811 // Empty dirty rectangle mean
[all...]
H A DSession.java429 public void onRectangleOnScreenRequested(IBinder token, Rect rectangle) { argument
433 mService.onRectangleOnScreenRequested(token, rectangle);
H A DWindowManagerService.java1828 public void onRectangleOnScreenRequested(IBinder token, Rect rectangle) { argument
1834 mAccessibilityController.onRectangleOnScreenRequestedLocked(rectangle);
/frameworks/base/core/java/android/view/autofill/
H A DAutofillPopupWindow.java194 public boolean requestRectangleOnScreen(Rect rectangle, boolean immediate) {
195 return anchor.requestRectangleOnScreen(rectangle, immediate);
/frameworks/support/compat/src/main/java/androidx/core/widget/
H A DNestedScrollView.java1578 * @param rect The rectangle.
1597 * a rectangle completely on the screen (or, if taller than the screen,
1633 // that the entire rectangle is in view (or at least the first
1651 // entire rectangle is in view (or at least the first screen
1716 public boolean requestChildRectangleOnScreen(View child, Rect rectangle, argument
1719 rectangle.offset(child.getLeft() - child.getScrollX(),
1722 return scrollToChildRect(rectangle, immediate);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DRemoteInputView.java544 public boolean requestRectangleOnScreen(Rect rectangle) { argument
/frameworks/rs/script_api/
H A Drs_graphics.spec546 summary: Draw a rectangle
548 Low performance utility function for drawing a simple rectangle. Not
/frameworks/support/coordinatorlayout/src/main/java/androidx/coordinatorlayout/widget/
H A DCoordinatorLayout.java1239 // Now draw the rectangle for the scrim
2630 * rectangle to be positioned onto the screen.
2639 * @param rectangle The rectangle which the child wishes to be on the screen
2646 @NonNull V child, @NonNull Rect rectangle, boolean immediate) {
2693 * <p>This method allows a behavior to update the rectangle that should be dodged.
2694 * The rectangle should be in the parent's coordinate system and within the child's
2700 * @param rect the rect to update with the dodge rectangle
3196 public boolean requestChildRectangleOnScreen(View child, Rect rectangle, boolean immediate) { argument
3201 && behavior.onRequestChildRectangleOnScreen(this, child, rectangle, immediat
2645 onRequestChildRectangleOnScreen(@onNull CoordinatorLayout coordinatorLayout, @NonNull V child, @NonNull Rect rectangle, boolean immediate) argument
[all...]

Completed in 549 milliseconds

12