Home
last modified time | relevance | path

Searched refs:displayMetrics (Results 1 – 12 of 12) sorted by relevance

/packages/apps/Contacts/src/com/android/contacts/editor/
DCompactPhotoEditorView.java174 final DisplayMetrics displayMetrics = new DisplayMetrics(); in getContentViewWidth() local
175 activity.getWindowManager().getDefaultDisplay().getMetrics(displayMetrics); in getContentViewWidth()
176 return displayMetrics.widthPixels; in getContentViewWidth()
185 final DisplayMetrics displayMetrics = new DisplayMetrics(); in getContentViewHeight() local
186 activity.getWindowManager().getDefaultDisplay().getMetrics(displayMetrics); in getContentViewHeight()
187 return displayMetrics.heightPixels - mActionBarHeight - mStatusBarHeight; in getContentViewHeight()
/packages/apps/Camera2/src/com/android/camera/one/v2/
DCamera2OneCameraOpenerImpl.java65 DisplayMetrics displayMetrics) { in create() argument
81 displayMetrics); in create()
94 DisplayMetrics displayMetrics) { in Camera2OneCameraOpenerImpl() argument
99 mDisplayMetrics = displayMetrics; in Camera2OneCameraOpenerImpl()
/packages/apps/Messaging/src/com/android/messaging/ui/
DSnackBarManager.java335 final DisplayMetrics displayMetrics = new DisplayMetrics(); in getScreenBottomOffset() local
337 windowManager.getDefaultDisplay().getRealMetrics(displayMetrics); in getScreenBottomOffset()
339 windowManager.getDefaultDisplay().getMetrics(displayMetrics); in getScreenBottomOffset()
341 final int screenHeight = displayMetrics.heightPixels; in getScreenBottomOffset()
/packages/apps/Camera2/src/com/android/camera/one/
DOneCameraModule.java47 DisplayMetrics displayMetrics) throws OneCameraException { in provideOneCameraOpener() argument
49 featureConfig, context, activeCameraDeviceTracker, displayMetrics); in provideOneCameraOpener()
/packages/apps/Camera2/src/com/android/camera/settings/
DResolutionUtil.java409 DisplayMetrics displayMetrics = new DisplayMetrics(); in getDisplayMetrics() local
412 wm.getDefaultDisplay().getMetrics(displayMetrics); in getDisplayMetrics()
414 return displayMetrics; in getDisplayMetrics()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DCameraManager.java961 final DisplayMetrics displayMetrics = resources.getDisplayMetrics(); in chooseBestPictureSize() local
977 screenWidth = displayMetrics.widthPixels; in chooseBestPictureSize()
978 screenHeight = displayMetrics.heightPixels; in chooseBestPictureSize()
980 screenWidth = displayMetrics.heightPixels; in chooseBestPictureSize()
981 screenHeight = displayMetrics.widthPixels; in chooseBestPictureSize()
/packages/apps/TV/usbtuner/src/com/google/android/exoplayer/text/
DSubtitleView.java104 DisplayMetrics displayMetrics = resources.getDisplayMetrics(); in SubtitleView() local
106 Math.round((2f * displayMetrics.densityDpi) / DisplayMetrics.DENSITY_DEFAULT); in SubtitleView()
/packages/apps/Camera2/src_pd/com/android/camera/one/v2/
DOneCameraCreator.java53 DisplayMetrics displayMetrics, in create() argument
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DConversationMessageView.java548 final DisplayMetrics displayMetrics = new DisplayMetrics(); in updateMessageAttachments() local
549 windowManager.getDefaultDisplay().getMetrics(displayMetrics); in updateMessageAttachments()
553 final int desiredWidth = displayMetrics.widthPixels - iconSize - iconSize; in updateMessageAttachments()
/packages/apps/PackageInstaller/src/android/support/wearable/view/
DWearableListView.java1319 protected float calculateSpeedPerPixel(DisplayMetrics displayMetrics) { in calculateSpeedPerPixel() argument
1320 return MILLISECONDS_PER_INCH / displayMetrics.densityDpi; in calculateSpeedPerPixel()
/packages/services/Car/car-support-lib/src/android/support/car/ui/
DCarLayoutManager.java1496 protected float calculateSpeedPerPixel(DisplayMetrics displayMetrics) { in calculateSpeedPerPixel() argument
1497 return MILLISECONDS_PER_INCH / displayMetrics.densityDpi; in calculateSpeedPerPixel()
/packages/apps/TV/usbtuner/libs/
Dexoplayer_1.5.6.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...