Home
last modified time | relevance | path

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

/packages/apps/Nfc/src/com/android/nfc/beam/
DSendUi.java142 final DisplayMetrics mDisplayMetrics; field in SendUi
208 mDisplayMetrics = new DisplayMetrics(); in SendUi()
363 mDisplay.getRealMetrics(mDisplayMetrics); in showPreSend()
610 mDisplay.getRealMetrics(mDisplayMetrics); in createScreenshot()
611 float smallestWidth = (float)Math.min(mDisplayMetrics.widthPixels, in createScreenshot()
612 mDisplayMetrics.heightPixels); in createScreenshot()
613 float smallestWidthDp = smallestWidth / (mDisplayMetrics.densityDpi / 160f); in createScreenshot()
619 Rect crop = new Rect(0, statusBarHeight, mDisplayMetrics.widthPixels, in createScreenshot()
620 mDisplayMetrics.heightPixels); in createScreenshot()
621 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/functional/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/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothPairingServiceTest.java64 private DisplayMetrics mDisplayMetrics; field in BluetoothPairingServiceTest
82 when(mResources.getDisplayMetrics()).thenReturn(mDisplayMetrics); in setUp()
83 mDisplayMetrics.density = 1.5f; in setUp()
/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()
/packages/apps/Settings/tests/robotests/src/com/android/settings/sim/
DSimSelectNotificationTest.java96 private DisplayMetrics mDisplayMetrics; field in SimSelectNotificationTest
154 when(mResources.getDisplayMetrics()).thenReturn(mDisplayMetrics); in setUp()
155 mDisplayMetrics.density = 1.5f; in setUp()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DNetworkNotificationManagerTest.java141 @Mock DisplayMetrics mDisplayMetrics; field in NetworkNotificationManagerTest
163 mDisplayMetrics.density = 2.275f; in setUp()
176 when(mResources.getDisplayMetrics()).thenReturn(mDisplayMetrics); in setUp()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DComponentContextFixture.java512 private final DisplayMetrics mDisplayMetrics = mock(DisplayMetrics.class);
545 when(mResources.getDisplayMetrics()).thenReturn(mDisplayMetrics);
546 mDisplayMetrics.density = 3.125f;