/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/CarDeveloperOptions/src/com/android/car/developeroptions/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.java | 48 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/ |
D | DensityPreference.java | 52 final DisplayMetrics metrics = res.getDisplayMetrics(); in getCurrentSwDp() 76 final DisplayMetrics metrics = res.getDisplayMetrics(); in onDialogClosed()
|
/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/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/Launcher3/src/com/android/launcher3/graphics/ |
D | WorkspaceAndHotseatScrim.java | 134 view.getResources().getDisplayMetrics()); in WorkspaceAndHotseatScrim() 280 DisplayMetrics dm = mLauncher.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/WallpaperPicker2/src/com/android/wallpaper/widget/ |
D | PreviewPager.java | 91 int screenWidth = mViewPager.getResources().getDisplayMetrics().widthPixels; in PreviewPager() 100 DisplayMetrics dm = res.getDisplayMetrics(); in PreviewPager()
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | AccessibilityUtil.java | 368 resources.getDisplayMetrics())); in getScreenWidthPixels() 382 resources.getDisplayMetrics())); in getScreenHeightPixels()
|
/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appops/ |
D | AppOpsCategory.java | 74 boolean densityChanged = mLastDensity != res.getDisplayMetrics().densityDpi; in applyNewConfig() 77 mLastDensity = res.getDisplayMetrics().densityDpi; in applyNewConfig()
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | PermissionActivity.java | 636 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/ |
D | ReturnToCallController.java | 298 ? context.getResources().getDisplayMetrics().heightPixels / 2 in generateBubbleInfo() 310 .setStartingYPosition(context.getResources().getDisplayMetrics().heightPixels / 2) in generateBubbleInfoForBackgroundCalling()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | ResourceUtils.java | 38 frameSize = pxFromDp(defaultValue, res.getDisplayMetrics()); in getDimenByName()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ |
D | CenteredLinearLayout.java | 43 r.getDisplayMetrics()); in onMeasure()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/ |
D | DisplayMetricsRetriever.java | 56 public DisplayMetrics getDisplayMetrics(Resources resources, Display display) { in getDisplayMetrics() method in DisplayMetricsRetriever
|