Home
last modified time | relevance | path

Searched refs:roundedCorner (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/view/
DRoundedCornerTest.java39 RoundedCorner roundedCorner = new RoundedCorner( in testGetPosition() local
41 assertThat(roundedCorner.getPosition(), is(RoundedCorner.POSITION_BOTTOM_LEFT)); in testGetPosition()
46 RoundedCorner roundedCorner = new RoundedCorner( in testGetRadius() local
48 assertThat(roundedCorner.getRadius(), is(2)); in testGetRadius()
53 RoundedCorner roundedCorner = new RoundedCorner( in testGetCenter() local
55 assertThat(roundedCorner.getCenter(), equalTo(new Point(3, 4))); in testGetCenter()
60 RoundedCorner roundedCorner = new RoundedCorner(RoundedCorner.POSITION_BOTTOM_LEFT); in testIsEmpty() local
61 assertThat(roundedCorner.isEmpty(), is(true)); in testIsEmpty()
66 RoundedCorner roundedCorner = in testIsEmpty_negativeCenter() local
68 assertThat(roundedCorner.isEmpty(), is(true)); in testIsEmpty_negativeCenter()
[all …]
DRoundedCornersTest.java124 RoundedCorner roundedCorner = new RoundedCorner(POSITION_BOTTOM_LEFT, 5, 6, 7); in testSetRoundedCorner() local
125 mRoundedCorners.setRoundedCorner(POSITION_BOTTOM_LEFT, roundedCorner); in testSetRoundedCorner()
127 assertThat(mRoundedCorners.getRoundedCorner(POSITION_BOTTOM_LEFT), equalTo(roundedCorner)); in testSetRoundedCorner()
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/preference/
DProgressBarPreference.kt64 val roundedCorner: Boolean constant
80 roundedCorner = model.roundedCorner, in ProgressBarPreference()
98 roundedCorner = model.roundedCorner, in ProgressBarWithDataPreference()
108 roundedCorner: Boolean = true, in ProgressBarPreference()
113 LinearProgressBar(progress, height, roundedCorner) in ProgressBarPreference()
129 roundedCorner: Boolean = true,
142 LinearProgressBar(progress, height, roundedCorner) in <lambda>()
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/ui/
DProgressBar.kt49 roundedCorner: Boolean = true in LinearProgressBar()
60 drawLinearBarTrack(trackColor, roundedCorner) in LinearProgressBar()
61 drawLinearBar(progress, color, roundedCorner) in LinearProgressBar()
69 roundedCorner: Boolean in DrawScope()
77 cornerRadius = if (roundedCorner) CornerRadius( in DrawScope()
86 roundedCorner: Boolean in DrawScope()
87 ) = drawLinearBar(1f, color, roundedCorner) in DrawScope()
/frameworks/base/core/java/android/view/
DRoundedCorners.java457 public void setRoundedCorner(@Position int position, @Nullable RoundedCorner roundedCorner) { in setRoundedCorner() argument
458 mRoundedCorners[position] = roundedCorner == null in setRoundedCorner()
459 ? new RoundedCorner(position) : roundedCorner; in setRoundedCorner()
486 final RoundedCorner roundedCorner = mRoundedCorners[i]; in scale() local
489 (int) (roundedCorner.getRadius() * scale), in scale()
490 (int) (roundedCorner.getCenter().x * scale), in scale()
491 (int) (roundedCorner.getCenter().y * scale)); in scale()
558 for (RoundedCorner roundedCorner : mRoundedCorners) { in hashCode()
559 result = result * 31 + roundedCorner.hashCode(); in hashCode()
DWindowInsets.java1628 @Nullable RoundedCorner roundedCorner) { in setRoundedCorner() argument
1629 mRoundedCorners.setRoundedCorner(position, roundedCorner); in setRoundedCorner()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/split/
DDividerRoundedCorner.java121 final RoundedCorner roundedCorner = getDisplay().getRoundedCorner(cornerPosition); in InvertedRoundedCornerDrawInfo() local
122 mRadius = roundedCorner == null ? 0 : roundedCorner.getRadius(); in InvertedRoundedCornerDrawInfo()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
DPanelTaskViewController.kt66 val roundedCorner = in onInitialized() constant
70 val radii = FloatArray(8) { roundedCorner.toFloat() } in onInitialized()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/leanback/
DTestHelper.java75 public ListRowPresenterBuilder configRoundedCorner(boolean roundedCorner) { in configRoundedCorner() argument
76 mRoundedCorner = roundedCorner; in configRoundedCorner()
/frameworks/native/services/surfaceflinger/FrontEnd/
DLayerSnapshotBuilder.cpp353 snapshot.roundedCorner = RoundedCornerState(); in getRootSnapshot()
910 snapshot.isOpaque = snapshot.contentOpaque && !snapshot.roundedCorner.hasRoundedCorners() && in updateSnapshot()
926 snapshot.roundedCorner = RoundedCornerState(); in updateRoundedCorner()
929 snapshot.roundedCorner = RoundedCornerState(); in updateRoundedCorner()
931 if (parentSnapshot.roundedCorner.hasRoundedCorners()) { in updateRoundedCorner()
932 parentRoundedCorner = parentSnapshot.roundedCorner; in updateRoundedCorner()
952 snapshot.roundedCorner = parentRoundedCorner; in updateRoundedCorner()
954 snapshot.roundedCorner = layerSettings; in updateRoundedCorner()
957 snapshot.roundedCorner = layerSettings; in updateRoundedCorner()
959 snapshot.roundedCorner = parentRoundedCorner; in updateRoundedCorner()
DLayerSnapshot.h69 RoundedCornerState roundedCorner; member
DLayerSnapshot.cpp507 isOpaque = contentOpaque && !roundedCorner.hasRoundedCorners() && color.a == 1.f; in merge()
/frameworks/native/services/surfaceflinger/
DLayerFE.cpp139 const auto& roundedCornerState = mSnapshot->roundedCorner; in prepareClientCompositionInternal()
373 return mSnapshot->roundedCorner.hasRoundedCorners(); in hasRoundedCorners()
DLayerProtoHelper.cpp383 (snapshot.roundedCorner.radius.x + snapshot.roundedCorner.radius.y) / 2.0); in writeSnapshotToProto()
404 LayerProtoHelper::writeToProto(snapshot.roundedCorner.cropRect, in writeSnapshotToProto()
DLayer.cpp4341 snapshot->roundedCorner = getRoundedCornerState(); in updateSnapshot()
/frameworks/native/services/surfaceflinger/tests/unittests/
DLayerSnapshotTest.cpp1075 EXPECT_TRUE(getSnapshot({.id = 1})->roundedCorner.hasRoundedCorners()); in TEST_F()
1076 EXPECT_EQ(getSnapshot({.id = 1})->roundedCorner.radius.x, 42.f); in TEST_F()
1077 EXPECT_TRUE(getSnapshot({.id = 2})->roundedCorner.hasRoundedCorners()); in TEST_F()
1099 EXPECT_FALSE(getSnapshot({.id = 1})->roundedCorner.hasRoundedCorners()); in TEST_F()
1101 EXPECT_TRUE(getSnapshot({.id = 2})->roundedCorner.hasRoundedCorners()); in TEST_F()
1110 EXPECT_TRUE(getSnapshot({.id = 1})->roundedCorner.hasRoundedCorners()); in TEST_F()
1111 EXPECT_EQ(getSnapshot({.id = 1})->roundedCorner.radius.x, 42.f); in TEST_F()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...