Searched refs:mDisplayMetrics (Results 1 - 10 of 10) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/content/res/
H A DResourcesManagerTest.java37 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 DAppWidgetHost.java59 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 DAppWidgetManager.java427 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 DGlobalScreenshot.java416 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 DLinkAccessibilityHelperTest.java44 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 DIconUtilities.java56 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 DTaskPositioner.java95 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 DDisplayContent.java74 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 DWindowManagerService.java627 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 DPhoneStatusBar.java410 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...]

Completed in 171 milliseconds