HomeSort by relevance Sort by last modified time
    Searched refs:percent (Results 1 - 25 of 343) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/e2fsprogs/lib/e2p/
percent.c 2 * percent.c - Take percentage of a number
20 unsigned int e2p_percent(int percent, unsigned int base)
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 = strtoul(argv[1], &p, 0)
    [all...]
  /external/replicaisland/src/com/replica/replicaisland/
Lerp.java 27 final float percent = timeSinceStart / duration; local
28 value = start + (range * percent);
43 final float percent = timeSinceStart / (duration / 2.0f); local
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/
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
  /external/chromium_org/third_party/WebKit/Source/core/animation/animatable/
AnimatableLength.h 51 static PassRefPtrWillBeRawPtr<AnimatableLength> create(double pixels, double percent, bool hasPixels, bool hasPercent)
53 return adoptRefWillBeNoop(new AnimatableLength(pixels, percent, hasPixels, hasPercent));
56 AnimatableLength(double pixels, double percent, bool hasPixels, bool hasPercent)
58 , m_percent(percent)
  /external/chromium_org/ash/system/audio/
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/chromium_org/third_party/skia/src/views/
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/
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/
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/ash/system/chromeos/brightness/
brightness_controller_chromeos.h 28 virtual void SetBrightnessPercent(double percent, bool gradual) OVERRIDE;
tray_brightness.cc 60 // |percent| is in the range [0.0, 100.0].
61 void SetBrightnessPercent(double percent);
129 void BrightnessView::SetBrightnessPercent(double percent) {
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) {
210 HandleBrightnessChanged(percent, false);
258 double percent = static_cast<double>(level) local
    [all...]
brightness_controller_chromeos.cc 36 void BrightnessControllerChromeos::SetBrightnessPercent(double percent,
39 SetScreenBrightnessPercent(percent, gradual);
tray_brightness.h 35 void HandleInitialBrightness(double percent);
51 void HandleBrightnessChanged(double percent, bool user_initiated);
  /external/chromium_org/ui/base/models/
table_model.cc 21 percent(),
26 TableColumn::TableColumn(int id, Alignment alignment, int width, float percent)
31 percent(percent),
table_model.h 100 TableColumn(int id, Alignment alignment, int width, float percent);
114 // 2. As a percentage of the available width. If width is -1, and percent is
116 // available_width * percent / total_percent.
117 // 3. If the width == -1 and percent == 0, the column is autosized based on
125 float percent; member in struct:ui::TableColumn
  /packages/apps/Camera2/src/com/android/camera/ui/
ProgressRenderer.java 68 * @param percent the progress in percent (0-100).
70 public void setProgress(int percent) {
72 percent = Math.min(100, Math.max(percent, 0));
73 mProgressAngleDegrees = (int) ((360f / 100) * percent);
76 if (percent < 100) {
  /frameworks/base/tools/layoutlib/bridge/src/android/graphics/
Gradient_Delegate.java 114 float percent = (currentPos - mPositions[prevPos]) / local
117 mGradient[i] = computeColor(mColors[prevPos], mColors[nextPos], percent);
193 * Returns the color between c1, and c2, based on the percent of the distance
196 private int computeColor(int c1, int c2, float percent) {
197 int a = computeChannel((c1 >> 24) & 0xFF, (c2 >> 24) & 0xFF, percent);
198 int r = computeChannel((c1 >> 16) & 0xFF, (c2 >> 16) & 0xFF, percent);
199 int g = computeChannel((c1 >> 8) & 0xFF, (c2 >> 8) & 0xFF, percent);
200 int b = computeChannel((c1 ) & 0xFF, (c2 ) & 0xFF, percent);
205 * Returns the channel value between 2 values based on the percent of the distance between
208 private int computeChannel(int c1, int c2, float percent) {
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/svg/
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;
SVGDiscardElement.h 55 virtual void updateAnimation(float percent, unsigned repeat, SVGSMILElement* resultElement) OVERRIDE { }
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
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
    [all...]
  /frameworks/support/v4/api21/android/support/v4/media/
RatingCompatApi21.java 38 public static Object newPercentageRating(float percent) {
39 return Rating.newPercentageRating(percent);
  /external/chromium_org/cc/base/
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/linux-tools-perf/perf-3.12.0/tools/perf/ui/gtk/
browser.c 37 const char *perf_gtk__get_percent_color(double percent)
39 if (percent >= MIN_RED)
41 if (percent >= MIN_GREEN)
  /external/linux-tools-perf/perf-3.12.0/tools/perf/util/
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/ltrace/
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 = 0
    [all...]
  /external/chromium_org/content/browser/download/
save_item.cc 103 int percent = 0; local
105 percent = static_cast<int>(received_bytes_ * 100.0 / total_bytes_);
106 return percent;

Completed in 1064 milliseconds

1 2 3 4 5 6 7 8 91011>>