Searched refs:densityDpi (Results 1 – 16 of 16) sorted by relevance
62 final int densityDpi = getResources().getDisplayMetrics().densityDpi; in onCreate() local63 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() local89 if (densityDpi == mDefaultDensity) { in commit()92 DisplayDensityUtils.setForcedDisplayDensity(Display.DEFAULT_DISPLAY, densityDpi); in commit()
73 final int densityDpi = Math.max(newDensity, 120); in onDialogClosed() local74 DisplayDensityUtils.setForcedDisplayDensity(Display.DEFAULT_DISPLAY, densityDpi); in onDialogClosed()
48 final int densityDpi = res.getDisplayMetrics().densityDpi; in init() local49 final boolean hasLowDensityScreen = (densityDpi < DisplayMetrics.DENSITY_HIGH); in init()54 + " smallestScreenWidthDp=" + sw + " densityDpi=" + densityDpi in init()
184 final int scaledWidth = width * getResources().getDisplayMetrics().densityDpi in setThumbnail()186 final int scaledHeight = height * getResources().getDisplayMetrics().densityDpi in setThumbnail()
61 return Utilities.ATLEAST_JB_MR1 ? config.densityDpi : 0; in getDensity()
84 boolean densityChanged = mLastDensity != res.getDisplayMetrics().densityDpi; in applyNewConfig()87 mLastDensity = res.getDisplayMetrics().densityDpi; in applyNewConfig()
69 mLineWidth = getResources().getDisplayMetrics().densityDpi >= DisplayMetrics.DENSITY_HIGH in LinearColorBar()
58 return res.getDrawableForDensity(id, metrics.densityDpi, null); in getDrawable()
1497 return MILLISECONDS_PER_INCH / displayMetrics.densityDpi; in calculateSpeedPerPixel()
103 final int density = res.getDisplayMetrics().densityDpi; in createItem()
106 Math.round((2f * displayMetrics.densityDpi) / DisplayMetrics.DENSITY_DEFAULT); in SubtitleView()
150 * res.getDisplayMetrics().densityDpi / originalDensity; in isAllowRotationPrefEnabled()758 float densityRatio = (float) metrics.densityDpi / DisplayMetrics.DENSITY_DEFAULT; in dpiFromPx()
560 final int dpi = mContext.getResources().getDisplayMetrics().densityDpi; in backupIcons()657 final int dpi = mContext.getResources().getDisplayMetrics().densityDpi; in backupWidgets()
649 float smallestWidthDp = smallestWidth / (mDisplayMetrics.densityDpi / 160f); in createScreenshot()
1320 return MILLISECONDS_PER_INCH / displayMetrics.densityDpi; in calculateSpeedPerPixel()
632 mOverScaleFactor = (float) metrics.densityDpi / (float) DisplayMetrics.DENSITY_HIGH; in init()