/packages/apps/Settings/src/com/android/settings/display/ |
D | ScreenZoomSettings.java | 68 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()
|
D | DensityPreference.java | 80 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/ |
D | DisplayController.java | 161 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()
|
D | WindowManagerCompat.java | 56 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/ |
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 | 60 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/ |
D | AppOpsCategory.java | 74 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/ |
D | PagedSmoothScroller.java | 76 return MILLISECONDS_PER_INCH / displayMetrics.densityDpi; in calculateSpeedPerPixel()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | InvariantDeviceProfile.java | 343 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()
|
D | Partner.java | 132 iconSize = Utilities.dpiFromPx((float) px, dm.densityDpi); in applyInvariantDeviceProfileOverrides()
|
D | DeviceProfile.java | 897 return "\t" + name + ": " + value + "px (" + dpiFromPx(value, mMetrics.densityDpi) + "dp)"; in pxToDpStr() 1002 config.densityDpi = info.densityDpi; in getContext()
|
D | Utilities.java | 468 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/ |
D | CarUiSmoothScroller.java | 66 mDensityDpi = context.getResources().getDisplayMetrics().densityDpi; in init()
|
/packages/apps/Settings/src/com/android/settings/ |
D | AppWidgetPickActivity.java | 103 final int density = res.getDisplayMetrics().densityDpi; in createItem()
|
/packages/apps/EmergencyInfo/EmergencyGestureAction/src/com/android/emergency/action/ |
D | EmergencyActionFragment.java | 84 configuration.densityDpi = (int) getResources().getDisplayMetrics().xdpi; in onCreateView()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/ |
D | NoButtonNavbarToOverviewTouchController.java | 261 return Utilities.dpiFromPx(pixels, mLauncher.getResources().getDisplayMetrics().densityDpi); in dpiFromPx()
|
/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/quickstep/src/com/android/quickstep/ |
D | TaskIconCache.java | 241 DisplayController.INSTANCE.get(mContext).getInfo().densityDpi, in getIconFactory()
|
D | RecentsAnimationDeviceState.java | 595 && displayInfo.densityDpi < DisplayMetrics.DENSITY_600); in canTriggerOneHandedAction()
|
/packages/apps/QuickAccessWallet/src/com/android/systemui/plugin/globalactions/wallet/ |
D | WalletCardCarousel.java | 349 return MILLISECONDS_PER_INCH / displayMetrics.densityDpi;
|
/packages/apps/Nfc/src/com/android/nfc/beam/ |
D | SendUi.java | 613 float smallestWidthDp = smallestWidth / (mDisplayMetrics.densityDpi / 160f); in createScreenshot()
|
/packages/modules/Permission/PermissionController/src/android/support/wearable/view/ |
D | WearableListView.java | 1321 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()
|