What is the resolution and the size of your screen? This will help you figure out the screen density.
Android use screen density buckets: mdpi, hdpi, x-hdpi, xx-hdpi...
The screen sizes of the devices do not fall exactly in one bucket, but I think the system finds the best bucket with the closest dpis.
This is the official documentation for screen densities
This medium post can help you figure out how to work for screen densities
As a rule, of thumb, unless there is a strong requirement (showing an object at exact scale on a specific device model), you should try avoiding sticking to millimeters on your design and focus more on building responsive content that fits many screens.
If you really want to measure things: