HomeSort by relevance Sort by last modified time
    Searched refs:percent (Results 1 - 25 of 278) 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/ash/system/brightness/
brightness_observer.h 16 // |percent| is in the range [0.0, 100.0].
17 virtual void OnBrightnessChanged(double percent, bool user_initiated) = 0;
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;
tray_brightness.cc 70 // |percent| is in the range [0.0, 100.0].
71 void SetBrightnessPercent(double percent) {
72 last_percent_ = percent;
74 slider_->SetValue(static_cast<float>(percent / 100.0));
95 double percent = std::max(value * 100.0, kMinBrightnessPercent); variable
96 ac->brightness_control_delegate()->SetBrightnessPercent(percent, true);
159 void TrayBrightness::HandleInitialBrightness(double percent) {
161 OnBrightnessChanged(percent, false);
203 void TrayBrightness::OnBrightnessChanged(double percent, bool user_initiated) {
204 current_percent_ = percent;
    [all...]
tray_brightness.h 34 void HandleInitialBrightness(double percent);
48 virtual void OnBrightnessChanged(double percent,
  /external/chromium/chrome/browser/chromeos/
setting_level_bubble.cc 31 int LimitPercent(int percent) {
32 if (percent < 0)
33 percent = 0;
34 else if (percent > 100)
35 percent = 100;
36 return percent;
90 void SettingLevelBubble::ShowBubble(int percent) {
91 percent = LimitPercent(percent);
93 previous_percent_ = percent;
    [all...]
setting_level_bubble.h 26 void ShowBubble(int percent);
30 // We _do_ still animate the level moving to |percent| in case the bubble is
44 void UpdateWithoutShowingBubble(int 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/chrome/browser/ui/ash/
brightness_controller_chromeos.h 23 virtual void SetBrightnessPercent(double percent, bool gradual) OVERRIDE;
brightness_controller_chromeos.cc 33 void BrightnessController::SetBrightnessPercent(double percent, bool gradual) {
35 SetScreenBrightnessPercent(percent, gradual);
  /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
  /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/cc/scheduler/
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/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);
color.c 291 const char *get_percent_color(double percent)
300 if (percent >= MIN_RED)
303 if (percent > MIN_GREEN)
309 int percent_color_fprintf(FILE *fp, const char *fmt, double percent)
314 color = get_percent_color(percent);
315 r = color_fprintf(fp, color, fmt, percent);
320 int percent_color_snprintf(char *bf, size_t size, const char *fmt, double percent)
322 const char *color = get_percent_color(percent);
323 return color_snprintf(bf, size, color, fmt, percent);
  /external/chromium_org/third_party/WebKit/Source/core/svg/
SVGAnimationElement.cpp 423 unsigned SVGAnimationElement::calculateKeyTimesIndex(float percent) const
428 // required to be 1, and percent can never exceed 1; i.e., the second last
431 if (m_keyTimes[index] > percent)
437 float SVGAnimationElement::calculatePercentForSpline(float percent, unsigned splineIndex) const
445 return narrowPrecisionToFloat(bezier.solve(percent, solveEpsilon(duration.value())));
448 float SVGAnimationElement::calculatePercentFromKeyPoints(float percent) const
455 if (percent == 1)
458 unsigned index = calculateKeyTimesIndex(percent);
467 float keyPointPercent = (percent - fromPercent) / (toPercent - fromPercent);
476 float SVGAnimationElement::calculatePercentForFromTo(float percent) cons
    [all...]
  /external/chromium/chrome/browser/download/
save_item.cc 102 int percent = 0; local
104 percent = static_cast<int>(received_bytes_ * 100.0 / total_bytes_);
105 return percent;
  /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;
  /external/chromium_org/ui/base/animation/
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);
  /external/linux-tools-perf/util/ui/browsers/
annotate.c 27 double percent; member in struct:objdump_line_rb_node
45 ui_browser__set_percent_color(self, olrb->percent, current_entry);
46 slsmg_printf(" %7.2f ", olrb->percent);
66 double percent = 0.0; local
81 percent += src_line[offset].percent;
92 percent = 100.0 * hits / h->sum;
95 return percent;
108 if (line->percent < l->percent)
    [all...]
  /development/samples/training/ContactsList/src/com/example/android/contactslist/util/
ImageCache.java 39 * @param memCacheSizePercent The cache size as a percent of available app memory.
50 * @param memCacheSizePercent The cache size as a percent of available app memory.
74 * @param memCacheSizePercent The cache size as a percent of available app memory.
148 * Eg. setting percent to 0.2 would set the memory cache to one fifth of the available
149 * memory. Throws {@link IllegalArgumentException} if percent is < 0.05 or > .8.
157 * @param percent Percent of available app memory to use to size memory cache.
159 public static int calculateMemCacheSize(float percent) {
160 if (percent < 0.05f || percent > 0.8f)
    [all...]
  /external/chromium/chrome/browser/diagnostics/
diagnostics_model.h 35 // Called once upon test start with |percent| = 0 and periodically as the
37 virtual void OnProgress(int id, int percent, DiagnosticsModel* model) = 0;

Completed in 336 milliseconds

1 2 3 4 5 6 7 8 91011>>