/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/WallpaperPicker2/src/com/android/wallpaper/util/ |
D | WallpaperConnection.java | 217 Point displayMetrics = getDisplayMetrics(); in attachEngine() local 225 mEngine.resizePreview(new Rect(0, 0, displayMetrics.x, displayMetrics.y)); in attachEngine() 366 Point displayMetrics = getDisplayMetrics(); in getScale() local 367 m.postScale(((float) surfacePosition.width()) / displayMetrics.x, in getScale() 368 ((float) surfacePosition.height()) / displayMetrics.y); in getScale()
|
/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/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/modules/Connectivity/nearby/halfsheet/src/com/android/nearby/halfsheet/fragment/ |
D | DevicePairingFragment.java | 217 DisplayMetrics displayMetrics = getContext().getResources().getDisplayMetrics(); in onCreateView() local 219 rootView.getLayoutParams().height = displayMetrics.heightPixels * 4 / 5; in onCreateView() 220 rootView.getLayoutParams().width = displayMetrics.heightPixels * 4 / 5; in onCreateView() 221 mImage.getLayoutParams().height = displayMetrics.heightPixels / 2; in onCreateView() 222 mImage.getLayoutParams().width = displayMetrics.heightPixels / 2; in onCreateView() 223 mConnectProgressBar.getLayoutParams().width = displayMetrics.heightPixels / 2; in onCreateView() 224 mConnectButton.getLayoutParams().width = displayMetrics.heightPixels / 2; in onCreateView()
|
/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 | 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 | 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 | 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/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/WallpaperPicker2/src/com/android/wallpaper/picker/ |
D | DisplayAspectRatioLinearLayout.kt | 42 val itemSpacingPx = ITEM_SPACING_DP.toPx(context.resources.displayMetrics.density) in <lambda>() 68 val itemSpacingHalfPx = ITEM_SPACING_DP_HALF.toPx(context.resources.displayMetrics.density) in <lambda>()
|
/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/ThemePicker/src/com/android/customization/picker/common/ui/view/ |
D | ItemSpacing.kt | 30 val density = parent.context.resources.displayMetrics.density in getItemOffsets()
|
/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/Camera2/src_pd/com/android/camera/one/v2/ |
D | OneCameraCreator.java | 53 DisplayMetrics displayMetrics, in create() argument
|
/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/modules/IntentResolver/java/src/com/android/intentresolver/widget/ |
D | ScrollableImagePreviewView.kt | 51 TypedValue.COMPLEX_UNIT_DIP, 5f, context.resources.displayMetrics in <lambda>()
|
/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()
|