Home
last modified time | relevance | path

Searched refs:getDisplayMetrics (Results 1 – 25 of 120) 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/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.kt43 val density: Float = res.getDisplayMetrics().density in getScaleRatio()
72 val density: Float = res.getDisplayMetrics().density in getHeightScaleRatio()
/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/services/Car/tests/CarEvsCameraPreviewApp/src/com/google/android/car/evs/
DCarEvsCameraPreviewActivity.java186 x = (getResources().getDisplayMetrics().widthPixels - width) / 2; in onCreate()
187 y = (getResources().getDisplayMetrics().heightPixels - height) / 2; in onCreate()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DSysUiScrim.java131 view.getResources().getDisplayMetrics()); in SysUiScrim()
261 DisplayMetrics dm = mActivity.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/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/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/Settings/src/com/android/settings/accessibility/
DAccessibilityUtil.java376 resources.getDisplayMetrics())); in getScreenWidthPixels()
390 resources.getDisplayMetrics())); in getScreenHeightPixels()
DPresetPreference.java58 final float density = getContext().getResources().getDisplayMetrics().density; in onBindListItem()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/
DCenteredLinearLayout.java43 r.getDisplayMetrics()); in onMeasure()
/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/quickstep/src/com/android/quickstep/interaction/
DSwipeUpGestureTutorialController.java79 mTutorialFragment.getResources().getDisplayMetrics();
110 DisplayMetrics displayMetrics = mContext.getResources().getDisplayMetrics(); in SwipeUpGestureTutorialController()
/packages/apps/Launcher3/src/com/android/launcher3/views/
DRecyclerViewFastScroller.java168 mDeltaThreshold = res.getDisplayMetrics().density * SCROLL_DELTA_THRESHOLD_DP; in RecyclerViewFastScroller()
169 mScrollbarLeftOffsetTouchDelegate = res.getDisplayMetrics().density in RecyclerViewFastScroller()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/
DDisplayMetricsRetriever.java56 public DisplayMetrics getDisplayMetrics(Resources resources, Display display) { in getDisplayMetrics() method in DisplayMetricsRetriever
/packages/apps/Launcher3/src/com/android/launcher3/
DResourceUtils.java41 frameSize = pxFromDp(defaultValue, res.getDisplayMetrics()); in getDimenByName()
DInvariantDeviceProfile.java279 DisplayMetrics metrics = context.getResources().getDisplayMetrics(); in initGrid()
527 float availableWidth = config.screenWidthDp * res.getDisplayMetrics().density; in getDeviceProfile()
528 float availableHeight = config.screenHeightDp * res.getDisplayMetrics().density; in getDeviceProfile()

12345