/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/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/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 | 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 | 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 | 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/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 | 409 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/ |
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/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/apps/PermissionController/src/android/support/wearable/view/ |
D | WearableListView.java | 1319 protected float calculateSpeedPerPixel(DisplayMetrics displayMetrics) { in calculateSpeedPerPixel() argument 1320 return MILLISECONDS_PER_INCH / displayMetrics.densityDpi; in calculateSpeedPerPixel()
|