Searched refs:displayMetrics (Results 1 – 11 of 11) sorted by relevance
174 final DisplayMetrics displayMetrics = new DisplayMetrics(); in getContentViewWidth() local175 activity.getWindowManager().getDefaultDisplay().getMetrics(displayMetrics); in getContentViewWidth()176 return displayMetrics.widthPixels; in getContentViewWidth()185 final DisplayMetrics displayMetrics = new DisplayMetrics(); in getContentViewHeight() local186 activity.getWindowManager().getDefaultDisplay().getMetrics(displayMetrics); in getContentViewHeight()187 return displayMetrics.heightPixels - mActionBarHeight - mStatusBarHeight; in getContentViewHeight()
65 DisplayMetrics displayMetrics) { in create() argument81 displayMetrics); in create()94 DisplayMetrics displayMetrics) { in Camera2OneCameraOpenerImpl() argument99 mDisplayMetrics = displayMetrics; in Camera2OneCameraOpenerImpl()
335 final DisplayMetrics displayMetrics = new DisplayMetrics(); in getScreenBottomOffset() local337 windowManager.getDefaultDisplay().getRealMetrics(displayMetrics); in getScreenBottomOffset()339 windowManager.getDefaultDisplay().getMetrics(displayMetrics); in getScreenBottomOffset()341 final int screenHeight = displayMetrics.heightPixels; in getScreenBottomOffset()
961 final DisplayMetrics displayMetrics = resources.getDisplayMetrics(); in chooseBestPictureSize() local977 screenWidth = displayMetrics.widthPixels; in chooseBestPictureSize()978 screenHeight = displayMetrics.heightPixels; in chooseBestPictureSize()980 screenWidth = displayMetrics.heightPixels; in chooseBestPictureSize()981 screenHeight = displayMetrics.widthPixels; in chooseBestPictureSize()
409 DisplayMetrics displayMetrics = new DisplayMetrics(); in getDisplayMetrics() local412 wm.getDefaultDisplay().getMetrics(displayMetrics); in getDisplayMetrics()414 return displayMetrics; in getDisplayMetrics()
47 DisplayMetrics displayMetrics) throws OneCameraException { in provideOneCameraOpener() argument49 featureConfig, context, activeCameraDeviceTracker, displayMetrics); in provideOneCameraOpener()
104 DisplayMetrics displayMetrics = resources.getDisplayMetrics(); in SubtitleView() local106 Math.round((2f * displayMetrics.densityDpi) / DisplayMetrics.DENSITY_DEFAULT); in SubtitleView()
548 final DisplayMetrics displayMetrics = new DisplayMetrics(); in updateMessageAttachments() local549 windowManager.getDefaultDisplay().getMetrics(displayMetrics); in updateMessageAttachments()553 final int desiredWidth = displayMetrics.widthPixels - iconSize - iconSize; in updateMessageAttachments()
1319 protected float calculateSpeedPerPixel(DisplayMetrics displayMetrics) { in calculateSpeedPerPixel() argument1320 return MILLISECONDS_PER_INCH / displayMetrics.densityDpi; in calculateSpeedPerPixel()
1496 protected float calculateSpeedPerPixel(DisplayMetrics displayMetrics) { in calculateSpeedPerPixel() argument1497 return MILLISECONDS_PER_INCH / displayMetrics.densityDpi; in calculateSpeedPerPixel()
53 DisplayMetrics displayMetrics, in create() argument