Home
last modified time | relevance | path

Searched refs:widthDp (Results 1 – 5 of 5) sorted by relevance

/cts/tests/tests/theme/src/android/theme/cts/
DWatchPercentageScreenDimenTest.java103 float widthDp = mDisplayMetrics.widthPixels / mDisplayMetrics.density; in getMaxErrorRatio() local
104 return (widthDp - (float) Math.floor(widthDp)) / widthDp; in getMaxErrorRatio()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DCompatScaleTests.java132 mAppSizesNormal.widthDp, mAppSizesDownscaled.widthDp); in test_config_screenSize_inDPs_doesNotChange_inCompatDownscalingMode()
DAppConfigurationTests.java873 final boolean beforeConfigPortrait = rotationA.widthDp < rotationA.heightDp; in assertSizesRotate()
874 final boolean afterConfigPortrait = rotationB.widthDp < rotationB.heightDp; in assertSizesRotate()
895 assertThat(dockedSizes.widthDp, lessThan(fullscreenSizes.widthDp));
904 assertEquals(firstSize.widthDp, secondSize.widthDp);
DMultiDisplayPolicyTests.java186 assertTrue(updatedSize.widthDp <= initialSize.widthDp); in testDisplayResize()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DCommandSession.java1131 public int widthDp;
1156 widthDp = config.screenWidthDp;
1171 return "SizeInfo: {widthDp=" + widthDp + " heightDp=" + heightDp
1189 return widthDp == that.widthDp
1207 result = 31 * result + widthDp;
1230 dest.writeInt(widthDp);
1246 widthDp = in.readInt();