/external/e2fsprogs/lib/e2p/ |
D | percent.c | 20 unsigned int e2p_percent(int percent, unsigned int base) in e2p_percent() argument 24 if (!percent) in e2p_percent() 26 if (100 % percent == 0) in e2p_percent() 27 return base / (100 / percent); in e2p_percent() 29 return (base / 100) * percent; in e2p_percent() 30 return base * percent / 100; in e2p_percent() 40 int percent; in main() local 49 percent = strtoul(argv[1], &p, 0); in main() 61 printf("%d percent of %u is %u.\n", percent, base, in main() 62 e2p_percent(percent, base)); in main()
|
/external/replicaisland/src/com/replica/replicaisland/ |
D | Lerp.java | 27 final float percent = timeSinceStart / duration; in lerp() local 28 value = start + (range * percent); in lerp() 43 final float percent = timeSinceStart / (duration / 2.0f); in ease() local 44 if (percent < 1.0f) in ease() 46 value = start + ((range / 2.0f) * percent * percent * percent); in ease() 50 final float shiftedPercent = percent - 2.0f; in ease()
|
/external/chromium-trace/trace-viewer/src/base/ |
D | color.js | 51 Color.lerp = function(a, b, percent) { argument 53 return Color.lerpRGBA(a, b, percent); 54 return Color.lerpRGB(a, b, percent); 56 Color.lerpRGB = function(a, b, percent) { argument 58 ((b.r - a.r) * percent) + a.r, 59 ((b.g - a.g) * percent) + a.g, 60 ((b.b - a.b) * percent) + a.b); 63 Color.lerpRGBA = function(a, b, percent) { argument 65 ((b.r - a.r) * percent) + a.r, 66 ((b.g - a.g) * percent) + a.g, [all …]
|
/external/chromium_org/ash/system/chromeos/brightness/ |
D | tray_brightness.cc | 61 void SetBrightnessPercent(double percent); 129 void BrightnessView::SetBrightnessPercent(double percent) { in SetBrightnessPercent() argument 130 last_percent_ = percent; in SetBrightnessPercent() 132 slider_->SetValue(static_cast<float>(percent / 100.0)); in SetBrightnessPercent() 157 double percent = std::max(value * 100.0, kMinBrightnessPercent); in SliderValueChanged() local 158 ac->brightness_control_delegate()->SetBrightnessPercent(percent, true); in SliderValueChanged() 208 void TrayBrightness::HandleInitialBrightness(double percent) { in HandleInitialBrightness() argument 210 HandleBrightnessChanged(percent, false); in HandleInitialBrightness() 258 double percent = static_cast<double>(level); in BrightnessChanged() local 259 HandleBrightnessChanged(percent, user_initiated); in BrightnessChanged() [all …]
|
/external/chromium_org/third_party/WebKit/Source/core/svg/ |
D | SVGAnimationElement.cpp | 402 unsigned SVGAnimationElement::calculateKeyTimesIndex(float percent) const in calculateKeyTimesIndex() 412 if (m_keyTimes[index] > percent) in calculateKeyTimesIndex() 418 float SVGAnimationElement::calculatePercentForSpline(float percent, unsigned splineIndex) const in calculatePercentForSpline() argument 426 return narrowPrecisionToFloat(bezier.solve(percent, solveEpsilon(duration.value()))); in calculatePercentForSpline() 429 float SVGAnimationElement::calculatePercentFromKeyPoints(float percent) const in calculatePercentFromKeyPoints() 436 if (percent == 1) in calculatePercentFromKeyPoints() 439 unsigned index = calculateKeyTimesIndex(percent); in calculatePercentFromKeyPoints() 449 float keyPointPercent = (percent - fromPercent) / (toPercent - fromPercent); in calculatePercentFromKeyPoints() 458 float SVGAnimationElement::calculatePercentForFromTo(float percent) const in calculatePercentForFromTo() 461 return percent > m_keyTimes[1] ? 1 : 0; in calculatePercentForFromTo() [all …]
|
D | SVGAnimationElement.h | 155 …virtual void updateAnimation(float percent, unsigned repeat, SVGSMILElement* resultElement) OVERRI… 180 …virtual void calculateAnimatedValue(float percent, unsigned repeatCount, SVGSMILElement* resultEle… 183 …void currentValuesForValuesAnimation(float percent, float& effectivePercent, String& from, String&… 185 float calculatePercentFromKeyPoints(float percent) const; 186 …void currentValuesFromKeyPoints(float percent, float& effectivePercent, String& from, String& to) … 187 float calculatePercentForSpline(float percent, unsigned splineIndex) const; 188 float calculatePercentForFromTo(float percent) const; 189 unsigned calculateKeyTimesIndex(float percent) const;
|
/external/skia/src/views/ |
D | SkProgressView.cpp | 64 SkFixed percent; in onDraw() local 74 percent = (SkFixed)x; // now its 16.8 in onDraw() 75 percent = SkMax32(0, SkMin32(percent, fMax << 8)); // now its pinned in onDraw() 76 percent = SkFixedDiv(percent, fMax << 8); // now its 0.16 in onDraw() 82 percent = SkFixedDiv(value, fMax); in onDraw() 92 r.fRight = r.fLeft + SkScalarMul(r.width(), SkFixedToScalar(percent)); in onDraw()
|
/external/chromium_org/third_party/skia/src/views/ |
D | SkProgressView.cpp | 64 SkFixed percent; in onDraw() local 74 percent = (SkFixed)x; // now its 16.8 in onDraw() 75 percent = SkMax32(0, SkMin32(percent, fMax << 8)); // now its pinned in onDraw() 76 percent = SkFixedDiv(percent, fMax << 8); // now its 0.16 in onDraw() 82 percent = SkFixedDiv(value, fMax); in onDraw() 92 r.fRight = r.fLeft + SkScalarMul(r.width(), SkFixedToScalar(percent)); in onDraw()
|
/external/chromium_org/third_party/WebKit/Source/platform/ |
D | CalculationValue.h | 49 float evaluate(float maxValue) const { return pixels() + percent() / 100 * maxValue; } in evaluate() 50 …r==(const CalculationValue& o) const { return pixels() == o.pixels() && percent() == o.percent(); } 53 float percent() const { return m_value.percent; } in percent() function
|
D | Length.cpp | 186 …const float percent = blink::blend(fromPixelsAndPercent.percent, toPixelsAndPercent.percent, progr… in blendMixedTypes() local 187 return Length(CalculationValue::create(PixelsAndPercent(pixels, percent), range)); in blendMixedTypes() 209 result.percent = 100 - result.percent; in subtractFromOneHundredPercent() 210 if (result.pixels && result.percent) in subtractFromOneHundredPercent() 212 if (result.percent) in subtractFromOneHundredPercent() 213 return Length(result.percent, Percent); in subtractFromOneHundredPercent()
|
/external/ltrace/ |
D | printf.c | 39 int percent; member 104 self->percent = 0; in param_printf_init() 231 if (!self->percent) { in param_printf_next() 233 self->percent = 1; in param_printf_next() 302 self->percent = 0; in param_printf_next() 315 self->percent = 0; in param_printf_next() 323 self->percent = 0; in param_printf_next() 332 self->percent = 0; in param_printf_next() 341 self->percent = 0; in param_printf_next() 349 self->percent = 0; in param_printf_next() [all …]
|
/external/linux-tools-perf/perf-3.12.0/tools/perf/ui/gtk/ |
D | hists.c | 11 static int __percent_color_snprintf(char *buf, size_t size, double percent) in __percent_color_snprintf() argument 16 markup = perf_gtk__get_percent_color(percent); in __percent_color_snprintf() 20 ret += scnprintf(buf + ret, size - ret, " %6.2f%%", percent); in __percent_color_snprintf() 33 double percent = 0.0; in __hpp__color_fmt() local 38 percent = 100.0 * get_field(he) / hists->stats.total_period; in __hpp__color_fmt() 40 ret = __percent_color_snprintf(hpp->buf, hpp->size, percent); in __hpp__color_fmt() 66 percent = 100.0 * period / total; in __hpp__color_fmt() 69 percent); in __hpp__color_fmt() 146 double percent; in perf_gtk__add_callchain() local 152 percent = 100.0 * hits / total; in perf_gtk__add_callchain() [all …]
|
D | browser.c | 37 const char *perf_gtk__get_percent_color(double percent) in perf_gtk__get_percent_color() argument 39 if (percent >= MIN_RED) in perf_gtk__get_percent_color() 41 if (percent >= MIN_GREEN) in perf_gtk__get_percent_color()
|
/external/linux-tools-perf/perf-3.12.0/tools/perf/util/ |
D | color.c | 292 const char *get_percent_color(double percent) in get_percent_color() argument 301 if (percent >= MIN_RED) in get_percent_color() 304 if (percent > MIN_GREEN) in get_percent_color() 310 int percent_color_fprintf(FILE *fp, const char *fmt, double percent) in percent_color_fprintf() argument 315 color = get_percent_color(percent); in percent_color_fprintf() 316 r = color_fprintf(fp, color, fmt, percent); in percent_color_fprintf() 321 int percent_color_snprintf(char *bf, size_t size, const char *fmt, double percent) in percent_color_snprintf() argument 323 const char *color = get_percent_color(percent); in percent_color_snprintf() 324 return color_snprintf(bf, size, color, fmt, percent); in percent_color_snprintf()
|
D | annotate.c | 610 double percent = 0.0; in disasm__calc_percent() local 623 percent += src_line->p[evidx].percent; in disasm__calc_percent() 634 percent = 100.0 * hits / h->sum; in disasm__calc_percent() 637 return percent; in disasm__calc_percent() 649 double percent, max_percent = 0.0; in disasm_line__print() local 650 double *ppercents = &percent; in disasm_line__print() 668 percent = disasm__calc_percent(notes, in disasm_line__print() 674 ppercents[i] = percent; in disasm_line__print() 675 if (percent > max_percent) in disasm_line__print() 676 max_percent = percent; in disasm_line__print() [all …]
|
D | color.h | 42 int percent_color_snprintf(char *bf, size_t size, const char *fmt, double percent); 43 int percent_color_fprintf(FILE *fp, const char *fmt, double percent); 44 const char *get_percent_color(double percent);
|
/external/chromium_org/third_party/WebKit/Source/core/animation/animatable/ |
D | AnimatableLength.h | 51 …static PassRefPtrWillBeRawPtr<AnimatableLength> create(double pixels, double percent, bool hasPixe… in create() argument 53 return adoptRefWillBeNoop(new AnimatableLength(pixels, percent, hasPixels, hasPercent)); in create() 56 AnimatableLength(double pixels, double percent, bool hasPixels, bool hasPercent) in AnimatableLength() argument 58 , m_percent(percent) in AnimatableLength()
|
/external/chromium_org/third_party/WebKit/Source/core/rendering/ |
D | AutoTableLayout.cpp | 233 …float percent = std::min(static_cast<float>(m_layoutStruct[i].effectiveLogicalWidth.percent()), re… in computeIntrinsicLogicalWidths() local 234 … static_cast<float>(m_layoutStruct[i].effectiveMaxLogicalWidth) * 100 / std::max(percent, epsilon); in computeIntrinsicLogicalWidths() 236 remainingPercent -= percent; in computeIntrinsicLogicalWidths() 317 totalPercent += columnLayout.logicalWidth.percent(); in calcEffectiveLogicalWidth() 344 totalPercent += columnLayout.effectiveLogicalWidth.percent(); in calcEffectiveLogicalWidth() 359 if (totalPercent > cellLogicalWidth.percent() || allColsArePercent) { in calcEffectiveLogicalWidth() 363 …cast<int>(std::max(spanMaxLogicalWidth, cellMaxLogicalWidth) * 100 / cellLogicalWidth.percent())); in calcEffectiveLogicalWidth() 366 float percentMissing = cellLogicalWidth.percent() - totalPercent; in calcEffectiveLogicalWidth() 375 …float percent = percentMissing * static_cast<float>(m_layoutStruct[pos].effectiveMaxLogicalWidth) … in calcEffectiveLogicalWidth() local 377 percentMissing -= percent; in calcEffectiveLogicalWidth() [all …]
|
/external/llvm/tools/llvm-diff/ |
D | DiffConsumer.cpp | 168 size_t percent = format.find('%'); in logf() local 169 if (percent == StringRef::npos) { in logf() 173 assert(format[percent] == '%'); in logf() 175 if (percent > 0) out << format.substr(0, percent); in logf() 177 switch (format[percent+1]) { in logf() 184 format = format.substr(percent+2); in logf()
|
/external/oprofile/libpp/ |
D | profile_container.cpp | 35 : filename(id), percent(percent_) in filename_by_samples() 39 if (percent != lhs.percent) in operator <() 40 return percent < lhs.percent; in operator <() 46 double percent; member 179 double const percent = in select_symbols() local 182 if (percent >= threshold) { in select_symbols() 239 if (cit->percent >= threshold) in select_filename()
|
/external/chromium_org/ui/base/models/ |
D | table_model.cc | 21 percent(), in TableColumn() 26 TableColumn::TableColumn(int id, Alignment alignment, int width, float percent) in TableColumn() argument 31 percent(percent), in TableColumn()
|
/external/chromium_org/ui/views/controls/table/ |
D | table_utils.cc | 51 if (column.percent > 0) { in CalculateTableColumnSizes() 52 total_percent += column.percent; in CalculateTableColumnSizes() 75 if (column.width <= 0 && column.percent > 0 && available_width > 0) { in CalculateTableColumnSizes() 77 (column.percent / total_percent)); in CalculateTableColumnSizes() 86 columns.back().width <= 0 && columns.back().percent == 0.f) { in CalculateTableColumnSizes()
|
/external/chromium_org/chrome/ |
D | BUILD.gn | 440 # percent [required] 443 percent = invoker.percent 446 repack_output_file = "$root_gen_dir/repack/chrome_${percent}_percent.pak" 454 "$root_gen_dir/components/resources/components_resources_${percent}_percent.pak", 455 "$root_gen_dir/ui/resources/ui_resources_${percent}_percent.pak", 456 "$root_gen_dir/chrome/renderer_resources_${percent}_percent.pak", 457 "$root_gen_dir/chrome/app/theme/theme_resources_${percent}_percent.pak", 469 "$root_gen_dir/content/app/resources/content_resources_${percent}_percent.pak", 474 sources += [ "$root_gen_dir/ash/resources/ash_resources_${percent}_percent.pak" ] 479 "$root_gen_dir/athena/resources/athena_resources_${percent}_percent.pak", [all …]
|
/external/llvm/utils/lit/lit/ |
D | ProgressBar.py | 182 def update(self, percent, message): argument 187 next = int(percent*50) 246 def update(self, percent, message): argument 250 prefix = '%3d%% ' % (percent*100,) 254 if percent > .0001 and elapsed > 1: 255 total = elapsed / percent 262 n = int(barWidth*percent)
|
/external/chromium_org/tools/resources/ |
D | optimize-png-files.sh | 327 let percent=$diff*100 328 let percent=$percent/$old 331 info "$file: $old => $new ($diff bytes: $percent%)" 541 let percent=$diff*100/$TOTAL_OLD_BYTES 543 "($diff bytes: $percent%)"
|