/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/ |
D | AbstractDeviceProfileTest.kt | 78 var densityDpi: Int, in <lambda>() variable in com.android.launcher3.AbstractDeviceProfileTest.DeviceSpec 90 densityDpi = 420, in <lambda>() 99 densityDpi = 320, in <lambda>() 108 densityDpi = 420, in <lambda>() 117 densityDpi = 420, in <lambda>() 140 densityDpi = deviceSpec.densityDpi in <lambda>() 159 densityDpi = deviceSpec.densityDpi in <lambda>() 194 densityDpi = deviceSpecFolded.densityDpi in <lambda>() 202 densityDpi = deviceSpecUnfolded.densityDpi in <lambda>() 213 val buttonsNavHeight = Utilities.dpToPx(48f, deviceSpec.densityDpi) in <lambda>() [all …]
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | DisplaySizeData.java | 44 final int densityDpi = resources.getDisplayMetrics().densityDpi; in DisplaySizeData() local 45 setDefaultValue(densityDpi); in DisplaySizeData() 47 setValues(Collections.singletonList(densityDpi)); in DisplaySizeData() 58 final int densityDpi = getValues().get(currentProgress); in commit() local 59 if (densityDpi == getDefaultValue()) { in commit()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | DisplayController.java | 247 || mInfo.densityDpi != config.densityDpi; in onIntent() 265 if (config.densityDpi != mInfo.densityDpi in onConfigurationChanged() 306 if (newInfo.densityDpi != oldInfo.densityDpi || newInfo.fontScale != oldInfo.fontScale in handleInfoChange() 320 if (newInfo.densityDpi != oldInfo.densityDpi || newInfo.fontScale != oldInfo.fontScale) { in handleInfoChange() 373 private final int densityDpi; field in DisplayController.Info 405 densityDpi = config.densityDpi; in Info() 500 return dpiFromPx(Math.min(bounds.bounds.width(), bounds.bounds.height()), densityDpi); in smallestSizeDp() 518 return densityDpi; in getDensityDpi() 564 pw.println(" densityDpi=" + info.densityDpi); in dump()
|
/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/apps/Launcher3/tests/src/com/android/launcher3/folder/ |
D | PreviewItemManagerTest.kt | 88 context.resources.configuration.densityDpi, in setup() 100 context.resources.configuration.densityDpi, in setup() 112 context.resources.configuration.densityDpi, in setup() 126 context.resources.configuration.densityDpi, in setup()
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/device/apps/ |
D | InterestingConfigChanges.java | 54 boolean densityChanged = mLastDensity != res.getDisplayMetrics().densityDpi; in applyNewConfig() 56 mLastDensity = res.getDisplayMetrics().densityDpi; in applyNewConfig()
|
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/util/ |
D | DisplayControllerTest.kt | 75 private val densityDpi = 420 in <lambda>() constant in com.android.launcher3.util.DisplayControllerTest 76 private val density = densityDpi / DisplayMetrics.DENSITY_DEFAULT.toFloat() in <lambda>() 86 densityDpi = this@DisplayControllerTest.densityDpi in <lambda>()
|
D | IconSizeStepsTest.kt | 40 Configuration(runningContext.resources.configuration).apply { this.densityDpi = 160 } in setup()
|
D | CellContentDimensionsTest.kt | 41 this.densityDpi = DisplayMetrics.DENSITY_DEFAULT in setup()
|
/packages/apps/Settings/src/com/android/settings/display/ |
D | DensityPreference.java | 80 final int densityDpi = Math.max(newDensity, 120); in onDialogClosed() local 81 … DisplayDensityConfiguration.setForcedDisplayDensity(Display.DEFAULT_DISPLAY, densityDpi); in onDialogClosed()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/display/ |
D | DisplayInfoFragment.java | 61 addTextView("display density(dpi): " + getResources().getDisplayMetrics().densityDpi); in onStart() 132 float dp = px / ((float) metrics.densityDpi / DisplayMetrics.DENSITY_DEFAULT); in convertPixelsToDp()
|
/packages/apps/Launcher3/quickstep/tests/multivalentTests/src/com/android/quickstep/util/ |
D | TaskViewSimulatorTest.java | 141 TaskMatrixVerifier withDensityDpi(int densityDpi) { in withDensityDpi() argument 142 mDensityDpi = densityDpi; in withDensityDpi() 189 configuration.densityDpi = mDensityDpi; in verifyNoTransforms()
|
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/responsive/ |
D | CalculatedWorkspaceSpecTest.kt | 88 deviceSpec.densityDpi = 540 // larger display size in smallPhone_returnsFirstBreakpointSpec() 131 deviceSpec.densityDpi = 540 // larger display size in smallPhone_returnsFirstBreakpointSpec_unsortedFile()
|
D | CalculatedHotseatSpecTest.kt | 68 deviceSpec.densityDpi = 540 // larger display size in smallPhone_returnsFirstBreakpointSpec()
|
/packages/modules/Permission/PermissionController/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/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/Settings/tests/unit/src/com/android/settings/accessibility/ |
D | DisplaySizeDataTest.java | 63 final int density = mContext.getResources().getDisplayMetrics().densityDpi; in commit_success()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/window/ |
D | WindowManagerProxy.java | 288 int densityDpi = context.getResources().getConfiguration().densityDpi; in estimateWindowBounds() local 292 int swDp = (int) dpiFromPx(minSize, densityDpi); in estimateWindowBounds()
|
/packages/modules/Permission/tests/cts/permissionmultidevice/TestUtils/src/android/permissionmultidevice/cts/ |
D | PermissionUtils.kt | 66 val dpi = Resources.getSystem().displayMetrics.densityDpi in hasMinScreenSize()
|
/packages/apps/WallpaperPicker2/tests/robotests/common/src/com/android/wallpaper/testing/ |
D | FakeDisplaysProvider.kt | 59 appContext.resources.configuration.densityDpi = config.dpi in <lambda>()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | Utilities.java | 451 public static float dpiFromPx(float size, int densityDpi) { in dpiFromPx() argument 452 float densityRatio = (float) densityDpi / DisplayMetrics.DENSITY_DEFAULT; in dpiFromPx() 462 public static int dpToPx(float dp, int densityDpi) { in dpToPx() argument 463 float densityRatio = (float) densityDpi / DisplayMetrics.DENSITY_DEFAULT; in dpToPx()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/ |
D | DisplayUtils.kt | 132 appContext.resources.configuration.densityDpi in <lambda>()
|
/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 | 80 configuration.densityDpi = (int) getResources().getDisplayMetrics().xdpi; in onCreateView()
|