Home
last modified time | relevance | path

Searched refs:densityDpi (Results 1 – 23 of 23) sorted by relevance

/packages/apps/Settings/src/com/android/settings/display/
DScreenZoomSettings.java68 final int densityDpi = getResources().getDisplayMetrics().densityDpi; in onCreate() local
69 mValues = new int[]{densityDpi}; in onCreate()
72 mDefaultDensity = densityDpi; in onCreate()
87 config.densityDpi = mValues[index]; in createConfig()
96 final int densityDpi = mValues[mCurrentIndex]; in commit() local
97 if (densityDpi == mDefaultDensity) { in commit()
100 … DisplayDensityConfiguration.setForcedDisplayDensity(Display.DEFAULT_DISPLAY, densityDpi); in commit()
DDensityPreference.java80 final int densityDpi = Math.max(newDensity, 120); in onDialogClosed() local
81 … DisplayDensityConfiguration.setForcedDisplayDensity(Display.DEFAULT_DISPLAY, densityDpi); in onDialogClosed()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DDisplayController.java161 if (mInfo.fontScale != config.fontScale || mInfo.densityDpi != config.densityDpi) { in onConfigChanged()
175 if (config.densityDpi != mInfo.densityDpi in onConfigurationChanged()
221 if (newInfo.densityDpi != oldInfo.densityDpi || newInfo.fontScale != oldInfo.fontScale) { in handleInfoChange()
249 public final int densityDpi; field in DisplayController.Info
269 densityDpi = config.densityDpi; in Info()
294 context, mAllSizes, densityDpi, in Info()
305 densityDpi) >= MIN_TABLET_WIDTH; in isTablet()
DWindowManagerCompat.java56 int densityDpi, boolean consumeTaskBar) { in getDisplayProfiles() argument
68 int swDP = (int) dpiFromPx(size.width, densityDpi); in getDisplayProfiles()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DBogusMoveEventDetector.java48 final int densityDpi = res.getDisplayMetrics().densityDpi; in init() local
49 final boolean hasLowDensityScreen = (densityDpi < DisplayMetrics.DENSITY_HIGH); in init()
54 + " smallestScreenWidthDp=" + sw + " densityDpi=" + densityDpi in init()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/displayinfo/
DDisplayInfoFragment.java60 addTextView("display density(dpi): " + getResources().getDisplayMetrics().densityDpi); in onStart()
131 float dp = px / ((float) metrics.densityDpi / DisplayMetrics.DENSITY_DEFAULT); in convertPixelsToDp()
/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/Car/libs/car-apps-common/src/com/android/car/apps/common/util/
DPagedSmoothScroller.java76 return MILLISECONDS_PER_INCH / displayMetrics.densityDpi; in calculateSpeedPerPixel()
/packages/apps/Launcher3/src/com/android/launcher3/
DInvariantDeviceProfile.java343 dpiFromPx(Math.min(displayWidth, displayHeight), displayInfo.densityDpi) < 720 in initGrid()
497 float width = dpiFromPx(minWidthPx, displayInfo.densityDpi); in invDistWeightedInterpolate()
498 float height = dpiFromPx(minHeightPx, displayInfo.densityDpi); in invDistWeightedInterpolate()
DPartner.java132 iconSize = Utilities.dpiFromPx((float) px, dm.densityDpi); in applyInvariantDeviceProfileOverrides()
DDeviceProfile.java897 return "\t" + name + ": " + value + "px (" + dpiFromPx(value, mMetrics.densityDpi) + "dp)"; in pxToDpStr()
1002 config.densityDpi = info.densityDpi; in getContext()
DUtilities.java468 public static float dpiFromPx(float size, int densityDpi) { in dpiFromPx() argument
469 float densityRatio = (float) densityDpi / DisplayMetrics.DENSITY_DEFAULT; in dpiFromPx()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/recyclerview/
DCarUiSmoothScroller.java66 mDensityDpi = context.getResources().getDisplayMetrics().densityDpi; in init()
/packages/apps/Settings/src/com/android/settings/
DAppWidgetPickActivity.java103 final int density = res.getDisplayMetrics().densityDpi; in createItem()
/packages/apps/EmergencyInfo/EmergencyGestureAction/src/com/android/emergency/action/
DEmergencyActionFragment.java84 configuration.densityDpi = (int) getResources().getDisplayMetrics().xdpi; in onCreateView()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/
DNoButtonNavbarToOverviewTouchController.java261 return Utilities.dpiFromPx(pixels, mLauncher.getResources().getDisplayMetrics().densityDpi); in dpiFromPx()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/text/
DSubtitleView.java107 Math.round((2f * displayMetrics.densityDpi) / DisplayMetrics.DENSITY_DEFAULT); in SubtitleView()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DTaskIconCache.java241 DisplayController.INSTANCE.get(mContext).getInfo().densityDpi, in getIconFactory()
DRecentsAnimationDeviceState.java595 && displayInfo.densityDpi < DisplayMetrics.DENSITY_600); in canTriggerOneHandedAction()
/packages/apps/QuickAccessWallet/src/com/android/systemui/plugin/globalactions/wallet/
DWalletCardCarousel.java349 return MILLISECONDS_PER_INCH / displayMetrics.densityDpi;
/packages/apps/Nfc/src/com/android/nfc/beam/
DSendUi.java613 float smallestWidthDp = smallestWidth / (mDisplayMetrics.densityDpi / 160f); in createScreenshot()
/packages/modules/Permission/PermissionController/src/android/support/wearable/view/
DWearableListView.java1321 return MILLISECONDS_PER_INCH / displayMetrics.densityDpi; in calculateSpeedPerPixel()
/packages/apps/Camera2/src/com/android/camera/widget/
DFilmstripView.java632 mOverScaleFactor = (float) metrics.densityDpi / (float) DisplayMetrics.DENSITY_HIGH; in init()