Searched refs:widthDp (Results 1 – 6 of 6) sorted by relevance
103 float widthDp = mDisplayMetrics.widthPixels / mDisplayMetrics.density; in getMaxErrorRatio() local104 return (widthDp - (float) Math.floor(widthDp)) / widthDp; in getMaxErrorRatio()
156 final int widthDp = (int) (bounds.width() / density); in reduceScreenLayout() local158 final int longSize = Math.max(widthDp, heightDp); in reduceScreenLayout()159 final int shortSize = Math.min(widthDp, heightDp); in reduceScreenLayout()
366 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);
223 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()
1190 public int widthDp;1215 widthDp = config.screenWidthDp;1230 return "SizeInfo: {widthDp=" + widthDp + " heightDp=" + heightDp1248 return widthDp == that.widthDp1266 result = 31 * result + widthDp;1289 dest.writeInt(widthDp);1305 widthDp = in.readInt();
193 assertTrue(updatedSize.widthDp <= initialSize.widthDp); in testDisplayResize()