I wanted to create dimensions (dimen.xml) specific for a device in android. I tried to look at the display information and could find the Physical pixel density is 294 dpi, with width and height (160.42 x 160.15). I am confused in renaming the values folder( values-sw294 or values-sw160) so that the dimensions only apply to that device(I have a common dimens.xml in values folder).
I got to know the screen density of the device using the following command.
$ dumpsys display | grep mBaseDisplayInfo
mBaseDisplayInfo=DisplayInfo{"Built-in Screen", uniqueId "local:0", app 1280 x 720, real 1280 x 720, lar
gest app 1280 x 720, smallest app 1280 x 720, mode 1, defaultMode 1, modes [{id=1, width=1280, height=720, f
ps=30.0}], colorMode 0, supportedColorModes [0], hdrCapabilities android.view.Display$HdrCapabilities@a69d63
08, rotation 0, density 294 (160.42105 x 160.15764) dpi, layerStack 0, appVsyncOff 1000000, presDeadline 333
33333, type BUILT_IN, state ON, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS}