Home
last modified time | relevance | path

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

12

/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/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/Car/libs/car-ui-lib/paintbooth/src/main/java/com/android/car/ui/paintbooth/
DVisibleBoundsSimulator.java103 DisplayMetrics displayMetrics = new DisplayMetrics(); in applyDisplayOverlay() local
105 mWindowManager.getDefaultDisplay().getRealMetrics(displayMetrics); in applyDisplayOverlay()
106 int screenHeight = displayMetrics.heightPixels; in applyDisplayOverlay()
107 int screenWidth = displayMetrics.widthPixels; in applyDisplayOverlay()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/appstyledview/
DAppStyledViewControllerImpl.java69 DisplayMetrics displayMetrics = new DisplayMetrics(); in getDialogWindowLayoutParam() local
71 wm.getDefaultDisplay().getMetrics(displayMetrics); in getDialogWindowLayoutParam()
78 int displayWidth = (int) (displayMetrics.widthPixels * VISIBLE_SCREEN_PERCENTAGE); in getDialogWindowLayoutParam()
79 int displayHeight = (int) (displayMetrics.heightPixels * VISIBLE_SCREEN_PERCENTAGE); in getDialogWindowLayoutParam()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/interaction/
DSwipeUpGestureTutorialController.java78 DisplayMetrics displayMetrics =
80 int height = displayMetrics.heightPixels;
81 int width = displayMetrics.widthPixels;
110 DisplayMetrics displayMetrics = mContext.getResources().getDisplayMetrics(); in SwipeUpGestureTutorialController() local
111 int height = displayMetrics.heightPixels; in SwipeUpGestureTutorialController()
112 int width = displayMetrics.widthPixels; in SwipeUpGestureTutorialController()
/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/
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()
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()
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/Settings/src/com/android/settings/emergency/
DMoreSettingsPreferenceController.java156 DisplayMetrics displayMetrics = context.getResources().getDisplayMetrics(); in getScaledDrawable() local
158 (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, width, displayMetrics); in getScaledDrawable()
161 displayMetrics); in getScaledDrawable()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/dashboard/
DPermissionHistoryPreference.java204 DisplayMetrics displayMetrics = new DisplayMetrics(); in setHistoryIcon()
205 mContext.getDisplay().getMetrics(displayMetrics); in setHistoryIcon()
206 int displayWidth = displayMetrics.widthPixels; in setHistoryIcon()
207 int displayHeight = displayMetrics.heightPixels; in setHistoryIcon()
/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.java411 DisplayMetrics displayMetrics = new DisplayMetrics(); in getDisplayMetrics() local
414 d.getMetrics(displayMetrics); in getDisplayMetrics()
416 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/QuickAccessWallet/src/com/android/systemui/plugin/globalactions/wallet/
DWalletCardCarousel.java348 protected float calculateSpeedPerPixel(DisplayMetrics displayMetrics) {
349 return MILLISECONDS_PER_INCH / displayMetrics.densityDpi;
/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/modules/Permission/PermissionController/src/android/support/wearable/view/
DWearableListView.java1320 protected float calculateSpeedPerPixel(DisplayMetrics displayMetrics) { in calculateSpeedPerPixel() argument
1321 return MILLISECONDS_PER_INCH / displayMetrics.densityDpi; in calculateSpeedPerPixel()

12