/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | DisplayTests.java | 162 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/ |
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 …]
|
D | ChangeImageTransformTest.java | 342 DisplayMetrics metrics = mActivity.getResources().getDisplayMetrics(); in enterImageViewScene()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | CanvasStateTests.java | 129 getActivity().getResources().getDisplayMetrics(); in testDrawScreenWideBitmap() 146 getActivity().getResources().getDisplayMetrics(); in testDrawLargeBitmap()
|
/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/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/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/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 | WatchPercentageScreenDimenTest.java | 51 mDisplayMetrics = mContext.getResources().getDisplayMetrics(); in setUp()
|
D | ThemeRebaseTest.java | 65 resources.updateConfiguration(mInitialConfig, resources.getDisplayMetrics()); in after()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ViewConfigurationTest.java | 92 context.getResources().getDisplayMetrics()); in testInstanceValues()
|
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/ |
D | Utils.java | 81 float density = ctx.getResources().getDisplayMetrics().density; in convertDpToPixel()
|
/cts/tests/tests/content/src/android/content/res/cts/ |
D | PluralResourcesTest.java | 46 return new Resources(mResources.getAssets(), mResources.getDisplayMetrics(), config); in resourcesForLanguage()
|
/cts/libs/deviceutillegacy/src/android/webkit/cts/ |
D | WebViewOnUiThread.java | 456 public final DisplayMetrics getDisplayMetrics() { 458 return mWebView.getContext().getResources().getDisplayMetrics();
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/ |
D | ProjectionActivity.java | 65 … DisplayMetrics metrics = ProjectionActivity.this.getResources().getDisplayMetrics();
|
/cts/tests/tests/text/src/android/text/cts/ |
D | MyanmarTest.java | 189 context.getResources().getDisplayMetrics()); in CaptureTextView()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | WebViewTest.java | 1376 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/ |
D | DetermineFovActivity.java | 219 .getDisplayMetrics().scaledDensity; in drawContents()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | ComponentInfoTest.java | 72 int size = Math.round(100 * getContext().getResources().getDisplayMetrics().density) + 100; in createIconBitmap()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | BitmapDrawableTest.java | 428 targetDensity = mContext.getResources().getDisplayMetrics().densityDpi; in testSetTargetDensity() 429 bitmapDrawable.setTargetDensity(mContext.getResources().getDisplayMetrics()); in testSetTargetDensity()
|
D | NinePatchDrawableTest.java | 383 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/ |
D | SplitAppTest.java | 559 r.updateConfiguration(c, r.getDisplayMetrics()); in updateDpi() 565 r.updateConfiguration(c, r.getDisplayMetrics()); in updateLocale()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | NinePatchTest.java | 63 mOptNoScale.inDensity = mOptNoScale.inTargetDensity = mRes.getDisplayMetrics().densityDpi; in setup()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | EditTextTest.java | 239 DisplayMetrics metrics = mActivity.getResources().getDisplayMetrics(); in testAutoSizeNotSupported()
|
/cts/tests/tests/widget/src/android/widget/cts/util/ |
D | TestUtils.java | 359 final float density = context.getResources().getDisplayMetrics().density;
|