Home
last modified time | relevance | path

Searched refs:displayMetrics (Results 1 – 8 of 8) sorted by relevance

/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DCanvasStateTests.java128 DisplayMetrics displayMetrics = in testDrawScreenWideBitmap() local
130 assertTrue(displayMetrics.widthPixels <= canvas.getMaximumBitmapWidth()); in testDrawScreenWideBitmap()
131 assertTrue(displayMetrics.heightPixels <= canvas.getMaximumBitmapHeight()); in testDrawScreenWideBitmap()
132 Bitmap bitmap = Bitmap.createBitmap(displayMetrics.widthPixels, in testDrawScreenWideBitmap()
133 displayMetrics.heightPixels, Bitmap.Config.ARGB_8888); in testDrawScreenWideBitmap()
145 DisplayMetrics displayMetrics = in testDrawLargeBitmap() local
148 int bWidth = displayMetrics.widthPixels * 3 / 2; in testDrawLargeBitmap()
149 int bHeight = displayMetrics.heightPixels * 3 / 2; in testDrawLargeBitmap()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DDisplayTests.java163 ReportedDisplayMetrics displayMetrics = displayMetricsSession.getDisplayMetrics(); in testForceDisplayMetrics() local
164 assertEquals(overrideSize, displayMetrics.overrideSize); in testForceDisplayMetrics()
165 assertEquals(overrideDensity, displayMetrics.overrideDensity); in testForceDisplayMetrics()
175 displayMetrics = displayMetricsSession.getDisplayMetrics(); in testForceDisplayMetrics()
176 assertEquals(overrideSize, displayMetrics.overrideSize); in testForceDisplayMetrics()
177 assertEquals(overrideDensity, displayMetrics.overrideDensity); in testForceDisplayMetrics()
DCloseOnOutsideTestActivity.java37 DisplayMetrics displayMetrics = getResources().getDisplayMetrics(); in onCreate() local
38 int width = displayMetrics.widthPixels; in onCreate()
39 int height = displayMetrics.heightPixels; in onCreate()
DCloseOnOutsideTests.java64 DisplayMetrics displayMetrics = in touchAndAssert() local
66 int width = (int) (displayMetrics.widthPixels * 0.875f); in touchAndAssert()
67 int height = (int) (displayMetrics.heightPixels * 0.875f); in touchAndAssert()
DActivityManagerGetConfigTests.java291 private void checkDeviceConfig(DisplayMetrics displayMetrics, in checkDeviceConfig() argument
294 displayMetrics.widthPixels, deviceConfig.stableScreenWidthPx); in checkDeviceConfig()
296 displayMetrics.heightPixels, deviceConfig.stableScreenHeightPx); in checkDeviceConfig()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/
DDrawActivity.kt95 resources.updateConfiguration(newConfig, resources.displayMetrics) in hashCode()
/cts/tests/tests/uirendering27/src/android/uirendering/cts/testinfrastructure/
DDrawActivity.kt95 resources.updateConfiguration(newConfig, resources.displayMetrics) in hashCode()
/cts/tests/tests/widget/src/android/widget/cts/
DPopupWindowTest.java1824 DisplayMetrics displayMetrics = mActivity.getResources().getDisplayMetrics(); in testAnchorInPopup() local
1825 float dpWidth = displayMetrics.widthPixels / displayMetrics.density; in testAnchorInPopup()
1826 float dpHeight = displayMetrics.heightPixels / displayMetrics.density; in testAnchorInPopup()