Home
last modified time | relevance | path

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

/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/apps/WallpaperPicker2/src/com/android/wallpaper/util/
DWallpaperConnection.java115 @Nullable private Point mDisplayMetrics; field in WallpaperConnection
503 if (mDisplayMetrics != null) { in getDisplayMetrics()
504 return mDisplayMetrics; in getDisplayMetrics()
512 mDisplayMetrics = screenSizeCalculator.getScreenSize(display); in getDisplayMetrics()
513 return mDisplayMetrics; in getDisplayMetrics()
/packages/services/BuiltInPrintService/src/com/android/bips/
DImagePrintActivity.java75 private DisplayMetrics mDisplayMetrics = new DisplayMetrics(); field in ImagePrintActivity
95 getWindowManager().getDefaultDisplay().getMetrics(mDisplayMetrics); in onCreate()
247 mDisplayMetrics.widthPixels * 1000 / mediaSize.getWidthMils(), in onLayout()
248 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()
180 mDisplayMetrics, in open()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/audiosharing/audiostreams/
DAudioStreamMediaServiceTest.java99 @Mock private DisplayMetrics mDisplayMetrics; field in AudioStreamMediaServiceTest
136 when(mResources.getDisplayMetrics()).thenReturn(mDisplayMetrics); in setUp()
137 mDisplayMetrics.density = 1.5f; in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/sim/
DSimSelectNotificationTest.java103 private DisplayMetrics mDisplayMetrics; field in SimSelectNotificationTest
166 when(mResources.getDisplayMetrics()).thenReturn(mDisplayMetrics); in setUp()
167 mDisplayMetrics.density = 1.5f; in setUp()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DNetworkNotificationManagerTest.java158 @Mock DisplayMetrics mDisplayMetrics; field in NetworkNotificationManagerTest
185 mDisplayMetrics.density = 2.275f; in setUp()
198 doReturn(mDisplayMetrics).when(mResources).getDisplayMetrics(); in setUp()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DComponentContextFixture.java617 private final DisplayMetrics mDisplayMetrics = mock(DisplayMetrics.class);
656 when(mResources.getDisplayMetrics()).thenReturn(mDisplayMetrics);
657 mDisplayMetrics.density = 3.125f;