Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/appwidget/
DAppWidgetHost.java58 private DisplayMetrics mDisplayMetrics; field in AppWidgetHost
135 mDisplayMetrics = context.getResources().getDisplayMetrics(); in AppWidgetHost()
349 TypedValue.complexToDimensionPixelSize(appWidget.minWidth, mDisplayMetrics); in onProviderChanged()
351 TypedValue.complexToDimensionPixelSize(appWidget.minHeight, mDisplayMetrics); in onProviderChanged()
353 TypedValue.complexToDimensionPixelSize(appWidget.minResizeWidth, mDisplayMetrics); in onProviderChanged()
355 TypedValue.complexToDimensionPixelSize(appWidget.minResizeHeight, mDisplayMetrics); in onProviderChanged()
DAppWidgetManager.java426 private final DisplayMetrics mDisplayMetrics; field in AppWidgetManager
446 mDisplayMetrics = context.getResources().getDisplayMetrics(); in AppWidgetManager()
1073 mDisplayMetrics); in convertSizesToPixels()
1075 mDisplayMetrics); in convertSizesToPixels()
1077 mDisplayMetrics); in convertSizesToPixels()
1079 mDisplayMetrics); in convertSizesToPixels()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DGlobalScreenshot.java365 private DisplayMetrics mDisplayMetrics; field in GlobalScreenshot
423 mDisplayMetrics = new DisplayMetrics(); in GlobalScreenshot()
424 mDisplay.getRealMetrics(mDisplayMetrics); in GlobalScreenshot()
432 mBgPaddingScale = mBgPadding / mDisplayMetrics.widthPixels; in GlobalScreenshot()
442 panelWidth = mDisplayMetrics.widthPixels; in GlobalScreenshot()
491 mDisplay.getRealMetrics(mDisplayMetrics); in takeScreenshot()
492 float[] dims = {mDisplayMetrics.widthPixels, mDisplayMetrics.heightPixels}; in takeScreenshot()
514 Bitmap ss = Bitmap.createBitmap(mDisplayMetrics.widthPixels, in takeScreenshot()
515 mDisplayMetrics.heightPixels, Bitmap.Config.ARGB_8888); in takeScreenshot()
532 startAnimation(finisher, mDisplayMetrics.widthPixels, mDisplayMetrics.heightPixels, in takeScreenshot()
/frameworks/base/policy/src/com/android/internal/policy/impl/
DIconUtilities.java56 private final DisplayMetrics mDisplayMetrics; field in IconUtilities
62 DisplayMetrics metrics = mDisplayMetrics = resources.getDisplayMetrics(); in IconUtilities()
118 bitmapDrawable.setTargetDensity(mDisplayMetrics); in createIconBitmap()
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DSlidingChallengeLayout.java64 private DisplayMetrics mDisplayMetrics; field in SlidingChallengeLayout
251 mDisplayMetrics = res.getDisplayMetrics(); in SlidingChallengeLayout()
252 final float density = mDisplayMetrics.density; in SlidingChallengeLayout()
889 final int windowHeight = mDisplayMetrics.heightPixels
919 final int windowWidth = mDisplayMetrics.widthPixels;
920 final int windowHeight = mDisplayMetrics.heightPixels
DMultiPaneChallengeLayout.java52 private final DisplayMetrics mDisplayMetrics; field in MultiPaneChallengeLayout
79 mDisplayMetrics = res.getDisplayMetrics(); in MultiPaneChallengeLayout()
195 virtualHeight = mDisplayMetrics.heightPixels - root.getPaddingTop() - mInsets.top; in getVirtualHeight()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBar.java365 DisplayMetrics mDisplayMetrics = new DisplayMetrics(); field in PhoneStatusBar
2908 pw.println(" mDisplayMetrics=" + mDisplayMetrics);
3073 mDisplay.getMetrics(mDisplayMetrics);
3077 … String.format("%dx%d", mDisplayMetrics.widthPixels, mDisplayMetrics.heightPixels));
3082 return mDisplayMetrics.density;
3976 (int) (dragLengthY / mDisplayMetrics.density),
/frameworks/base/services/core/java/com/android/server/wm/
DWindowManagerService.java535 final DisplayMetrics mDisplayMetrics = new DisplayMetrics(); field in WindowManagerService
7235 displayInfo.getAppMetrics(mDisplayMetrics); in computeScreenConfigurationLocked()
7243 final DisplayMetrics dm = mDisplayMetrics; in computeScreenConfigurationLocked()