Home
last modified time | relevance | path

Searched refs:mDisplayMetrics (Results 1 – 4 of 4) sorted by relevance

/cts/tests/tests/theme/src/android/theme/cts/
DWatchPercentageScreenDimenTest.java40 private DisplayMetrics mDisplayMetrics; field in WatchPercentageScreenDimenTest
51 mDisplayMetrics = mContext.getResources().getDisplayMetrics(); in setUp()
52 mScreenWidth = mDisplayMetrics.widthPixels; in setUp()
103 float widthDp = mDisplayMetrics.widthPixels / mDisplayMetrics.density; in getMaxErrorRatio()
/cts/tests/tests/systemui/src/android/systemui/cts/
DWindowInsetsActivity.java55 private final DisplayMetrics mDisplayMetrics = new DisplayMetrics(); field in WindowInsetsActivity
95 getDisplay().getRealMetrics(mDisplayMetrics); in onCreate()
227 sb.append("real size = (").append(mDisplayMetrics.widthPixels).append(",") in showInfoInTextView()
228 .append(mDisplayMetrics.heightPixels).append(")\n"); in showInfoInTextView()
260 int slack = (int) (DISPLAY_CUTOUT_SLACK_DP * mDisplayMetrics.density); in getOperationArea()
/cts/tests/tests/hardware/src/android/hardware/cts/
DLowRamDeviceTest.java72 private DisplayMetrics mDisplayMetrics; field in LowRamDeviceTest
81 mDisplayMetrics = new DisplayMetrics(); in setUp()
84 windowManager.getDefaultDisplay().getMetrics(mDisplayMetrics); in setUp()
94 int density = mDisplayMetrics.densityDpi; in testMinimumMemory()
/cts/tests/tests/widget/src/android/widget/cts/
DMagnifierTest.java85 private DisplayMetrics mDisplayMetrics; field in MagnifierTest
96 mDisplayMetrics = mActivity.getResources().getDisplayMetrics(); in setup()
116 final float dpScreenWidth = mDisplayMetrics.widthPixels / mDisplayMetrics.density; in isScreenBigEnough()
117 final float dpScreenHeight = mDisplayMetrics.heightPixels / mDisplayMetrics.density; in isScreenBigEnough()
215 return (int) (dp * mDisplayMetrics.density + 0.5f); in dpToPixelSize()
219 return dp * mDisplayMetrics.density; in dpToPixel()