/packages/apps/Settings/src/com/android/settings/wifi/qrcode/ |
D | QrDecorateView.java | 76 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/ |
D | DisplayInfoFragment.java | 60 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/ |
D | DpUtil.java | 25 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/ |
D | Display.java | 41 return context.getResources().getDisplayMetrics().density; in density() 52 context.getResources().getDisplayMetrics()); in actionBarHeight()
|
/packages/apps/DeskClock/src/com/android/alarmclock/ |
D | WidgetUtils.kt | 43 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/ |
D | DensityPreference.java | 52 final DisplayMetrics metrics = res.getDisplayMetrics(); in getCurrentSwDp() 76 final DisplayMetrics metrics = res.getDisplayMetrics(); in onDialogClosed()
|
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/ui/ |
D | ThemeUiTestBase.java | 54 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/ |
D | FlingAnimationUtils.java | 50 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/ |
D | ViewPagerTabs.java | 94 final int screenWidth = context.getResources().getDisplayMetrics().widthPixels; in onLongClick() 119 mSidePadding = (int) (getResources().getDisplayMetrics().density * TAB_SIDE_PADDING_IN_DPS); in ViewPagerTabs()
|
D | BugleActionBarActivity.java | 68 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/ |
D | CarEvsCameraPreviewActivity.java | 186 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/ |
D | SysUiScrim.java | 131 view.getResources().getDisplayMetrics()); in SysUiScrim() 261 DisplayMetrics dm = mActivity.getResources().getDisplayMetrics(); in createDitheredAlphaMask()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | ResourceUtils.java | 186 final DisplayMetrics dm = res.getDisplayMetrics(); in getDefaultKeyboardWidth() 200 final DisplayMetrics dm = res.getDisplayMetrics(); in getDefaultKeyboardHeight()
|
/packages/apps/Dialer/java/com/android/contacts/common/list/ |
D | ViewPagerTabs.java | 91 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/ |
D | WalletPanelViewControllerTest.java | 563 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/ |
D | AppOpsCategory.java | 74 boolean densityChanged = mLastDensity != res.getDisplayMetrics().densityDpi; in applyNewConfig() 77 mLastDensity = res.getDisplayMetrics().densityDpi; in applyNewConfig()
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | AccessibilityUtil.java | 376 resources.getDisplayMetrics())); in getScreenWidthPixels() 390 resources.getDisplayMetrics())); in getScreenHeightPixels()
|
D | PresetPreference.java | 58 final float density = getContext().getResources().getDisplayMetrics().density; in onBindListItem()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ |
D | CenteredLinearLayout.java | 43 r.getDisplayMetrics()); in onMeasure()
|
/packages/apps/Dialer/java/com/android/incallui/ |
D | ReturnToCallController.java | 298 ? 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/ |
D | SwipeUpGestureTutorialController.java | 79 mTutorialFragment.getResources().getDisplayMetrics(); 110 DisplayMetrics displayMetrics = mContext.getResources().getDisplayMetrics(); in SwipeUpGestureTutorialController()
|
/packages/apps/Launcher3/src/com/android/launcher3/views/ |
D | RecyclerViewFastScroller.java | 168 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/ |
D | DisplayMetricsRetriever.java | 56 public DisplayMetrics getDisplayMetrics(Resources resources, Display display) { in getDisplayMetrics() method in DisplayMetricsRetriever
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | ResourceUtils.java | 41 frameSize = pxFromDp(defaultValue, res.getDisplayMetrics()); in getDimenByName()
|
D | InvariantDeviceProfile.java | 279 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()
|