Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/text/style/
DScaleXSpan.java49 public ScaleXSpan(@FloatRange(from = 0) float proportion) { in ScaleXSpan()
50 mProportion = proportion; in ScaleXSpan()
DRelativeSizeSpan.java46 public RelativeSizeSpan(@FloatRange(from = 0) float proportion) { in RelativeSizeSpan()
47 mProportion = proportion; in RelativeSizeSpan()
/frameworks/base/core/java/android/app/
DWallpaperColors.java308 double proportion = mapEntry.getValue(); in WallpaperColors() local
309 double score = score(colorToCam.get(color), proportion); in WallpaperColors()
344 private static double score(Cam cam, double proportion) { in score() argument
345 return cam.getChroma() + (proportion * 100); in score()
353 double proportion = 0.0; in colorToHueProportion() local
355 proportion += hueProportions[wrapDegrees(i)]; in colorToHueProportion()
357 colorToHueProportion.put(color, proportion); in colorToHueProportion()
/frameworks/base/core/tests/batterystatstests/BatteryStatsLoadTests/src/com/android/frameworks/core/batterystatsloadtests/
DPowerMetricsCollector.java266 double proportion = metric.total != 0 ? metric.value * 100 / metric.total : 0;
271 metric.value, proportion));
276 (long) metric.value, proportion));
/frameworks/base/core/tests/batterystatstests/BatteryStatsViewer/src/com/android/frameworks/core/batterystatsviewer/
DBatteryStatsViewerActivity.java357 final double proportion = entry.value2 != 0 ? entry.value1 * 100 / entry.value2 : 0; in setProportionText() local
359 String.format(Locale.getDefault(), "%.1f%%", proportion)); in setProportionText() local