Home
last modified time | relevance | path

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

/packages/apps/Dialer/java/com/android/incallui/autoresizetext/
DAutoResizeTextView.java45 private final DisplayMetrics displayMetrics = getResources().getDisplayMetrics(); field in AutoResizeTextView
95 float maxTextSize = TypedValue.applyDimension(unit, size, displayMetrics); in setTextSize()
116 float minTextSize = TypedValue.applyDimension(unit, size, displayMetrics); in setMinTextSize()
225 float dimension = TypedValue.applyDimension(resizeStepUnit, sizeToTry, displayMetrics); in binarySearchSizes()
240 float multiplier = 1 / TypedValue.applyDimension(resizeStepUnit, 1, displayMetrics); in convertToResizeStepUnits()
/packages/apps/Dialer/java/com/android/incallui/answer/impl/classifier/
DHumanInteractionClassifier.java37 DisplayMetrics displayMetrics = context.getResources().getDisplayMetrics(); in HumanInteractionClassifier() local
43 float dpi = (displayMetrics.xdpi + displayMetrics.ydpi) / 2.0f; in HumanInteractionClassifier()
44 classifierData = new ClassifierData(dpi, displayMetrics.heightPixels); in HumanInteractionClassifier()
/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/UniversalMediaPlayer/java/com/android/pump/fragment/
DSeriesFragment.java177 DisplayMetrics displayMetrics = new DisplayMetrics(); in getItemOffsets() local
178 ViewCompat.getDisplay(parent).getMetrics(displayMetrics); in getItemOffsets()
179 outRect.left = outRect.right = (int) Math.ceil(mXOffset * displayMetrics.density); in getItemOffsets()
181 outRect.bottom = (int) Math.ceil(mYOffset * displayMetrics.density); in getItemOffsets()
DGenreFragment.java173 DisplayMetrics displayMetrics = new DisplayMetrics(); in getItemOffsets() local
174 ViewCompat.getDisplay(parent).getMetrics(displayMetrics); in getItemOffsets()
175 outRect.left = outRect.right = (int) Math.ceil(mXOffset * displayMetrics.density); in getItemOffsets()
177 outRect.bottom = (int) Math.ceil(mYOffset * displayMetrics.density); in getItemOffsets()
DMovieFragment.java182 DisplayMetrics displayMetrics = new DisplayMetrics(); in getItemOffsets() local
183 ViewCompat.getDisplay(parent).getMetrics(displayMetrics); in getItemOffsets()
184 outRect.left = outRect.right = (int) Math.ceil(mXOffset * displayMetrics.density); in getItemOffsets()
186 outRect.bottom = (int) Math.ceil(mYOffset * displayMetrics.density); in getItemOffsets()
DAlbumFragment.java177 DisplayMetrics displayMetrics = new DisplayMetrics(); in getItemOffsets() local
178 ViewCompat.getDisplay(parent).getMetrics(displayMetrics); in getItemOffsets()
179 outRect.left = outRect.right = (int) Math.ceil(mXOffset * displayMetrics.density); in getItemOffsets()
181 outRect.bottom = (int) Math.ceil(mYOffset * displayMetrics.density); in getItemOffsets()
DArtistFragment.java188 DisplayMetrics displayMetrics = new DisplayMetrics(); in getItemOffsets() local
189 ViewCompat.getDisplay(parent).getMetrics(displayMetrics); in getItemOffsets()
190 outRect.left = outRect.right = (int) Math.ceil(mXOffset * displayMetrics.density); in getItemOffsets()
192 outRect.bottom = (int) Math.ceil(mYOffset * displayMetrics.density); in getItemOffsets()
DPlaylistFragment.java233 DisplayMetrics displayMetrics = new DisplayMetrics(); in getItemOffsets() local
234 ViewCompat.getDisplay(parent).getMetrics(displayMetrics); in getItemOffsets()
235 outRect.left = outRect.right = (int) Math.ceil(mXOffset * displayMetrics.density); in getItemOffsets()
237 outRect.bottom = (int) Math.ceil(mYOffset * displayMetrics.density); in getItemOffsets()
/packages/apps/Messaging/src/com/android/messaging/ui/
DSnackBarManager.java356 final DisplayMetrics displayMetrics = new DisplayMetrics(); in getScreenBottomOffset() local
358 windowManager.getDefaultDisplay().getRealMetrics(displayMetrics); in getScreenBottomOffset()
360 windowManager.getDefaultDisplay().getMetrics(displayMetrics); in getScreenBottomOffset()
362 final int screenHeight = displayMetrics.heightPixels; in getScreenBottomOffset()
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/util/
DPagedSmoothScroller.java75 protected float calculateSpeedPerPixel(DisplayMetrics displayMetrics) { in calculateSpeedPerPixel() argument
76 return MILLISECONDS_PER_INCH / displayMetrics.densityDpi; in calculateSpeedPerPixel()
/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.java962 final DisplayMetrics displayMetrics = resources.getDisplayMetrics(); in chooseBestPictureSize() local
978 screenWidth = displayMetrics.widthPixels; in chooseBestPictureSize()
979 screenHeight = displayMetrics.heightPixels; in chooseBestPictureSize()
981 screenWidth = displayMetrics.heightPixels; in chooseBestPictureSize()
982 screenHeight = displayMetrics.widthPixels; in chooseBestPictureSize()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/text/
DSubtitleView.java105 DisplayMetrics displayMetrics = resources.getDisplayMetrics(); in SubtitleView() local
107 Math.round((2f * displayMetrics.densityDpi) / DisplayMetrics.DENSITY_DEFAULT); in SubtitleView()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
DSelectFromListWizardFragment.java572 DisplayMetrics displayMetrics = new DisplayMetrics();
574 activity.getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);
/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.java549 final DisplayMetrics displayMetrics = new DisplayMetrics(); in updateMessageAttachments() local
550 windowManager.getDefaultDisplay().getMetrics(displayMetrics); in updateMessageAttachments()
554 final int desiredWidth = displayMetrics.widthPixels - iconSize - iconSize; in updateMessageAttachments()
/packages/apps/PermissionController/src/android/support/wearable/view/
DWearableListView.java1319 protected float calculateSpeedPerPixel(DisplayMetrics displayMetrics) { in calculateSpeedPerPixel() argument
1320 return MILLISECONDS_PER_INCH / displayMetrics.densityDpi; in calculateSpeedPerPixel()