Home
last modified time | relevance | path

Searched refs:widthDp (Results 1 – 6 of 6) 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/tests/dpi/src/android/dpi/cts/
DConfigurationScreenLayoutTest.java156 final int widthDp = (int) (bounds.width() / density); in reduceScreenLayout() local
158 final int longSize = Math.max(widthDp, heightDp); in reduceScreenLayout()
159 final int shortSize = Math.min(widthDp, heightDp); in reduceScreenLayout()
/cts/tests/framework/base/windowmanager/src/android/server/wm/display/
DAppConfigurationTests.java366 reportedSizes.heightDp >= reportedSizes.widthDp); in testFullscreenAppOrientationRequests()
376 reportedSizes.heightDp < reportedSizes.widthDp); in testFullscreenAppOrientationRequests()
398 initialReportedSizes.heightDp >= initialReportedSizes.widthDp); in testTranslucentAppOrientationRequests()
805 reportedSizes.heightDp < reportedSizes.widthDp); in testTaskMoveToBackOrientation()
831 reportedSizes.heightDp < reportedSizes.widthDp); in testTaskMoveToBackOrientation()
909 final boolean beforeConfigPortrait = rotationA.widthDp < rotationA.heightDp; in assertSizesRotate()
910 final boolean afterConfigPortrait = rotationB.widthDp < rotationB.heightDp; in assertSizesRotate()
931 assertThat(dockedSizes.widthDp, lessThan(fullscreenSizes.widthDp));
940 assertEquals(firstSize.widthDp, secondSize.widthDp);
/cts/tests/framework/base/windowmanager/src/android/server/wm/other/
DCompatScaleTests.java223 mAppSizesNormal.widthDp, in test_scalesCorrectly_inCompatDownscalingMode()
224 equalTo(mAppSizesDownscaled.widthDp)); in test_scalesCorrectly_inCompatDownscalingMode()
283 mAppSizesNormal.widthDp, in test_scalesCorrectly_inCompatUpscalingMode()
284 equalTo(mAppSizesUpscaled.widthDp)); in test_scalesCorrectly_inCompatUpscalingMode()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DCommandSession.java1190 public int widthDp;
1215 widthDp = config.screenWidthDp;
1230 return "SizeInfo: {widthDp=" + widthDp + " heightDp=" + heightDp
1248 return widthDp == that.widthDp
1266 result = 31 * result + widthDp;
1289 dest.writeInt(widthDp);
1305 widthDp = in.readInt();
/cts/tests/framework/base/windowmanager/src/android/server/wm/multidisplay/
DMultiDisplayPolicyTests.java193 assertTrue(updatedSize.widthDp <= initialSize.widthDp); in testDisplayResize()