Home
last modified time | relevance | path

Searched refs:mDisplayMetrics (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/content/res/
DResourcesManagerTest.java37 private DisplayMetrics mDisplayMetrics; field in ResourcesManagerTest
43 mDisplayMetrics = new DisplayMetrics(); in setUp()
44 mDisplayMetrics.setToDefaults(); in setUp()
47 mDisplayMetrics.density = 1.0f; in setUp()
48 mDisplayMetrics.densityDpi = DisplayMetrics.DENSITY_DEFAULT; in setUp()
49 mDisplayMetrics.xdpi = DisplayMetrics.DENSITY_DEFAULT; in setUp()
50 mDisplayMetrics.ydpi = DisplayMetrics.DENSITY_DEFAULT; in setUp()
51 mDisplayMetrics.noncompatDensity = mDisplayMetrics.density; in setUp()
52 mDisplayMetrics.noncompatDensityDpi = mDisplayMetrics.densityDpi; in setUp()
53 mDisplayMetrics.noncompatXdpi = DisplayMetrics.DENSITY_DEFAULT; in setUp()
[all …]
/frameworks/base/services/core/java/com/android/server/policy/
DIconUtilities.java51 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/
DLinkAccessibilityHelperTest.java63 private DisplayMetrics mDisplayMetrics; field in LinkAccessibilityHelperTest
325 if (mDisplayMetrics == null) { in dp2Px()
326 mDisplayMetrics = in dp2Px()
329 return (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, mDisplayMetrics); in dp2Px()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DGlobalScreenshot.java450 private DisplayMetrics mDisplayMetrics; field in GlobalScreenshot
513 mDisplayMetrics = new DisplayMetrics(); in GlobalScreenshot()
514 mDisplay.getRealMetrics(mDisplayMetrics); in GlobalScreenshot()
522 mBgPaddingScale = mBgPadding / mDisplayMetrics.widthPixels; in GlobalScreenshot()
532 panelWidth = mDisplayMetrics.widthPixels; in GlobalScreenshot()
598 startAnimation(finisher, mDisplayMetrics.widthPixels, mDisplayMetrics.heightPixels, in takeScreenshot()
603 mDisplay.getRealMetrics(mDisplayMetrics); in takeScreenshot()
605 new Rect(0, 0, mDisplayMetrics.widthPixels, mDisplayMetrics.heightPixels)); in takeScreenshot()
/frameworks/base/core/java/android/appwidget/
DAppWidgetManager.java467 private final DisplayMetrics mDisplayMetrics; field in AppWidgetManager
488 mDisplayMetrics = context.getResources().getDisplayMetrics(); in AppWidgetManager()
863 info.updateDimensions(mDisplayMetrics); in getInstalledProvidersForProfile()
885 info.updateDimensions(mDisplayMetrics); in getAppWidgetInfo()
DAppWidgetHost.java61 private DisplayMetrics mDisplayMetrics; field in AppWidgetHost
165 mDisplayMetrics = context.getResources().getDisplayMetrics(); in AppWidgetHost()
415 appWidget.updateDimensions(mDisplayMetrics); in onProviderChanged()
/frameworks/base/services/core/java/com/android/server/wm/
DTaskPositioner.java98 private final DisplayMetrics mDisplayMetrics = new DisplayMetrics(); field in TaskPositioner
245 mDisplay.getMetrics(mDisplayMetrics); in register()
296 mSideMargin = dipToPixel(SIDE_MARGIN_DIP, mDisplayMetrics); in register()
297 mMinVisibleWidth = dipToPixel(MINIMUM_VISIBLE_WIDTH_IN_DP, mDisplayMetrics); in register()
298 mMinVisibleHeight = dipToPixel(MINIMUM_VISIBLE_HEIGHT_IN_DP, mDisplayMetrics); in register()
DDisplayContent.java236 private final DisplayMetrics mDisplayMetrics = new DisplayMetrics(); field in DisplayContent
757 display.getMetrics(mDisplayMetrics); in DisplayContent()
912 return mDisplayMetrics; in getDisplayMetrics()
1214 mDisplayInfo.getAppMetrics(mDisplayMetrics); in updateDisplayAndOrientation()
1233 mCompatibleScreenScale = CompatibilityInfo.computeCompatibleScaling(mDisplayMetrics, in updateDisplayAndOrientation()
1278 final float density = mDisplayMetrics.density; in computeScreenConfiguration()
1386 mTmpDisplayMetrics.setTo(mDisplayMetrics); in computeCompatSmallestWidth()
1728 mDisplay.getMetrics(mDisplayMetrics); in updateDisplayInfo()
1905 final int delta = dipToPixel(RESIZE_HANDLE_WIDTH_IN_DP, mDisplayMetrics); in findTaskForResizePoint()
1928 final int delta = dipToPixel(RESIZE_HANDLE_WIDTH_IN_DP, mDisplayMetrics); in setTouchExcludeRegion()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBar.java443 private final DisplayMetrics mDisplayMetrics = new DisplayMetrics(); field in StatusBar
2740 pw.println(" mDisplayMetrics=" + mDisplayMetrics); in dump()
2894 mDisplay.getMetrics(mDisplayMetrics); in updateDisplaySize()
2898 … String.format("%dx%d", mDisplayMetrics.widthPixels, mDisplayMetrics.heightPixels)); in updateDisplaySize()
2903 return mDisplayMetrics.density; in getDisplayDensity()
2907 return mDisplayMetrics.widthPixels; in getDisplayWidth()
2911 return mDisplayMetrics.heightPixels; in getDisplayHeight()
4169 (int) (dragLengthY / mDisplayMetrics.density), in onDraggedDown()