Home
last modified time | relevance | path

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

12

/cts/tests/framework/base/windowmanager/src/android/server/wm/
DDisplayTests.java163 ReportedDisplayMetrics displayMetrics = displayMetricsSession.getDisplayMetrics(); in testForceDisplayMetrics()
175 displayMetrics = displayMetricsSession.getDisplayMetrics(); in testForceDisplayMetrics()
206 mInitialDisplayMetrics = ReportedDisplayMetrics.getDisplayMetrics(mDisplayId); in DisplayMetricsSession()
213 ReportedDisplayMetrics getDisplayMetrics() throws Exception { in getDisplayMetrics() method in DisplayTests.DisplayMetricsSession
214 return ReportedDisplayMetrics.getDisplayMetrics(mDisplayId); in getDisplayMetrics()
DCloseOnOutsideTestActivity.java37 DisplayMetrics displayMetrics = getResources().getDisplayMetrics(); in onCreate()
DCloseOnOutsideTests.java65 mTestActivity.getActivity().getResources().getDisplayMetrics(); in touchAndAssert()
/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/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DCanvasStateTests.java129 getActivity().getResources().getDisplayMetrics(); in testDrawScreenWideBitmap()
146 getActivity().getResources().getDisplayMetrics(); in testDrawLargeBitmap()
/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/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/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/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/tests/tests/view/src/android/view/cts/
DViewConfigurationTest.java92 context.getResources().getDisplayMetrics()); in testInstanceValues()
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/
DUtils.java81 float density = ctx.getResources().getDisplayMetrics().density; in convertDpToPixel()
/cts/tests/tests/content/src/android/content/res/cts/
DPluralResourcesTest.java46 return new Resources(mResources.getAssets(), mResources.getDisplayMetrics(), config); in resourcesForLanguage()
/cts/libs/deviceutillegacy/src/android/webkit/cts/
DWebViewOnUiThread.java456 public final DisplayMetrics getDisplayMetrics() {
458 return mWebView.getContext().getResources().getDisplayMetrics();
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/
DProjectionActivity.java65 … DisplayMetrics metrics = ProjectionActivity.this.getResources().getDisplayMetrics();
/cts/tests/tests/webkit/src/android/webkit/cts/
DWebViewTest.java1380 DisplayMetrics metrics = mOnUiThread.getDisplayMetrics(); in testFindAll()
1402 DisplayMetrics metrics = mOnUiThread.getDisplayMetrics(); in testFindNext()
1529 DisplayMetrics metrics = mOnUiThread.getDisplayMetrics(); in testPageScroll()
1615 DisplayMetrics metrics = mOnUiThread.getDisplayMetrics(); in testGetContentHeight()
1684 DisplayMetrics metrics = mOnUiThread.getDisplayMetrics(); in testFlingScroll()
1937 getActivity().getResources().getDisplayMetrics().density; in testSetInitialScale()
2083 DisplayMetrics metrics = mOnUiThread.getDisplayMetrics(); in testRequestChildRectangleOnScreen()
/cts/tests/tests/text/src/android/text/cts/
DMyanmarTest.java231 context.getResources().getDisplayMetrics()); in CaptureTextView()
/cts/tests/tests/content/src/android/content/pm/cts/
DComponentInfoTest.java72 int size = Math.round(100 * getContext().getResources().getDisplayMetrics().density) + 100; in createIconBitmap()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/
DDetermineFovActivity.java219 .getDisplayMetrics().scaledDensity; in drawContents()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DBitmapDrawableTest.java428 targetDensity = mContext.getResources().getDisplayMetrics().densityDpi; in testSetTargetDensity()
429 bitmapDrawable.setTargetDensity(mContext.getResources().getDisplayMetrics()); in testSetTargetDensity()
DNinePatchDrawableTest.java383 int targetDensity = mResources.getDisplayMetrics().densityDpi; in testInflate()
672 opts.inDensity = opts.inTargetDensity = mResources.getDisplayMetrics().densityDpi; in getBitmapUnscaled()
/cts/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/
DSplitAppTest.java559 r.updateConfiguration(c, r.getDisplayMetrics()); in updateDpi()
565 r.updateConfiguration(c, r.getDisplayMetrics()); in updateLocale()
/cts/tests/tests/graphics/src/android/graphics/cts/
DNinePatchTest.java63 mOptNoScale.inDensity = mOptNoScale.inTargetDensity = mRes.getDisplayMetrics().densityDpi; in setup()
/cts/tests/tests/widget/src/android/widget/cts/
DEditTextTest.java239 DisplayMetrics metrics = mActivity.getResources().getDisplayMetrics(); in testAutoSizeNotSupported()

12