Home
last modified time | relevance | path

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

123456

/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.java60 addTextView("display density(dpi): " + getResources().getDisplayMetrics().densityDpi); in onStart()
62 + getResources().getDisplayMetrics().DENSITY_DEFAULT); in onStart()
130 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.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/functional/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/apps/QuickAccessWallet/tests/robolectric/src/com/android/systemui/plugin/globalactions/wallet/
DWalletPanelViewControllerTest.java563 int width = mContext.getResources().getDisplayMetrics().widthPixels; in onCardClicked_startsIntent()
564 int height = mContext.getResources().getDisplayMetrics().heightPixels; in onCardClicked_startsIntent()
590 int width = mContext.getResources().getDisplayMetrics().widthPixels; in onSingleTapUp_doesNotdismissWallet()
591 int height = mContext.getResources().getDisplayMetrics().heightPixels; in onSingleTapUp_doesNotdismissWallet()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DWorkspaceAndHotseatScrim.java134 view.getResources().getDisplayMetrics()); in WorkspaceAndHotseatScrim()
280 DisplayMetrics dm = mLauncher.getResources().getDisplayMetrics(); in createDitheredAlphaMask()
/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/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/apps/WallpaperPicker2/src/com/android/wallpaper/widget/
DPreviewPager.java91 int screenWidth = mViewPager.getResources().getDisplayMetrics().widthPixels; in PreviewPager()
100 DisplayMetrics dm = res.getDisplayMetrics(); in PreviewPager()
/packages/apps/Settings/src/com/android/settings/accessibility/
DAccessibilityUtil.java368 resources.getDisplayMetrics())); in getScreenWidthPixels()
382 resources.getDisplayMetrics())); in getScreenHeightPixels()
/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/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/providers/MediaProvider/src/com/android/providers/media/
DPermissionActivity.java636 final Size size = new Size(res.getDisplayMetrics().widthPixels, in Description()
637 res.getDisplayMetrics().widthPixels); in Description()
646 new Resizer(context.getResources().getDisplayMetrics())); in Description()
/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

123456