/cts/tests/tests/transition/src/android/transition/cts/ |
D | ChangeBoundsTest.java | 226 (SMALL_SQUARE_SIZE_DP + LARGE_SQUARE_SIZE_DP) / 2, resources.getDisplayMetrics()); in waitForSizeIsMiddle() 239 (SMALL_SQUARE_SIZE_DP + LARGE_SQUARE_SIZE_DP) / 2, resources.getDisplayMetrics()); in waitForClipIsMiddle() 254 SMALL_OFFSET_DP, resources.getDisplayMetrics()); in isRestartingAnimation() 259 SMALL_SQUARE_SIZE_DP, resources.getDisplayMetrics()); in isRestartingAnimation() 264 LARGE_SQUARE_SIZE_DP, resources.getDisplayMetrics()); in isRestartingAnimation() 276 SMALL_OFFSET_DP, resources.getDisplayMetrics()); in isRestartingClip() 281 SMALL_SQUARE_SIZE_DP, resources.getDisplayMetrics()); in isRestartingClip() 286 LARGE_SQUARE_SIZE_DP, resources.getDisplayMetrics()); in isRestartingClip() 306 resources.getDisplayMetrics()); in validateViewPlacement() 374 SMALL_SQUARE_SIZE_DP, resources.getDisplayMetrics())); in ValidateBoundsListener() [all …]
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0586/src/android/security/cts/CVE_2021_0586/ |
D | PocService.java | 42 return Resources.getSystem().getDisplayMetrics().widthPixels; in getScreenWidth() 46 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 | 42 return Resources.getSystem().getDisplayMetrics().widthPixels; in getScreenWidth() 46 return Resources.getSystem().getDisplayMetrics().heightPixels; in getScreenHeight()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | CloseOnOutsideTestActivity.java | 37 DisplayMetrics displayMetrics = getResources().getDisplayMetrics(); in onCreate()
|
D | DisplayTests.java | 173 ReportedDisplayMetrics displayMetrics = displayMetricsSession.getDisplayMetrics(); in testForceDisplayMetrics() 185 displayMetrics = displayMetricsSession.getDisplayMetrics(); in testForceDisplayMetrics()
|
D | CloseOnOutsideTests.java | 79 DisplayMetrics displayMetrics = mTestActivity.getResources().getDisplayMetrics(); in touchAndAssert()
|
D | WindowContextTests.java | 87 assertBoundsEquals(displayMetricsSession.getDisplayMetrics(), bounds); in testWindowContextConfigChanges() 95 assertBoundsEquals(displayMetricsSession.getDisplayMetrics(), bounds); in testWindowContextConfigChanges() 151 assertBoundsEquals(displayMetricsSession.getDisplayMetrics(), bounds); in testWindowContextRegisterComponentCallbacks()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | CanvasStateTests.java | 179 getActivity().getResources().getDisplayMetrics(); in testDrawScreenWideBitmap() 196 getActivity().getResources().getDisplayMetrics(); in testDrawLargeBitmap()
|
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/ |
D | FontScaleActivity.java | 72 final int fontActivityDpi = getResources().getDisplayMetrics().densityDpi; in dumpActivityDpi()
|
/cts/tests/tests/theme/src/android/theme/cts/ |
D | ThemeRebaseTest.java | 65 resources.updateConfiguration(mInitialConfig, resources.getDisplayMetrics()); in after()
|
D | WatchPercentageScreenDimenTest.java | 51 mDisplayMetrics = mContext.getResources().getDisplayMetrics(); in setUp()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | SimpleKeyguardService.java | 53 DisplayMetrics displayMetrics = context.getResources().getDisplayMetrics(); in onCreateKeyguardSurface()
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | TouchTest.java | 79 mActivity.getResources().getDisplayMetrics().scaledDensity; in testScrollTo() 117 DisplayMetrics metrics = mActivity.getResources().getDisplayMetrics(); in testOnTouchEvent()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | WidgetTestUtils.java | 121 Assert.assertEquals(expected * context.getResources().getDisplayMetrics().density, in assertScaledPixels() 127 float density = context.getResources().getDisplayMetrics().density; in convertDipToPixels()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | RemoteViewsTest.java | 266 assertEquals(mContext.getResources().getDisplayMetrics().scaledDensity * 18, in testSetTextViewTextSize() 1118 DisplayMetrics displayMetrics = textView.getResources().getDisplayMetrics(); in testSetViewLayoutMargin() 1135 DisplayMetrics displayMetrics = textViewLtr.getResources().getDisplayMetrics(); in testSetViewLayoutMargin_layoutDirection() 1149 displayMetrics = textViewRtl.getResources().getDisplayMetrics(); in testSetViewLayoutMargin_layoutDirection() 1230 DisplayMetrics displayMetrics = textView.getResources().getDisplayMetrics(); in testSetViewLayoutMarginAttr() 1241 DisplayMetrics displayMetrics = textView.getResources().getDisplayMetrics(); in testSetViewLayoutMarginAttr() 1256 DisplayMetrics displayMetrics = textView.getResources().getDisplayMetrics(); in testSetViewLayoutMarginAttr() 1262 DisplayMetrics displayMetrics = textView.getResources().getDisplayMetrics(); in testSetViewLayoutMarginAttr() 1295 DisplayMetrics displayMetrics = textViewLtr.getResources().getDisplayMetrics(); in testSetViewLayoutMarginAttr_layoutDirection() 1316 DisplayMetrics displayMetrics = textView.getResources().getDisplayMetrics(); in testSetViewLayoutWidth() [all …]
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | AImageDecoderTest.java | 305 final int originalDensity = res.getDisplayMetrics().densityDpi; in decode() 307 res.getDisplayMetrics().densityDpi = DisplayMetrics.DENSITY_DEFAULT; in decode() 311 res.getDisplayMetrics().densityDpi = originalDensity; in decode() 370 final int originalDensity = res.getDisplayMetrics().densityDpi; 372 res.getDisplayMetrics().densityDpi = DisplayMetrics.DENSITY_DEFAULT; 376 res.getDisplayMetrics().densityDpi = originalDensity; 797 final int originalDensity = res.getDisplayMetrics().densityDpi; 799 res.getDisplayMetrics().densityDpi = DisplayMetrics.DENSITY_DEFAULT; 803 res.getDisplayMetrics().densityDpi = originalDensity;
|
/cts/hostsidetests/securitybulletin/test-apps/BUG-183613671/src/android/security/cts/BUG_183613671/ |
D | OverlayService.java | 44 DisplayMetrics displayMetrics = Resources.getSystem().getDisplayMetrics(); in onCreate()
|
/cts/hostsidetests/securitybulletin/test-apps/BUG-183963253/src/android/security/cts/BUG_183963253/ |
D | OverlayService.java | 44 DisplayMetrics displayMetrics = Resources.getSystem().getDisplayMetrics(); in onCreate()
|
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/ |
D | Utils.java | 81 float density = ctx.getResources().getDisplayMetrics().density; in convertDpToPixel()
|
/cts/tests/mediapc/src/android/mediapc/cts/ |
D | TestActivity.java | 93 final DisplayMetrics dm = getResources().getDisplayMetrics(); in setScreenParams()
|
/cts/tests/tests/content/src/android/content/res/cts/ |
D | PluralResourcesTest.java | 46 return new Resources(mResources.getAssets(), mResources.getDisplayMetrics(), config); in resourcesForLanguage()
|
/cts/tests/media/src/android/mediav2/cts/ |
D | CodecTestActivity.java | 99 final DisplayMetrics dm = getResources().getDisplayMetrics(); in setScreenParams()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ViewConfigurationTest.java | 97 context.getResources().getDisplayMetrics()); in testInstanceValues()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/ |
D | ProjectionActivity.java | 65 … DisplayMetrics metrics = ProjectionActivity.this.getResources().getDisplayMetrics();
|
/cts/libs/deviceutillegacy/src/android/webkit/cts/ |
D | WebViewOnUiThread.java | 456 public final DisplayMetrics getDisplayMetrics() { 458 return mWebView.getContext().getResources().getDisplayMetrics();
|