Searched refs:density (Results 1 – 2 of 2) sorted by relevance
98 float density = Float.parseFloat(densityDpi) / DisplayMetrics.DENSITY_DEFAULT; in testGetDisplayMetrics() local105 Point expectedSizeDp = new Point(Math.round(width / density), in testGetDisplayMetrics()106 Math.round(height / density)); in testGetDisplayMetrics()
323 float density = (float) densityDpi / DisplayMetrics.DENSITY_DEFAULT; in getDisplaySizeDp() local324 return new Point(Math.round(p.x / density), Math.round(p.y / density)); in getDisplaySizeDp()