Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/display/
DScreenZoomSettings.java62 final int densityDpi = getResources().getDisplayMetrics().densityDpi; in onCreate() local
63 mValues = new int[] { densityDpi }; in onCreate()
66 mDefaultDensity = densityDpi; in onCreate()
79 config.densityDpi = mValues[index]; in createConfig()
88 final int densityDpi = mValues[mCurrentIndex]; in commit() local
89 if (densityDpi == mDefaultDensity) { in commit()
92 DisplayDensityUtils.setForcedDisplayDensity(Display.DEFAULT_DISPLAY, densityDpi); in commit()
DDensityPreference.java73 final int densityDpi = Math.max(newDensity, 120); in onDialogClosed() local
74 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/apps/UnifiedEmail/src/com/android/mail/ui/
DAttachmentTile.java184 final int scaledWidth = width * getResources().getDisplayMetrics().densityDpi in setThumbnail()
186 final int scaledHeight = height * getResources().getDisplayMetrics().densityDpi in setThumbnail()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DConfigMonitor.java61 return Utilities.ATLEAST_JB_MR1 ? config.densityDpi : 0; in getDensity()
/packages/apps/Settings/src/com/android/settings/applications/
DAppOpsCategory.java84 boolean densityChanged = mLastDensity != res.getDisplayMetrics().densityDpi; in applyNewConfig()
87 mLastDensity = res.getDisplayMetrics().densityDpi; in applyNewConfig()
DLinearColorBar.java69 mLineWidth = getResources().getDisplayMetrics().densityDpi >= DisplayMetrics.DENSITY_HIGH in LinearColorBar()
/packages/services/Car/car-support-lib/src/android/support/car/ui/
DCarUiResourceLoader.java58 return res.getDrawableForDensity(id, metrics.densityDpi, null); in getDrawable()
DCarLayoutManager.java1497 return MILLISECONDS_PER_INCH / displayMetrics.densityDpi; in calculateSpeedPerPixel()
/packages/apps/Settings/src/com/android/settings/
DAppWidgetPickActivity.java103 final int density = res.getDisplayMetrics().densityDpi; in createItem()
/packages/apps/TV/usbtuner/src/com/google/android/exoplayer/text/
DSubtitleView.java106 Math.round((2f * displayMetrics.densityDpi) / DisplayMetrics.DENSITY_DEFAULT); in SubtitleView()
/packages/apps/Launcher3/src/com/android/launcher3/
DUtilities.java150 * res.getDisplayMetrics().densityDpi / originalDensity; in isAllowRotationPrefEnabled()
758 float densityRatio = (float) metrics.densityDpi / DisplayMetrics.DENSITY_DEFAULT; in dpiFromPx()
DLauncherBackupHelper.java560 final int dpi = mContext.getResources().getDisplayMetrics().densityDpi; in backupIcons()
657 final int dpi = mContext.getResources().getDisplayMetrics().densityDpi; in backupWidgets()
/packages/apps/Nfc/src/com/android/nfc/beam/
DSendUi.java649 float smallestWidthDp = smallestWidth / (mDisplayMetrics.densityDpi / 160f); in createScreenshot()
/packages/apps/PackageInstaller/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()