Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/appwidget/
DAppWidgetManager.java193 private DisplayMetrics mDisplayMetrics; field in AppWidgetManager
221 mDisplayMetrics = context.getResources().getDisplayMetrics(); in AppWidgetManager()
378 TypedValue.complexToDimensionPixelSize(info.minWidth, mDisplayMetrics); in getInstalledProviders()
380 TypedValue.complexToDimensionPixelSize(info.minHeight, mDisplayMetrics); in getInstalledProviders()
382 TypedValue.complexToDimensionPixelSize(info.minResizeWidth, mDisplayMetrics); in getInstalledProviders()
384 TypedValue.complexToDimensionPixelSize(info.minResizeHeight, mDisplayMetrics); in getInstalledProviders()
405 TypedValue.complexToDimensionPixelSize(info.minWidth, mDisplayMetrics); in getAppWidgetInfo()
407 TypedValue.complexToDimensionPixelSize(info.minHeight, mDisplayMetrics); in getAppWidgetInfo()
409 TypedValue.complexToDimensionPixelSize(info.minResizeWidth, mDisplayMetrics); in getAppWidgetInfo()
411 TypedValue.complexToDimensionPixelSize(info.minResizeHeight, mDisplayMetrics); in getAppWidgetInfo()
DAppWidgetHost.java48 private DisplayMetrics mDisplayMetrics; field in AppWidgetHost
109 mDisplayMetrics = context.getResources().getDisplayMetrics(); in AppWidgetHost()
261 TypedValue.complexToDimensionPixelSize(appWidget.minWidth, mDisplayMetrics); in onProviderChanged()
263 TypedValue.complexToDimensionPixelSize(appWidget.minHeight, mDisplayMetrics); in onProviderChanged()
265 TypedValue.complexToDimensionPixelSize(appWidget.minResizeWidth, mDisplayMetrics); in onProviderChanged()
267 TypedValue.complexToDimensionPixelSize(appWidget.minResizeHeight, mDisplayMetrics); in onProviderChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DGlobalScreenshot.java252 private DisplayMetrics mDisplayMetrics; field in GlobalScreenshot
310 mDisplayMetrics = new DisplayMetrics(); in GlobalScreenshot()
311 mDisplay.getRealMetrics(mDisplayMetrics); in GlobalScreenshot()
319 mBgPaddingScale = mBgPadding / mDisplayMetrics.widthPixels; in GlobalScreenshot()
356 mDisplay.getRealMetrics(mDisplayMetrics); in takeScreenshot()
357 float[] dims = {mDisplayMetrics.widthPixels, mDisplayMetrics.heightPixels}; in takeScreenshot()
371 Bitmap ss = Bitmap.createBitmap(mDisplayMetrics.widthPixels, in takeScreenshot()
372 mDisplayMetrics.heightPixels, Bitmap.Config.ARGB_8888); in takeScreenshot()
394 startAnimation(finisher, mDisplayMetrics.widthPixels, mDisplayMetrics.heightPixels, in takeScreenshot()
/frameworks/base/policy/src/com/android/internal/policy/impl/
DIconUtilities.java63 private final DisplayMetrics mDisplayMetrics; field in IconUtilities
69 DisplayMetrics metrics = mDisplayMetrics = resources.getDisplayMetrics(); in IconUtilities()
121 bitmapDrawable.setTargetDensity(mDisplayMetrics); in createIconBitmap()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBar.java226 DisplayMetrics mDisplayMetrics = new DisplayMetrics(); field in PhoneStatusBar
273 mDisplay.getMetrics(mDisplayMetrics); in makeStatusBarView()
275 Slog.d(TAG, "makeStatusBarView: mDisplayMetrics=" + mDisplayMetrics); in makeStatusBarView()
276 mDisplayMetrics = res.getDisplayMetrics(); in makeStatusBarView()
277 Slog.d(TAG, "makeStatusBarView: mDisplayMetrics2=" + mDisplayMetrics); in makeStatusBarView()
1204 y = mDisplayMetrics.heightPixels-1; in animateCollapse()
1263 if (mAnimY >= mDisplayMetrics.heightPixels-1) { in doAnimation()
1370 || (y > (mDisplayMetrics.heightPixels*(1f-mCollapseMinDisplayFraction)) && in performFling()
1389 || (y > (mDisplayMetrics.heightPixels*(1f-mExpandMinDisplayFraction)) && in performFling()
1449 (mExpanded && y > (mDisplayMetrics.heightPixels-hitSize))) { in interceptTouchEvent()
[all …]
/frameworks/base/core/java/android/app/
DActivityThread.java186 final HashMap<CompatibilityInfo, DisplayMetrics> mDisplayMetrics field in ActivityThread
1408 DisplayMetrics dm = mDisplayMetrics.get(ci); in getDisplayMetricsLocked()
1414 mDisplayMetrics.put(ci, dm); in getDisplayMetricsLocked()
/frameworks/base/services/java/com/android/server/wm/
DWindowManagerService.java490 final DisplayMetrics mDisplayMetrics = new DisplayMetrics(); field in WindowManagerService
5901 final DisplayMetrics dm = mDisplayMetrics; in computeNewConfigurationLocked()