Home
last modified time | relevance | path

Searched refs:widthDp (Results 1 – 4 of 4) 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/
DAppConfigurationTests.java797 final boolean beforeConfigPortrait = rotationA.widthDp < rotationA.heightDp; in assertSizesRotate()
798 final boolean afterConfigPortrait = rotationB.widthDp < rotationB.heightDp; in assertSizesRotate()
817 assertThat(dockedSizes.widthDp, lessThan(fullscreenSizes.widthDp));
826 assertEquals(firstSize.widthDp, secondSize.widthDp);
DMultiDisplayPolicyTests.java191 assertTrue(updatedSize.widthDp <= initialSize.widthDp); in testDisplayResize()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DCommandSession.java1026 public int widthDp;
1047 widthDp = config.screenWidthDp;
1058 return "SizeInfo: {widthDp=" + widthDp + " heightDp=" + heightDp
1074 return widthDp == that.widthDp
1092 dest.writeInt(widthDp);
1104 widthDp = in.readInt();