/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | RippleDrawableTest.java | 81 final int densityDpi = res.getConfiguration().densityDpi; in testPreloadDensity() local 83 verifyPreloadDensityInner(res, densityDpi); in testPreloadDensity() 85 DrawableTestUtils.setResourcesDensity(res, densityDpi); in testPreloadDensity() 89 private void verifyPreloadDensityInner(Resources res, int densityDpi) in verifyPreloadDensityInner() argument 102 DrawableTestUtils.setResourcesDensity(res, densityDpi / 2); in verifyPreloadDensityInner() 108 DrawableTestUtils.setResourcesDensity(res, densityDpi * 2); in verifyPreloadDensityInner() 114 DrawableTestUtils.setResourcesDensity(res, densityDpi); in verifyPreloadDensityInner()
|
D | VectorDrawableSizeTest.java | 69 final int densityDpi = mResources.getConfiguration().densityDpi; in testVectorDrawableSize() local 72 assertEquals(Math.round(mDpSize * densityDpi / 160f), drawable.getIntrinsicWidth()); in testVectorDrawableSize() 73 assertEquals(Math.round(mDpSize * densityDpi / 160f), drawable.getIntrinsicHeight()); in testVectorDrawableSize()
|
D | VectorDrawableTest.java | 407 final int densityDpi = mResources.getConfiguration().densityDpi; in testPreloadDensity() local 409 DrawableTestUtils.setResourcesDensity(mResources, densityDpi); in testPreloadDensity() 410 verifyPreloadDensityInner(mResources, densityDpi); in testPreloadDensity() 412 DrawableTestUtils.setResourcesDensity(mResources, densityDpi); in testPreloadDensity() 418 final int densityDpi = mResources.getConfiguration().densityDpi; in testPreloadDensity_tvdpi() local 423 DrawableTestUtils.setResourcesDensity(mResources, densityDpi); in testPreloadDensity_tvdpi() 434 private void verifyPreloadDensityInner(Resources res, int densityDpi) in verifyPreloadDensityInner() argument 446 DrawableTestUtils.setResourcesDensity(res, densityDpi / 2); in verifyPreloadDensityInner() 450 final float approxHalf = (float)(densityDpi / 2) / densityDpi; in verifyPreloadDensityInner() 454 DrawableTestUtils.setResourcesDensity(res, densityDpi * 2); in verifyPreloadDensityInner() [all …]
|
D | InsetDrawableTest.java | 440 final int densityDpi = res.getConfiguration().densityDpi; in testPreloadDensity() local 442 DrawableTestUtils.setResourcesDensity(res, densityDpi); in testPreloadDensity() 443 verifyPreloadDensityInner(res, densityDpi); in testPreloadDensity() 445 DrawableTestUtils.setResourcesDensity(res, densityDpi); in testPreloadDensity() 452 final int densityDpi = res.getConfiguration().densityDpi; in testPreloadDensity_tvdpi() local 457 DrawableTestUtils.setResourcesDensity(res, densityDpi); in testPreloadDensity_tvdpi() 467 private void verifyPreloadDensityInner(Resources res, int densityDpi) in verifyPreloadDensityInner() argument 480 DrawableTestUtils.setResourcesDensity(res, densityDpi / 2); in verifyPreloadDensityInner() 484 final float approxHalf = (float)(densityDpi / 2) / densityDpi; in verifyPreloadDensityInner() 489 DrawableTestUtils.setResourcesDensity(res, densityDpi * 2); in verifyPreloadDensityInner() [all …]
|
D | NinePatchDrawableTest.java | 383 int targetDensity = mResources.getDisplayMetrics().densityDpi; in testInflate() 445 final int densityDpi = res.getConfiguration().densityDpi; in verifySetTargetDensityOuter() local 451 DrawableTestUtils.setResourcesDensity(res, densityDpi); in verifySetTargetDensityOuter() 525 dm.densityDpi = density; in testSetTargetDensity_DisplayMetrics() 533 final int densityDpi = res.getConfiguration().densityDpi; in testPreloadDensity() local 538 DrawableTestUtils.setResourcesDensity(res, densityDpi); in testPreloadDensity() 592 … private static NinePatchDrawable preloadedDrawable(Resources res, int densityDpi, int sourceResId) in preloadedDrawable() argument 594 DrawableTestUtils.setResourcesDensity(res, densityDpi); in preloadedDrawable() 604 final int densityDpi = res.getConfiguration().densityDpi; in testOutlinePreloadDensity() local 608 DrawableTestUtils.setResourcesDensity(res, densityDpi); in testOutlinePreloadDensity() [all …]
|
D | AnimatedStateListDrawableTest.java | 176 final int densityDpi = res.getConfiguration().densityDpi; in runPreloadDensityTestForDrawable() local 178 runPreloadDensityTestForDrawableInner(res, densityDpi, drawableResId, isConstantSize); in runPreloadDensityTestForDrawable() 180 DrawableTestUtils.setResourcesDensity(res, densityDpi); in runPreloadDensityTestForDrawable() 184 private void runPreloadDensityTestForDrawableInner(Resources res, int densityDpi, in runPreloadDensityTestForDrawableInner() argument 209 DrawableTestUtils.setResourcesDensity(res, densityDpi / 2); in runPreloadDensityTestForDrawableInner() 218 DrawableTestUtils.setResourcesDensity(res, densityDpi * 2); in runPreloadDensityTestForDrawableInner() 227 DrawableTestUtils.setResourcesDensity(res, densityDpi); in runPreloadDensityTestForDrawableInner()
|
D | GradientDrawableTest.java | 665 final int densityDpi = mResources.getConfiguration().densityDpi; in testPreloadDensity() local 667 DrawableTestUtils.setResourcesDensity(mResources, densityDpi); in testPreloadDensity() 668 verifyPreloadDensityInner(mResources, densityDpi); in testPreloadDensity() 670 DrawableTestUtils.setResourcesDensity(mResources, densityDpi); in testPreloadDensity() 676 final int densityDpi = mResources.getConfiguration().densityDpi; in testPreloadDensity_tvdpi() local 681 DrawableTestUtils.setResourcesDensity(mResources, densityDpi); in testPreloadDensity_tvdpi() 773 private void verifyPreloadDensityInner(Resources res, int densityDpi) in verifyPreloadDensityInner() argument 790 DrawableTestUtils.setResourcesDensity(res, densityDpi / 2); in verifyPreloadDensityInner() 794 final float approxHalf = (float)(densityDpi / 2) / densityDpi; in verifyPreloadDensityInner() 801 DrawableTestUtils.setResourcesDensity(res, densityDpi * 2); in verifyPreloadDensityInner() [all …]
|
D | StateListDrawableTest.java | 199 final int densityDpi = res.getConfiguration().densityDpi; in verifyPreloadDensityTestForDrawable() local 201 … verifyPreloadDensityTestForDrawableInner(res, densityDpi, drawableResId, isConstantSize); in verifyPreloadDensityTestForDrawable() 203 DrawableTestUtils.setResourcesDensity(res, densityDpi); in verifyPreloadDensityTestForDrawable() 207 private void verifyPreloadDensityTestForDrawableInner(Resources res, int densityDpi, in verifyPreloadDensityTestForDrawableInner() argument 235 DrawableTestUtils.setResourcesDensity(res, densityDpi / 2); in verifyPreloadDensityTestForDrawableInner() 245 DrawableTestUtils.setResourcesDensity(res, densityDpi * 2); in verifyPreloadDensityTestForDrawableInner() 254 DrawableTestUtils.setResourcesDensity(res, densityDpi); in verifyPreloadDensityTestForDrawableInner()
|
D | DrawableTestUtils.java | 124 public static void setResourcesDensity(Resources res, int densityDpi) { in setResourcesDensity() argument 127 config.densityDpi = densityDpi; in setResourcesDensity()
|
D | LayerDrawableTest.java | 1687 final int densityDpi = res.getConfiguration().densityDpi; in testPreloadDensity() local 1689 DrawableTestUtils.setResourcesDensity(res, densityDpi); in testPreloadDensity() 1690 verifyPreloadDensityInner(res, densityDpi); in testPreloadDensity() 1692 DrawableTestUtils.setResourcesDensity(res, densityDpi); in testPreloadDensity() 1699 final int densityDpi = res.getConfiguration().densityDpi; in testPreloadDensity_tvdpi() local 1704 DrawableTestUtils.setResourcesDensity(res, densityDpi); in testPreloadDensity_tvdpi() 1708 private void verifyPreloadDensityInner(Resources res, int densityDpi) in verifyPreloadDensityInner() argument 1735 DrawableTestUtils.setResourcesDensity(res, densityDpi / 2); in verifyPreloadDensityInner() 1739 final float approxHalf = (float)(densityDpi / 2) / densityDpi; in verifyPreloadDensityInner() 1766 DrawableTestUtils.setResourcesDensity(res, densityDpi * 2); in verifyPreloadDensityInner() [all …]
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | BitmapDrawableTest.java | 72 final int densityDpi = res.getConfiguration().densityDpi; in testPreloadDensity() local 78 setResourcesDensity(res, densityDpi); in testPreloadDensity() 142 private static void setResourcesDensity(Resources res, int densityDpi) { in setResourcesDensity() argument 145 config.densityDpi = densityDpi; in setResourcesDensity()
|
/cts/tests/tests/keystore/src/android/server/am/ |
D | ProtoExtractors.java | 40 config.densityDpi = proto.densityDpi; in extract()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | ProtoExtractors.java | 40 config.densityDpi = proto.densityDpi; in extract()
|
D | CommandSession.java | 1033 public int densityDpi; 1052 densityDpi = config.densityDpi; 1061 + " smallestWidthDp=" + smallestWidthDp + " densityDpi=" + densityDpi 1081 && densityDpi == that.densityDpi 1099 dest.writeInt(densityDpi); 1111 densityDpi = in.readInt();
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | FreeformWindowingModeTests.java | 122 final int densityDpi = in testActivityLifeCycleOnResizeFreeformTask() local 125 ActivityAndWindowManagersState.dpToPx(TEST_TASK_SIZE_DP_1, densityDpi); in testActivityLifeCycleOnResizeFreeformTask() 127 ActivityAndWindowManagersState.dpToPx(TEST_TASK_SIZE_DP_2, densityDpi); in testActivityLifeCycleOnResizeFreeformTask()
|
D | ManifestLayoutTests.java | 153 final int densityDpi = mDisplay.getDpi(); in testLayout() local 154 expectedWidthPx = dpToPx(DEFAULT_WIDTH_DP, densityDpi); in testLayout() 155 expectedHeightPx = dpToPx(DEFAULT_HEIGHT_DP, densityDpi); in testLayout()
|
D | ConfigChangeTests.java | 283 final int densityDpi = getActivityDensityDpi(activityName); in testChangeFontScale() local 294 scaledPixelsToPixels(EXPECTED_FONT_SIZE_SP, fontScale, densityDpi)); in testChangeFontScale() 337 private static int scaledPixelsToPixels(float sp, float fontScale, int densityDpi) { in scaledPixelsToPixels() argument 339 float f = densityDpi * (1.0f / DEFAULT_DENSITY) * fontScale * sp; in scaledPixelsToPixels()
|
D | MultiDisplayTestBase.java | 121 if (config.densityDpi == dpi && config.screenWidthDp == width in getDisplayState() 272 VirtualDisplaySession setDensityDpi(int densityDpi) { in setDensityDpi() argument 273 mDensityDpi = densityDpi; in setDensityDpi() 628 if (display.mOverrideConfiguration.densityDpi == 0) { in areDisplaysValid()
|
D | DisplayTests.java | 70 final int newDensityDpi = newDisplay.mFullConfiguration.densityDpi; in testCreateVirtualDisplayWithCustomConfig()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ContextThemeWrapperTest.java | 144 final int realDensity = mContext.getResources().getConfiguration().densityDpi; in testApplyOverrideConfiguration() 151 overrideConfig.densityDpi = expectedDensity; in testApplyOverrideConfiguration() 155 assertEquals(expectedDensity, actualConfiguration.densityDpi); in testApplyOverrideConfiguration()
|
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/ |
D | VirtualDisplayActivity.java | 172 final int densityDpi = entry.extras.getInt(KEY_DENSITY_DPI, DEFAULT_DENSITY_DPI); in surfaceCreated() local 205 Log.d(TAG, "createVirtualDisplay: " + width + "x" + height + ", dpi: " + densityDpi in surfaceCreated() 213 height, densityDpi, surface, flags); in surfaceCreated() 215 new VirtualDisplayEntry(virtualDisplay, entry.surfaceView, densityDpi, in surfaceCreated()
|
D | FontScaleActivity.java | 72 final int fontActivityDpi = getResources().getDisplayMetrics().densityDpi; in dumpActivityDpi()
|
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
D | ScreenDeviceInfo.java | 44 store.addResult("density_dpi", metrics.densityDpi); in collectDeviceInfo()
|
/cts/tests/tests/dpi/src/android/dpi/cts/ |
D | ConfigurationTest.java | 96 (float) mMetrics.densityDpi / DisplayMetrics.DENSITY_DEFAULT, in testScreenConfiguration()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/ |
D | ProjectionActivity.java | 67 … mService.startRendering(mSurface, mWidth, mHeight, metrics.densityDpi, mType.ordinal());
|