/frameworks/support/compat/tests/java/android/support/v4/widget/ |
D | TextViewCompatTest.java | 156 drawablesAbsolute[0].getBounds().width(), 20); in testCompoundDrawablesRelative() 158 drawablesAbsolute[0].getBounds().height(), 20); in testCompoundDrawablesRelative() 162 drawablesAbsolute[1].getBounds().width(), 30); in testCompoundDrawablesRelative() 164 drawablesAbsolute[1].getBounds().height(), 25); in testCompoundDrawablesRelative() 168 drawablesAbsolute[2].getBounds().width(), 25); in testCompoundDrawablesRelative() 170 drawablesAbsolute[2].getBounds().height(), 20); in testCompoundDrawablesRelative() 201 drawablesAbsolute[0].getBounds().width(), 25); in testCompoundDrawablesRelativeRtl() 203 drawablesAbsolute[0].getBounds().height(), 20); in testCompoundDrawablesRelativeRtl() 207 drawablesAbsolute[1].getBounds().width(), 30); in testCompoundDrawablesRelativeRtl() 209 drawablesAbsolute[1].getBounds().height(), 25); in testCompoundDrawablesRelativeRtl() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | KeyButtonRipple.java | 94 final float w = getBounds().width(); in drawSoftware() 95 final float h = getBounds().height(); in drawSoftware() 137 return getBounds().width() > getBounds().height(); in isHorizontal() 295 return isHorizontal() ? getBounds().width() : getBounds().height(); in getExtendSize() 299 int size = isHorizontal() ? getBounds().width() : getBounds().height(); in getRippleSize() 324 mBottomProp = CanvasProperty.createFloat(getBounds().height()); in enterHardware() 325 mRxProp = CanvasProperty.createFloat(getBounds().height()/2); in enterHardware() 326 mRyProp = CanvasProperty.createFloat(getBounds().height()/2); in enterHardware() 329 mRightProp = CanvasProperty.createFloat(getBounds().width()); in enterHardware() 330 mRxProp = CanvasProperty.createFloat(getBounds().width()/2); in enterHardware() [all …]
|
/frameworks/opt/chips/src/com/android/ex/chips/recipientchip/ |
D | ReplacementDrawableSpan.java | 33 final Rect bounds = getBounds(); in setupFontMetrics() 47 return getBounds().right; in getSize() 54 int transY = (bottom - mDrawable.getBounds().bottom + top) / 2; in draw() 60 protected Rect getBounds() { in getBounds() method in ReplacementDrawableSpan 61 return mDrawable.getBounds(); in getBounds()
|
D | VisibleRecipientChip.java | 94 public Rect getBounds() { in getBounds() method in VisibleRecipientChip 95 return super.getBounds(); in getBounds()
|
D | DrawableRecipientChip.java | 30 Rect getBounds(); in getBounds() method
|
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/graphics/ |
D | CompositeDrawableTest.java | 56 Rect adjustedBounds = drawable.getBounds(); in updateBounds_noBoundsRule() 76 Rect adjustedBounds = drawable.getBounds(); in updateBounds_withBoundsRule() 86 adjustedBounds = drawable.getBounds(); in updateBounds_withBoundsRule() 96 adjustedBounds = drawable.getBounds(); in updateBounds_withBoundsRule() 107 adjustedBounds = drawable.getBounds(); in updateBounds_withBoundsRule() 121 assertEquals(HEIGHT, drawable.getBounds().height()); in updateBounds_withOverride() 122 assertEquals(WIDTH, drawable.getBounds().width()); in updateBounds_withOverride() 134 Rect adjustedBounds = drawable.getBounds(); in updateBounds_withOverride() 145 adjustedBounds = drawable.getBounds(); in updateBounds_withOverride() 155 adjustedBounds = drawable.getBounds(); in updateBounds_withOverride()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawable/ |
D | UserIconDrawable.java | 126 onBoundsChange(getBounds()); in setIcon() 141 onBoundsChange(getBounds()); in setIconDrawable() 155 onBoundsChange(getBounds()); in setBadge() 174 onBoundsChange(getBounds()); in setBadgeRadius() 179 onBoundsChange(getBounds()); in setBadgeMargin() 188 onBoundsChange(getBounds()); in setPadding() 203 onBoundsChange(getBounds()); in setFrameWidth() 209 onBoundsChange(getBounds()); in setFramePadding() 331 canvas.drawCircle(getBounds().exactCenterX(), getBounds().exactCenterY(), in rebake() 343 final float borderRadius = mBadge.getBounds().width() * 0.5f + mBadgeMargin; in rebake()
|
/frameworks/base/libs/hwui/tests/unit/ |
D | ClipAreaTests.cpp | 107 auto skRect(clipRegion.getBounds()); in TEST() 167 EXPECT_EQ(SkIRect::MakeWH(200, 200), clipRegion->region.getBounds()) in TEST() 251 EXPECT_EQ(SkIRect::MakeLTRB(60, 20, 160, 200), clipRegion->region.getBounds()); in TEST() 299 EXPECT_EQ(SkIRect::MakeLTRB(100, 100, 300, 300), clipRegion->region.getBounds()); in TEST() 306 EXPECT_EQ(SkIRect::MakeLTRB(1, 2, 3, 4), region.getBounds()); in TEST() 315 EXPECT_EQ(SkIRect::MakeLTRB(11, 22, 13, 24), region.getBounds()); in TEST() 324 EXPECT_EQ(SkIRect::MakeLTRB(2, 6, 6, 12), region.getBounds()); in TEST() 334 EXPECT_EQ(SkIRect::MakeLTRB(12, 26, 16, 32), region.getBounds()); in TEST() 343 EXPECT_EQ(SkIRect::MakeLTRB(-4, 1, -2, 3), region.getBounds()); in TEST()
|
/frameworks/minikin/tests/unittest/ |
D | LayoutTest.cpp | 83 layout.getBounds(&rect); in TEST_F() 102 layout.getBounds(&rect); in TEST_F() 121 layout.getBounds(&rect); in TEST_F() 140 layout.getBounds(&rect); in TEST_F() 174 layout.getBounds(&rect); in TEST_F() 193 layout.getBounds(&rect); in TEST_F() 216 layout.getBounds(&rect); in TEST_F() 237 layout.getBounds(&rect); in TEST_F() 273 layout.getBounds(&rect); in TEST_F() 292 layout.getBounds(&rect); in TEST_F() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/ |
D | PipTouchHandler.java | 172 mMenuController.showMenu(MENU_STATE_FULL, mMotionHelper.getBounds(), in onPipShowMenu() 197 () -> mMenuController.showMenu(MENU_STATE_FULL, mMotionHelper.getBounds(), in PipTouchHandler() 218 mMenuController.showMenu(MENU_STATE_FULL, mMotionHelper.getBounds(), in showPictureInPictureMenu() 240 mMenuController.showMenu(MENU_STATE_CLOSE, mMotionHelper.getBounds(), in onPinnedStackAnimationEnded() 341 mMenuController.showMenu(MENU_STATE_FULL, mMotionHelper.getBounds(), in onAccessibilityShowMenu() 427 Rect bounds = mMotionHelper.getBounds(); in updateDismissFraction() 567 Rect bounds = mMotionHelper.getBounds(); 622 mTmpBounds.set(mMotionHelper.getBounds()); 664 && mMotionHelper.isGestureToDismissArea(mMotionHelper.getBounds(), vel.x, 671 mMotionHelper.animateDismiss(mMotionHelper.getBounds(), vel.x, [all …]
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
D | Region_Delegate.java | 217 regionDelegate.mArea.getBounds().intersects( in quickReject() 218 targetRegionDelegate.mArea.getBounds()) == false; in quickReject() 303 return dstRegion.mArea.getBounds().isEmpty() == false; in nativeSetRect() 325 return dstRegion.mArea.getBounds().isEmpty() == false; in nativeSetPath() 335 Rectangle bounds = region.mArea.getBounds(); in nativeGetBounds() 385 return region.mArea.getBounds().isEmpty() == false; in nativeOp() 403 return region.mArea.getBounds().isEmpty() == false; in nativeOp() 431 return dstRegion.mArea.getBounds().isEmpty() == false; in nativeOp()
|
/frameworks/support/wear/tests/src/android/support/wear/widget/ |
D | RoundedDrawableTest.java | 120 assertEquals(BITMAP_WIDTH - 10, mBitmapDrawable.getBounds().width()); in scalingIsAppliedCorrectly() 121 assertEquals(BITMAP_HEIGHT - 10, mBitmapDrawable.getBounds().height()); in scalingIsAppliedCorrectly() 122 assertEquals(bounds.centerX(), mBitmapDrawable.getBounds().centerX()); in scalingIsAppliedCorrectly() 123 assertEquals(bounds.centerY(), mBitmapDrawable.getBounds().centerY()); in scalingIsAppliedCorrectly()
|
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/ |
D | GlifPatternDrawableTest.java | 99 drawable.scaleCanvasToBounds(canvas, mockBitmapCache, drawable.getBounds()); in testScaleToCanvasSquare() 115 drawable.scaleCanvasToBounds(canvas, mockBitmapCache, drawable.getBounds()); in testScaleToCanvasTall() 132 drawable.scaleCanvasToBounds(canvas, mockBitmapCache, drawable.getBounds()); in testScaleToCanvasWide() 149 drawable.scaleCanvasToBounds(canvas, mockBitmapCache, drawable.getBounds()); in testScaleToCanvasMaxSize()
|
/frameworks/base/core/java/android/text/style/ |
D | DynamicDrawableSpan.java | 78 Rect rect = d.getBounds(); in getSize() 98 int transY = bottom - b.getBounds().bottom; in draw()
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/graphics/ |
D | CompositeDrawable.java | 268 clone.setBounds(dr.getBounds()); in ChildDrawable() 309 updateBounds(mParent.getBounds()); in recomputeBounds() 332 return obj.mParent.getBounds().top; 358 return obj.mParent.getBounds().bottom; 385 return obj.mParent.getBounds().left; 411 return obj.mParent.getBounds().right;
|
/frameworks/base/libs/hwui/ |
D | Outline.h | 75 mBounds.set(outline->getBounds()); in setConvexPath() 136 const Rect& getBounds() const { in getBounds() function
|
D | ClipArea.cpp | 167 tr.getBounds(), tr.getTransform()); in convertToRegion() 346 mClipRect.set(mClipRegion.getBounds()); in onClipRegionUpdated() 384 serialization->rect.set(mClipRegion.getBounds()); in serializeClip() 484 regionClip->rect.set(regionClip->region.getBounds()); in serializeIntersectedClip() 501 rectList.intersectWith(tr.getBounds(), totalTransform); in serializeIntersectedClip() 523 clipRectWithTransform(tr.getBounds(), &totalTransform, SkRegion::kIntersect_Op); in applyClip()
|
/frameworks/native/services/surfaceflinger/ |
D | DisplayDevice.cpp | 258 const Rect b(newDirty.getBounds()); in flip() 407 dirty.set(getBounds()); 411 dirty.andSelf(getBounds()); 507 dirtyRegion.set(getBounds()); 557 dirtyRegion.set(getBounds()); 588 mScissor = getBounds();
|
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/app/ |
D | DetailsFragmentTest.java | 173 assertEquals(windowWidth, bitmapDrawable.getBounds().width()); in parallaxTest() 180 bitmapDrawable.getBounds().height()); in parallaxTest() 205 assertEquals(0, bitmapDrawable.getBounds().top); in parallaxTest() 206 assertEquals(Math.max(detailsFrameRect.top, 0), bitmapDrawable.getBounds().bottom); in parallaxTest() 207 assertEquals(windowWidth, bitmapDrawable.getBounds().width()); in parallaxTest() 210 assertEquals(windowWidth, colorDrawable.getBounds().width()); in parallaxTest() 211 assertEquals(detailsFrameRect.bottom, colorDrawable.getBounds().top); in parallaxTest() 212 assertEquals(windowHeight, colorDrawable.getBounds().bottom); in parallaxTest() 849 assertEquals(0, coverDrawable.getBounds().top); 850 assertEquals(recyclerViewHeight, coverDrawable.getBounds().bottom); [all …]
|
D | DetailsSupportFragmentTest.java | 176 assertEquals(windowWidth, bitmapDrawable.getBounds().width()); in parallaxTest() 183 bitmapDrawable.getBounds().height()); in parallaxTest() 208 assertEquals(0, bitmapDrawable.getBounds().top); in parallaxTest() 209 assertEquals(Math.max(detailsFrameRect.top, 0), bitmapDrawable.getBounds().bottom); in parallaxTest() 210 assertEquals(windowWidth, bitmapDrawable.getBounds().width()); in parallaxTest() 213 assertEquals(windowWidth, colorDrawable.getBounds().width()); in parallaxTest() 214 assertEquals(detailsFrameRect.bottom, colorDrawable.getBounds().top); in parallaxTest() 215 assertEquals(windowHeight, colorDrawable.getBounds().bottom); in parallaxTest() 852 assertEquals(0, coverDrawable.getBounds().top); 853 assertEquals(recyclerViewHeight, coverDrawable.getBounds().bottom); [all …]
|
/frameworks/base/core/java/android/view/ |
D | ViewOverlay.java | 156 invalidate(drawable.getBounds()); in add() 167 invalidate(drawable.getBounds()); in remove() 236 invalidate(drawable.getBounds()); in invalidateDrawable()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | SlashDrawable.java | 90 mDrawable.setBounds(getBounds()); in setDrawable() 143 final int width = getBounds().width(); in draw() 144 final int height = getBounds().height(); in draw()
|
/frameworks/native/libs/ui/include/ui/ |
D | Region.h | 48 inline bool isEmpty() const { return getBounds().isEmpty(); } in isEmpty() 51 inline Rect getBounds() const { return mStorage[mStorage.size() - 1]; } in getBounds() function 52 inline Rect bounds() const { return getBounds(); } in bounds()
|
/frameworks/support/compat/tests/java/android/support/v4/graphics/ |
D | DrawableCompatTest.java | 73 assertEquals(bounds, drawable.getBounds()); in testDrawableChangeBoundsCopy() 88 assertEquals(bounds, wrapper.getBounds()); in testWrapCopiesDrawableState()
|
/frameworks/support/transition/api14/android/support/transition/ |
D | ViewOverlayApi14.java | 182 invalidate(drawable.getBounds()); in add() 190 invalidate(drawable.getBounds()); in remove() 248 invalidate(drawable.getBounds()); in invalidateDrawable()
|