Home
last modified time | relevance | path

Searched refs:old_min (Results 1 – 4 of 4) sorted by relevance

/external/chromium-trace/catapult/third_party/graphy/graphy/backends/google_chart_api/
Dutil.py217 def ScaleData(data, old_min, old_max, new_min, new_max): argument
226 if old_min == old_max:
229 scale = (new_max - new_min) / float(old_max - old_min)
230 translate = new_min - scale * old_min
Dbase_encoder_test.py444 def FakeScale(self, data, old_min, old_max, new_min, new_max): argument
445 self.min = old_min
/external/skia/src/fonts/
DSkFontMgr_fontconfig.cpp161 int old_min, int old_max, int new_min, int new_max) { in map_range() argument
162 SkASSERT(old_min < old_max); in map_range()
164 return new_min + SkMulDiv(value - old_min, in map_range()
165 new_max - new_min, old_max - old_min); in map_range()
/external/skia/src/ports/
DSkFontMgr_fontconfig.cpp259 SkFixed old_min, SkFixed old_max, in map_range() argument
262 SkASSERT(old_min < old_max); in map_range()
264 return new_min + SkMulDiv(value - old_min, new_max - new_min, old_max - old_min); in map_range()