/frameworks/base/core/java/com/android/internal/policy/ |
H A D | DockedDividerUtils.java | 55 * Makes sure that the bounds are always valid, i. e. they are at least one pixel high and wide. 57 * @param bounds The bounds to sanitize. 58 * @param topLeft Pass true if the bounds are at the top/left of the screen, false if they are 60 * the bounds. 62 public static void sanitizeStackBounds(Rect bounds, boolean topLeft) { argument 64 // If the bounds are either on the top or left of the screen, rather move it further to the 68 if (bounds.left >= bounds.right) { 69 bounds 84 calculatePositionForBounds(Rect bounds, int dockSide, int dividerSize) argument [all...] |
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | StackWindowListener.java | 28 void requestResize(Rect bounds); argument
|
H A D | TaskWindowContainerListener.java | 32 void requestResize(Rect bounds, int resizeMode); argument
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | RippleComponent.java | 47 public RippleComponent(RippleDrawable owner, Rect bounds) { argument 49 mBounds = bounds; 72 private static float getTargetRadius(Rect bounds) { argument 73 final float halfWidth = bounds.width() / 2.0f; 74 final float halfHeight = bounds.height() / 2.0f; 79 * Populates {@code bounds} with the maximum drawing bounds of the ripple 80 * relative to its center. The resulting bounds should be translated into 83 * @param bounds the rect to populate with drawing bounds 85 getBounds(Rect bounds) argument [all...] |
H A D | PictureDrawable.java | 65 Rect bounds = getBounds(); 67 canvas.clipRect(bounds); 68 canvas.translate(bounds.left, bounds.top);
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
H A D | SaveLayer2Animation.cpp | 37 SkIRect bounds = SkIRect::MakeWH(width, height); variable 39 int smallRectHeight = (bounds.height() / regions); 41 int top = bounds.fTop; 50 canvas.saveLayer(bounds.fLeft, top, bounds.fRight, top + padding, &mBluePaint, 55 TestUtils::drawUtf8ToCanvas(&canvas, offscreen.c_str(), mBluePaint, bounds.fLeft, 59 canvas.drawRect(bounds.fLeft, top + padding, bounds.fRight, 62 TestUtils::drawUtf8ToCanvas(&canvas, onscreen.c_str(), mGreenPaint, bounds.fLeft,
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
H A D | SaveLayerInterleaveActivity.java | 59 Rect bounds = getBounds(); 61 int smallRectHeight = (bounds.height()/regions); 63 int top = bounds.top; 71 canvas.saveLayer(bounds.left, top, bounds.right, top + padding, 74 canvas.drawText("offscreen line "+ i, bounds.left, top + padding, 78 Rect partX = new Rect(bounds.left, top + padding, 79 bounds.right,top + smallRectHeight - padding); 81 canvas.drawText("onscreen line "+ i, bounds.left,
|
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | ActivityLaunchParamsModifier.java | 27 * An implementation of {@link LaunchParamsModifier}, which applies the launch bounds specified 41 // We only care about figuring out bounds for activities. 52 final Rect bounds = options.getLaunchBounds(); 55 if (bounds == null || bounds.isEmpty()) { 59 outParams.mBounds.set(bounds);
|
/frameworks/support/cardview/src/main/java/androidx/cardview/widget/ |
H A D | CardViewApi17Impl.java | 32 public void drawRoundRect(Canvas canvas, RectF bounds, float cornerRadius, 34 canvas.drawRoundRect(bounds, cornerRadius, cornerRadius, paint);
|
H A D | CardViewBaseImpl.java | 39 public void drawRoundRect(Canvas canvas, RectF bounds, float cornerRadius, 42 final float innerWidth = bounds.width() - twoRadius - 1; 43 final float innerHeight = bounds.height() - twoRadius - 1; 50 canvas.translate(bounds.left + roundedCornerRadius, 51 bounds.top + roundedCornerRadius); 64 canvas.drawRect(bounds.left + roundedCornerRadius - 1f, bounds.top, 65 bounds.right - roundedCornerRadius + 1f, 66 bounds.top + roundedCornerRadius, paint); 68 canvas.drawRect(bounds [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | HardwareBgDrawable.java | 80 Rect bounds = getBounds(); 81 int top = bounds.top + mPoint; 82 if (top > bounds.bottom) top = bounds.bottom; 84 mLayers[0].setBounds(bounds.left, bounds.top, bounds.right, top); 86 mLayers[1].setBounds(bounds.left, top, bounds.right, bounds [all...] |
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/graphics/ |
H A D | CompositeDrawableTest.java | 53 Rect bounds = new Rect(0, 0, WIDTH, HEIGHT); 55 parentDrawable.updateBounds(bounds); 58 assertEquals(bounds, adjustedBounds); 67 Rect bounds = new Rect(0, 0, WIDTH, HEIGHT); 68 assertEquals(HEIGHT, bounds.height()); 69 assertEquals(WIDTH, bounds.width()); 75 parentDrawable.updateBounds(bounds); 78 Rect expectedBounds = new Rect(bounds); 79 expectedBounds.bottom = bounds.top + (int) (HEIGHT * fraction); 83 drawable.setBounds(bounds); [all...] |
/frameworks/base/core/java/android/view/animation/ |
H A D | Transformation.java | 126 Rect bounds = t.getClipRect(); 128 setClipRect(mClipRect.left + bounds.left, mClipRect.top + bounds.top, 129 mClipRect.right + bounds.right, mClipRect.bottom + bounds.bottom); 131 setClipRect(bounds); 145 Rect bounds = t.getClipRect(); 147 setClipRect(mClipRect.left + bounds.left, mClipRect.top + bounds.top, 148 mClipRect.right + bounds [all...] |
/frameworks/base/core/proto/android/view/ |
H A D | displaycutout.proto | 29 optional .android.graphics.RectProto bounds = 2;
|
/frameworks/base/libs/hwui/tests/unit/ |
H A D | FontRendererTests.cpp | 42 Rect bounds; local 44 &bounds); 51 EXPECT_LE(bounds.getWidth() + radius * 2, (int)result.width); 52 EXPECT_LE(bounds.getHeight() + radius * 2, (int)result.height);
|
/frameworks/base/core/java/android/view/accessibility/ |
H A D | IAccessibilityInteractionConnection.aidl | 34 void findAccessibilityNodeInfoByAccessibilityId(long accessibilityNodeId, in Region bounds, 40 in Region bounds, int interactionId, IAccessibilityInteractionConnectionCallback callback, 43 void findAccessibilityNodeInfosByText(long accessibilityNodeId, String text, in Region bounds, 47 void findFocus(long accessibilityNodeId, int focusType, in Region bounds, int interactionId, 51 void focusSearch(long accessibilityNodeId, int direction, in Region bounds, int interactionId,
|
/frameworks/support/core/ktx/src/main/java/androidx/core/graphics/drawable/ |
H A D | Drawable.kt | 58 val (oldLeft, oldTop, oldRight, oldBottom) = bounds 69 * Updates this drawable's bounds. This version of the method allows using named parameters 75 @Px left: Int = bounds.left, 76 @Px top: Int = bounds.top, 77 @Px right: Int = bounds.right, 78 @Px bottom: Int = bounds.bottom
|
/frameworks/support/wear/src/androidTest/java/androidx/wear/widget/ |
H A D | RoundedDrawableTest.java | 96 Rect bounds = new Rect(0, 0, BITMAP_WIDTH, BITMAP_HEIGHT); 100 mRoundedDrawable.setBounds(bounds); 105 eq(new RectF(0, 0, bounds.width(), bounds.height())), 115 Rect bounds = new Rect(0, 0, BITMAP_WIDTH, BITMAP_HEIGHT); 119 mRoundedDrawable.setBounds(bounds); 123 assertEquals(bounds.centerX(), mBitmapDrawable.getBounds().centerX()); 124 assertEquals(bounds.centerY(), mBitmapDrawable.getBounds().centerY()); 128 eq(new RectF(0, 0, bounds.width(), bounds [all...] |
/frameworks/base/core/java/android/hardware/camera2/params/ |
H A D | Face.java | 71 * @param bounds Bounds of the face. 79 * if bounds is {@code null}, 88 public Face(Rect bounds, int score, int id, argument 90 checkNotNull("bounds", bounds); 102 mBounds = bounds; 122 * @param bounds Bounds of the face. 126 * if bounds is {@code null}, 132 public Face(Rect bounds, int score) { argument 133 this(bounds, scor [all...] |
/frameworks/base/libs/hwui/hwui/ |
H A D | Canvas.cpp | 95 float y, minikin::MinikinRect& bounds, float totalAdvance) 101 , bounds(bounds) 133 canvas->drawGlyphs(glyphFunc, glyphCount, outlinePaint, x, y, bounds.mLeft, bounds.mTop, 134 bounds.mRight, bounds.mBottom, totalAdvance); 140 canvas->drawGlyphs(glyphFunc, glyphCount, innerPaint, x, y, bounds.mLeft, bounds.mTop, 141 bounds 94 DrawTextFunctor(const minikin::Layout& layout, Canvas* canvas, const SkPaint& paint, float x, float y, minikin::MinikinRect& bounds, float totalAdvance) argument 155 minikin::MinikinRect& bounds; member in class:android::DrawTextFunctor 171 minikin::MinikinRect bounds; local [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | FixedSizeFrameLayout.java | 27 * relayout its children with the last known layout bounds when a layout is requested from a child 70 // If we are already laid out, then just reuse the same bounds to layout the children 89 protected void layoutContents(Rect bounds, boolean changed) { argument 90 super.onLayout(changed, bounds.left, bounds.top, bounds.right, bounds.bottom);
|
/frameworks/native/include/ui/ |
H A D | GraphicBufferMapper.h | 63 uint32_t usage, const Rect& bounds, void** vaddr); 66 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr); 71 uint32_t usage, const Rect& bounds, void** vaddr, int fenceFd); 74 uint64_t producerUsage, uint64_t consumerUsage, const Rect& bounds, 78 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr,
|
/frameworks/native/libs/ui/include/ui/ |
H A D | GraphicBufferMapper.h | 63 uint32_t usage, const Rect& bounds, void** vaddr); 66 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr); 71 uint32_t usage, const Rect& bounds, void** vaddr, int fenceFd); 74 uint64_t producerUsage, uint64_t consumerUsage, const Rect& bounds, 78 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr,
|
/frameworks/native/libs/ui/include_vndk/ui/ |
H A D | GraphicBufferMapper.h | 63 uint32_t usage, const Rect& bounds, void** vaddr); 66 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr); 71 uint32_t usage, const Rect& bounds, void** vaddr, int fenceFd); 74 uint64_t producerUsage, uint64_t consumerUsage, const Rect& bounds, 78 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr,
|
/frameworks/support/wear/src/main/java/androidx/wear/widget/ |
H A D | RoundedDrawable.java | 47 * Maintains and draws a drawable inside rounded rectangular bounds. 50 * bounds specified by {@link #setBounds(Rect)} and {@link #setRadius(int)} when the 164 * Sets whether the drawable inside should be clipped or resized to fit the rounded bounds. If 181 * Returns whether the drawable inside is clipped or resized to fit the rounded bounds. 190 protected void onBoundsChange(Rect bounds) { argument 191 mTmpBounds.right = bounds.width(); 192 mTmpBounds.bottom = bounds.height(); 193 mTmpBoundsF.right = bounds.width(); 194 mTmpBoundsF.bottom = bounds.height(); 200 Rect bounds [all...] |