/packages/apps/Launcher3/src/com/android/launcher3/keyboard/ |
ViewGroupFocusHelper.java | 38 public void viewToRect(View v, Rect outRect) { 39 outRect.left = 0; 40 outRect.top = 0; 42 computeLocationRelativeToContainer(v, outRect); 46 outRect.left += (1 - v.getScaleX()) * v.getWidth() / 2; 47 outRect.top += (1 - v.getScaleY()) * v.getHeight() / 2; 49 outRect.right = outRect.left + (int) (v.getScaleX() * v.getWidth()); 50 outRect.bottom = outRect.top + (int) (v.getScaleY() * v.getHeight()) [all...] |
FocusedItemDecorator.java | 38 public void viewToRect(View v, Rect outRect) { 39 outRect.set(v.getLeft(), v.getTop(), v.getRight(), v.getBottom());
|
/frameworks/support/compat/tests/java/android/support/v4/view/ |
GravityCompatTest.java | 90 Rect outRect = new Rect(); 94 new Rect(0, 0, 200, 100), outRect, ViewCompat.LAYOUT_DIRECTION_LTR); 96 outRect, 0, 0, 100, 50); 100 new Rect(0, 0, 200, 100), outRect, ViewCompat.LAYOUT_DIRECTION_LTR); 102 outRect, 50, 0, 150, 50); 106 new Rect(0, 0, 200, 100), outRect, ViewCompat.LAYOUT_DIRECTION_LTR); 108 outRect, 100, 0, 200, 50); 112 new Rect(0, 0, 200, 100), outRect, ViewCompat.LAYOUT_DIRECTION_LTR); 114 outRect, 0, 25, 100, 75); 118 new Rect(0, 0, 200, 100), outRect, ViewCompat.LAYOUT_DIRECTION_LTR) [all...] |
/cts/tests/tests/view/src/android/view/cts/ |
ActionModeCallback2Test.java | 56 Rect outRect = new Rect(); 58 callback.onGetContentRect(null, view, outRect); 60 assertEquals(0, outRect.top); 61 assertEquals(0, outRect.left); 62 assertEquals(VIEW_HEIGHT, outRect.bottom); 63 assertEquals(VIEW_WIDTH, outRect.right); 68 Rect outRect = new Rect(); 70 callback.onGetContentRect(null, null, outRect); 72 assertEquals(0, outRect.top); 73 assertEquals(0, outRect.left) [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);
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
OutlineTest.java | 41 Rect outRect = new Rect(); 42 assertFalse(outline.getRect(outRect)); 98 Rect outRect = new Rect(); 111 assertTrue(outline.getRect(outRect)); 112 assertEquals(new Rect(10, 10, 20, 20), outRect); 117 assertTrue(outline.getRect(outRect)); 118 assertEquals(new Rect(10, 10, 20, 20), outRect); 125 Rect outRect = new Rect(); 138 assertTrue(outline.getRect(outRect)); 139 assertEquals(new Rect(10, 10, 20, 20), outRect); [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
DismissViewButton.java | 51 * @param outRect The (scrolled) drawing bounds of the view. 54 public void getDrawingRect(Rect outRect) { 55 super.getDrawingRect(outRect); 58 outRect.left += translationX; 59 outRect.right += translationX; 60 outRect.top += translationY; 61 outRect.bottom += translationY;
|
ExpandableView.java | 324 * @param outRect The (scrolled) drawing bounds of the view. 327 public void getDrawingRect(Rect outRect) { 328 super.getDrawingRect(outRect); 329 outRect.left += getTranslationX(); 330 outRect.right += getTranslationX(); 331 outRect.bottom = (int) (outRect.top + getTranslationY() + getActualHeight()); 332 outRect.top += getTranslationY() + getClipTopAmount(); 336 public void getBoundsOnScreen(Rect outRect, boolean clipToParent) { 337 super.getBoundsOnScreen(outRect, clipToParent) [all...] |
/frameworks/support/compat/java/android/support/v4/view/ |
GravityCompat.java | 55 * @param outRect Receives the computed frame of the object in its 63 Rect outRect, int layoutDirection) { 65 Gravity.apply(gravity, w, h, container, outRect, layoutDirection); 67 Gravity.apply(gravity, w, h, container, outRect); 89 * @param outRect Receives the computed frame of the object in its 97 int xAdj, int yAdj, Rect outRect, int layoutDirection) { 99 Gravity.apply(gravity, w, h, container, xAdj, yAdj, outRect, layoutDirection); 101 Gravity.apply(gravity, w, h, container, xAdj, yAdj, outRect);
|
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/ |
DrawableLayoutDirectionHelperTest.java | 59 Rect outRect = new Rect(); 60 insetDrawable.getPadding(outRect); 62 outRect); 77 Rect outRect = new Rect(); 78 insetDrawable.getPadding(outRect); 80 outRect); 94 Rect outRect = new Rect(); 95 insetDrawable.getPadding(outRect); 98 outRect); 101 outRect); [all...] |
/frameworks/base/core/java/com/android/internal/policy/ |
DockedDividerUtils.java | 34 public static void calculateBoundsForPosition(int position, int dockSide, Rect outRect, 36 outRect.set(0, 0, displayWidth, displayHeight); 39 outRect.right = position; 42 outRect.bottom = position; 45 outRect.left = position + dividerSize; 48 outRect.top = position + dividerSize; 51 sanitizeStackBounds(outRect, dockSide == DOCKED_LEFT || dockSide == DOCKED_TOP);
|
/frameworks/support/core-utils/api21/android/support/v4/graphics/drawable/ |
RoundedBitmapDrawable21.java | 54 Rect bounds, Rect outRect) { 56 bounds, outRect, View.LAYOUT_DIRECTION_LTR);
|
/frameworks/native/libs/ui/ |
GraphicBufferMapper.cpp | 74 Gralloc2::IMapper::Rect outRect{}; 75 outRect.left = rect.left; 76 outRect.top = rect.top; 77 outRect.width = rect.width(); 78 outRect.height = rect.height(); 79 return outRect;
|
/frameworks/base/core/java/com/android/internal/widget/ |
NotificationExpandButton.java | 55 public void getBoundsOnScreen(Rect outRect, boolean clipToParent) { 56 super.getBoundsOnScreen(outRect, clipToParent); 57 extendRectToMinTouchSize(outRect);
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
TestResizingRelayoutWithAutoMeasure.java | 164 Rect outRect = new Rect(); 165 mLayoutManager.getDecoratedBoundsWithMargins(view, outRect); 166 // only record if outRect is visible 167 if (outRect.left >= mRecyclerView.getWidth() || 168 outRect.top >= mRecyclerView.getHeight() || 169 outRect.right < 0 || 170 outRect.bottom < 0) { 173 positions.put(childAdapterPosition, outRect);
|
GridLayoutManagerCustomSizeInScrollDirectionTest.java | 102 public void getItemOffsets(Rect outRect, View view, RecyclerView parent, 105 outRect.set(decorOffset, 0, decorOffset, 0); 107 outRect.set(0, decorOffset, 0, decorOffset);
|
/frameworks/opt/setupwizard/library/eclair-mr1/src/com/android/setupwizardlib/util/ |
LinkAccessibilityHelper.java | 294 private Rect getBoundsForSpan(ClickableSpan span, Rect outRect) { 296 outRect.setEmpty(); 307 layout.getLineBounds(lineStart, outRect); 310 // so outrect is exactly bounding the span. 311 outRect.left = (int) Math.min(xStart, xEnd); 312 outRect.right = (int) Math.max(xStart, xEnd); 315 // by layout.getLineBounds above), and adjust the "start" of outrect to where 316 // the span starts, leaving the "end" of outrect at the end of the line. 319 outRect.right = (int) xStart; 321 outRect.left = (int) xStart [all...] |
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
DividerItemDecoration.java | 168 public void getItemOffsets(Rect outRect, View view, RecyclerView parent, 171 outRect.set(0, 0, 0, 0); 175 outRect.set(0, 0, 0, mDivider.getIntrinsicHeight()); 177 outRect.set(0, 0, mDivider.getIntrinsicWidth(), 0);
|
/frameworks/support/core-utils/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 | 70 public void getOverscanLocked(String name, String uniqueId, Rect outRect) { 78 outRect.left = entry.overscanLeft; 79 outRect.top = entry.overscanTop; 80 outRect.right = entry.overscanRight; 81 outRect.bottom = entry.overscanBottom; 83 outRect.set(0, 0, 0, 0);
|
/packages/apps/ExactCalculator/src/com/android/calculator2/ |
CalculatorFormula.java | 277 public void onGetContentRect(ActionMode mode, View view, Rect outRect) { 278 super.onGetContentRect(mode, view, outRect); 279 outRect.top += getTotalPaddingTop(); 280 outRect.right -= getTotalPaddingRight(); 281 outRect.bottom -= getTotalPaddingBottom(); 283 outRect.left = (int) (outRect.right * 0.9f);
|
/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;
|
/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/ |
PathPerfTest.java | 107 final RectF outRect = new RectF(); 109 path.isRect(outRect);
|