/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | ResourcesManagerTest.java | 37 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/packages/SystemUI/src/com/android/systemui/screenshot/ |
D | GlobalScreenshot.java | 416 private DisplayMetrics mDisplayMetrics; field in GlobalScreenshot 479 mDisplayMetrics = new DisplayMetrics(); in GlobalScreenshot() 480 mDisplay.getRealMetrics(mDisplayMetrics); in GlobalScreenshot() 488 mBgPaddingScale = mBgPadding / mDisplayMetrics.widthPixels; in GlobalScreenshot() 498 panelWidth = mDisplayMetrics.widthPixels; in GlobalScreenshot() 548 mDisplay.getRealMetrics(mDisplayMetrics); in takeScreenshot() 549 float[] dims = {mDisplayMetrics.widthPixels, mDisplayMetrics.heightPixels}; in takeScreenshot() 572 Bitmap ss = Bitmap.createBitmap(mDisplayMetrics.widthPixels, in takeScreenshot() 573 mDisplayMetrics.heightPixels, Bitmap.Config.ARGB_8888); in takeScreenshot() 585 if (width != mDisplayMetrics.widthPixels || height != mDisplayMetrics.heightPixels) { in takeScreenshot() [all …]
|
/frameworks/base/core/java/android/appwidget/ |
D | AppWidgetHost.java | 59 private DisplayMetrics mDisplayMetrics; field in AppWidgetHost 163 mDisplayMetrics = context.getResources().getDisplayMetrics(); in AppWidgetHost() 385 TypedValue.complexToDimensionPixelSize(appWidget.minWidth, mDisplayMetrics); in onProviderChanged() 387 TypedValue.complexToDimensionPixelSize(appWidget.minHeight, mDisplayMetrics); in onProviderChanged() 389 TypedValue.complexToDimensionPixelSize(appWidget.minResizeWidth, mDisplayMetrics); in onProviderChanged() 391 TypedValue.complexToDimensionPixelSize(appWidget.minResizeHeight, mDisplayMetrics); in onProviderChanged()
|
D | AppWidgetManager.java | 427 private final DisplayMetrics mDisplayMetrics; field in AppWidgetManager 447 mDisplayMetrics = context.getResources().getDisplayMetrics(); in AppWidgetManager() 1074 mDisplayMetrics); in convertSizesToPixels() 1076 mDisplayMetrics); in convertSizesToPixels() 1078 mDisplayMetrics); in convertSizesToPixels() 1080 mDisplayMetrics); in convertSizesToPixels()
|
/frameworks/opt/setupwizard/library/eclair-mr1/test/src/com/android/setupwizardlib/test/ |
D | LinkAccessibilityHelperTest.java | 44 private DisplayMetrics mDisplayMetrics; field in LinkAccessibilityHelperTest 172 if (mDisplayMetrics == null) { in dp2Px() 173 mDisplayMetrics = getContext().getResources().getDisplayMetrics(); in dp2Px() 175 return (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, mDisplayMetrics); in dp2Px()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | IconUtilities.java | 56 private final DisplayMetrics mDisplayMetrics; field in IconUtilities 62 DisplayMetrics metrics = mDisplayMetrics = resources.getDisplayMetrics(); in IconUtilities() 118 bitmapDrawable.setTargetDensity(mDisplayMetrics); in createIconBitmap()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | TaskPositioner.java | 95 private final DisplayMetrics mDisplayMetrics = new DisplayMetrics(); field in TaskPositioner 242 mDisplay.getMetrics(mDisplayMetrics); in register() 293 mSideMargin = dipToPixel(SIDE_MARGIN_DIP, mDisplayMetrics); in register() 294 mMinVisibleWidth = dipToPixel(MINIMUM_VISIBLE_WIDTH_IN_DP, mDisplayMetrics); in register() 295 mMinVisibleHeight = dipToPixel(MINIMUM_VISIBLE_HEIGHT_IN_DP, mDisplayMetrics); in register()
|
D | DisplayContent.java | 70 private final DisplayMetrics mDisplayMetrics = new DisplayMetrics(); field in DisplayContent 127 display.getMetrics(mDisplayMetrics); in DisplayContent() 152 return mDisplayMetrics; in getDisplayMetrics() 206 mDisplay.getMetrics(mDisplayMetrics); in updateDisplayInfo() 332 final int delta = mService.dipToPixel(RESIZE_HANDLE_WIDTH_IN_DP, mDisplayMetrics); in findTaskForControlPoint() 369 final int delta = mService.dipToPixel(RESIZE_HANDLE_WIDTH_IN_DP, mDisplayMetrics); in setTouchExcludeRegion()
|
D | WindowManagerService.java | 623 final DisplayMetrics mDisplayMetrics = new DisplayMetrics(); field in WindowManagerService 7536 displayInfo.getAppMetrics(mDisplayMetrics); in updateDisplayAndOrientationLocked() 7551 mCompatibleScreenScale = CompatibilityInfo.computeCompatibleScaling(mDisplayMetrics, in updateDisplayAndOrientationLocked() 7567 mDisplayMetrics.density); in computeScreenConfigurationLocked() 7570 mDisplayMetrics.density); in computeScreenConfigurationLocked() 7575 mDisplayMetrics.density, config); in computeScreenConfigurationLocked() 7585 mDisplayMetrics, dw, dh); in computeScreenConfigurationLocked()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | PhoneStatusBar.java | 400 DisplayMetrics mDisplayMetrics = new DisplayMetrics(); field in PhoneStatusBar 3244 pw.println(" mDisplayMetrics=" + mDisplayMetrics); in dump() 3401 mDisplay.getMetrics(mDisplayMetrics); in updateDisplaySize() 3405 … String.format("%dx%d", mDisplayMetrics.widthPixels, mDisplayMetrics.heightPixels)); in updateDisplaySize() 3410 return mDisplayMetrics.density; in getDisplayDensity() 4526 (int) (dragLengthY / mDisplayMetrics.density), in onDraggedDown()
|