/frameworks/base/core/tests/coretests/src/android/content/res/ |
H A D | ResourcesManagerTest.java | 37 private DisplayMetrics mDisplayMetrics; field in class:ResourcesManagerTest 43 mDisplayMetrics = new DisplayMetrics(); 44 mDisplayMetrics.setToDefaults(); 47 mDisplayMetrics.density = 1.0f; 48 mDisplayMetrics.densityDpi = DisplayMetrics.DENSITY_DEFAULT; 49 mDisplayMetrics.xdpi = DisplayMetrics.DENSITY_DEFAULT; 50 mDisplayMetrics.ydpi = DisplayMetrics.DENSITY_DEFAULT; 51 mDisplayMetrics.noncompatDensity = mDisplayMetrics.density; 52 mDisplayMetrics [all...] |
/frameworks/base/core/java/android/appwidget/ |
H A D | AppWidgetHost.java | 59 private DisplayMetrics mDisplayMetrics; field in class:AppWidgetHost 163 mDisplayMetrics = context.getResources().getDisplayMetrics(); 385 TypedValue.complexToDimensionPixelSize(appWidget.minWidth, mDisplayMetrics); 387 TypedValue.complexToDimensionPixelSize(appWidget.minHeight, mDisplayMetrics); 389 TypedValue.complexToDimensionPixelSize(appWidget.minResizeWidth, mDisplayMetrics); 391 TypedValue.complexToDimensionPixelSize(appWidget.minResizeHeight, mDisplayMetrics);
|
H A D | AppWidgetManager.java | 427 private final DisplayMetrics mDisplayMetrics; field in class:AppWidgetManager 447 mDisplayMetrics = context.getResources().getDisplayMetrics(); 1074 mDisplayMetrics); 1076 mDisplayMetrics); 1078 mDisplayMetrics); 1080 mDisplayMetrics);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ |
H A D | GlobalScreenshot.java | 416 private DisplayMetrics mDisplayMetrics; field in class:GlobalScreenshot 479 mDisplayMetrics = new DisplayMetrics(); 480 mDisplay.getRealMetrics(mDisplayMetrics); 488 mBgPaddingScale = mBgPadding / mDisplayMetrics.widthPixels; 498 panelWidth = mDisplayMetrics.widthPixels; 548 mDisplay.getRealMetrics(mDisplayMetrics); 549 float[] dims = {mDisplayMetrics.widthPixels, mDisplayMetrics.heightPixels}; 572 Bitmap ss = Bitmap.createBitmap(mDisplayMetrics.widthPixels, 573 mDisplayMetrics [all...] |
/frameworks/opt/setupwizard/library/eclair-mr1/test/src/com/android/setupwizardlib/test/ |
H A D | LinkAccessibilityHelperTest.java | 44 private DisplayMetrics mDisplayMetrics; field in class:LinkAccessibilityHelperTest 172 if (mDisplayMetrics == null) { 173 mDisplayMetrics = getContext().getResources().getDisplayMetrics(); 175 return (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, mDisplayMetrics);
|
/frameworks/base/services/core/java/com/android/server/policy/ |
H A D | IconUtilities.java | 56 private final DisplayMetrics mDisplayMetrics; field in class:IconUtilities 62 DisplayMetrics metrics = mDisplayMetrics = resources.getDisplayMetrics(); 118 bitmapDrawable.setTargetDensity(mDisplayMetrics);
|
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | TaskPositioner.java | 95 private final DisplayMetrics mDisplayMetrics = new DisplayMetrics(); field in class:TaskPositioner 242 mDisplay.getMetrics(mDisplayMetrics); 293 mSideMargin = dipToPixel(SIDE_MARGIN_DIP, mDisplayMetrics); 294 mMinVisibleWidth = dipToPixel(MINIMUM_VISIBLE_WIDTH_IN_DP, mDisplayMetrics); 295 mMinVisibleHeight = dipToPixel(MINIMUM_VISIBLE_HEIGHT_IN_DP, mDisplayMetrics);
|
H A D | DisplayContent.java | 74 private final DisplayMetrics mDisplayMetrics = new DisplayMetrics(); field in class:DisplayContent 133 display.getMetrics(mDisplayMetrics); 158 return mDisplayMetrics; 212 mDisplay.getMetrics(mDisplayMetrics); 352 final int delta = mService.dipToPixel(RESIZE_HANDLE_WIDTH_IN_DP, mDisplayMetrics); 389 final int delta = mService.dipToPixel(RESIZE_HANDLE_WIDTH_IN_DP, mDisplayMetrics);
|
H A D | WindowManagerService.java | 627 final DisplayMetrics mDisplayMetrics = new DisplayMetrics(); field in class:WindowManagerService 7652 displayInfo.getAppMetrics(mDisplayMetrics); 7667 mCompatibleScreenScale = CompatibilityInfo.computeCompatibleScaling(mDisplayMetrics, 7683 mDisplayMetrics.density); 7686 mDisplayMetrics.density); 7691 mDisplayMetrics.density, config); 7701 mDisplayMetrics, dw, dh);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | PhoneStatusBar.java | 410 DisplayMetrics mDisplayMetrics = new DisplayMetrics(); field in class:PhoneStatusBar 739 updateDisplaySize(); // populates mDisplayMetrics 3281 pw.println(" mDisplayMetrics=" + mDisplayMetrics); 3441 mDisplay.getMetrics(mDisplayMetrics); 3445 String.format("%dx%d", mDisplayMetrics.widthPixels, mDisplayMetrics.heightPixels)); 3450 return mDisplayMetrics.density; 3637 updateDisplaySize(); // populates mDisplayMetrics 4577 (int) (dragLengthY / mDisplayMetrics [all...] |