/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 | 58 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/ |
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()
|
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/unit/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/providers/MediaProvider/src/com/android/providers/media/ |
D | PermissionActivity.java | 172 final Size size = new Size(res.getDisplayMetrics().widthPixels, in Description() 173 res.getDisplayMetrics().widthPixels); in Description()
|
/packages/apps/ThemePicker/src/com/android/customization/widget/ |
D | PreviewPager.java | 84 int screenWidth = mViewPager.getResources().getDisplayMetrics().widthPixels; in PreviewPager() 93 DisplayMetrics dm = res.getDisplayMetrics(); in PreviewPager()
|
/packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
D | WorkspaceAndHotseatScrim.java | 127 view.getResources().getDisplayMetrics()); in WorkspaceAndHotseatScrim() 266 DisplayMetrics dm = mLauncher.getResources().getDisplayMetrics(); in createDitheredAlphaMask()
|
/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/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/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/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/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
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accessibility/ |
D | PresetPreference.java | 58 final float density = getContext().getResources().getDisplayMetrics().density; in onBindListItem()
|