/external/e2fsprogs/lib/e2p/ |
H A D | percent.c | 2 * 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 D | Lerp.java | 27 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 D | CalculationValue.h | 49 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 D | LengthFunctions.cpp | 43 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 D | Length.cpp | 186 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 D | color.js | 51 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 D | SkProgressView.cpp | 64 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 D | SkProgressView.cpp | 64 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 D | brightness_control_delegate.h | 26 // 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 D | AnimatableLength.h | 51 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 D | table_model.cc | 21 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 D | tray_brightness.cc | 60 // |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 D | brightness_controller_chromeos.cc | 36 void BrightnessControllerChromeos::SetBrightnessPercent(double percent, argument 39 SetScreenBrightnessPercent(percent, gradual);
|
H A D | brightness_controller_chromeos.h | 28 virtual void SetBrightnessPercent(double percent, bool gradual) OVERRIDE;
|
/external/chromium_org/third_party/WebKit/Source/core/svg/ |
H A D | SVGAnimationElement.h | 155 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 D | SVGAnimationElement.cpp | 402 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 D | SVGDiscardElement.h | 55 virtual void updateAnimation(float percent, unsigned repeat, SVGSMILElement* resultElement) OVERRIDE { }
|
/external/chromium_org/cc/base/ |
H A D | rolling_time_delta_history.h | 29 // 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 D | volume_view.h | 43 // 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 D | browser.c | 37 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 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);
|
H A D | color.c | 292 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 D | printf.c | 39 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 D | save_item.cc | 103 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 D | multi_animation.cc | 59 double percent = static_cast<double>(delta + part.start_time_ms) / local 61 DCHECK(percent <= 1); 62 current_value_ = Tween::CalculateValue(part.type, percent);
|