/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/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/ash/system/chromeos/brightness/ |
tray_brightness.cc | 73 // |percent| is in the range [0.0, 100.0]. 74 void SetBrightnessPercent(double percent) { 75 last_percent_ = percent; 77 slider_->SetValue(static_cast<float>(percent / 100.0)); 97 double percent = std::max(value * 100.0, kMinBrightnessPercent); variable 98 ac->brightness_control_delegate()->SetBrightnessPercent(percent, true); 162 void TrayBrightness::HandleInitialBrightness(double percent) { 164 HandleBrightnessChanged(percent, false); 211 double percent = static_cast<double>(level); local 212 HandleBrightnessChanged(percent, user_initiated) [all...] |
brightness_controller_chromeos.h | 28 virtual void SetBrightnessPercent(double percent, bool gradual) OVERRIDE;
|
brightness_controller_chromeos.cc | 36 void BrightnessControllerChromeos::SetBrightnessPercent(double percent, 39 SetScreenBrightnessPercent(percent, gradual);
|
tray_brightness.h | 34 void HandleInitialBrightness(double percent); 50 void HandleBrightnessChanged(double percent, bool user_initiated);
|
/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/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 | 73 * @param percent the progress in percent (0-100). 75 public void setProgress(int percent) { 77 percent = Math.min(100, Math.max(percent, 0)); 78 mProgressAngleDegrees = (int) ((360f / 100) * percent); 81 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/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/chromium_org/third_party/WebKit/Source/platform/ |
LengthFunctions.cpp | 39 case Percent: 40 return static_cast<float>(maximumValue * length.percent() / 100.0f);
|
/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);
|
/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/gfx/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;
|