Home
last modified time | relevance | path

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

1234

/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DDisplayMetricsSession.java37 mInitialDisplayMetrics = ReportedDisplayMetrics.getDisplayMetrics( in DisplayMetricsSession()
45 public ReportedDisplayMetrics getDisplayMetrics() { in getDisplayMetrics() method in DisplayMetricsSession
46 return ReportedDisplayMetrics.getDisplayMetrics(mDisplayId); in getDisplayMetrics()
/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-0315/src/android/security/cts/CVE_2021_0315/
DPocService.java38 return Resources.getSystem().getDisplayMetrics().widthPixels; in getScreenWidth()
42 return Resources.getSystem().getDisplayMetrics().heightPixels; in getScreenHeight()
/cts/hostsidetests/securitybulletin/test-apps/TestOverlayRequestManageCredentials/src/android/security/cts/overlay/RequestManageCredentials/
DPocService.java49 int screenWidth = Resources.getSystem().getDisplayMetrics().widthPixels; in onStartCommand()
50 int screenHeight = Resources.getSystem().getDisplayMetrics().heightPixels; 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()
41 return Resources.getSystem().getDisplayMetrics().heightPixels; in getScreenHeight()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39692/src/android/security/cts/CVE_2021_39692/
DPocService.java39 return Resources.getSystem().getDisplayMetrics().widthPixels; in getScreenWidth()
43 return Resources.getSystem().getDisplayMetrics().heightPixels; in getScreenHeight()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0523/src/android/security/cts/CVE_2021_0523/
DPocService.java36 return Resources.getSystem().getDisplayMetrics().widthPixels; in getScreenWidth()
40 return Resources.getSystem().getDisplayMetrics().heightPixels; in getScreenHeight()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2020-0015/src/android/security/cts/CVE_2020_0015/
DPocService.java39 return Resources.getSystem().getDisplayMetrics().widthPixels; in getScreenWidth()
43 return Resources.getSystem().getDisplayMetrics().heightPixels; in getScreenHeight()
/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-0954/src/android/security/cts/CVE_2021_0954/
DPocService.java36 return Resources.getSystem().getDisplayMetrics().widthPixels; in getScreenWidth()
40 return Resources.getSystem().getDisplayMetrics().heightPixels; in getScreenHeight()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0487/src/android/security/cts/CVE_2021_0487/
DPocService.java42 return Resources.getSystem().getDisplayMetrics().widthPixels; in getScreenWidth()
46 return Resources.getSystem().getDisplayMetrics().heightPixels; in getScreenHeight()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0963/src/android/security/cts/CVE_2021_0963/
DPocService.java39 return Resources.getSystem().getDisplayMetrics().widthPixels; in getScreenWidth()
43 return Resources.getSystem().getDisplayMetrics().heightPixels; in getScreenHeight()
/cts/tests/tests/view/src/android/view/cts/
DHandwritingBoundsOffsetTest.java72 final DisplayMetrics displayMetrics = activity.getResources().getDisplayMetrics(); in handwritingBoundsOffset_textViewDefaultValue()
91 final DisplayMetrics displayMetrics = activity.getResources().getDisplayMetrics(); in handwritingBoundsOffset_editTextDefaultValue()
/cts/tests/framework/base/windowmanager/src/android/server/wm/display/
DDisplayTests.java183 ReportedDisplayMetrics displayMetrics = displayMetricsSession.getDisplayMetrics(); in testForceDisplayMetrics()
193 displayMetrics = displayMetricsSession.getDisplayMetrics(); in testForceDisplayMetrics()
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/embedding/
DActivityEmbeddingTestBase.java45 ReportedDisplayMetrics.getDisplayMetrics(Display.DEFAULT_DISPLAY);
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DCanvasStateTests.java179 getActivity().getResources().getDisplayMetrics(); in testDrawScreenWideBitmap()
196 getActivity().getResources().getDisplayMetrics(); in testDrawLargeBitmap()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20501/src/android/security/cts/CVE_2022_20501/
DPocService.java45 DisplayMetrics displayMetrics = Resources.getSystem().getDisplayMetrics(); in onCreate()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-20913/src/android/security/cts/CVE_2023_20913/
DPocService.java47 DisplayMetrics displayMetrics = Resources.getSystem().getDisplayMetrics(); in onCreate()
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DFontScaleActivity.java75 final int fontActivityDpi = getResources().getDisplayMetrics().densityDpi; in dumpActivityDpi()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/
DAudioSystemFlags.java104 DisplayMetrics metrics = context.getResources().getDisplayMetrics(); in isHandheld()
/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/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/hostsidetests/securitybulletin/test-apps/BUG-183411279/src/android/security/cts/BUG_183411279/
DOverlayService.java44 DisplayMetrics displayMetrics = Resources.getSystem().getDisplayMetrics(); in onCreate()

1234