/frameworks/base/packages/SystemUI/compose/scene/tests/src/com/android/compose/animation/scene/transformation/ |
D | AnchoredTranslateTest.kt | 26 import androidx.compose.ui.unit.dp 43 Box(Modifier.offset(10.dp, 50.dp).element(TestElements.Foo)) in testAnchoredTranslateExit() 44 Box(Modifier.offset(20.dp, 40.dp).element(TestElements.Bar)) in testAnchoredTranslateExit() 46 toSceneContent = { Box(Modifier.offset(30.dp, 10.dp).element(TestElements.Foo)) }, in testAnchoredTranslateExit() 54 before { onElement(TestElements.Bar).assertPositionInRootIsEqualTo(20.dp, 40.dp) } in testAnchoredTranslateExit() 55 at(0) { onElement(TestElements.Bar).assertPositionInRootIsEqualTo(20.dp, 40.dp) } in testAnchoredTranslateExit() 56 at(16) { onElement(TestElements.Bar).assertPositionInRootIsEqualTo(25.dp, 30.dp) } in testAnchoredTranslateExit() 57 at(32) { onElement(TestElements.Bar).assertPositionInRootIsEqualTo(30.dp, 20.dp) } in testAnchoredTranslateExit() 58 at(48) { onElement(TestElements.Bar).assertPositionInRootIsEqualTo(35.dp, 10.dp) } in testAnchoredTranslateExit() 66 fromSceneContent = { Box(Modifier.offset(10.dp, 50.dp).element(TestElements.Foo)) }, in testAnchoredTranslateEnter() [all …]
|
D | EdgeTranslateTest.kt | 28 import androidx.compose.ui.unit.dp 50 layoutModifier = Modifier.size(300.dp), in testEdgeTranslate() 55 Box(Modifier.size(100.dp).element(TestElements.Foo).align(Alignment.Center)) in testEdgeTranslate() 70 at(0) { onElement(TestElements.Foo).assertPositionInRootIsEqualTo(100.dp, (-100).dp) } in testEntersFromTop_startsOutsideLayoutBounds() 71 at(32) { onElement(TestElements.Foo).assertPositionInRootIsEqualTo(100.dp, 0.dp) } in testEntersFromTop_startsOutsideLayoutBounds() 72 at(64) { onElement(TestElements.Foo).assertPositionInRootIsEqualTo(100.dp, 100.dp) } in testEntersFromTop_startsOutsideLayoutBounds() 73 after { onElement(TestElements.Foo).assertPositionInRootIsEqualTo(100.dp, 100.dp) } in testEntersFromTop_startsOutsideLayoutBounds() 81 at(0) { onElement(TestElements.Foo).assertPositionInRootIsEqualTo(100.dp, 0.dp) } in testEntersFromTop_startsInsideLayoutBounds() 82 at(32) { onElement(TestElements.Foo).assertPositionInRootIsEqualTo(100.dp, 50.dp) } in testEntersFromTop_startsInsideLayoutBounds() 83 at(64) { onElement(TestElements.Foo).assertPositionInRootIsEqualTo(100.dp, 100.dp) } in testEntersFromTop_startsInsideLayoutBounds() [all …]
|
D | SharedElementTest.kt | 29 import androidx.compose.ui.unit.dp 50 Box(Modifier.offset(10.dp, 50.dp).element(TestElements.Foo).size(20.dp, 80.dp)) in testSharedElement() 54 Box(Modifier.offset(50.dp, 70.dp).element(TestElements.Foo).size(10.dp, 40.dp)) in testSharedElement() 62 onElement(TestElements.Foo).assertPositionInRootIsEqualTo(10.dp, 50.dp) in testSharedElement() 63 onElement(TestElements.Foo).assertSizeIsEqualTo(20.dp, 80.dp) in testSharedElement() 71 .assertPositionInRootIsEqualTo(10.dp, 50.dp) in testSharedElement() 72 .assertSizeIsEqualTo(20.dp, 80.dp) in testSharedElement() 78 .assertPositionInRootIsEqualTo(20.dp, 55.dp) in testSharedElement() 79 .assertSizeIsEqualTo(17.5.dp, 70.dp) in testSharedElement() 85 .assertPositionInRootIsEqualTo(30.dp, 60.dp) in testSharedElement() [all …]
|
D | TranslateTest.kt | 26 import androidx.compose.ui.unit.dp 43 Box(Modifier.offset(10.dp, 50.dp).element(TestElements.Foo)) in testTranslateExit() 49 translate(TestElements.Foo, x = 20.dp, y = (-40).dp) in testTranslateExit() 52 before { onElement(TestElements.Foo).assertPositionInRootIsEqualTo(10.dp, 50.dp) } in testTranslateExit() 53 at(0) { onElement(TestElements.Foo).assertPositionInRootIsEqualTo(10.dp, 50.dp) } in testTranslateExit() 54 at(16) { onElement(TestElements.Foo).assertPositionInRootIsEqualTo(15.dp, 40.dp) } in testTranslateExit() 55 at(32) { onElement(TestElements.Foo).assertPositionInRootIsEqualTo(20.dp, 30.dp) } in testTranslateExit() 56 at(48) { onElement(TestElements.Foo).assertPositionInRootIsEqualTo(25.dp, 20.dp) } in testTranslateExit() 67 Box(Modifier.offset(10.dp, 50.dp).element(TestElements.Foo)) in testTranslateEnter() 72 translate(TestElements.Foo, x = 20.dp, y = (-40).dp) in testTranslateEnter() [all …]
|
D | AnchoredSizeTest.kt | 26 import androidx.compose.ui.unit.dp 52 fromSceneContent = { Box(Modifier.size(100.dp, 100.dp).element(TestElements.Foo)) }, in testAnchoredSizeEnter() 54 Box(Modifier.size(50.dp, 50.dp).element(TestElements.Foo)) in testAnchoredSizeEnter() 55 Box(Modifier.size(200.dp, 60.dp).element(TestElements.Bar)) in testAnchoredSizeEnter() 68 Box(Modifier.size(100.dp, 100.dp).element(TestElements.Foo)) in testAnchoredSizeExit() 69 Box(Modifier.size(100.dp, 100.dp).element(TestElements.Bar)) in testAnchoredSizeExit() 71 toSceneContent = { Box(Modifier.size(200.dp, 60.dp).element(TestElements.Foo)) }, in testAnchoredSizeExit() 83 fromSceneContent = { Box(Modifier.size(100.dp, 100.dp).element(TestElements.Foo)) }, in testAnchoredWidthOnly() 85 Box(Modifier.size(50.dp, 50.dp).element(TestElements.Foo)) in testAnchoredWidthOnly() 86 Box(Modifier.size(200.dp, 60.dp).element(TestElements.Bar)) in testAnchoredWidthOnly() [all …]
|
D | ScaleSizeTest.kt | 25 import androidx.compose.ui.unit.dp 42 toSceneContent = { Box(Modifier.size(100.dp).element(TestElements.Foo)) }, in testScaleSize() 52 at(0) { onElement(TestElements.Foo).assertSizeIsEqualTo(200.dp, 50.dp) } in testScaleSize() 53 at(16) { onElement(TestElements.Foo).assertSizeIsEqualTo(175.dp, 62.5.dp) } in testScaleSize() 54 at(32) { onElement(TestElements.Foo).assertSizeIsEqualTo(150.dp, 75.dp) } in testScaleSize() 55 at(48) { onElement(TestElements.Foo).assertSizeIsEqualTo(125.dp, 87.5.dp) } in testScaleSize() 56 at(64) { onElement(TestElements.Foo).assertSizeIsEqualTo(100.dp, 100.dp) } in testScaleSize() 57 after { onElement(TestElements.Foo).assertSizeIsEqualTo(100.dp, 100.dp) } in testScaleSize()
|
/frameworks/base/packages/CredentialManager/src/com/android/credentialmanager/ui/theme/ |
D | Shape.kt | 5 import androidx.compose.ui.unit.dp 8 small = RoundedCornerShape(100.dp), 9 medium = RoundedCornerShape(28.dp), 10 large = RoundedCornerShape(0.dp) 14 val TopRoundedCorner = RoundedCornerShape(28.dp, 28.dp, 0.dp, 0.dp) 15 val BottomRoundedCorner = RoundedCornerShape(0.dp, 0.dp, 28.dp, 28.dp) 17 val FullSmallRoundedCorner = RoundedCornerShape(4.dp, 4.dp, 4.dp, 4.dp) 19 val FullMediumRoundedCorner = RoundedCornerShape(28.dp, 28.dp, 28.dp, 28.dp)
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/data/ |
D | DataProfileTest.java | 125 DataProfile dp = new DataProfile.Builder() in testCreateFromApnSetting() local 129 assertThat(dp.getProfileId()).isEqualTo(mApn1.getProfileId()); in testCreateFromApnSetting() 130 assertThat(dp.getApn()).isEqualTo(mApn1.getApnName()); in testCreateFromApnSetting() 131 assertThat(dp.getProtocolType()).isEqualTo(mApn1.getProtocol()); in testCreateFromApnSetting() 132 assertThat(dp.getAuthType()).isEqualTo(ApnSetting.AUTH_TYPE_PAP_OR_CHAP); in testCreateFromApnSetting() 133 assertThat(dp.getUserName()).isEqualTo(mApn1.getUser()); in testCreateFromApnSetting() 134 assertThat(dp.getPassword()).isEqualTo(mApn1.getPassword()); in testCreateFromApnSetting() 135 assertThat(dp.getType()).isEqualTo(DataProfile.TYPE_COMMON); in testCreateFromApnSetting() 136 assertThat(dp.getWaitTime()).isEqualTo(mApn1.getWaitTime()); in testCreateFromApnSetting() 137 assertThat(dp.isEnabled()).isEqualTo(mApn1.isEnabled()); in testCreateFromApnSetting() [all …]
|
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/framework/theme/ |
D | SettingsDimension.kt | 20 import androidx.compose.ui.unit.dp 23 val paddingTiny = 2.dp 24 val paddingSmall = 4.dp 25 val paddingLarge = 16.dp 26 val paddingExtraLarge = 24.dp 28 val itemIconSize = 24.dp 29 val itemIconContainerSize = 72.dp 48 val itemPaddingAround = 8.dp 49 val itemDividerHeight = 32.dp 51 val iconLarge = 48.dp [all …]
|
/frameworks/native/opengl/libs/EGL/ |
D | egl_platform_entries.cpp | 282 egl_display_t* dp = get_display(dpy); in eglInitializeImpl() local 283 if (!dp) return setError(EGL_BAD_DISPLAY, (EGLBoolean)EGL_FALSE); in eglInitializeImpl() 285 EGLBoolean res = dp->initialize(major, minor); in eglInitializeImpl() 295 egl_display_t* dp = get_display(dpy); in eglTerminateImpl() local 296 if (!dp) return setError(EGL_BAD_DISPLAY, (EGLBoolean)EGL_FALSE); in eglTerminateImpl() 298 EGLBoolean res = dp->terminate(); in eglTerminateImpl() 309 const egl_display_t* dp = validate_display(dpy); in eglGetConfigsImpl() local 310 if (!dp) return EGL_FALSE; in eglGetConfigsImpl() 321 res = cnx->egl.eglGetConfigs(dp->disp.dpy, configs, config_size, num_config); in eglGetConfigsImpl() 329 const egl_display_t* dp = validate_display(dpy); in eglChooseConfigImpl() local [all …]
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
D | PathClippingAnimation.cpp | 103 return new PathClippingAnimation(dp(100), dp(80), false, false); in __anon0974847c0202() 109 return new PathClippingAnimation(dp(100), dp(80), false, false, 1); in __anon0974847c0302() 115 return new PathClippingAnimation(dp(100), dp(350), false, false, 1); in __anon0974847c0402() 121 return new PathClippingAnimation(dp(100), dp(80), true, false); in __anon0974847c0502() 127 return new PathClippingAnimation(dp(100), dp(80), true, false, 1); in __anon0974847c0602() 133 return new PathClippingAnimation(dp(100), dp(350), true, false, 1); in __anon0974847c0702() 140 return new PathClippingAnimation(dp(100), dp(80), true, true); in __anon0974847c0802() 147 return new PathClippingAnimation(dp(100), dp(80), true, true, 1); in __anon0974847c0902() 154 return new PathClippingAnimation(dp(100), dp(350), true, true, 1); in __anon0974847c0a02()
|
D | ShadowGrid2Animation.cpp | 36 for (int x = dp(8); x < (width - dp(58)); x += dp(58)) { in createContent() 37 for (int y = dp(8); y < (height - dp(58)); y += dp(58)) { in createContent() 38 sp<RenderNode> card = createCard(x, y, dp(50), dp(50)); in createContent() 59 props.setElevation(dp(16)); in createCard() 61 dp(6), 1); in createCard()
|
D | ShadowGridAnimation.cpp | 36 for (int x = dp(16); x < (width - dp(116)); x += dp(116)) { in createContent() 37 for (int y = dp(16); y < (height - dp(116)); y += dp(116)) { in createContent() 38 sp<RenderNode> card = createCard(x, y, dp(100), dp(100)); in createContent() 59 props.setElevation(dp(16)); in createCard() 61 dp(6), 1); in createCard()
|
D | PartialDamageAnimation.cpp | 40 for (int x = dp(16); x < (width - dp(116)); x += dp(116)) { in createContent() 41 for (int y = dp(16); y < (height - dp(116)); y += dp(116)) { in createContent() 42 SkColor color = COLORS[static_cast<int>((y / dp(116))) % 4]; in createContent() 44 TestUtils::createNode(x, y, x + dp(100), y + dp(100), in createContent()
|
D | ListViewAnimation.cpp | 44 int size = cardHeight - (dp(10) * 2); in createRandomCharIcon() 70 int size = dp(20); in createBoxBitmap() 71 int stroke = dp(2); in createBoxBitmap() 94 canvas.drawRoundRect(0, 0, itemWidth, itemHeight, dp(6), dp(6), roundRectPaint); in createListItem() 98 textPaint.getSkFont().setSize(dp(20)); in createListItem() 102 TestUtils::drawUtf8ToCanvas(&canvas, buf, textPaint, itemHeight, dp(25)); in createListItem() 103 textPaint.getSkFont().setSize(dp(15)); in createListItem() 105 itemHeight, dp(45)); in createListItem() 108 canvas.drawBitmap(*randomIcon, dp(10), dp(10), nullptr); in createListItem() 111 canvas.drawBitmap(*box, itemWidth - dp(10) - box->width(), dp(10), nullptr); in createListItem()
|
D | RoundRectClippingAnimation.cpp | 77 return new RoundRectClippingAnimation(dp(40), dp(200)); in __anon6e2534650202() 84 return new RoundRectClippingAnimation(dp(20), dp(20)); in __anon6e2534650302() 90 return new RoundRectClippingAnimation(dp(100), dp(80)); in __anon6e2534650402() 96 return new RoundRectClippingAnimation(dp(100), dp(80), 1); in __anon6e2534650502() 103 return new RoundRectClippingAnimation(dp(100), dp(350), 1); in __anon6e2534650602()
|
D | StretchyListViewAnimation.cpp | 89 int size = cardHeight - (dp(10) * 2); in createRandomCharIcon() 115 int size = dp(20); in createBoxBitmap() 116 int stroke = dp(2); in createBoxBitmap() 144 canvas.drawRoundRect(0, 0, itemWidth, itemHeight, dp(6), dp(6), roundRectPaint); in createListItem() 148 textPaint.getSkFont().setSize(dp(20)); in createListItem() 152 TestUtils::drawUtf8ToCanvas(&canvas, buf, textPaint, itemHeight, dp(25)); in createListItem() 153 textPaint.getSkFont().setSize(dp(15)); in createListItem() 156 dp(45)); in createListItem() 159 itemHeight, dp(45)); in createListItem() 163 canvas.drawBitmap(*randomIcon, dp(10), dp(10), nullptr); in createListItem() [all …]
|
D | TvApp.cpp | 76 mSingleBitmap = mAllocator(dp(160), dp(120), kRGBA_8888_SkColorType, in createContent() 79 for (int y = dp(18) - dp(178); y < height - dp(18); y += dp(178)) { in createContent() 81 for (int x = dp(18); x < width - dp(18); x += dp(178)) { in createContent() 82 sp<RenderNode> card = createCard(x, y, dp(160), dp(160), isFirstCard); in createContent() 147 virtual float roundedCornerRadius() { return dp(2); } in roundedCornerRadius() 157 props.setElevation(dp(16)); in createCard() 166 : mAllocator(width, dp(120), kRGBA_8888_SkColorType, in createCard() 171 sp<RenderNode> cardImage = createSharedBitmapNode(canvas, 0, 0, width, dp(120), bitmap); in createCard() 182 createInfoNode(canvas, 0, dp(120), width, height, buffer, buffer2); in createCard() 244 virtual float roundedCornerRadius() override { return dp(0); } in roundedCornerRadius() [all …]
|
/frameworks/base/packages/SystemUI/compose/scene/tests/src/com/android/compose/animation/scene/ |
D | SceneTransitionLayoutTest.kt | 50 import androidx.compose.ui.unit.dp 68 private val LayoutSize = 300.dp 98 SharedFoo(size = 50.dp, childOffset = 0.dp, Modifier.align(Alignment.TopEnd)) in TestContent() 105 size = 100.dp, in TestContent() 106 childOffset = 50.dp, in TestContent() 115 size = 150.dp, in TestContent() 116 childOffset = 100.dp, in TestContent() 137 .size(30.dp) in SceneScope() 229 sharedFoo.assertWidthIsEqualTo(50.dp) in testSharedElement() 230 sharedFoo.assertHeightIsEqualTo(50.dp) in testSharedElement() [all …]
|
D | AnimatedSharedAsStateTest.kt | 34 import androidx.compose.ui.unit.dp 56 val dp: Dp, constant in com.android.compose.animation.scene.AnimatedSharedAsStateTest.Values 64 dp = lerp(start.dp, stop.dp, fraction), in lerp() 78 val dp by animateElementDpAsState(targetValues.dp, key = TestValues.Value3) in Foo() constant 83 snapshotFlow { Values(int, float, dp, color) }.collect(onCurrentValueChanged) in Foo() 98 val dp by animateElementDpAsState(targetValues.dp, key = TestValues.Value3) in SceneScope() constant 102 snapshotFlow { Values(int, float, dp, color) }.collect(onCurrentValueChanged) in SceneScope() 114 val dp by animateSceneDpAsState(targetValues.dp, key = TestValues.Value3) in SceneValues() constant 118 snapshotFlow { Values(int, float, dp, color) }.collect(onCurrentValueChanged) in SceneValues() 124 val fromValues = Values(int = 0, float = 0f, dp = 0.dp, color = Color.Red) in animateElementValues() [all …]
|
/frameworks/base/packages/CredentialManager/src/com/android/credentialmanager/common/ui/ |
D | Entry.kt | 54 import androidx.compose.ui.unit.dp 85 start = 8.dp, top = 16.dp, bottom = 16.dp 87 val iconSize = Modifier.size(24.dp) 95 modifier = Modifier.fillMaxWidth().heightIn(min = 56.dp).padding( in <lambda>() 98 horizontal = 8.dp, vertical = 16.dp, in <lambda>() 119 modifier = Modifier.fillMaxWidth().padding(top = 4.dp), in <lambda>() 141 modifier = Modifier.padding(start = 12.dp).size(24.dp), in <lambda>() 169 Box(modifier = Modifier.wrapContentSize().padding(start = 16.dp)) { in <lambda>() 174 modifier = Modifier.size(24.dp), in <lambda>() 260 modifier = Modifier.heightIn(min = 56.dp).wrapContentSize().padding( in ActionEntry() [all …]
|
D | ConfirmButton.kt | 26 import androidx.compose.ui.unit.dp 32 modifier = Modifier.padding(vertical = 4.dp), in ConfirmButton() 38 contentPadding = PaddingValues(start = 24.dp, top = 10.dp, end = 24.dp, bottom = 10.dp), in ConfirmButton()
|
/frameworks/base/packages/SystemUI/compose/scene/tests/src/com/android/compose/animation/scene/modifiers/ |
D | SizeTest.kt | 27 import androidx.compose.ui.unit.dp 47 fromSceneContent = { Box(Modifier.element(TestElements.Foo).size(100.dp)) }, in noResizeDuringTransitions() 52 Box(Modifier.element(TestElements.Foo).size(200.dp)) in noResizeDuringTransitions() 57 at(16) { rule.onNodeWithTag(parentTag).assertSizeIsEqualTo(200.dp, 200.dp) } in noResizeDuringTransitions() 58 at(32) { rule.onNodeWithTag(parentTag).assertSizeIsEqualTo(200.dp, 200.dp) } in noResizeDuringTransitions() 59 at(48) { rule.onNodeWithTag(parentTag).assertSizeIsEqualTo(200.dp, 200.dp) } in noResizeDuringTransitions() 60 after { rule.onNodeWithTag(parentTag).assertSizeIsEqualTo(200.dp, 200.dp) } in noResizeDuringTransitions()
|
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/common/ui/compose/windowinsets/ |
D | DisplayCutout.kt | 21 import androidx.compose.ui.unit.dp 26 val left: Dp = 0.dp, 27 val top: Dp = 0.dp, 28 val right: Dp = 0.dp, 29 val bottom: Dp = 0.dp, 37 fun width() = abs(right.value - left.value).dp in width() 38 fun height() = abs(bottom.value - top.value).dp in width()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/shortcut/ui/composable/ |
D | ShortcutHelper.kt | 81 import androidx.compose.ui.unit.dp in <lambda>() 118 .padding(start = 16.dp, end = 16.dp, top = 26.dp) in shouldUseSinglePane() 121 Spacer(modifier = Modifier.height(6.dp)) in shouldUseSinglePane() 123 Spacer(modifier = Modifier.height(16.dp)) in shouldUseSinglePane() 135 Column(verticalArrangement = Arrangement.spacedBy(2.dp)) { in CategoriesPanelSinglePane() 178 modifier = Modifier.fillMaxWidth().heightIn(min = 88.dp).padding(horizontal = 16.dp) in CategoryItemSinglePane() 181 Spacer(modifier = Modifier.width(16.dp)) in CategoryItemSinglePane() 223 Column(Modifier.padding(horizontal = 16.dp)) { in ShortcutCategoryDetailsSinglePane() 244 Column(Modifier.padding(vertical = 24.dp)) { in ShortcutSinglePane() 246 Spacer(modifier = Modifier.height(12.dp)) in ShortcutSinglePane() [all …]
|