Home
last modified time | relevance | path

Searched refs:dp (Results 1 – 25 of 76) sorted by relevance

1234

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/data/
DDataProfileTest.java125 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 …]
DDataProfileManagerTest.java506 DataProfile dp = mDataProfileManagerUT.getDataProfileForNetworkRequest(tnr, in testGetDataProfileForNetworkRequest() local
509 assertThat(dp.canSatisfy(tnr.getCapabilities())).isTrue(); in testGetDataProfileForNetworkRequest()
510 assertThat(dp.getApnSetting().getApnName()).isEqualTo(GENERAL_PURPOSE_APN); in testGetDataProfileForNetworkRequest()
517 dp = mDataProfileManagerUT.getDataProfileForNetworkRequest(tnr, in testGetDataProfileForNetworkRequest()
520 assertThat(dp.canSatisfy(tnr.getCapabilities())).isTrue(); in testGetDataProfileForNetworkRequest()
521 assertThat(dp.getApnSetting().getApnName()).isEqualTo(GENERAL_PURPOSE_APN); in testGetDataProfileForNetworkRequest()
527 dp = mDataProfileManagerUT.getDataProfileForNetworkRequest(tnr, in testGetDataProfileForNetworkRequest()
529 assertThat(dp.canSatisfy(tnr.getCapabilities())).isTrue(); in testGetDataProfileForNetworkRequest()
530 assertThat(dp.getApnSetting().getApnName()).isEqualTo(IMS_APN); in testGetDataProfileForNetworkRequest()
536 dp = mDataProfileManagerUT.getDataProfileForNetworkRequest(tnr, in testGetDataProfileForNetworkRequest()
[all …]
/frameworks/native/opengl/libs/EGL/
Degl_platform_entries.cpp280 egl_display_t* dp = get_display(dpy); in eglInitializeImpl() local
281 if (!dp) return setError(EGL_BAD_DISPLAY, (EGLBoolean)EGL_FALSE); in eglInitializeImpl()
283 EGLBoolean res = dp->initialize(major, minor); in eglInitializeImpl()
293 egl_display_t* dp = get_display(dpy); in eglTerminateImpl() local
294 if (!dp) return setError(EGL_BAD_DISPLAY, (EGLBoolean)EGL_FALSE); in eglTerminateImpl()
296 EGLBoolean res = dp->terminate(); in eglTerminateImpl()
307 const egl_display_t* dp = validate_display(dpy); in eglGetConfigsImpl() local
308 if (!dp) return EGL_FALSE; in eglGetConfigsImpl()
319 res = cnx->egl.eglGetConfigs(dp->disp.dpy, configs, config_size, num_config); in eglGetConfigsImpl()
327 const egl_display_t* dp = validate_display(dpy); in eglChooseConfigImpl() local
[all …]
/frameworks/base/libs/hwui/tests/common/scenes/
DPathClippingAnimation.cpp101 return new PathClippingAnimation(dp(100), dp(80), false, false); in __anon24a6f6280202()
107 return new PathClippingAnimation(dp(100), dp(80), false, false, 1); in __anon24a6f6280302()
113 return new PathClippingAnimation(dp(100), dp(350), false, false, 1); in __anon24a6f6280402()
119 return new PathClippingAnimation(dp(100), dp(80), true, false); in __anon24a6f6280502()
125 return new PathClippingAnimation(dp(100), dp(80), true, false, 1); in __anon24a6f6280602()
131 return new PathClippingAnimation(dp(100), dp(350), true, false, 1); in __anon24a6f6280702()
138 return new PathClippingAnimation(dp(100), dp(80), true, true); in __anon24a6f6280802()
145 return new PathClippingAnimation(dp(100), dp(80), true, true, 1); in __anon24a6f6280902()
152 return new PathClippingAnimation(dp(100), dp(350), true, true, 1); in __anon24a6f6280a02()
DShadowGrid2Animation.cpp34 for (int x = dp(8); x < (width - dp(58)); x += dp(58)) { in createContent()
35 for (int y = dp(8); y < (height - dp(58)); y += dp(58)) { in createContent()
36 sp<RenderNode> card = createCard(x, y, dp(50), dp(50)); in createContent()
57 props.setElevation(dp(16)); in createCard()
59 dp(6), 1); in createCard()
DShadowGridAnimation.cpp34 for (int x = dp(16); x < (width - dp(116)); x += dp(116)) { in createContent()
35 for (int y = dp(16); y < (height - dp(116)); y += dp(116)) { in createContent()
36 sp<RenderNode> card = createCard(x, y, dp(100), dp(100)); in createContent()
57 props.setElevation(dp(16)); in createCard()
59 dp(6), 1); in createCard()
DPartialDamageAnimation.cpp38 for (int x = dp(16); x < (width - dp(116)); x += dp(116)) { in createContent()
39 for (int y = dp(16); y < (height - dp(116)); y += dp(116)) { in createContent()
40 SkColor color = COLORS[static_cast<int>((y / dp(116))) % 4]; in createContent()
42 TestUtils::createNode(x, y, x + dp(100), y + dp(100), in createContent()
DListViewAnimation.cpp35 int size = cardHeight - (dp(10) * 2); in createRandomCharIcon()
61 int size = dp(20); in createBoxBitmap()
62 int stroke = dp(2); in createBoxBitmap()
85 canvas.drawRoundRect(0, 0, itemWidth, itemHeight, dp(6), dp(6), roundRectPaint); in createListItem()
89 textPaint.getSkFont().setSize(dp(20)); in createListItem()
93 TestUtils::drawUtf8ToCanvas(&canvas, buf, textPaint, itemHeight, dp(25)); in createListItem()
94 textPaint.getSkFont().setSize(dp(15)); in createListItem()
96 itemHeight, dp(45)); in createListItem()
99 canvas.drawBitmap(*randomIcon, dp(10), dp(10), nullptr); in createListItem()
102 canvas.drawBitmap(*box, itemWidth - dp(10) - box->width(), dp(10), nullptr); in createListItem()
DRoundRectClippingAnimation.cpp75 return new RoundRectClippingAnimation(dp(40), dp(200)); in __anon80bd91910202()
82 return new RoundRectClippingAnimation(dp(20), dp(20)); in __anon80bd91910302()
88 return new RoundRectClippingAnimation(dp(100), dp(80)); in __anon80bd91910402()
94 return new RoundRectClippingAnimation(dp(100), dp(80), 1); in __anon80bd91910502()
101 return new RoundRectClippingAnimation(dp(100), dp(350), 1); in __anon80bd91910602()
DStretchyListViewAnimation.cpp80 int size = cardHeight - (dp(10) * 2); in createRandomCharIcon()
106 int size = dp(20); in createBoxBitmap()
107 int stroke = dp(2); in createBoxBitmap()
135 canvas.drawRoundRect(0, 0, itemWidth, itemHeight, dp(6), dp(6), roundRectPaint); in createListItem()
139 textPaint.getSkFont().setSize(dp(20)); in createListItem()
143 TestUtils::drawUtf8ToCanvas(&canvas, buf, textPaint, itemHeight, dp(25)); in createListItem()
144 textPaint.getSkFont().setSize(dp(15)); in createListItem()
147 dp(45)); in createListItem()
150 itemHeight, dp(45)); in createListItem()
154 canvas.drawBitmap(*randomIcon, dp(10), dp(10), nullptr); in createListItem()
[all …]
DTvApp.cpp71 mSingleBitmap = mAllocator(dp(160), dp(120), kRGBA_8888_SkColorType, in createContent()
74 for (int y = dp(18) - dp(178); y < height - dp(18); y += dp(178)) { in createContent()
76 for (int x = dp(18); x < width - dp(18); x += dp(178)) { in createContent()
77 sp<RenderNode> card = createCard(x, y, dp(160), dp(160), isFirstCard); in createContent()
142 virtual float roundedCornerRadius() { return dp(2); } in roundedCornerRadius()
152 props.setElevation(dp(16)); in createCard()
161 : mAllocator(width, dp(120), kRGBA_8888_SkColorType, in createCard()
166 sp<RenderNode> cardImage = createSharedBitmapNode(canvas, 0, 0, width, dp(120), bitmap); in createCard()
177 createInfoNode(canvas, 0, dp(120), width, height, buffer, buffer2); in createCard()
239 virtual float roundedCornerRadius() override { return dp(0); } in roundedCornerRadius()
[all …]
DOpPropAnimation.cpp66 mRoundRectRx->value = dp(10) + value * dp(40); in doFrame()
67 mRoundRectRy->value = dp(10) + value * dp(80); in doFrame()
68 mCircleRadius->value = value * dp(200); in doFrame()
DListOfFadedTextAnimation.cpp34 int length = dp(100); in createListItem()
37 textPaint.getSkFont().setSize(dp(20)); in createListItem()
39 TestUtils::drawUtf8ToCanvas(&canvas, "not that long long text", textPaint, dp(10), dp(30)); in createListItem()
DRecentsAnimation.cpp36 int cardsize = std::min(width, height) - dp(64); in createContent()
41 int x = dp(32); in createContent()
49 card->mutateStagingProperties().setElevation(i * dp(8)); in createContent()
73 props.setElevation(dp(16)); in createCard()
74 props.mutableOutline().setRoundRect(0, 0, width, height, dp(10), 1); in createCard()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/
DExampleFeature.kt37 import androidx.compose.ui.unit.dp
49 if (maxWidth < 600.dp) { in ExampleFeature()
52 Spacer(Modifier.size(16.dp)) in ExampleFeature()
58 Spacer(Modifier.size(16.dp)) in ExampleFeature()
70 shape = RoundedCornerShape(28.dp), in CounterTile()
74 Modifier.clickable { count++ }.padding(16.dp), in CounterTile()
87 shape = RoundedCornerShape(28.dp), in MaxWidthTile()
91 Modifier.padding(16.dp) in MaxWidthTile()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/people/ui/compose/
DPeopleScreen.kt49 import androidx.compose.ui.unit.dp in <lambda>()
127 Spacer(Modifier.height(24.dp)) in PeopleScreenWithConversations()
131 Modifier.padding(horizontal = 24.dp), in PeopleScreenWithConversations()
141 top = 16.dp, in PeopleScreenWithConversations()
143 start = 8.dp, in PeopleScreenWithConversations()
144 end = 8.dp, in PeopleScreenWithConversations()
154 item { Spacer(Modifier.height(35.dp)) } in PeopleScreenWithConversations()
171 Modifier.padding(start = 16.dp), in LazyListScope()
176 Spacer(Modifier.height(10.dp)) in LazyListScope()
184 thickness = 2.dp, in LazyListScope()
[all …]
DPeopleScreenEmpty.kt43 import androidx.compose.ui.unit.dp
61 Spacer(Modifier.height(50.dp)) in PeopleScreenEmpty()
76 Modifier.fillMaxWidth().defaultMinSize(minHeight = 56.dp), in PeopleScreenEmpty()
92 shape = RoundedCornerShape(28.dp), in ExampleTile()
97 Modifier.padding(vertical = 20.dp, horizontal = 16.dp), in ExampleTile()
105 Modifier.size(40.dp), in ExampleTile()
107 Spacer(Modifier.height(2.dp)) in ExampleTile()
116 Spacer(Modifier.width(24.dp)) in ExampleTile()
/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/
DPlatformButtons.kt29 import androidx.compose.ui.unit.dp
40 modifier = modifier.padding(vertical = 6.dp).height(36.dp), in PlatformButton()
58 modifier = modifier.padding(vertical = 6.dp).height(36.dp), in PlatformOutlinedButton()
84 private val ButtonPaddings = PaddingValues(horizontal = 16.dp, vertical = 8.dp)
107 width = 1.dp, in outlineButtonBorder()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/data/
DDataProfileManager.java291 .filter(dp -> dp.canSatisfy(NetworkCapabilities.NET_CAPABILITY_ENTERPRISE)) in updateDataProfiles()
304 .filter(dp -> dp.canSatisfy(NetworkCapabilities.NET_CAPABILITY_IMS)) in updateDataProfiles()
318 .filter(dp -> dp.canSatisfy(NetworkCapabilities.NET_CAPABILITY_EIMS)) in updateDataProfiles()
434 .filter(dp -> dp.getApnSetting() != null in getPreferredDataProfileFromDb()
435 && dp.getApnSetting().getId() == apnId) in getPreferredDataProfileFromDb()
453 .filter(dp -> dp.getApnSetting() != null && defaultPreferredApn.equals( in getPreferredDataProfileFromConfig()
454 dp.getApnSetting().getApnName())) in getPreferredDataProfileFromConfig()
501 .filter(dp -> areDataProfilesSharingApn(dp, mPreferredDataProfile)) in updatePreferredDataProfile()
545 .sorted(Comparator.comparing((DataProfile dp) -> !dp.equals(mPreferredDataProfile))) in updateInitialAttachDataProfileAtModem()
550 .filter(dp -> dp.canSatisfy(DataUtils.apnTypeToNetworkCapability(apnType))) in updateInitialAttachDataProfileAtModem()
[all …]
/frameworks/base/tests/SilkFX/src/com/android/test/silkfx/hdr/
DGlowingCard.kt37 radius = 10.dp()
60 paint.strokeWidth = 4.dp() in onDraw()
69 rect.inset(3.dp(), 3.dp()) in onDraw()
76 rect.inset(5.dp(), 5.dp()) in onDraw()
77 paint.textSize = 14.dp() in onDraw()
DRadialGlow.kt41 glow = RadialGradient(0f, 0f, 100.dp(), glowColor, bgColor, Shader.TileMode.CLAMP)
57 val radius = 10.dp() in onDraw()
62 paint.textSize = 18.dp() in onDraw()
87 canvas.drawText("Tap to toggle animation", rect.centerX(), innerRect.top - 4.dp(), paint) in onDraw()
88 canvas.drawText("Outside text", rect.centerX(), rect.bottom - 4.dp(), paint) in onDraw()
89 canvas.drawText("Inside text", innerRect.centerX(), innerRect.bottom - 4.dp(), paint) in onDraw()
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DCaptivePortalLoginActivity.java389 private String dp(int dp) { in dp() method in CaptivePortalLoginActivity.MyWebViewClient
391 return Integer.toString(dp) + "px"; in dp()
397 float dp = sp * mDpPerSp; in sp() local
399 dp *= 1.3; in sp()
401 return dp((int) dp); in sp()
406 + "body { margin-left:" + dp(48) + "; margin-right:" + dp(48) + "; "
407 + "margin-top:" + dp(96) + "; background-color:#fafafa; }"
408 + "img { width:" + dp(48) + "; height:" + dp(48) + "; }"
409 + "div.warn { font-size:" + sp(16) + "; margin-top:" + dp(16) + "; "
411 + "div.example { font-size:" + sp(14) + "; margin-top:" + dp(16) + "; "
[all …]
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/qs/footer/ui/compose/
DFooterActions.kt62 import androidx.compose.ui.unit.dp in <lambda>()
159 val inset = 4.dp.roundToPx() in <lambda>()
250 modifier = Modifier.size(20.dp), in IconButton()
277 Box(Modifier.size(40.dp)) { in NumberButton()
310 Canvas(modifier.size(12.dp).semantics { this.contentDescription = contentDescription }) { in NewChangesDot()
328 borderStroke = BorderStroke(1.dp, LocalAndroidColorScheme.current.colorBackground), in TextButton()
329 modifier = modifier.padding(horizontal = 4.dp), in TextButton()
336 Icon(icon, Modifier.padding(end = 12.dp).size(20.dp)) in TextButton()
350 NewChangesDot(Modifier.padding(start = 8.dp)) in TextButton()
357 Modifier.padding(start = 8.dp).size(20.dp), in TextButton()
/frameworks/base/libs/hwui/tests/common/
DTestListViewSceneBase.cpp30 mItemHeight = dp(60); in createContent()
31 mItemSpacing = dp(16); in createContent()
32 mItemWidth = std::min((height - mItemSpacing * 2), (int)dp(300)); in createContent()
55 int scrollPx = dp(frameNr) * 3; in doFrame()
/frameworks/base/packages/EasterEgg/src/com/android/egg/quares/
DQuaresActivity.kt136 val dp = resources.displayMetrics.density in checkVictory() constant
141 it.setBounds(0, 0, (32 * dp).toInt(), (32 * dp).toInt()) in checkVictory()
155 val dp = resources.displayMetrics.density in loadPuzzle() constant
178 val size = (minSide / (q.height + 0.5) * dp).toInt() in loadPuzzle()
220 params.height = (96 * dp).toInt() in loadPuzzle()
231 params.width = (96 * dp).toInt() in loadPuzzle()

1234