/cts/tests/vr/src/android/vr/cts/ |
D | VrDisplayTest.java | 93 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/ |
D | DisplayUtils.java | 48 final int w = displayMetrics.widthPixels; in isCloseToSquareDisplay() 58 return displayMetrics.widthPixels < displayMetrics.heightPixels; in isDevicePortrait()
|
/cts/tests/mediapc/src/android/mediapc/cts/ |
D | TestActivity.java | 94 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/ |
D | CodecTestActivity.java | 100 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/ |
D | PocService.java | 46 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/ |
D | PocService.java | 48 layoutParams.width = displayMetrics.widthPixels; in onCreate() 50 layoutParams.x = displayMetrics.widthPixels / 2; in onCreate()
|
/cts/tests/tests/util/src/android/util/cts/ |
D | DisplayMetricsTest.java | 57 assertEquals(0, outMetrics.widthPixels); in testDisplayMetricsOp() 70 assertEquals(display.getWidth(), metrics.widthPixels); in testDisplayMetricsOp()
|
/cts/tests/tests/theme/src/android/theme/cts/ |
D | WatchPercentageScreenDimenTest.java | 52 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/ |
D | DisplayUtils.java | 72 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/ |
D | CanvasStateTests.java | 180 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/ |
D | DisplayUtils.java | 99 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/ |
D | ConfigurationTest.java | 54 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/ |
D | ActivityManagerGetConfigTests.java | 230 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/ |
D | PocService.java | 38 return Resources.getSystem().getDisplayMetrics().widthPixels; in getScreenWidth()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | WindowMetricsTestHelper.java | 148 displayMetrics.widthPixels, currentBounds.width()); in assertMetricsMatchDisplay() 159 realDisplayMetrics.widthPixels, maxBounds.width()); in assertMetricsMatchDisplay()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/ |
D | AudioSystemFlags.java | 105 float widthInInches = metrics.widthPixels / metrics.xdpi; in isHandheld()
|
/cts/hostsidetests/securitybulletin/test-apps/TestOverlayRequestManageCredentials/src/android/security/cts/overlay/RequestManageCredentials/ |
D | PocService.java | 49 int screenWidth = Resources.getSystem().getDisplayMetrics().widthPixels; in onStartCommand()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39796/src/android/security/cts/CVE_2021_39796/ |
D | PocService.java | 37 return Resources.getSystem().getDisplayMetrics().widthPixels; in getScreenWidth()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39692/src/android/security/cts/CVE_2021_39692/ |
D | PocService.java | 39 return Resources.getSystem().getDisplayMetrics().widthPixels; in getScreenWidth()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0523/src/android/security/cts/CVE_2021_0523/ |
D | PocService.java | 36 return Resources.getSystem().getDisplayMetrics().widthPixels; in getScreenWidth()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2020-0015/src/android/security/cts/CVE_2020_0015/ |
D | PocService.java | 39 return Resources.getSystem().getDisplayMetrics().widthPixels; in getScreenWidth()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | SimpleKeyguardService.java | 56 wvr.setView(createView(context), displayMetrics.widthPixels, displayMetrics.heightPixels); in onCreateKeyguardSurface()
|
/cts/tests/mediapc/common/src/android/mediapc/cts/common/ |
D | Utils.java | 119 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/ |
D | OverlayService.java | 45 int scaledWidth = (int) (displayMetrics.widthPixels * 0.9); in onCreate()
|
/cts/hostsidetests/securitybulletin/test-apps/BUG-183963253/src/android/security/cts/BUG_183963253/ |
D | OverlayService.java | 45 int scaledWidth = (int) (displayMetrics.widthPixels * 0.9); in onCreate()
|