/cts/tests/mediapc/src/android/mediapc/cts/ |
D | TestActivity.java | 94 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/ |
D | CodecTestActivity.java | 100 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/ |
D | VrDisplayTest.java | 93 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/ |
D | DisplayUtils.java | 49 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/ |
D | PocService.java | 47 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/ |
D | PocService.java | 49 layoutParams.height = displayMetrics.heightPixels; in onCreate() 51 layoutParams.y = displayMetrics.heightPixels / 2; in onCreate()
|
/cts/tests/tests/util/src/android/util/cts/ |
D | DisplayMetricsTest.java | 58 assertEquals(0, outMetrics.heightPixels); in testDisplayMetricsOp() 69 assertEquals(display.getHeight(), metrics.heightPixels); in testDisplayMetricsOp()
|
D | TypedValueTest.java | 61 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/ |
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 | 181 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/ |
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 | 55 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/ |
D | ActivityManagerGetConfigTests.java | 230 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/ |
D | PocService.java | 42 return Resources.getSystem().getDisplayMetrics().heightPixels; in getScreenHeight()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | WindowMetricsTestHelper.java | 150 displayMetrics.heightPixels, currentBounds.height()); in assertMetricsMatchDisplay() 161 realDisplayMetrics.heightPixels, maxBounds.height()); in assertMetricsMatchDisplay()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/ |
D | AudioSystemFlags.java | 106 float heightInInches = metrics.heightPixels / metrics.ydpi; in isHandheld()
|
/cts/hostsidetests/securitybulletin/test-apps/TestOverlayRequestManageCredentials/src/android/security/cts/overlay/RequestManageCredentials/ |
D | PocService.java | 50 int screenHeight = Resources.getSystem().getDisplayMetrics().heightPixels; in onStartCommand()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39796/src/android/security/cts/CVE_2021_39796/ |
D | PocService.java | 41 return Resources.getSystem().getDisplayMetrics().heightPixels; in getScreenHeight()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39692/src/android/security/cts/CVE_2021_39692/ |
D | PocService.java | 43 return Resources.getSystem().getDisplayMetrics().heightPixels; in getScreenHeight()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0523/src/android/security/cts/CVE_2021_0523/ |
D | PocService.java | 40 return Resources.getSystem().getDisplayMetrics().heightPixels; in getScreenHeight()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2020-0015/src/android/security/cts/CVE_2020_0015/ |
D | PocService.java | 43 return Resources.getSystem().getDisplayMetrics().heightPixels; in getScreenHeight()
|
/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 | 120 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/ |
D | OverlayService.java | 46 int scaledHeight = (int) (displayMetrics.heightPixels * 0.9); in onCreate()
|
/cts/hostsidetests/securitybulletin/test-apps/BUG-183963253/src/android/security/cts/BUG_183963253/ |
D | OverlayService.java | 46 int scaledHeight = (int) (displayMetrics.heightPixels * 0.9); in onCreate()
|