Searched refs:tdensity (Results 1 - 2 of 2) sorted by relevance

/frameworks/support/compat/src/androidTest/java/androidx/core/content/
H A DContextCompatTest.java198 private static int scaleFromDensity(int size, int sdensity, int tdensity) { argument
199 if (sdensity == tdensity) {
203 // Scale by tdensity / sdensity, rounding up.
204 return ((size * tdensity) + (sdensity >> 1)) / sdensity;
/frameworks/base/graphics/java/android/graphics/
H A DBitmap.java1497 static public int scaleFromDensity(int size, int sdensity, int tdensity) { argument
1498 if (sdensity == DENSITY_NONE || tdensity == DENSITY_NONE || sdensity == tdensity) {
1502 // Scale by tdensity / sdensity, rounding up.
1503 return ((size * tdensity) + (sdensity >> 1)) / sdensity;

Completed in 49 milliseconds