/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/chromium_org/third_party/sqlite/src/tool/ |
spaceanal.tcl | 181 proc percent {num denom {of {}}} { procedure 251 set total_pages_percent [percent $total_pages $file_pgcnt] 253 set payload_percent [percent $payload $storage {of storage consumed}] 270 set ovfl_cnt_percent [percent $ovfl_cnt $nleaf {of all entries}] 284 set fragmentation [percent $gap_cnt [expr {$total_pages-1}] {fragmentation}] 297 [percent $int_unused [expr {$int_pages*$pageSize}] {of index space}] 301 [percent $leaf_unused [expr {$leaf_pages*$pageSize}] {of primary space}] 303 [percent $ovfl_unused [expr {$ovfl_pages*$pageSize}] {of overflow space}] 305 [percent $total_unused $storage {of all space}] 364 set av_percent [percent $av_pgcnt $file_pgcnt [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/download/ |
save_item.cc | 102 int percent = 0; local 104 percent = static_cast<int>(received_bytes_ * 100.0 / total_bytes_); 105 return percent;
|
download_item.cc | 459 int percent = -1; local 461 percent = static_cast<int>(received_bytes_ * 100.0 / total_bytes_); 462 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/third_party/WebKit/Source/platform/scroll/ |
ScrollbarThemeNonMacCommon.cpp | 114 const float percent = static_cast<float>(i->y()) / scrollbar->totalSize(); local 117 const int yPos = rect.y() + (rect.height() * percent);
|
/external/e2fsprogs/resize/ |
online.c | 31 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/chromium_org/third_party/icu/source/test/intltest/ |
tsdcfmsy.cpp | 81 UnicodeString percent = en.getSymbol(DecimalFormatSymbols::kPercentSymbol); local 82 fr.setSymbol(DecimalFormatSymbols::kPercentSymbol, percent); 84 errln("ERROR: get/set Percent failed"); 90 errln("ERROR: get/set Percent failed");
|
/external/chromium_org/ui/base/models/ |
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
|
/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/icu4c/test/intltest/ |
tsdcfmsy.cpp | 81 UnicodeString percent = en.getSymbol(DecimalFormatSymbols::kPercentSymbol); local 82 fr.setSymbol(DecimalFormatSymbols::kPercentSymbol, percent); 84 errln("ERROR: get/set Percent failed"); 90 errln("ERROR: get/set Percent failed");
|
/external/libmtp/examples/ |
pathutils.c | 118 int percent = (sent*100)/total; local 120 printf("Progress: %I64u of %I64u (%d%%)\r", sent, total, percent); 122 printf("Progress: %llu of %llu (%d%%)\r", sent, total, percent);
|
/external/linux-tools-perf/util/ |
annotate.h | 37 double percent; member in struct:source_line
|
/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);
|
/frameworks/av/media/libstagefright/ |
XINGSeeker.cpp | 51 float percent = (float)(*timeUs) * 100 / mDurationUs; local 53 if( percent <= 0.0f ) { 55 } else if( percent >= 100.0f ) { 58 int a = (int)percent; 70 fx = fa + (fb-fa)*(percent-a);
|
/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/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...] |
/external/chromium_org/native_client_sdk/src/libraries/xray/ |
report.c | 51 " Address Ticks Percent Function [annotation...]\n"); 67 float percent = 100.0f * (float)ticks / total; local 68 if (percent >= percent_cutoff && ticks >= ticks_cutoff) { 78 (unsigned int)addr, (int64_t)ticks, percent,
|
/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/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:__anon27104::filename_by_samples 179 double const percent = local 182 if (percent >= threshold) { 239 if (cit->percent >= threshold)
|
/external/strace/ |
count.c | 163 double percent; local 210 percent = (100.0 * tv_float(&counts[j].time) 213 percent, tv_float(&counts[j].time),
|
/external/chromium_org/ash/wm/ |
system_gesture_event_filter_unittest.cc | 56 void SetPercent(double percent) { 57 handle_percent_ = percent; 98 virtual void SetBrightnessPercent(double percent, bool gradual) OVERRIDE { 99 SetPercent(percent); variable
|
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/net/spdyproxy/ |
DataReductionProxySettings.java | 181 String percent = "0%"; local 183 percent = String.format( 187 return percent;
|
/external/chromium_org/chrome/browser/net/ |
chrome_network_data_saving_metrics.cc | 83 int percent = 0; local 86 percent = (100 * (original_length - received_length)) / original_length; 88 UMA_HISTOGRAM_PERCENTAGE("Net.DailyContentSavingPercent", percent);
|