Searched refs:percent (Results 1 - 25 of 117) sorted by relevance

12345

/external/e2fsprogs/lib/e2p/
H A Dpercent.c2 * 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 DLerp.java27 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/chrome/browser/chromeos/
H A Dsetting_level_bubble.cc31 int LimitPercent(int percent) { argument
32 if (percent < 0)
33 percent = 0;
34 else if (percent > 100)
35 percent = 100;
36 return percent;
90 void SettingLevelBubble::ShowBubble(int percent) { argument
91 percent = LimitPercent(percent);
93 previous_percent_ = percent;
140 UpdateWithoutShowingBubble(int percent) argument
[all...]
H A Dsetting_level_bubble.h26 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/webkit/Source/WebCore/svg/
H A DSVGAnimationElement.h87 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;
H A DSVGAnimationElement.cpp381 unsigned SVGAnimationElement::calculateKeyTimesIndex(float percent) const
386 if (m_keyTimes[index] >= percent)
392 float SVGAnimationElement::calculatePercentForSpline(float percent, unsigned splineIndex) const argument
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, floa argument
439 currentValuesForValuesAnimation(float percent, float& effectivePercent, String& from, String& to) const argument
534 updateAnimation(float percent, unsigned repeat, SVGSMILElement* resultElement) argument
[all...]
/external/skia/src/views/
H A DSkProgressView.cpp64 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/chrome/browser/download/
H A Dsave_item.cc102 int percent = 0; local
104 percent = static_cast<int>(received_bytes_ * 100.0 / total_bytes_);
105 return percent;
/external/linux-tools-perf/util/
H A Dcolor.h42 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 Dcolor.c291 const char *get_percent_color(double percent) argument
300 if (percent >= MIN_RED)
303 if (percent > MIN_GREEN)
309 int percent_color_fprintf(FILE *fp, const char *fmt, double percent) argument
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) argument
322 const char *color = get_percent_color(percent);
323 return color_snprintf(bf, size, color, fmt, percent);
H A Dannotate.c123 double percent = 0.0; local
138 percent += src_line[offset].percent;
146 percent = 100.0 * hits / h->sum;
148 if (percent < min_pcnt)
163 color = get_percent_color(percent);
179 color_fprintf(stdout, color, " %7.2f", percent);
378 if (src_line->percent > iter->percent)
435 src_line[i].percent
478 double percent; local
[all...]
/external/webkit/Source/WebCore/platform/
H A DLength.h85 float percent() const function in struct:WebCore::Length
139 return static_cast<int>(round(maxValue * percent() / 100.0f));
141 return static_cast<int>(static_cast<float>(maxValue * percent() / 100.0f));
154 return static_cast<float>(maxValue * percent() / 100.0f);
191 float fromPercent = from.isZero() ? 0 : from.percent();
192 float toPercent = isZero() ? 0 : percent();
/external/linux-tools-perf/util/ui/browsers/
H A Dannotate.c27 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/quake/quake/src/QW/client/
H A Dview.c343 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
[all...]
/external/quake/quake/src/WinQuake/
H A Dview.cpp337 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
[all...]
/external/chromium/chrome/browser/chromeos/status/
H A Dpower_menu_button_browsertest.cc143 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/llvm/tools/llvm-diff/
H A DDiffConsumer.cpp169 size_t percent = format.find('%'); local
170 if (percent == StringRef::npos) {
174 assert(format[percent] == '%');
176 if (percent > 0) out << format.substr(0, percent);
178 switch (format[percent+1]) {
185 format = format.substr(percent+2);
/external/llvm/utils/lit/lit/
H A DProgressBar.py170 def update(self, percent, message):
175 next = int(percent*50)
234 def update(self, percent, message):
238 prefix = '%3d%% ' % (percent*100,)
242 if percent > .0001 and elapsed > 1:
243 total = elapsed / percent
250 n = int(barWidth*percent)
/external/oprofile/libpp/
H A Dprofile_container.cpp35 : filename(id), percent(percent_)
39 if (percent != lhs.percent)
40 return percent < lhs.percent;
46 double percent; member in struct:__anon9973::filename_by_samples
179 double const percent = local
182 if (percent >= threshold) {
239 if (cit->percent >= threshold)
/external/chromium/chrome/browser/diagnostics/
H A Ddiagnostics_model.h35 // Called once upon test start with |percent| = 0 and periodically as the
37 virtual void OnProgress(int id, int percent, DiagnosticsModel* model) = 0;
/external/doclava/src/com/google/doclava/
H A DTodoFile.java62 public static String percent(int a, int b) { method in class:TodoFile
154 data.setValue(classBase + ".percentGood", percent(errors, total));
179 data.setValue("packages." + i + ".percentGood", percent(ps.errors, ps.total));
189 data.setValue("all.percentGood", percent(allErrors, allTotal));
/external/ipsec-tools/src/libipsec/
H A Dpolicy_token.l83 percent \%
/external/webkit/Tools/DumpRenderTree/chromium/
H A DImageDiff.cpp223 float percent = percentageDifferent(actualImage, baselineImage); local
224 if (percent > 0.0) {
227 printf("diff: %01.2f%% failed\n", percent);
232 printf("diff: %01.2f%% passed\n", percent);
273 float percent = percentageDifferent(actualImage, baselineImage); local
274 if (percent > 0.0) {
277 printf("diff: %01.2f%% failed\n", percent);
280 printf("diff: %01.2f%% passed\n", percent);
/external/e2fsprogs/resize/
H A Donline.c31 double percent; local
85 percent = (sb->s_r_blocks_count * 100.0) / sb->s_blocks_count;
143 input.reserved_blocks = (blk_t) (percent * input.blocks_count
/external/iproute2/tc/
H A Dtc_util.h65 extern int get_percent(unsigned *percent, const char *str);
73 extern void print_percent(char *buf, int len, __u32 percent);
83 extern char * sprint_percent(__u32 percent, char *buf);

Completed in 1853 milliseconds

12345