Home
last modified time | relevance | path

Searched refs:getDisplayMetrics (Results 1 – 25 of 121) sorted by relevance

12345

/packages/apps/Settings/src/com/android/settings/wifi/qrcode/
DQrDecorateView.java76 getResources().getDisplayMetrics()); in QrDecorateView()
79 CORNER_RADIUS - CORNER_STROKE_WIDTH, getResources().getDisplayMetrics()); in QrDecorateView()
128 CORNER_LINE_LENGTH, getResources().getDisplayMetrics()) / 2; in calculateFramePos()
130 CORNER_STROKE_WIDTH, getResources().getDisplayMetrics()); in calculateFramePos()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/qrcode/
DQrDecorateView.java76 getResources().getDisplayMetrics()); in QrDecorateView()
79 CORNER_RADIUS - CORNER_STROKE_WIDTH, getResources().getDisplayMetrics()); in QrDecorateView()
128 CORNER_LINE_LENGTH, getResources().getDisplayMetrics()) / 2; in calculateFramePos()
130 CORNER_STROKE_WIDTH, getResources().getDisplayMetrics()); in calculateFramePos()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/displayinfo/
DDisplayInfoFragment.java58 addTextView("display density(dpi): " + getResources().getDisplayMetrics().densityDpi); in onStart()
60 + getResources().getDisplayMetrics().DENSITY_DEFAULT); in onStart()
121 DisplayMetrics metrics = resources.getDisplayMetrics(); in convertPixelsToDp()
/packages/apps/Dialer/java/com/android/dialer/common/
DDpUtil.java25 return px / context.getResources().getDisplayMetrics().density; in pxToDp()
29 return dp * context.getResources().getDisplayMetrics().density; in dpToPx()
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
DDisplay.java41 return context.getResources().getDisplayMetrics().density; in density()
52 context.getResources().getDisplayMetrics()); in actionBarHeight()
/packages/apps/DeskClock/src/com/android/alarmclock/
DWidgetUtils.kt43 val density: Float = res.getDisplayMetrics().density in getScaleRatio()
72 val density: Float = res.getDisplayMetrics().density in getHeightScaleRatio()
DWidgetUtils.java48 float density = res.getDisplayMetrics().density; in getScaleRatio()
86 float density = res.getDisplayMetrics().density; in getHeightScaleRatio()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/
DDensityPreference.java52 final DisplayMetrics metrics = res.getDisplayMetrics(); in getCurrentSwDp()
76 final DisplayMetrics metrics = res.getDisplayMetrics(); in onDialogClosed()
/packages/apps/Settings/src/com/android/settings/display/
DDensityPreference.java52 final DisplayMetrics metrics = res.getDisplayMetrics(); in getCurrentSwDp()
76 final DisplayMetrics metrics = res.getDisplayMetrics(); in onDialogClosed()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/ui/
DThemeUiTestBase.java54 mDisplayMetrics = mTargetContext.getResources().getDisplayMetrics(); in setUp()
73 final DisplayMetrics dm = context.getResources().getDisplayMetrics(); in getThemeByUiMode()
/packages/apps/Dialer/java/com/android/incallui/answer/impl/utils/
DFlingAnimationUtils.java50 MIN_VELOCITY_DP_PER_SECOND * ctx.getResources().getDisplayMetrics().density; in FlingAnimationUtils()
52 HIGH_VELOCITY_DP_PER_SECOND * ctx.getResources().getDisplayMetrics().density; in FlingAnimationUtils()
/packages/apps/Messaging/src/com/android/messaging/ui/
DViewPagerTabs.java94 final int screenWidth = context.getResources().getDisplayMetrics().widthPixels; in onLongClick()
119 mSidePadding = (int) (getResources().getDisplayMetrics().density * TAB_SIDE_PADDING_IN_DPS); in ViewPagerTabs()
DBugleActionBarActivity.java68 mLastScreenHeight = getResources().getDisplayMetrics().heightPixels; in onCreate()
129 int screenHeight = getResources().getDisplayMetrics().heightPixels; in onDisplayHeightChanged()
/packages/providers/MediaProvider/src/com/android/providers/media/
DPermissionActivity.java172 final Size size = new Size(res.getDisplayMetrics().widthPixels, in Description()
173 res.getDisplayMetrics().widthPixels); in Description()
/packages/apps/ThemePicker/src/com/android/customization/widget/
DPreviewPager.java84 int screenWidth = mViewPager.getResources().getDisplayMetrics().widthPixels; in PreviewPager()
93 DisplayMetrics dm = res.getDisplayMetrics(); in PreviewPager()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DWorkspaceAndHotseatScrim.java127 view.getResources().getDisplayMetrics()); in WorkspaceAndHotseatScrim()
266 DisplayMetrics dm = mLauncher.getResources().getDisplayMetrics(); in createDitheredAlphaMask()
/packages/apps/Dialer/java/com/android/contacts/common/list/
DViewPagerTabs.java91 mSidePadding = (int) (getResources().getDisplayMetrics().density * TAB_SIDE_PADDING_IN_DPS); in ViewPagerTabs()
291 final int screenWidth = context.getResources().getDisplayMetrics().widthPixels; in onLongClick()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DResourceUtils.java186 final DisplayMetrics dm = res.getDisplayMetrics(); in getDefaultKeyboardWidth()
200 final DisplayMetrics dm = res.getDisplayMetrics(); in getDefaultKeyboardHeight()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appops/
DAppOpsCategory.java74 boolean densityChanged = mLastDensity != res.getDisplayMetrics().densityDpi; in applyNewConfig()
77 mLastDensity = res.getDisplayMetrics().densityDpi; in applyNewConfig()
/packages/apps/Settings/src/com/android/settings/applications/appops/
DAppOpsCategory.java74 boolean densityChanged = mLastDensity != res.getDisplayMetrics().densityDpi; in applyNewConfig()
77 mLastDensity = res.getDisplayMetrics().densityDpi; in applyNewConfig()
/packages/apps/Dialer/java/com/android/incallui/
DReturnToCallController.java298 ? context.getResources().getDisplayMetrics().heightPixels / 2 in generateBubbleInfo()
310 .setStartingYPosition(context.getResources().getDisplayMetrics().heightPixels / 2) in generateBubbleInfoForBackgroundCalling()
/packages/apps/Launcher3/src/com/android/launcher3/
DResourceUtils.java38 frameSize = pxFromDp(defaultValue, res.getDisplayMetrics()); in getDimenByName()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/
DCenteredLinearLayout.java43 r.getDisplayMetrics()); in onMeasure()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/
DDisplayMetricsRetriever.java56 public DisplayMetrics getDisplayMetrics(Resources resources, Display display) { in getDisplayMetrics() method in DisplayMetricsRetriever
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accessibility/
DPresetPreference.java58 final float density = getContext().getResources().getDisplayMetrics().density; in onBindListItem()

12345