Searched refs:mDisplayMetrics (Results 1 – 6 of 6) sorted by relevance
/packages/apps/Nfc/src/com/android/nfc/beam/ |
D | SendUi.java | 143 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/ |
D | HvacUiService.java | 67 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/ |
D | SimpleScrollAdapterTransform.java | 41 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/functional/com/android/documentsui/ui/ |
D | ThemeUiTestBase.java | 46 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/ |
D | ImagePrintActivity.java | 71 private DisplayMetrics mDisplayMetrics = new DisplayMetrics(); field in ImagePrintActivity 91 getWindowManager().getDefaultDisplay().getMetrics(mDisplayMetrics); in onCreate() 241 mDisplayMetrics.widthPixels * 1000 / mediaSize.getWidthMils(), in onLayout() 242 mDisplayMetrics.heightPixels * 1000 / mediaSize.getHeightMils()); in onLayout()
|
/packages/apps/Camera2/src/com/android/camera/one/v2/ |
D | Camera2OneCameraOpenerImpl.java | 59 private final DisplayMetrics mDisplayMetrics; field in Camera2OneCameraOpenerImpl 99 mDisplayMetrics = displayMetrics; in Camera2OneCameraOpenerImpl() 172 mDisplayMetrics, in open()
|