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

1 2 3 4 5 6 7 8 91011>>

  /external/webkit/LayoutTests/fast/encoding/
percent-escaping-expected.txt 1 Test for bug 6452 - KURL::appendEscapingBadChars() should never escape percent characters.
percent-escaping.html 4 <title>Percent escaping</title>
8 KURL::appendEscapingBadChars() should never escape percent characters.</p>
  /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...]
  /external/webkit/Source/WebCore/platform/
Length.h 37 enum LengthType { Auto, Relative, Percent, Fixed, Intrinsic, MinIntrinsic };
85 float percent() const function in struct:WebCore::Length
87 ASSERT(type() == Percent);
123 case Percent:
137 case Percent:
139 return static_cast<int>(round(maxValue * percent() / 100.0f));
141 return static_cast<int>(static_cast<float>(maxValue * percent() / 100.0f));
153 case Percent:
154 return static_cast<float>(maxValue * percent() / 100.0f);
173 bool isPercent() const { return type() == Percent; }
    [all...]
  /external/skia/legacy/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/tcpdump/
igrp.h 28 u_int8_t igr_rel; /* percent packets successfully tx/rx */
29 u_int8_t igr_ld; /* percent of channel occupied */
  /prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/linux/
atm_eni.h 14 int tx,rx; /* values are in percent and must be > 100 */
  /prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/linux/
atm_eni.h 14 int tx,rx; /* values are in percent and must be > 100 */
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/sysroot/usr/include/linux/
atm_eni.h 14 int tx,rx; /* values are in percent and must be > 100 */
  /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/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);
  /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/webkit/Source/WebCore/svg/
SVGAnimationElement.cpp 381 unsigned SVGAnimationElement::calculateKeyTimesIndex(float percent) const
386 if (m_keyTimes[index] >= percent)
392 float SVGAnimationElement::calculatePercentForSpline(float percent, unsigned splineIndex) const
400 return narrowPrecisionToFloat(bezier.solve(percent, solveEpsilon(duration.value())));
403 float SVGAnimationElement::calculatePercentFromKeyPoints(float percent) const
410 unsigned index = calculateKeyTimesIndex(percent);
417 return percent == 1 ? toKeyPoint : fromKeyPoint;
419 float keyPointPercent = percent == 1 ? 1 : (percent - fromPercent) / (toPercent - fromPercent);
428 void SVGAnimationElement::currentValuesFromKeyPoints(float percent, float& effectivePercent, String& from, String& to) cons
    [all...]
SVGAnimationElement.h 87 virtual void updateAnimation(float percent, unsigned repeat, SVGSMILElement* resultElement);
100 void currentValuesForValuesAnimation(float percent, float& effectivePercent, String& from, String& to) const;
102 float calculatePercentFromKeyPoints(float percent) const;
103 void currentValuesFromKeyPoints(float percent, float& effectivePercent, String& from, String& to) const;
104 float calculatePercentForSpline(float percent, unsigned splineIndex) const;
105 unsigned calculateKeyTimesIndex(float percent) const;
  /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...]
  /external/chromium/chrome/browser/chromeos/status/
power_menu_button_browsertest.cc 143 for (float percent = 5.0; percent < 100.0; percent += 5.0) {
145 .WillOnce((Return(percent)))
201 for (float percent = 5.0; percent < 100.0; percent += 5.0) {
203 .WillOnce((Return(percent)))
  /external/libxslt/libxslt/
numbersInternals.h 60 int multiplier; /* Scaling for percent or permille */
62 char is_multiplier_set; /* Flag to catch multiple occurences of percent/permille */
  /external/webkit/Source/WebCore/rendering/
AutoTableLayout.cpp 91 if (cellLogicalWidth.value() > 0 && columnLayout.logicalWidth.type() != Percent) {
106 case Percent:
233 // We substitute 0 percent by (epsilon / percentScaleFactor) percent in two places below to avoid division by zero.
243 float percent = min(static_cast<float>(m_layoutStruct[i].effectiveLogicalWidth.percent()), remainingPercent); local
244 float logicalWidth = static_cast<float>(m_layoutStruct[i].effectiveMaxLogicalWidth) * 100 / max(percent, epsilon);
246 remainingPercent -= percent;
269 // if there was no remaining percent, maxWidth is invalid.
317 case Percent
376 float percent = percentMissing * static_cast<float>(m_layoutStruct[pos].effectiveMaxLogicalWidth) \/ totalWidth; local
    [all...]
  /external/quake/quake/src/QW/client/
view.c 343 cl.cshifts[CSHIFT_DAMAGE].percent += 3*count;
344 if (cl.cshifts[CSHIFT_DAMAGE].percent < 0)
345 cl.cshifts[CSHIFT_DAMAGE].percent = 0;
346 if (cl.cshifts[CSHIFT_DAMAGE].percent > 150)
347 cl.cshifts[CSHIFT_DAMAGE].percent = 150;
396 cshift_empty.percent = atoi(Cmd_Argv(4));
412 cl.cshifts[CSHIFT_BONUS].percent = 50;
458 cl.cshifts[CSHIFT_POWERUP].percent = 30;
465 cl.cshifts[CSHIFT_POWERUP].percent = 20;
472 cl.cshifts[CSHIFT_POWERUP].percent = 100
    [all...]
  /external/quake/quake/src/WinQuake/
view.cpp 337 cl.cshifts[CSHIFT_DAMAGE].percent += (int) (3*count);
338 if (cl.cshifts[CSHIFT_DAMAGE].percent < 0)
339 cl.cshifts[CSHIFT_DAMAGE].percent = 0;
340 if (cl.cshifts[CSHIFT_DAMAGE].percent > 150)
341 cl.cshifts[CSHIFT_DAMAGE].percent = 150;
392 cshift_empty.percent = atoi(Cmd_Argv(4));
408 cl.cshifts[CSHIFT_BONUS].percent = 50;
449 cl.cshifts[CSHIFT_POWERUP].percent = 30;
456 cl.cshifts[CSHIFT_POWERUP].percent = 20;
463 cl.cshifts[CSHIFT_POWERUP].percent = 100
    [all...]
  /external/llvm/tools/llvm-diff/
DiffConsumer.cpp 168 size_t percent = format.find('%'); local
169 if (percent == StringRef::npos) {
173 assert(format[percent] == '%');
175 if (percent > 0) out << format.substr(0, percent);
177 switch (format[percent+1]) {
184 format = format.substr(percent+2);

Completed in 1724 milliseconds

1 2 3 4 5 6 7 8 91011>>