/packages/apps/Dialer/java/com/android/incallui/answer/impl/classifier/ |
D | HumanInteractionClassifier.java | 37 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/ |
D | AutoResizeTextView.java | 45 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/ |
D | VisibleBoundsSimulator.java | 103 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/ |
D | AppStyledViewControllerImpl.java | 69 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/ |
D | SwipeUpGestureTutorialController.java | 78 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/ |
D | Camera2OneCameraOpenerImpl.java | 65 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/ |
D | GenreFragment.java | 173 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()
|
D | SeriesFragment.java | 177 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()
|
D | MovieFragment.java | 182 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()
|
D | AlbumFragment.java | 177 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()
|
D | ArtistFragment.java | 188 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()
|
D | PlaylistFragment.java | 233 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/ |
D | SnackBarManager.java | 356 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/ |
D | MoreSettingsPreferenceController.java | 156 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/ |
D | PermissionHistoryPreference.java | 204 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/ |
D | PagedSmoothScroller.java | 75 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/ |
D | OneCameraModule.java | 47 DisplayMetrics displayMetrics) throws OneCameraException { in provideOneCameraOpener() argument 49 featureConfig, context, activeCameraDeviceTracker, displayMetrics); in provideOneCameraOpener()
|
/packages/apps/Camera2/src/com/android/camera/settings/ |
D | ResolutionUtil.java | 411 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/ |
D | CameraManager.java | 962 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/ |
D | SubtitleView.java | 105 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/ |
D | WalletCardCarousel.java | 348 protected float calculateSpeedPerPixel(DisplayMetrics displayMetrics) { 349 return MILLISECONDS_PER_INCH / displayMetrics.densityDpi;
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/ |
D | SelectFromListWizardFragment.java | 572 DisplayMetrics displayMetrics = new DisplayMetrics(); 574 activity.getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);
|
/packages/apps/Camera2/src_pd/com/android/camera/one/v2/ |
D | OneCameraCreator.java | 53 DisplayMetrics displayMetrics, in create() argument
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/ |
D | ConversationMessageView.java | 549 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/ |
D | WearableListView.java | 1320 protected float calculateSpeedPerPixel(DisplayMetrics displayMetrics) { in calculateSpeedPerPixel() argument 1321 return MILLISECONDS_PER_INCH / displayMetrics.densityDpi; in calculateSpeedPerPixel()
|