/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | ResourcesManagerTest.java | 39 private DisplayMetrics mDisplayMetrics; field in ResourcesManagerTest 45 mDisplayMetrics = new DisplayMetrics(); in setUp() 46 mDisplayMetrics.setToDefaults(); in setUp() 49 mDisplayMetrics.density = 1.0f; in setUp() 50 mDisplayMetrics.densityDpi = DisplayMetrics.DENSITY_DEFAULT; in setUp() 51 mDisplayMetrics.xdpi = DisplayMetrics.DENSITY_DEFAULT; in setUp() 52 mDisplayMetrics.ydpi = DisplayMetrics.DENSITY_DEFAULT; in setUp() 53 mDisplayMetrics.noncompatDensity = mDisplayMetrics.density; in setUp() 54 mDisplayMetrics.noncompatDensityDpi = mDisplayMetrics.densityDpi; in setUp() 55 mDisplayMetrics.noncompatXdpi = DisplayMetrics.DENSITY_DEFAULT; in setUp() [all …]
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | IconUtilities.java | 51 private final DisplayMetrics mDisplayMetrics; field in IconUtilities 57 DisplayMetrics metrics = mDisplayMetrics = resources.getDisplayMetrics(); in IconUtilities() 84 bitmapDrawable.setTargetDensity(mDisplayMetrics); in createIconBitmap()
|
/frameworks/opt/setupwizard/library/gingerbread/test/instrumentation/src/com/android/setupwizardlib/util/ |
D | LinkAccessibilityHelperTest.java | 60 private DisplayMetrics mDisplayMetrics; field in LinkAccessibilityHelperTest 321 if (mDisplayMetrics == null) { in dp2Px() 322 mDisplayMetrics = InstrumentationRegistry.getContext().getResources().getDisplayMetrics(); in dp2Px() 324 return (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, mDisplayMetrics); in dp2Px()
|
/frameworks/base/core/java/android/appwidget/ |
D | AppWidgetManager.java | 469 private final DisplayMetrics mDisplayMetrics; field in AppWidgetManager 490 mDisplayMetrics = context.getResources().getDisplayMetrics(); in AppWidgetManager() 867 info.updateDimensions(mDisplayMetrics); in getInstalledProvidersForProfile() 889 info.updateDimensions(mDisplayMetrics); in getAppWidgetInfo()
|
D | AppWidgetHost.java | 64 private DisplayMetrics mDisplayMetrics; field in AppWidgetHost 170 mDisplayMetrics = context.getResources().getDisplayMetrics(); in AppWidgetHost() 420 appWidget.updateDimensions(mDisplayMetrics); in onProviderChanged()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | TaskPositioner.java | 103 private final DisplayMetrics mDisplayMetrics = new DisplayMetrics(); field in TaskPositioner 259 display.getMetrics(mDisplayMetrics); in register() 314 mSideMargin = dipToPixel(SIDE_MARGIN_DIP, mDisplayMetrics); in register() 315 mMinVisibleWidth = dipToPixel(MINIMUM_VISIBLE_WIDTH_IN_DP, mDisplayMetrics); in register() 316 mMinVisibleHeight = dipToPixel(MINIMUM_VISIBLE_HEIGHT_IN_DP, mDisplayMetrics); in register()
|
D | DisplayContent.java | 328 private final DisplayMetrics mDisplayMetrics = new DisplayMetrics(); field in DisplayContent 908 display.getMetrics(mDisplayMetrics); in DisplayContent() 910 * mDisplayMetrics.densityDpi / DENSITY_DEFAULT; in DisplayContent() 1113 return mDisplayMetrics; in getDisplayMetrics() 1622 mDisplayInfo.getAppMetrics(mDisplayMetrics); in updateDisplayAndOrientation() 1630 mDisplayMetrics.density, outConfig); in updateDisplayAndOrientation() 1644 mCompatibleScreenScale = CompatibilityInfo.computeCompatibleScaling(mDisplayMetrics, in updateDisplayAndOrientation() 1691 final float density = mDisplayMetrics.density; in computeScreenConfiguration() 1804 mTmpDisplayMetrics.setTo(mDisplayMetrics); in computeCompatSmallestWidth() 2214 mDisplay.getMetrics(mDisplayMetrics); in updateDisplayInfo() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ |
D | GlobalScreenshot.java | 605 private DisplayMetrics mDisplayMetrics; field in GlobalScreenshot 666 mDisplayMetrics = new DisplayMetrics(); in GlobalScreenshot() 667 mDisplay.getRealMetrics(mDisplayMetrics); in GlobalScreenshot() 675 mBgPaddingScale = mBgPadding / mDisplayMetrics.widthPixels; in GlobalScreenshot() 685 panelWidth = mDisplayMetrics.widthPixels; in GlobalScreenshot() 736 startAnimation(finisher, mDisplayMetrics.widthPixels, mDisplayMetrics.heightPixels, in takeScreenshot() 741 mDisplay.getRealMetrics(mDisplayMetrics); in takeScreenshot() 743 new Rect(0, 0, mDisplayMetrics.widthPixels, mDisplayMetrics.heightPixels)); in takeScreenshot()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | StatusBar.java | 435 private final DisplayMetrics mDisplayMetrics = Dependency.get(DisplayMetrics.class); field in StatusBar 2361 pw.println(" mDisplayMetrics=" + mDisplayMetrics); in dump() 2507 mDisplay.getMetrics(mDisplayMetrics); in updateDisplaySize() 2511 … String.format("%dx%d", mDisplayMetrics.widthPixels, mDisplayMetrics.heightPixels)); in updateDisplaySize() 2516 return mDisplayMetrics.density; in getDisplayDensity() 2520 return mDisplayMetrics.widthPixels; in getDisplayWidth() 2524 return mDisplayMetrics.heightPixels; in getDisplayHeight()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | Dependency.java | 249 @Inject Lazy<DisplayMetrics> mDisplayMetrics; field in Dependency 431 mProviders.put(DisplayMetrics.class, mDisplayMetrics::get); in start()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ |
D | NotificationStackScrollLayout.java | 488 private final DisplayMetrics mDisplayMetrics = Dependency.get(DisplayMetrics.class); field in NotificationStackScrollLayout 6366 (int) (dragLengthY / mDisplayMetrics.density),
|
/frameworks/base/config/ |
D | hiddenapi-greylist-max-o.txt | 9745 Landroid/appwidget/AppWidgetHost;->mDisplayMetrics:Landroid/util/DisplayMetrics; 9793 Landroid/appwidget/AppWidgetManager;->mDisplayMetrics:Landroid/util/DisplayMetrics;
|