/external/e2fsprogs/lib/e2p/ |
percent.c | 2 * percent.c - Take percentage of a number 18 unsigned int e2p_percent(int percent, unsigned int base) 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 = strtoul(argv[1], &p, 0) [all...] |
/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/webkit/Source/WebCore/svg/ |
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;
|
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...] |
/external/skia/src/views/ |
SkProgressView.cpp | 56 SkFixed percent; 66 percent = (SkFixed)x; // now its 16.8 67 percent = SkMax32(0, SkMin32(percent, fMax << 8)); // now its pinned 68 percent = SkFixedDiv(percent, fMax << 8); // now its 0.16 74 percent = SkFixedDiv(value, fMax); 84 r.fRight = r.fLeft + SkScalarMul(r.width(), SkFixedToScalar(percent));
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
Gradient_Delegate.java | 113 float percent = (currentPos - mPositions[prevPos]) / local 116 mGradient[i] = computeColor(mColors[prevPos], mColors[nextPos], percent); 192 * Returns the color between c1, and c2, based on the percent of the distance 195 private int computeColor(int c1, int c2, float percent) { 196 int a = computeChannel((c1 >> 24) & 0xFF, (c2 >> 24) & 0xFF, percent); 197 int r = computeChannel((c1 >> 16) & 0xFF, (c2 >> 16) & 0xFF, percent); 198 int g = computeChannel((c1 >> 8) & 0xFF, (c2 >> 8) & 0xFF, percent); 199 int b = computeChannel((c1 ) & 0xFF, (c2 ) & 0xFF, percent); 204 * Returns the channel value between 2 values based on the percent of the distance between 207 private int computeChannel(int c1, int c2, float percent) { [all...] |
/sdk/chimpchat/src/com/android/chimpchat/core/ |
IChimpImage.java | 35 boolean sameAs(IChimpImage other, double percent);
|
/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/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/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;
|
/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/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)))
|
/frameworks/base/media/libstagefright/ |
XINGSeeker.cpp | 67 float percent = (float)(*timeUs) * 100 / mDurationUs; local 69 if( percent <= 0.0f ) { 71 } else if( percent >= 100.0f ) { 74 int a = (int)percent; 86 fx = fa + (fb-fa)*(percent-a);
|
/ndk/sources/host-tools/make-3.81/ |
vpath.c | 33 char *percent; /* Pointer into `pattern' where the `%' is. */ member in struct:vpath 168 char *percent = NULL; 173 percent = find_percent (pattern); 188 || (((percent == 0 && path->percent == 0) 189 || (percent - pattern == path->percent - path->pattern)) 304 path->percent = percent; 357 if (pattern_matches (v->pattern, v->percent, *file) 166 char *percent = NULL; local [all...] |
/external/llvm/tools/llvm-diff/ |
DiffConsumer.cpp | 163 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/oprofile/libpp/ |
profile_container.cpp | 35 : filename(id), percent(percent_) 39 if (percent != lhs.percent) 40 return percent < lhs.percent; 46 double percent; member in struct:__anon9141::filename_by_samples 179 double const percent = local 182 if (percent >= threshold) { 239 if (cit->percent >= threshold)
|
/libcore/luni/src/main/java/java/text/ |
DecimalFormatSymbols.java | 50 private char percent; field in class:DecimalFormatSymbols 90 this.percent = localeData.percent; 187 percent == obj.percent && 207 ",percent=" + percent + 324 * Returns the percent character. 326 * @return the percent character. 329 return percent; [all...] |
/external/doclava/src/com/google/doclava/ |
TodoFile.java | 62 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/ |
policy_token.l | 83 percent \%
|
/external/webkit/Tools/DumpRenderTree/chromium/ |
ImageDiff.cpp | 223 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/llvm/utils/lit/lit/ |
ProgressBar.py | 170 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/e2fsprogs/resize/ |
online.c | 31 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/iproute2/tc/ |
tc_util.h | 65 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);
|