Home
last modified time | relevance | path

Searched refs:widthPixels (Results 1 – 25 of 72) sorted by relevance

123

/cts/tests/vr/src/android/vr/cts/
DVrDisplayTest.java93 if (metrics.widthPixels > metrics.heightPixels) { in testDisplayResolution()
94 displayWidth = metrics.widthPixels; in testDisplayResolution()
98 displayHeight = metrics.widthPixels; in testDisplayResolution()
/cts/tests/tests/view/src/android/view/cts/util/
DDisplayUtils.java48 final int w = displayMetrics.widthPixels; in isCloseToSquareDisplay()
58 return displayMetrics.widthPixels < displayMetrics.heightPixels; in isDevicePortrait()
/cts/tests/mediapc/src/android/mediapc/cts/
DTestActivity.java94 if (noStretch && width <= dm.widthPixels && height <= dm.heightPixels) { in setScreenParams()
98 int a = dm.widthPixels * height / width; in setScreenParams()
100 lp.width = dm.widthPixels; in setScreenParams()
/cts/tests/media/common/src/android/mediav2/common/cts/
DCodecTestActivity.java100 if (noStretch && width <= dm.widthPixels && height <= dm.heightPixels) { in setScreenParams()
104 int a = dm.widthPixels * height / width; in setScreenParams()
106 lp.width = dm.widthPixels; in setScreenParams()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20501/src/android/security/cts/CVE_2022_20501/
DPocService.java46 layoutParams.width = displayMetrics.widthPixels; in onCreate()
48 layoutParams.x = displayMetrics.widthPixels / 2; in onCreate()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-20913/src/android/security/cts/CVE_2023_20913/
DPocService.java48 layoutParams.width = displayMetrics.widthPixels; in onCreate()
50 layoutParams.x = displayMetrics.widthPixels / 2; in onCreate()
/cts/tests/tests/util/src/android/util/cts/
DDisplayMetricsTest.java57 assertEquals(0, outMetrics.widthPixels); in testDisplayMetricsOp()
70 assertEquals(display.getWidth(), metrics.widthPixels); in testDisplayMetricsOp()
/cts/tests/tests/theme/src/android/theme/cts/
DWatchPercentageScreenDimenTest.java52 mScreenWidth = mDisplayMetrics.widthPixels; in setUp()
103 float widthDp = mDisplayMetrics.widthPixels / mDisplayMetrics.density; in getMaxErrorRatio()
/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.java180 assertTrue(displayMetrics.widthPixels <= canvas.getMaximumBitmapWidth()); in testDrawScreenWideBitmap()
182 Bitmap bitmap = Bitmap.createBitmap(displayMetrics.widthPixels, in testDrawScreenWideBitmap()
198 int bWidth = displayMetrics.widthPixels * 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.java54 double xInches = (double) mMetrics.widthPixels / mMetrics.xdpi; in testScreenConfiguration()
135 float dpWidth = mMetrics.widthPixels / mMetrics.density; in testAutomotiveMinimumScreenSize()
/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/
DActivityManagerGetConfigTests.java230 if (metrics.widthPixels >= metrics.heightPixels) { in checkResourceConfig()
231 width = metrics.widthPixels; in checkResourceConfig()
237 height = metrics.widthPixels; in checkResourceConfig()
294 displayMetrics.widthPixels, deviceConfig.stableScreenWidthPx); in checkDeviceConfig()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0315/src/android/security/cts/CVE_2021_0315/
DPocService.java38 return Resources.getSystem().getDisplayMetrics().widthPixels; in getScreenWidth()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DWindowMetricsTestHelper.java148 displayMetrics.widthPixels, currentBounds.width()); in assertMetricsMatchDisplay()
159 realDisplayMetrics.widthPixels, maxBounds.width()); in assertMetricsMatchDisplay()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/
DAudioSystemFlags.java105 float widthInInches = metrics.widthPixels / metrics.xdpi; in isHandheld()
/cts/hostsidetests/securitybulletin/test-apps/TestOverlayRequestManageCredentials/src/android/security/cts/overlay/RequestManageCredentials/
DPocService.java49 int screenWidth = Resources.getSystem().getDisplayMetrics().widthPixels; in onStartCommand()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39796/src/android/security/cts/CVE_2021_39796/
DPocService.java37 return Resources.getSystem().getDisplayMetrics().widthPixels; in getScreenWidth()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39692/src/android/security/cts/CVE_2021_39692/
DPocService.java39 return Resources.getSystem().getDisplayMetrics().widthPixels; in getScreenWidth()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0523/src/android/security/cts/CVE_2021_0523/
DPocService.java36 return Resources.getSystem().getDisplayMetrics().widthPixels; in getScreenWidth()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2020-0015/src/android/security/cts/CVE_2020_0015/
DPocService.java39 return Resources.getSystem().getDisplayMetrics().widthPixels; in getScreenWidth()
/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.java119 int widthPixels = defaultDisplay.getMode().getPhysicalWidth();
123 final double widthInch = (double) widthPixels / (double) metrics.xdpi;
/cts/hostsidetests/securitybulletin/test-apps/BUG-183411279/src/android/security/cts/BUG_183411279/
DOverlayService.java45 int scaledWidth = (int) (displayMetrics.widthPixels * 0.9); in onCreate()
/cts/hostsidetests/securitybulletin/test-apps/BUG-183963253/src/android/security/cts/BUG_183963253/
DOverlayService.java45 int scaledWidth = (int) (displayMetrics.widthPixels * 0.9); in onCreate()

123