Searched refs:percent (Results 1 - 25 of 190) sorted by relevance

12345678

/external/e2fsprogs/lib/e2p/
H A Dpercent.c2 * percent.c - Take percentage of a number
20 unsigned int e2p_percent(int percent, unsigned int base) argument
24 if (!percent)
26 if (100 % percent == 0)
27 return base / (100 / percent);
29 return (base / 100) * percent;
30 return base * percent / 100;
40 int percent; local
45 fprintf(stderr, "Usage: %s percent base\n", argv[0]);
49 percent
[all...]
/external/replicaisland/src/com/replica/replicaisland/
H A DLerp.java27 final float percent = timeSinceStart / duration;
28 value = start + (range * percent);
43 final float percent = timeSinceStart / (duration / 2.0f);
44 if (percent < 1.0f)
46 value = start + ((range / 2.0f) * percent * percent * percent);
50 final float shiftedPercent = percent - 2.0f;
/external/chromium_org/third_party/WebKit/Source/platform/
H A DCalculationValue.h49 float evaluate(float maxValue) const { return pixels() + percent() / 100 * maxValue; }
50 bool operator==(const CalculationValue& o) const { return pixels() == o.pixels() && percent() == o.percent(); }
53 float percent() const { return m_value.percent; } function in class:blink::CalculationValue
H A DLengthFunctions.cpp43 return static_cast<float>(maximumValue * length.percent() / 100.0f);
72 return static_cast<float>(maximumValue * length.percent() / 100.0f);
97 return static_cast<LayoutUnit>(round(maximumValue * length.percent() / 100.0f));
H A DLength.cpp186 const float percent = blink::blend(fromPixelsAndPercent.percent, toPixelsAndPercent.percent, progress); local
187 return Length(CalculationValue::create(PixelsAndPercent(pixels, percent), range));
209 result.percent = 100 - result.percent;
210 if (result.pixels && result.percent)
212 if (result.percent)
213 return Length(result.percent, Percent);
/external/chromium-trace/trace-viewer/src/base/
H A Dcolor.js51 Color.lerp = function(a, b, percent) {
53 return Color.lerpRGBA(a, b, percent);
54 return Color.lerpRGB(a, b, percent);
56 Color.lerpRGB = function(a, b, percent) {
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) {
65 ((b.r - a.r) * percent) + a.r,
66 ((b.g - a.g) * percent)
[all...]
/external/chromium_org/third_party/skia/src/views/
H A DSkProgressView.cpp64 SkFixed percent;
74 percent = (SkFixed)x; // now its 16.8
75 percent = SkMax32(0, SkMin32(percent, fMax << 8)); // now its pinned
76 percent = SkFixedDiv(percent, fMax << 8); // now its 0.16
82 percent = SkFixedDiv(value, fMax);
92 r.fRight = r.fLeft + SkScalarMul(r.width(), SkFixedToScalar(percent));
/external/skia/src/views/
H A DSkProgressView.cpp64 SkFixed percent;
74 percent = (SkFixed)x; // now its 16.8
75 percent = SkMax32(0, SkMin32(percent, fMax << 8)); // now its pinned
76 percent = SkFixedDiv(percent, fMax << 8); // now its 0.16
82 percent = SkFixedDiv(value, fMax);
92 r.fRight = r.fLeft + SkScalarMul(r.width(), SkFixedToScalar(percent));
/external/chromium_org/ash/system/
H A Dbrightness_control_delegate.h26 // Requests that the brightness be set to |percent|, in the range
29 virtual void SetBrightnessPercent(double percent, bool gradual) = 0;
/external/chromium_org/third_party/WebKit/Source/core/animation/animatable/
H A DAnimatableLength.h51 static PassRefPtrWillBeRawPtr<AnimatableLength> create(double pixels, double percent, bool hasPixels, bool hasPercent) argument
53 return adoptRefWillBeNoop(new AnimatableLength(pixels, percent, hasPixels, hasPercent));
56 AnimatableLength(double pixels, double percent, bool hasPixels, bool hasPercent) argument
58 , m_percent(percent)
/external/chromium_org/ui/base/models/
H A Dtable_model.cc21 percent(),
26 TableColumn::TableColumn(int id, Alignment alignment, int width, float percent) argument
31 percent(percent),
/external/chromium_org/ash/system/chromeos/brightness/
H A Dtray_brightness.cc60 // |percent| is in the range [0.0, 100.0].
61 void SetBrightnessPercent(double percent);
129 void BrightnessView::SetBrightnessPercent(double percent) { argument
130 last_percent_ = percent;
132 slider_->SetValue(static_cast<float>(percent / 100.0));
157 double percent = std::max(value * 100.0, kMinBrightnessPercent); local
158 ac->brightness_control_delegate()->SetBrightnessPercent(percent, true);
208 void TrayBrightness::HandleInitialBrightness(double percent) { argument
210 HandleBrightnessChanged(percent, false);
258 double percent local
262 HandleBrightnessChanged(double percent, bool user_initiated) argument
[all...]
H A Dbrightness_controller_chromeos.cc36 void BrightnessControllerChromeos::SetBrightnessPercent(double percent, argument
39 SetScreenBrightnessPercent(percent, gradual);
H A Dbrightness_controller_chromeos.h28 virtual void SetBrightnessPercent(double percent, bool gradual) OVERRIDE;
/external/chromium_org/third_party/WebKit/Source/core/svg/
H A DSVGAnimationElement.h155 virtual void updateAnimation(float percent, unsigned repeat, SVGSMILElement* resultElement) OVERRIDE;
180 virtual void calculateAnimatedValue(float percent, unsigned repeatCount, SVGSMILElement* resultElement) = 0;
183 void currentValuesForValuesAnimation(float percent, float& effectivePercent, String& from, String& to);
185 float calculatePercentFromKeyPoints(float percent) const;
186 void currentValuesFromKeyPoints(float percent, float& effectivePercent, String& from, String& to) const;
187 float calculatePercentForSpline(float percent, unsigned splineIndex) const;
188 float calculatePercentForFromTo(float percent) const;
189 unsigned calculateKeyTimesIndex(float percent) const;
H A DSVGAnimationElement.cpp402 unsigned SVGAnimationElement::calculateKeyTimesIndex(float percent) const
407 // cases we don't need to consider the last value, since |percent| is never
412 if (m_keyTimes[index] > percent)
418 float SVGAnimationElement::calculatePercentForSpline(float percent, unsigned splineIndex) const argument
426 return narrowPrecisionToFloat(bezier.solve(percent, solveEpsilon(duration.value())));
429 float SVGAnimationElement::calculatePercentFromKeyPoints(float percent) const
436 if (percent == 1)
439 unsigned index = calculateKeyTimesIndex(percent);
449 float keyPointPercent = (percent - fromPercent) / (toPercent - fromPercent);
458 float SVGAnimationElement::calculatePercentForFromTo(float percent) cons
466 currentValuesFromKeyPoints(float percent, float& effectivePercent, String& from, String& to) const argument
477 currentValuesForValuesAnimation(float percent, float& effectivePercent, String& from, String& to) argument
597 updateAnimation(float percent, unsigned repeatCount, SVGSMILElement* resultElement) argument
[all...]
H A DSVGDiscardElement.h55 virtual void updateAnimation(float percent, unsigned repeat, SVGSMILElement* resultElement) OVERRIDE { }
/external/chromium_org/cc/base/
H A Drolling_time_delta_history.h29 // percent of samples. If there aren't any samples, returns base::TimeDelta().
30 base::TimeDelta Percentile(double percent) const;
/external/chromium_org/ash/system/audio/
H A Dvolume_view.h43 // Sets volume level on slider_, |percent| is ranged from [0.00] to [1.00].
44 void SetVolumeLevel(float percent);
49 void HandleVolumeUp(float percent);
50 void HandleVolumeDown(float percent);
/external/linux-tools-perf/perf-3.12.0/tools/perf/ui/gtk/
H A Dbrowser.c37 const char *perf_gtk__get_percent_color(double percent) argument
39 if (percent >= MIN_RED)
41 if (percent >= MIN_GREEN)
/external/linux-tools-perf/perf-3.12.0/tools/perf/util/
H A Dcolor.h42 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);
H A Dcolor.c292 const char *get_percent_color(double percent) argument
301 if (percent >= MIN_RED)
304 if (percent > MIN_GREEN)
310 int percent_color_fprintf(FILE *fp, const char *fmt, double percent) argument
315 color = get_percent_color(percent);
316 r = color_fprintf(fp, color, fmt, percent);
321 int percent_color_snprintf(char *bf, size_t size, const char *fmt, double percent) argument
323 const char *color = get_percent_color(percent);
324 return color_snprintf(bf, size, color, fmt, percent);
/external/ltrace/
H A Dprintf.c39 int percent; member in struct:param_enum
104 self->percent = 0;
231 if (!self->percent) {
233 self->percent = 1;
302 self->percent = 0;
315 self->percent = 0;
323 self->percent = 0;
332 self->percent = 0;
341 self->percent = 0;
349 self->percent
[all...]
/external/chromium_org/content/browser/download/
H A Dsave_item.cc103 int percent = 0; local
105 percent = static_cast<int>(received_bytes_ * 100.0 / total_bytes_);
106 return percent;
/external/chromium_org/ui/gfx/animation/
H A Dmulti_animation.cc59 double percent = static_cast<double>(delta + part.start_time_ms) / local
61 DCHECK(percent <= 1);
62 current_value_ = Tween::CalculateValue(part.type, percent);

Completed in 664 milliseconds

12345678