Searched refs:scaleRatio (Results 1 – 5 of 5) sorted by relevance
/frameworks/native/services/surfaceflinger/ |
D | LayerStats.cpp | 173 ret += scaleRatio(layer->hwcFrame.right - layer->hwcFrame.left, in scaleRatioWH() 176 ret += scaleRatio(layer->hwcFrame.bottom - layer->hwcFrame.top, in scaleRatioWH() 179 ret += scaleRatio(layer->hwcFrame.right - layer->hwcFrame.left, in scaleRatioWH() 182 ret += scaleRatio(layer->hwcFrame.bottom - layer->hwcFrame.top, in scaleRatioWH() 188 const char* LayerStats::scaleRatio(int32_t destinationScale, int32_t sourceScale) { in scaleRatio() function in android::LayerStats
|
D | LayerStats.h | 57 static const char* scaleRatio(int32_t destinationScale, int32_t sourceScale);
|
/frameworks/support/palette/src/main/java/androidx/palette/graphics/ |
D | Palette.java | 913 double scaleRatio = -1; 918 scaleRatio = Math.sqrt(mResizeArea / (double) bitmapArea); 923 scaleRatio = mResizeMaxDimension / (double) maxDimension; 927 if (scaleRatio <= 0) { 933 (int) Math.ceil(bitmap.getWidth() * scaleRatio), 934 (int) Math.ceil(bitmap.getHeight() * scaleRatio),
|
/frameworks/base/core/java/com/android/internal/graphics/palette/ |
D | Palette.java | 928 double scaleRatio = -1; 933 scaleRatio = Math.sqrt(mResizeArea / (double) bitmapArea); 938 scaleRatio = mResizeMaxDimension / (double) maxDimension; 942 if (scaleRatio <= 0) { 948 (int) Math.ceil(bitmap.getWidth() * scaleRatio), 949 (int) Math.ceil(bitmap.getHeight() * scaleRatio),
|
/frameworks/base/media/java/android/media/ |
D | Utils.java | 158 private static Rational scaleRatio(Rational ratio, int num, int den) { 172 scaleRatio(range.getLower(), num, den), 173 scaleRatio(range.getUpper(), num, den));
|