Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/display/
DScreenZoomSettings.java73 final int densityDpi = getResources().getDisplayMetrics().densityDpi; in onCreate() local
74 mValues = new int[]{densityDpi}; in onCreate()
77 mDefaultDensity = densityDpi; in onCreate()
92 config.densityDpi = mValues[index]; in createConfig()
101 final int densityDpi = mValues[mCurrentIndex]; in commit() local
102 if (densityDpi == mDefaultDensity) { in commit()
105 DisplayDensityUtils.setForcedDisplayDensity(Display.DEFAULT_DISPLAY, densityDpi); in commit()
DDensityPreference.java80 final int densityDpi = Math.max(newDensity, 120); in onDialogClosed() local
81 DisplayDensityUtils.setForcedDisplayDensity(Display.DEFAULT_DISPLAY, densityDpi); in onDialogClosed()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/
DScreenZoomSettings.java73 final int densityDpi = getResources().getDisplayMetrics().densityDpi; in onCreate() local
74 mValues = new int[]{densityDpi}; in onCreate()
77 mDefaultDensity = densityDpi; in onCreate()
92 config.densityDpi = mValues[index]; in createConfig()
101 final int densityDpi = mValues[mCurrentIndex]; in commit() local
102 if (densityDpi == mDefaultDensity) { in commit()
105 DisplayDensityUtils.setForcedDisplayDensity(Display.DEFAULT_DISPLAY, densityDpi); in commit()
DDensityPreference.java80 final int densityDpi = Math.max(newDensity, 120); in onDialogClosed() local
81 DisplayDensityUtils.setForcedDisplayDensity(Display.DEFAULT_DISPLAY, densityDpi); in onDialogClosed()
/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.java58 addTextView("display density(dpi): " + getResources().getDisplayMetrics().densityDpi); in onStart()
122 float dp = px / ((float) metrics.densityDpi / DisplayMetrics.DENSITY_DEFAULT); in convertPixelsToDp()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DConfigMonitor.java58 mDensity = config.densityDpi; in ConfigMonitor()
78 if (mFontScale != config.fontScale || mDensity != config.densityDpi) { in onReceive()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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/applications/appops/
DAppOpsCategory.java74 boolean densityChanged = mLastDensity != res.getDisplayMetrics().densityDpi; in applyNewConfig()
77 mLastDensity = res.getDisplayMetrics().densityDpi; in applyNewConfig()
/packages/apps/Launcher3/iconloaderlib/src_full_lib/com/android/launcher3/icons/
DIconFactory.java48 context.getResources().getConfiguration().densityDpi, in obtain()
DSimpleIconCache.java108 bgThread.getLooper(), context.getResources().getConfiguration().densityDpi, in getIconCache()
/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/Car/libs/car-ui-lib/src/com/android/car/ui/recyclerview/
DCarUiSmoothScroller.java66 mDensityDpi = context.getResources().getDisplayMetrics().densityDpi; in init()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DAppWidgetPickActivity.java103 final int density = res.getDisplayMetrics().densityDpi; in createItem()
/packages/apps/Settings/src/com/android/settings/
DAppWidgetPickActivity.java103 final int density = res.getDisplayMetrics().densityDpi; in createItem()
/packages/apps/Launcher3/src/com/android/launcher3/states/
DRotationHelper.java47 * res.getDisplayMetrics().densityDpi / DENSITY_DEVICE_STABLE; in getAllowRotationDefaultValue()
/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/src/com/android/launcher3/
DUtilities.java384 float densityRatio = (float) metrics.densityDpi / DisplayMetrics.DENSITY_DEFAULT; in dpiFromPx()
/packages/apps/Nfc/src/com/android/nfc/beam/
DSendUi.java614 float smallestWidthDp = smallestWidth / (mDisplayMetrics.densityDpi / 160f); in createScreenshot()
/packages/apps/PermissionController/src/android/support/wearable/view/
DWearableListView.java1320 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()