/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/ |
D | DataProfileTest.java | 112 DataProfile dp = DcTracker.createDataProfile(mApn1, mApn1.getProfileId(), false); in testCreateFromApnSetting() local 113 assertEquals(mApn1.getProfileId(), dp.getProfileId()); in testCreateFromApnSetting() 114 assertEquals(mApn1.getApnName(), dp.getApn()); in testCreateFromApnSetting() 115 assertEquals(mApn1.getProtocol(), dp.getProtocolType()); in testCreateFromApnSetting() 116 assertEquals(RILConstants.SETUP_DATA_AUTH_PAP_CHAP, dp.getAuthType()); in testCreateFromApnSetting() 117 assertEquals(mApn1.getUser(), dp.getUserName()); in testCreateFromApnSetting() 118 assertEquals(mApn1.getPassword(), dp.getPassword()); in testCreateFromApnSetting() 119 assertEquals(0, dp.getType()); // TYPE_COMMON in testCreateFromApnSetting() 120 assertEquals(mApn1.getWaitTime(), dp.getWaitTime()); in testCreateFromApnSetting() 121 assertEquals(mApn1.isEnabled(), dp.isEnabled()); in testCreateFromApnSetting() [all …]
|
/frameworks/native/opengl/libs/EGL/ |
D | egl_platform_entries.cpp | 320 egl_display_ptr dp = get_display(dpy); in eglInitializeImpl() local 321 if (!dp) return setError(EGL_BAD_DISPLAY, (EGLBoolean)EGL_FALSE); in eglInitializeImpl() 323 EGLBoolean res = dp->initialize(major, minor); in eglInitializeImpl() 334 egl_display_ptr dp = get_display(dpy); in eglTerminateImpl() local 335 if (!dp) return setError(EGL_BAD_DISPLAY, (EGLBoolean)EGL_FALSE); in eglTerminateImpl() 337 EGLBoolean res = dp->terminate(); in eglTerminateImpl() 350 const egl_display_ptr dp = validate_display(dpy); in eglGetConfigsImpl() local 351 if (!dp) return EGL_FALSE; in eglGetConfigsImpl() 363 dp->disp.dpy, configs, config_size, num_config); in eglGetConfigsImpl() 373 const egl_display_ptr dp = validate_display(dpy); in eglChooseConfigImpl() local [all …]
|
D | egl.cpp | 89 egl_display_ptr dp = get_display(dpy); in validate_display() local 90 if (!dp) in validate_display() 92 if (!dp->isReady()) in validate_display() 95 return dp; in validate_display() 101 egl_display_ptr dp = validate_display(dpy); in validate_display_connection() local 102 if (!dp) in validate_display_connection() 103 return dp; in validate_display_connection() 108 return dp; in validate_display_connection()
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
D | ShadowGridAnimation.cpp | 34 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()
|
D | ShadowGrid2Animation.cpp | 34 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()
|
D | ListViewAnimation.cpp | 35 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()
|
D | PartialDamageAnimation.cpp | 38 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()
|
D | TvApp.cpp | 71 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 …]
|
D | OpPropAnimation.cpp | 66 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()
|
D | ListOfFadedTextAnimation.cpp | 34 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()
|
D | RecentsAnimation.cpp | 36 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()
|
D | RoundRectClippingAnimation.cpp | 65 return new RoundRectClippingAnimation(dp(40), dp(200)); in __anon6e2534650202() 72 return new RoundRectClippingAnimation(dp(20), dp(20)); in __anon6e2534650302()
|
D | MagnifierAnimation.cpp | 51 props.setElevation(dp(16)); in createContent() 53 dp(6), 1); in createContent()
|
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/ |
D | CaptivePortalLoginActivity.java | 390 private String dp(int dp) { in dp() argument 392 return Integer.toString(dp) + "px"; in dp() 398 float dp = sp * mDpPerSp; in sp() local 400 dp *= 1.3; in sp() 402 return dp((int) dp); in sp() 407 + "body { margin-left:" + dp(48) + "; margin-right:" + dp(48) + "; " 408 + "margin-top:" + dp(96) + "; background-color:#fafafa; }" 409 + "img { width:" + dp(48) + "; height:" + dp(48) + "; }" 410 + "div.warn { font-size:" + sp(16) + "; margin-top:" + dp(16) + "; " 412 + "div.example { font-size:" + sp(14) + "; margin-top:" + dp(16) + "; " [all …]
|
/frameworks/base/libs/hwui/tests/common/ |
D | TestListViewSceneBase.cpp | 30 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/ |
D | QuaresActivity.kt | 135 val dp = resources.displayMetrics.density in checkVictory() constant 140 it.setBounds(0, 0, (32 * dp).toInt(), (32 * dp).toInt()) in checkVictory() 154 val dp = resources.displayMetrics.density in loadPuzzle() constant 177 val size = (minSide / (q.height + 0.5) * dp).toInt() in loadPuzzle() 219 params.height = (96 * dp).toInt() in loadPuzzle() 230 params.width = (96 * dp).toInt() in loadPuzzle()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | DataConnection.java | 706 DataProfile dp = DcTracker.createDataProfile(mApnSetting, cp.mProfileId, in connect() local 778 dp, in connect() local 785 dp.getProfileId(), dp.getApn(), dp.getProtocolType()); in connect() 813 DisconnectParams dp = (DisconnectParams) o; in tearDownData() local 814 apnContext = dp.mApnContext; in tearDownData() 815 if (TextUtils.equals(dp.mReason, Phone.REASON_RADIO_TURNED_OFF) in tearDownData() 816 || TextUtils.equals(dp.mReason, Phone.REASON_PDP_RESET)) { in tearDownData() 818 } else if (dp.mReleaseType == DcTracker.RELEASE_TYPE_HANDOVER) { in tearDownData() 896 private void notifyDisconnectCompleted(DisconnectParams dp, boolean sendAll) { in notifyDisconnectCompleted() argument 902 if (dp != null && dp.mOnCompletedMsg != null) { in notifyDisconnectCompleted() [all …]
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
D | RenderingJitter.java | 125 mPaint.setTextSize(dp(10)); in PointGraphView() 128 mLabelWidth = textBounds.width() + dp(2); in PointGraphView() 144 private float dp(float dp) { in dp() argument 145 return mDensity * dp; in dp() 154 mPaint.setStrokeWidth(dp(1)); in onDraw() 164 mPaint.setStrokeWidth(dp(2)); in onDraw() 174 int graphWidth = (int) ((w - mLabelWidth - dp(1)) / mDensity); in onSizeChanged()
|
/frameworks/opt/setupwizard/library/gingerbread/test/robotest/src/com/android/setupwizardlib/util/ |
D | DimensionConsistencyTest.java | 61 private int dp2Px(float dp) { in dp2Px() argument 63 return (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, displayMetrics); in dp2Px()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | NavigationBarEdgePanel.java | 253 mBaseTranslation = dp(BASE_TRANSLATION_DP); in NavigationBarEdgePanel() 254 mArrowLength = dp(ARROW_LENGTH_DP); in NavigationBarEdgePanel() 255 mArrowThickness = dp(ARROW_THICKNESS_DP); in NavigationBarEdgePanel() 256 mMinDeltaForSwitch = dp(32); in NavigationBarEdgePanel() 556 setDesiredTranslation(mDesiredTranslation - dp(32), true /* animated */); in triggerBack() 751 private float dp(float dp) { in dp() argument 752 return mDensity * dp; in dp()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/ |
D | DisplayUtils.java | 31 public static int convertDpToPx(float dp, Context context) { in convertDpToPx() argument 37 return (int) Math.ceil(dp * dm.density); in convertDpToPx()
|
/frameworks/native/libs/ui/include/ui/ |
D | Rect.h | 181 Rect& offsetBy(const Point& dp) { in offsetBy() argument 182 return offsetBy(dp.x, dp.y); in offsetBy()
|
/frameworks/base/libs/hwui/tests/macrobench/ |
D | TestSceneRunner.cpp | 139 proxy->setLightGeometry((Vector3){lightX, dp(-200.0f), dp(800.0f)}, dp(800.0f)); in run()
|
/frameworks/native/libs/ui/include_vndk/ui/ |
D | Rect.h | 181 Rect& offsetBy(const Point& dp) { in offsetBy() argument 182 return offsetBy(dp.x, dp.y); in offsetBy()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/geometry/ |
D | Quad.java | 95 PointF dp = new PointF(topRight.x - topLeft.x, topRight.y - topLeft.y); in fromLineAndHeight() local 96 float len = dp.length(); in fromLineAndHeight() 97 PointF np = new PointF(height * (dp.y / len), height * (dp.x / len)); in fromLineAndHeight()
|