Home
last modified time | relevance | path

Searched refs:heightPixels (Results 1 – 25 of 73) sorted by relevance

123

/cts/tests/mediapc/src/android/mediapc/cts/
DTestActivity.java94 if (noStretch && width <= dm.widthPixels && height <= dm.heightPixels) { in setScreenParams()
99 if (a <= dm.heightPixels) { in setScreenParams()
103 lp.width = dm.heightPixels * width / height; in setScreenParams()
104 lp.height = dm.heightPixels; in setScreenParams()
/cts/tests/media/common/src/android/mediav2/common/cts/
DCodecTestActivity.java100 if (noStretch && width <= dm.widthPixels && height <= dm.heightPixels) { in setScreenParams()
105 if (a <= dm.heightPixels) { in setScreenParams()
109 lp.width = dm.heightPixels * width / height; in setScreenParams()
110 lp.height = dm.heightPixels; in setScreenParams()
/cts/tests/vr/src/android/vr/cts/
DVrDisplayTest.java93 if (metrics.widthPixels > metrics.heightPixels) { in testDisplayResolution()
95 displayHeight = metrics.heightPixels; in testDisplayResolution()
97 displayWidth = metrics.heightPixels; in testDisplayResolution()
/cts/tests/tests/view/src/android/view/cts/util/
DDisplayUtils.java49 final int h = displayMetrics.heightPixels; in isCloseToSquareDisplay()
58 return displayMetrics.widthPixels < displayMetrics.heightPixels; in isDevicePortrait()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20501/src/android/security/cts/CVE_2022_20501/
DPocService.java47 layoutParams.height = displayMetrics.heightPixels; in onCreate()
49 layoutParams.y = displayMetrics.heightPixels / 2; in onCreate()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-20913/src/android/security/cts/CVE_2023_20913/
DPocService.java49 layoutParams.height = displayMetrics.heightPixels; in onCreate()
51 layoutParams.y = displayMetrics.heightPixels / 2; in onCreate()
/cts/tests/tests/util/src/android/util/cts/
DDisplayMetricsTest.java58 assertEquals(0, outMetrics.heightPixels); in testDisplayMetricsOp()
69 assertEquals(display.getHeight(), metrics.heightPixels); in testDisplayMetricsOp()
DTypedValueTest.java61 dm.heightPixels = 100; in testComplexToDimension()
106 dm.heightPixels = 100; in testComplexToDimensionPixelSize()
156 dm.heightPixels = 100; in testApplyDimension()
226 dm.heightPixels = 100; in testGetDimension()
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/app/
DDisplayUtils.java72 mReader = ImageReader.newInstance(metrics.widthPixels, metrics.heightPixels, in createDisplayWithDefaultDisplayMetricsAndWait()
99 metrics.widthPixels, metrics.heightPixels, (int) metrics.xdpi, in createDisplayWithDefaultDisplayMetricsAndWait()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DCanvasStateTests.java181 assertTrue(displayMetrics.heightPixels <= canvas.getMaximumBitmapHeight()); in testDrawScreenWideBitmap()
183 displayMetrics.heightPixels, Bitmap.Config.ARGB_8888); in testDrawScreenWideBitmap()
199 int bHeight = displayMetrics.heightPixels * 3 / 2; in testDrawLargeBitmap()
/cts/tests/tests/car/src/android/car/cts/utils/
DDisplayUtils.java99 mReader = ImageReader.newInstance(metrics.widthPixels, metrics.heightPixels, in createDisplayWithDefaultDisplayMetricsAndWait()
126 metrics.widthPixels, metrics.heightPixels, (int) metrics.xdpi, in createDisplayWithDefaultDisplayMetricsAndWait()
/cts/tests/tests/dpi/src/android/dpi/cts/
DConfigurationTest.java55 double yInches = (double) mMetrics.heightPixels / mMetrics.ydpi; in testScreenConfiguration()
134 float dpHeight = mMetrics.heightPixels / mMetrics.density; in testAutomotiveMinimumScreenSize()
/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/
DActivityManagerGetConfigTests.java230 if (metrics.widthPixels >= metrics.heightPixels) { in checkResourceConfig()
232 height = metrics.heightPixels; in checkResourceConfig()
235 width = metrics.heightPixels; in checkResourceConfig()
296 displayMetrics.heightPixels, deviceConfig.stableScreenHeightPx); in checkDeviceConfig()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0315/src/android/security/cts/CVE_2021_0315/
DPocService.java42 return Resources.getSystem().getDisplayMetrics().heightPixels; in getScreenHeight()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DWindowMetricsTestHelper.java150 displayMetrics.heightPixels, currentBounds.height()); in assertMetricsMatchDisplay()
161 realDisplayMetrics.heightPixels, maxBounds.height()); in assertMetricsMatchDisplay()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/
DAudioSystemFlags.java106 float heightInInches = metrics.heightPixels / metrics.ydpi; in isHandheld()
/cts/hostsidetests/securitybulletin/test-apps/TestOverlayRequestManageCredentials/src/android/security/cts/overlay/RequestManageCredentials/
DPocService.java50 int screenHeight = Resources.getSystem().getDisplayMetrics().heightPixels; in onStartCommand()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39796/src/android/security/cts/CVE_2021_39796/
DPocService.java41 return Resources.getSystem().getDisplayMetrics().heightPixels; in getScreenHeight()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39692/src/android/security/cts/CVE_2021_39692/
DPocService.java43 return Resources.getSystem().getDisplayMetrics().heightPixels; in getScreenHeight()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0523/src/android/security/cts/CVE_2021_0523/
DPocService.java40 return Resources.getSystem().getDisplayMetrics().heightPixels; in getScreenHeight()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2020-0015/src/android/security/cts/CVE_2020_0015/
DPocService.java43 return Resources.getSystem().getDisplayMetrics().heightPixels; in getScreenHeight()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DSimpleKeyguardService.java56 wvr.setView(createView(context), displayMetrics.widthPixels, displayMetrics.heightPixels); in onCreateKeyguardSurface()
/cts/tests/mediapc/common/src/android/mediapc/cts/common/
DUtils.java120 int heightPixels = defaultDisplay.getMode().getPhysicalHeight();
124 final double heightInch = (double) heightPixels / (double) metrics.ydpi;
/cts/hostsidetests/securitybulletin/test-apps/BUG-183411279/src/android/security/cts/BUG_183411279/
DOverlayService.java46 int scaledHeight = (int) (displayMetrics.heightPixels * 0.9); in onCreate()
/cts/hostsidetests/securitybulletin/test-apps/BUG-183963253/src/android/security/cts/BUG_183963253/
DOverlayService.java46 int scaledHeight = (int) (displayMetrics.heightPixels * 0.9); in onCreate()

123