Home
last modified time | relevance | path

Searched refs:getDisplayMetrics (Results 1 – 25 of 59) sorted by relevance

123

/cts/tests/tests/transition/src/android/transition/cts/
DChangeBoundsTest.java226 (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/
DPocService.java42 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/
DPocService.java42 return Resources.getSystem().getDisplayMetrics().widthPixels; in getScreenWidth()
46 return Resources.getSystem().getDisplayMetrics().heightPixels; in getScreenHeight()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DCloseOnOutsideTestActivity.java37 DisplayMetrics displayMetrics = getResources().getDisplayMetrics(); in onCreate()
DDisplayTests.java173 ReportedDisplayMetrics displayMetrics = displayMetricsSession.getDisplayMetrics(); in testForceDisplayMetrics()
185 displayMetrics = displayMetricsSession.getDisplayMetrics(); in testForceDisplayMetrics()
DCloseOnOutsideTests.java79 DisplayMetrics displayMetrics = mTestActivity.getResources().getDisplayMetrics(); in touchAndAssert()
DWindowContextTests.java87 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/
DCanvasStateTests.java179 getActivity().getResources().getDisplayMetrics(); in testDrawScreenWideBitmap()
196 getActivity().getResources().getDisplayMetrics(); in testDrawLargeBitmap()
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DFontScaleActivity.java72 final int fontActivityDpi = getResources().getDisplayMetrics().densityDpi; in dumpActivityDpi()
/cts/tests/tests/theme/src/android/theme/cts/
DThemeRebaseTest.java65 resources.updateConfiguration(mInitialConfig, resources.getDisplayMetrics()); in after()
DWatchPercentageScreenDimenTest.java51 mDisplayMetrics = mContext.getResources().getDisplayMetrics(); in setUp()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DSimpleKeyguardService.java53 DisplayMetrics displayMetrics = context.getResources().getDisplayMetrics(); in onCreateKeyguardSurface()
/cts/tests/tests/text/src/android/text/method/cts/
DTouchTest.java79 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/
DWidgetTestUtils.java121 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/
DRemoteViewsTest.java266 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/
DAImageDecoderTest.java305 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/
DOverlayService.java44 DisplayMetrics displayMetrics = Resources.getSystem().getDisplayMetrics(); in onCreate()
/cts/hostsidetests/securitybulletin/test-apps/BUG-183963253/src/android/security/cts/BUG_183963253/
DOverlayService.java44 DisplayMetrics displayMetrics = Resources.getSystem().getDisplayMetrics(); in onCreate()
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/
DUtils.java81 float density = ctx.getResources().getDisplayMetrics().density; in convertDpToPixel()
/cts/tests/mediapc/src/android/mediapc/cts/
DTestActivity.java93 final DisplayMetrics dm = getResources().getDisplayMetrics(); in setScreenParams()
/cts/tests/tests/content/src/android/content/res/cts/
DPluralResourcesTest.java46 return new Resources(mResources.getAssets(), mResources.getDisplayMetrics(), config); in resourcesForLanguage()
/cts/tests/media/src/android/mediav2/cts/
DCodecTestActivity.java99 final DisplayMetrics dm = getResources().getDisplayMetrics(); in setScreenParams()
/cts/tests/tests/view/src/android/view/cts/
DViewConfigurationTest.java97 context.getResources().getDisplayMetrics()); in testInstanceValues()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/
DProjectionActivity.java65 … DisplayMetrics metrics = ProjectionActivity.this.getResources().getDisplayMetrics();
/cts/libs/deviceutillegacy/src/android/webkit/cts/
DWebViewOnUiThread.java456 public final DisplayMetrics getDisplayMetrics() {
458 return mWebView.getContext().getResources().getDisplayMetrics();

123