Searched defs:percent (Results 1 - 25 of 35) sorted by relevance

12

/external/e2fsprogs/lib/e2p/
H A Dpercent.c2 * percent.c - Take percentage of a number
18 unsigned int e2p_percent(int percent, unsigned int base) argument
22 if (!percent)
24 if (100 % percent == 0)
25 return base / (100 / percent);
27 return (base / 100) * percent;
28 return base * percent / 100;
38 int percent; local
43 fprintf(stderr, "Usage: %s percent base\n", argv[0]);
47 percent
[all...]
/external/e2fsprogs/resize/
H A Donline.c31 double percent; local
86 percent = (sb->s_r_blocks_count * 100.0) / sb->s_blocks_count;
144 input.reserved_blocks = (blk_t) (percent * input.blocks_count
/external/webkit/Source/WebCore/platform/chromium/
H A DScrollbarThemeChromium.cpp128 const float percent = static_cast<float>(i->y()) / scrollbar->totalSize(); local
131 const int yPos = rect.y() + (rect.height() * percent);
/external/chromium/chrome/browser/diagnostics/
H A Ddiagnostics_model_unittest.cc43 virtual void OnProgress(int id, int percent, DiagnosticsModel* model) { argument
H A Ddiagnostics_main.cc290 virtual void OnProgress(int id, int percent, DiagnosticsModel* model) { argument
/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;
H A Ddownload_item.cc459 int percent = -1; local
461 percent = static_cast<int>(received_bytes_ * 100.0 / total_bytes_);
462 return percent;
/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/icu4c/test/intltest/
H A Dtsdcfmsy.cpp81 UnicodeString percent = en.getSymbol(DecimalFormatSymbols::kPercentSymbol); local
82 fr.setSymbol(DecimalFormatSymbols::kPercentSymbol, percent);
/external/llvm/tools/llvm-diff/
H A DDiffConsumer.cpp163 size_t percent = format.find('%'); local
164 if (percent == StringRef::npos) {
168 assert(format[percent] == '%');
170 if (percent > 0) out << format.substr(0, percent);
172 switch (format[percent+1]) {
179 format = format.substr(percent+2);
/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...]
/external/dropbear/
H A Dprogressmeter.c115 int percent; local
163 /* percent of transfer done */
165 percent = ((float)cur_pos / end_pos) * 100;
167 percent = 100;
169 " %3d%% ", 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:__anon7663::filename_by_samples
179 double const percent = local
182 if (percent >= threshold) {
239 if (cit->percent >= threshold)
/external/tinyalsa/
H A Dmixer.c245 static int percent_to_int(struct snd_ctl_elem_info *ei, int percent) argument
249 if (percent > 100)
250 percent = 100;
251 else if (percent < 0)
252 percent = 0;
256 return ei->value.integer.min + (range * percent) / 100;
277 int mixer_ctl_set_percent(struct mixer_ctl *ctl, unsigned int id, int percent) argument
282 return mixer_ctl_set_value(ctl, id, percent_to_int(ctl->info, percent));
/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/iproute2/tc/
H A Dtc_util.c357 int get_percent(__u32 *percent, const char *str) argument
367 *percent = (unsigned) rint(per * max_percent_value);
/external/webkit/Source/WebCore/rendering/
H A DAutoTableLayout.cpp233 // 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.
318 totalPercent += columnLayout.logicalWidth.percent();
345 totalPercent += columnLayout.effectiveLogicalWidth.percent();
360 if (totalPercent > cellLogicalWidth.percent() || allColsArePercen
376 float percent = percentMissing * static_cast<float>(m_layoutStruct[pos].effectiveMaxLogicalWidth) / totalWidth; local
[all...]
/external/webkit/Source/WebCore/svg/
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/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/quake/quake/src/QW/client/
H A Dcl_parse.c336 int size, percent; local
343 percent = MSG_ReadByte ();
387 if (percent != 100)
393 if (10*(percent/10) != cls.downloadpercent)
395 cls.downloadpercent = 10*(percent/10);
399 cls.downloadpercent = percent;
446 int percent; local
463 percent = upload_pos*100/size;
464 MSG_WriteByte (&cls.netchan.message, percent);
/external/quake/quake/src/QW/server/
H A Dsv_user.c523 int percent; local
540 percent = host_client->downloadcount*100/size;
541 ClientReliableWrite_Byte (host_client, percent);
578 int percent; local
594 percent = MSG_ReadByte ();
616 if (percent != 100) {
/external/webkit/Source/WebCore/platform/graphics/qt/
H A DPathQt.cpp413 qreal percent = m_path.percentAtLength(length); local
414 QPointF point = m_path.pointAtPercent(percent);
423 qreal percent = m_path.percentAtLength(length); local
424 qreal angle = m_path.angleAtPercent(percent);
/external/webkit/Source/WebKit/android/WebCoreSupport/
H A DMediaPlayerPrivateAndroid.cpp557 static void OnBuffering(JNIEnv* env, jobject obj, int percent, int pointer) argument
561 // TODO: player->onBuffering(percent);
/external/chromium/chrome/browser/themes/
H A Dtheme_service.cc54 SkColor IncreaseLightness(SkColor color, double percent) { argument
57 result.l += (1 - result.l) * percent;
/external/e2fsprogs/e2fsck/
H A Dunix.c392 float percent; local
398 percent = ((float) curr) / ((float) max);
399 return ((percent * (tbl->table[pass] - tbl->table[pass-1]))
414 int e2fsck_simple_progress(e2fsck_t ctx, const char *label, float percent, argument
432 fixed_percent = (int) ((10 * percent) + 0.5);
461 i = ((percent * dpywidth) + 50) / 100;
469 printf(" %4.1f%% ", percent);
487 float percent; local
497 percent = calc_percent(&e2fsck_tbl, pass, cur, max);
499 percent,
[all...]

Completed in 736 milliseconds

12