Home
last modified time | relevance | path

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

12

/cts/tests/framework/base/windowmanager/src/android/server/wm/
DDisplayTests.java162 ReportedDisplayMetrics displayMetrics = displayMetricsSession.getDisplayMetrics(); in testForceDisplayMetrics()
174 displayMetrics = displayMetricsSession.getDisplayMetrics(); in testForceDisplayMetrics()
205 mInitialDisplayMetrics = ReportedDisplayMetrics.getDisplayMetrics(mDisplayId); in DisplayMetricsSession()
212 ReportedDisplayMetrics getDisplayMetrics() throws Exception { in getDisplayMetrics() method in DisplayTests.DisplayMetricsSession
213 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 …]
DChangeImageTransformTest.java342 DisplayMetrics metrics = mActivity.getResources().getDisplayMetrics(); in enterImageViewScene()
/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/
DWatchPercentageScreenDimenTest.java51 mDisplayMetrics = mContext.getResources().getDisplayMetrics(); in setUp()
DThemeRebaseTest.java65 resources.updateConfiguration(mInitialConfig, resources.getDisplayMetrics()); in after()
/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/text/src/android/text/cts/
DMyanmarTest.java189 context.getResources().getDisplayMetrics()); in CaptureTextView()
/cts/tests/tests/webkit/src/android/webkit/cts/
DWebViewTest.java1376 DisplayMetrics metrics = mOnUiThread.getDisplayMetrics(); in testFindAll()
1398 DisplayMetrics metrics = mOnUiThread.getDisplayMetrics(); in testFindNext()
1525 DisplayMetrics metrics = mOnUiThread.getDisplayMetrics(); in testPageScroll()
1611 DisplayMetrics metrics = mOnUiThread.getDisplayMetrics(); in testGetContentHeight()
1680 DisplayMetrics metrics = mOnUiThread.getDisplayMetrics(); in testFlingScroll()
1933 getActivity().getResources().getDisplayMetrics().density; in testSetInitialScale()
2079 DisplayMetrics metrics = mOnUiThread.getDisplayMetrics(); in testRequestChildRectangleOnScreen()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/
DDetermineFovActivity.java219 .getDisplayMetrics().scaledDensity; in drawContents()
/cts/tests/tests/content/src/android/content/pm/cts/
DComponentInfoTest.java72 int size = Math.round(100 * getContext().getResources().getDisplayMetrics().density) + 100; in createIconBitmap()
/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()
/cts/tests/tests/widget/src/android/widget/cts/util/
DTestUtils.java359 final float density = context.getResources().getDisplayMetrics().density;

12