Home
last modified time | relevance | path

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

/packages/apps/Nfc/src/com/android/nfc/beam/
DSendUi.java143 final DisplayMetrics mDisplayMetrics; field in SendUi
209 mDisplayMetrics = new DisplayMetrics(); in SendUi()
364 mDisplay.getRealMetrics(mDisplayMetrics); in showPreSend()
611 mDisplay.getRealMetrics(mDisplayMetrics); in createScreenshot()
612 float smallestWidth = (float)Math.min(mDisplayMetrics.widthPixels, in createScreenshot()
613 mDisplayMetrics.heightPixels); in createScreenshot()
614 float smallestWidthDp = smallestWidth / (mDisplayMetrics.densityDpi / 160f); in createScreenshot()
622 Rect crop = new Rect(0, statusBarHeight, mDisplayMetrics.widthPixels, in createScreenshot()
623 mDisplayMetrics.heightPixels); in createScreenshot()
624 if (mDisplayMetrics.widthPixels < mDisplayMetrics.heightPixels) { in createScreenshot()
/packages/apps/Car/Hvac/src/com/android/car/hvac/
DHvacUiService.java67 private DisplayMetrics mDisplayMetrics; field in HvacUiService
106 mDisplayMetrics = new DisplayMetrics(); in onCreate()
107 mWindowManager.getDefaultDisplay().getRealMetrics(mDisplayMetrics); in onCreate()
108 mScreenBottom = mDisplayMetrics.heightPixels; in onCreate()
109 mScreenWidth = mDisplayMetrics.widthPixels; in onCreate()
131 boolean sysUIShowing = (mDisplayMetrics.heightPixels != bottom); in onCreate()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DSimpleScrollAdapterTransform.java41 private final DisplayMetrics mDisplayMetrics; field in SimpleScrollAdapterTransform
44 mDisplayMetrics = context.getResources().getDisplayMetrics(); in SimpleScrollAdapterTransform()
93 TypedValue.COMPLEX_UNIT_DIP, duration, mDisplayMetrics)); in initializeTransformationRecursive()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/ui/
DThemeUiTestBase.java46 protected DisplayMetrics mDisplayMetrics; field in ThemeUiTestBase
54 mDisplayMetrics = mTargetContext.getResources().getDisplayMetrics(); in setUp()
60 mTargetContext.getResources().updateConfiguration(mConfiguration, mDisplayMetrics, in tearDown()
/packages/services/BuiltInPrintService/src/com/android/bips/
DImagePrintActivity.java72 private DisplayMetrics mDisplayMetrics = new DisplayMetrics(); field in ImagePrintActivity
92 getWindowManager().getDefaultDisplay().getMetrics(mDisplayMetrics); in onCreate()
243 mDisplayMetrics.widthPixels * 1000 / mediaSize.getWidthMils(), in onLayout()
244 mDisplayMetrics.heightPixels * 1000 / mediaSize.getHeightMils()); in onLayout()
/packages/apps/Camera2/src/com/android/camera/one/v2/
DCamera2OneCameraOpenerImpl.java59 private final DisplayMetrics mDisplayMetrics; field in Camera2OneCameraOpenerImpl
99 mDisplayMetrics = displayMetrics; in Camera2OneCameraOpenerImpl()
172 mDisplayMetrics, in open()