HomeSort by relevance Sort by last modified time
    Searched refs:outRect (Results 1 - 25 of 93) sorted by null

1 2 3 4

  /cts/tests/tests/view/src/android/view/cts/
ActionModeCallback2Test.java 37 Rect outRect = new Rect();
39 callback.onGetContentRect(null, view, outRect);
41 assertEquals(0, outRect.top);
42 assertEquals(0, outRect.left);
43 assertEquals(VIEW_HEIGHT, outRect.bottom);
44 assertEquals(VIEW_WIDTH, outRect.right);
48 Rect outRect = new Rect();
50 callback.onGetContentRect(null, null, outRect);
52 assertEquals(0, outRect.top);
53 assertEquals(0, outRect.left)
    [all...]
ActionModeTest.java 143 public void onGetContentRect(ActionMode mode, View view, Rect outRect) {
145 super.onGetContentRect(mode, view, outRect);
ViewTest.java 380 Rect outRect = new Rect();
389 mockView.getHitRect(outRect);
390 assertEquals(0, outRect.left);
391 assertEquals(0, outRect.top);
392 assertEquals(mockView.getWidth(), outRect.right);
393 assertEquals(mockView.getHeight(), outRect.bottom);
529 Rect outRect = new Rect();
531 view.getDrawingRect(outRect);
532 assertEquals(0, outRect.left);
533 assertEquals(0, outRect.top)
    [all...]
  /frameworks/opt/bitmap/src/com/android/bitmap/util/
BitmapUtils.java 25 * rectangle to use is written in the given outRect.
55 * @param outRect a Rect to write the resulting crop coordinates into
60 final Rect outRect) {
80 outRect.left = (int) (horizSliceFrac * (srcW - srcCroppedW));
81 outRect.right = outRect.left + srcCroppedW;
93 outRect.top = centerV - srcCroppedH / 2;
94 outRect.bottom = outRect.top + srcCroppedH;
102 * @param outRect
    [all...]
  /frameworks/base/core/java/android/view/
Gravity.java 135 * @param outRect Receives the computed frame of the object in its
138 public static void apply(int gravity, int w, int h, Rect container, Rect outRect) {
139 apply(gravity, w, h, container, 0, 0, outRect);
152 * @param outRect Receives the computed frame of the object in its
160 Rect outRect, int layoutDirection) {
162 apply(absGravity, w, h, container, 0, 0, outRect);
183 * @param outRect Receives the computed frame of the object in its
187 int xAdj, int yAdj, Rect outRect) {
190 outRect.left = container.left
192 outRect.right = outRect.left + w
    [all...]
ActionMode.java 356 * @param outRect The Rect to be populated with the content position. Use this to specify
360 public void onGetContentRect(ActionMode mode, View view, Rect outRect) {
362 outRect.set(0, 0, view.getWidth(), view.getHeight());
364 outRect.set(0, 0, 0, 0);
  /frameworks/support/v4/jellybean-mr1/android/support/v4/view/
GravityCompatJellybeanMr1.java 29 public static void apply(int gravity, int w, int h, Rect container, Rect outRect,
31 Gravity.apply(gravity, w, h, container, outRect, layoutDirection);
35 Rect outRect, int layoutDirection) {
36 Gravity.apply(gravity, w, h, container, xAdj, yAdj, outRect, layoutDirection);
  /frameworks/support/v4/java/android/support/v4/view/
GravityCompat.java 30 void apply(int gravity, int w, int h, Rect container, Rect outRect, int layoutDirection);
32 Rect outRect, int layoutDirection);
44 public void apply(int gravity, int w, int h, Rect container, Rect outRect,
46 Gravity.apply(gravity, w, h, container, outRect);
51 Rect outRect, int layoutDirection) {
52 Gravity.apply(gravity, w, h, container, xAdj, yAdj, outRect);
69 public void apply(int gravity, int w, int h, Rect container, Rect outRect,
71 GravityCompatJellybeanMr1.apply(gravity, w, h, container, outRect, layoutDirection);
76 Rect outRect, int layoutDirection) {
77 GravityCompatJellybeanMr1.apply(gravity, w, h, container, xAdj, yAdj, outRect,
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DismissViewButton.java 108 * @param outRect The (scrolled) drawing bounds of the view.
111 public void getDrawingRect(Rect outRect) {
112 super.getDrawingRect(outRect);
115 outRect.left += translationX;
116 outRect.right += translationX;
117 outRect.top += translationY;
118 outRect.bottom += translationY;
ExpandableView.java 343 * @param outRect The (scrolled) drawing bounds of the view.
346 public void getDrawingRect(Rect outRect) {
347 super.getDrawingRect(outRect);
348 outRect.left += getTranslationX();
349 outRect.right += getTranslationX();
350 outRect.bottom = (int) (outRect.top + getTranslationY() + getActualHeight());
351 outRect.top += getTranslationY() + getClipTopAmount();
355 public void getBoundsOnScreen(Rect outRect, boolean clipToParent) {
356 super.getBoundsOnScreen(outRect, clipToParent)
    [all...]
  /frameworks/support/v4/api21/android/support/v4/graphics/drawable/
RoundedBitmapDrawable21.java 52 Rect bounds, Rect outRect) {
54 bounds, outRect, View.LAYOUT_DIRECTION_LTR);
  /frameworks/base/libs/hwui/
Outline.h 94 bool getAsRoundRect(Rect* outRect, float* outRadius) const {
96 outRect->set(mBounds);
RenderProperties.h 544 void getClippingRectForFlags(uint32_t flags, Rect* outRect) const {
546 outRect->set(0, 0, getWidth(), getHeight());
548 outRect->intersect(mPrimitiveFields.mClipBounds);
551 outRect->set(mPrimitiveFields.mClipBounds);
  /packages/apps/ExactCalculator/src/com/android/calculator2/
CalculatorText.java 78 public void onGetContentRect(ActionMode mode, View view, Rect outRect) {
79 super.onGetContentRect(mode, view, outRect);
80 outRect.top += getTotalPaddingTop();
81 outRect.right -= getTotalPaddingRight();
82 outRect.bottom -= getTotalPaddingBottom();
84 outRect.left = outRect.right;
CalculatorResult.java 600 public void onGetContentRect(ActionMode mode, View view, Rect outRect) {
601 super.onGetContentRect(mode, view, outRect);
602 outRect.left += getPaddingLeft();
603 outRect.top += getPaddingTop();
604 outRect.right -= getPaddingRight();
605 outRect.bottom -= getPaddingBottom();
607 if (width < outRect.width()) {
608 outRect.left = outRect.right - width;
  /development/samples/Support7Demos/src/com/example/android/supportv7/widget/decorator/
DividerItemDecoration.java 101 public void getItemOffsets(Rect outRect, int itemPosition, RecyclerView parent) {
103 outRect.set(0, 0, 0, mDivider.getIntrinsicHeight());
105 outRect.set(0, 0, mDivider.getIntrinsicWidth(), 0);
  /frameworks/support/v4/java/android/support/v4/graphics/drawable/
RoundedBitmapDrawableFactory.java 56 Rect bounds, Rect outRect) {
58 bounds, outRect, ViewCompat.LAYOUT_DIRECTION_LTR);
  /frameworks/base/services/core/java/com/android/server/wm/
DisplaySettings.java 65 public void getOverscanLocked(String name, String uniqueId, Rect outRect) {
73 outRect.left = entry.overscanLeft;
74 outRect.top = entry.overscanTop;
75 outRect.right = entry.overscanRight;
76 outRect.bottom = entry.overscanBottom;
78 outRect.set(0, 0, 0, 0);
  /packages/apps/Launcher2/src/com/android/launcher2/
ButtonDropTarget.java 115 public void getHitRect(android.graphics.Rect outRect) {
116 super.getHitRect(outRect);
117 outRect.bottom += mBottomDragPadding;
DropTarget.java 180 void getHitRect(Rect outRect);
  /external/skia/gm/
resizeimagefilter.cpp 103 SkRect outRect = SkRect::MakeXYWH(-24, -24, 120, 120);
104 SkAutoTUnref<SkBitmapSource> source(SkBitmapSource::Create(bitmap, inRect, outRect));
  /packages/apps/Launcher3/src/com/android/launcher3/
DropTarget.java 150 void getHitRectRelativeToDragLayer(Rect outRect);
ButtonDropTarget.java 253 public void getHitRectRelativeToDragLayer(android.graphics.Rect outRect) {
254 super.getHitRect(outRect);
255 outRect.bottom += mBottomDragPadding;
259 outRect.offsetTo(coords[0], coords[1]);
  /packages/apps/Messaging/src/com/android/messaging/ui/animation/
PopupTransitionAnimation.java 298 private static boolean getViewScreenMeasureRect(final View view, final Rect outRect) {
299 outRect.set(UiUtils.getMeasuredBoundsOnScreen(view));
300 return !outRect.isEmpty();
  /frameworks/base/graphics/java/android/graphics/drawable/
DrawableWrapper.java 213 public void getHotspotBounds(@NonNull Rect outRect) {
215 mDrawable.getHotspotBounds(outRect);
217 outRect.set(getBounds());

Completed in 1259 milliseconds

1 2 3 4