Home
last modified time | relevance | path

Searched refs:scaleRatio (Results 1 – 5 of 5) sorted by relevance

/frameworks/native/services/surfaceflinger/
DLayerStats.cpp173 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
DLayerStats.h57 static const char* scaleRatio(int32_t destinationScale, int32_t sourceScale);
/frameworks/support/palette/src/main/java/androidx/palette/graphics/
DPalette.java913 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/
DPalette.java928 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/
DUtils.java158 private static Rational scaleRatio(Rational ratio, int num, int den) {
172 scaleRatio(range.getLower(), num, den),
173 scaleRatio(range.getUpper(), num, den));