/packages/apps/Launcher3/src/com/android/launcher3/keyboard/ |
ViewGroupFocusHelper.java | 37 public void viewToRect(View v, Rect outRect) { 38 outRect.left = 0; 39 outRect.top = 0; 41 computeLocationRelativeToContainer(v, outRect); 45 outRect.left += (1 - v.getScaleX()) * v.getWidth() / 2; 46 outRect.top += (1 - v.getScaleY()) * v.getHeight() / 2; 48 outRect.right = outRect.left + (int) (v.getScaleX() * v.getWidth()); 49 outRect.bottom = outRect.top + (int) (v.getScaleY() * v.getHeight()) [all...] |
/frameworks/support/compat/src/androidTest/java/androidx/core/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 | 358 * @param outRect The Rect to be populated with the content position. Use this to specify 362 public void onGetContentRect(ActionMode mode, View view, Rect outRect) { 364 outRect.set(0, 0, view.getWidth(), view.getHeight()); 366 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...] |
/external/swiftshader/src/Common/ |
GrallocAndroid.hpp | 43 gralloc1_rect_t outRect{}; 44 outRect.left = left; 45 outRect.top = top; 46 outRect.width = width; 47 outRect.height = height; 48 return m_gralloc1_lock(m_gralloc1_device, handle, usage, usage, &outRect, vaddr, -1);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
FooterViewButton.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 | 360 * @param outRect The (scrolled) drawing bounds of the view. 363 public void getDrawingRect(Rect outRect) { 364 super.getDrawingRect(outRect); 365 outRect.left += getTranslationX(); 366 outRect.right += getTranslationX(); 367 outRect.bottom = (int) (outRect.top + getTranslationY() + getActualHeight()); 368 outRect.top += getTranslationY() + getClipTopAmount(); 372 public void getBoundsOnScreen(Rect outRect, boolean clipToParent) { 373 super.getBoundsOnScreen(outRect, clipToParent) [all...] |
/frameworks/support/compat/src/main/java/androidx/core/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...] |
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/ |
GridSpacingItemDecoration.java | 47 public void getItemOffsets(Rect outRect, View view, RecyclerView parent, 54 outRect.left = mStartMargin + column * mSpacing / spanCount 56 outRect.right = mSpacing - (column + 1) * mSpacing / spanCount 58 outRect.top = mSpacing;
|
/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/compat/src/main/java/androidx/core/graphics/drawable/ |
RoundedBitmapDrawable21.java | 55 Rect bounds, Rect outRect) { 57 bounds, outRect, View.LAYOUT_DIRECTION_LTR);
|
RoundedBitmapDrawableFactory.java | 61 Rect bounds, Rect outRect) { 63 bounds, outRect, ViewCompat.LAYOUT_DIRECTION_LTR);
|
/frameworks/base/core/java/com/android/internal/widget/ |
NotificationExpandButton.java | 54 public void getBoundsOnScreen(Rect outRect, boolean clipToParent) { 55 super.getBoundsOnScreen(outRect, clipToParent); 56 extendRectToMinTouchSize(outRect);
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/ |
LayoutUtils.java | 40 public static void calculateLauncherTaskSize(Context context, DeviceProfile dp, Rect outRect) { 47 calculateTaskSize(context, dp, extraSpace, MULTI_WINDOW_STRATEGY_HALF_SCREEN, outRect); 50 public static void calculateFallbackTaskSize(Context context, DeviceProfile dp, Rect outRect) { 51 calculateTaskSize(context, dp, 0, MULTI_WINDOW_STRATEGY_DEVICE_PROFILE, outRect); 56 float extraVerticalSpace, @MultiWindowStrategy int multiWindowStrategy, Rect outRect) { 110 outRect.set(Math.round(x), Math.round(y),
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/fallback/ |
FallbackRecentsView.java | 65 protected void getTaskSize(DeviceProfile dp, Rect outRect) { 66 LayoutUtils.calculateFallbackTaskSize(getContext(), dp, outRect);
|
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/ |
TestResizingRelayoutWithAutoMeasure.java | 165 Rect outRect = new Rect(); 166 mLayoutManager.getDecoratedBoundsWithMargins(view, outRect); 167 // only record if outRect is visible 168 if (outRect.left >= mRecyclerView.getWidth() || 169 outRect.top >= mRecyclerView.getHeight() || 170 outRect.right < 0 || 171 outRect.bottom < 0) { 174 positions.put(childAdapterPosition, outRect);
|
/frameworks/opt/setupwizard/library/gingerbread/src/com/android/setupwizardlib/util/ |
LinkAccessibilityHelper.java | 259 private Rect getBoundsForSpan(ClickableSpan span, Rect outRect) { 261 outRect.setEmpty(); 272 layout.getLineBounds(lineStart, outRect); 275 // so outrect is exactly bounding the span. 276 outRect.left = (int) Math.min(xStart, xEnd); 277 outRect.right = (int) Math.max(xStart, xEnd); 281 // outrect to where the span starts, leaving the "end" of outrect at the end 284 outRect.right = (int) xStart; 286 outRect.left = (int) xStart [all...] |
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
ShadowDisplayTest.java | 97 Rect outRect = new Rect(); 114 display.getRectSize(outRect); 115 assertEquals(400, outRect.width()); 116 assertEquals(600, outRect.height());
|
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/ |
DividerItemDecoration.java | 169 public void getItemOffsets(Rect outRect, View view, RecyclerView parent, 172 outRect.set(0, 0, 0, 0); 176 outRect.set(0, 0, 0, mDivider.getIntrinsicHeight()); 178 outRect.set(0, 0, mDivider.getIntrinsicWidth(), 0);
|
/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);
|
/frameworks/native/libs/ui/ |
GraphicBufferMapper.cpp | 104 Gralloc2::IMapper::Rect outRect{}; 105 outRect.left = rect.left; 106 outRect.top = rect.top; 107 outRect.width = rect.width(); 108 outRect.height = rect.height(); 109 return outRect;
|