Searched refs:displayMetrics (Results 1 – 8 of 8) sorted by relevance
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | CanvasStateTests.java | 128 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/ |
D | DisplayTests.java | 163 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()
|
D | CloseOnOutsideTestActivity.java | 37 DisplayMetrics displayMetrics = getResources().getDisplayMetrics(); in onCreate() local 38 int width = displayMetrics.widthPixels; in onCreate() 39 int height = displayMetrics.heightPixels; in onCreate()
|
D | CloseOnOutsideTests.java | 64 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()
|
D | ActivityManagerGetConfigTests.java | 291 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/ |
D | DrawActivity.kt | 95 resources.updateConfiguration(newConfig, resources.displayMetrics) in hashCode()
|
/cts/tests/tests/uirendering27/src/android/uirendering/cts/testinfrastructure/ |
D | DrawActivity.kt | 95 resources.updateConfiguration(newConfig, resources.displayMetrics) in hashCode()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | PopupWindowTest.java | 1824 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()
|