Home
last modified time | relevance | path

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

12

/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/
DAbstractDeviceProfileTest.kt78 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/
DDisplaySizeData.java44 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/
DDisplayController.java247 || 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/
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/Launcher3/tests/src/com/android/launcher3/folder/
DPreviewItemManagerTest.kt88 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/
DInterestingConfigChanges.java54 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/
DDisplayControllerTest.kt75 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>()
DIconSizeStepsTest.kt40 Configuration(runningContext.resources.configuration).apply { this.densityDpi = 160 } in setup()
DCellContentDimensionsTest.kt41 this.densityDpi = DisplayMetrics.DENSITY_DEFAULT in setup()
/packages/apps/Settings/src/com/android/settings/display/
DDensityPreference.java80 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/
DDisplayInfoFragment.java61 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/
DTaskViewSimulatorTest.java141 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/
DCalculatedWorkspaceSpecTest.kt88 deviceSpec.densityDpi = 540 // larger display size in smallPhone_returnsFirstBreakpointSpec()
131 deviceSpec.densityDpi = 540 // larger display size in smallPhone_returnsFirstBreakpointSpec_unsortedFile()
DCalculatedHotseatSpecTest.kt68 deviceSpec.densityDpi = 540 // larger display size in smallPhone_returnsFirstBreakpointSpec()
/packages/modules/Permission/PermissionController/iconloaderlib/src_full_lib/com/android/launcher3/icons/
DIconFactory.java48 context.getResources().getConfiguration().densityDpi, in obtain()
DSimpleIconCache.java108 bgThread.getLooper(), context.getResources().getConfiguration().densityDpi, in getIconCache()
/packages/apps/Settings/src/com/android/settings/applications/appops/
DAppOpsCategory.java74 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/
DDisplaySizeDataTest.java63 final int density = mContext.getResources().getDisplayMetrics().densityDpi; in commit_success()
/packages/apps/Launcher3/src/com/android/launcher3/util/window/
DWindowManagerProxy.java288 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/
DPermissionUtils.kt66 val dpi = Resources.getSystem().displayMetrics.densityDpi in hasMinScreenSize()
/packages/apps/WallpaperPicker2/tests/robotests/common/src/com/android/wallpaper/testing/
DFakeDisplaysProvider.kt59 appContext.resources.configuration.densityDpi = config.dpi in <lambda>()
/packages/apps/Launcher3/src/com/android/launcher3/
DUtilities.java451 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/
DDisplayUtils.kt132 appContext.resources.configuration.densityDpi in <lambda>()
/packages/apps/Settings/src/com/android/settings/
DAppWidgetPickActivity.java103 final int density = res.getDisplayMetrics().densityDpi; in createItem()
/packages/apps/EmergencyInfo/EmergencyGestureAction/src/com/android/emergency/action/
DEmergencyActionFragment.java80 configuration.densityDpi = (int) getResources().getDisplayMetrics().xdpi; in onCreateView()

12