/packages/apps/Settings/src/com/android/settings/display/ |
D | ScreenZoomSettings.java | 73 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()
|
D | DensityPreference.java | 80 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/ |
D | ScreenZoomSettings.java | 73 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()
|
D | DensityPreference.java | 80 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/ |
D | BogusMoveEventDetector.java | 48 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/ |
D | DisplayInfoFragment.java | 58 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/ |
D | ConfigMonitor.java | 58 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/ |
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/Launcher3/iconloaderlib/src_full_lib/com/android/launcher3/icons/ |
D | IconFactory.java | 48 context.getResources().getConfiguration().densityDpi, in obtain()
|
D | SimpleIconCache.java | 108 bgThread.getLooper(), context.getResources().getConfiguration().densityDpi, in getIconCache()
|
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/util/ |
D | PagedSmoothScroller.java | 76 return MILLISECONDS_PER_INCH / displayMetrics.densityDpi; in calculateSpeedPerPixel()
|
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/recyclerview/ |
D | CarUiSmoothScroller.java | 66 mDensityDpi = context.getResources().getDisplayMetrics().densityDpi; in init()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/ |
D | AppWidgetPickActivity.java | 103 final int density = res.getDisplayMetrics().densityDpi; in createItem()
|
/packages/apps/Settings/src/com/android/settings/ |
D | AppWidgetPickActivity.java | 103 final int density = res.getDisplayMetrics().densityDpi; in createItem()
|
/packages/apps/Launcher3/src/com/android/launcher3/states/ |
D | RotationHelper.java | 47 * res.getDisplayMetrics().densityDpi / DENSITY_DEVICE_STABLE; in getAllowRotationDefaultValue()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/text/ |
D | SubtitleView.java | 107 Math.round((2f * displayMetrics.densityDpi) / DisplayMetrics.DENSITY_DEFAULT); in SubtitleView()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | Utilities.java | 384 float densityRatio = (float) metrics.densityDpi / DisplayMetrics.DENSITY_DEFAULT; in dpiFromPx()
|
/packages/apps/Nfc/src/com/android/nfc/beam/ |
D | SendUi.java | 614 float smallestWidthDp = smallestWidth / (mDisplayMetrics.densityDpi / 160f); in createScreenshot()
|
/packages/apps/PermissionController/src/android/support/wearable/view/ |
D | WearableListView.java | 1320 return MILLISECONDS_PER_INCH / displayMetrics.densityDpi; in calculateSpeedPerPixel()
|
/packages/apps/Camera2/src/com/android/camera/widget/ |
D | FilmstripView.java | 632 mOverScaleFactor = (float) metrics.densityDpi / (float) DisplayMetrics.DENSITY_HIGH; in init()
|