/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-trace/trace-viewer/src/base/ |
color.js | 51 Color.lerp = function(a, b, percent) { 53 return Color.lerpRGBA(a, b, percent); 54 return Color.lerpRGB(a, b, percent); 56 Color.lerpRGB = function(a, b, percent) { 58 ((b.r - a.r) * percent) + a.r, 59 ((b.g - a.g) * percent) + a.g, 60 ((b.b - a.b) * percent) + a.b); 63 Color.lerpRGBA = function(a, b, percent) { 65 ((b.r - a.r) * percent) + a.r, 66 ((b.g - a.g) * percent) + a.g [all...] |
/external/chromium_org/third_party/WebKit/Source/core/css/resolver/ |
StyleResolverStats.cpp | 37 #define PERCENT(x, y) ((!y) ? 0 : (((x) * 100.0) / (y))) 65 output.append(String::format(" %u calls were made to findSharedStyle, %u found a candidate to share with (%.2f%%).\n", sharedStyleLookups, sharedStyleFound, PERCENT(sharedStyleFound, sharedStyleLookups))); 67 output.append(String::format(" %u candidates could have matched but were not in the list when searching (%.2f%%).\n", sharedStyleMissed, PERCENT(sharedStyleMissed, sharedStyleLookups))); 70 PERCENT(sharedStylesRejected, sharedStyleFound), 71 PERCENT(sharedStyleRejectedByUncommonAttributeRules, sharedStylesRejected), 72 PERCENT(sharedStyleRejectedBySiblingRules, sharedStylesRejected), 73 PERCENT(sharedStyleRejectedByParent, sharedStylesRejected))); 74 output.append(String::format(" %u of found styles were used for sharing (%.2f%%).\n", sharedStylesUsed, PERCENT(sharedStylesUsed, sharedStyleFound))); 75 output.append(String::format(" %.2f%% of calls to findSharedStyle returned a shared style.\n", PERCENT(sharedStylesUsed, sharedStyleLookups))); 80 output.append(String::format(" %u calls to applyMatchedProperties, %u hit the cache (%.2f%%).\n", matchedPropertyApply, matchedPropertyCacheHit, PERCENT(matchedPropertyCacheHit, matchedPropertyApply))) [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...] |
/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...] |
brightness_controller_chromeos.cc | 36 void BrightnessControllerChromeos::SetBrightnessPercent(double percent, 39 SetScreenBrightnessPercent(percent, gradual);
|
/external/chromium_org/third_party/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/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);
|
/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...] |
/packages/apps/Camera2/src/com/android/camera/ui/ |
ProgressRenderer.java | 73 * @param percent the progress in percent (0-100). 75 public void setProgress(int percent) { 77 percent = Math.min(100, Math.max(percent, 0)); 78 mProgressAngleDegrees = (int) ((360f / 100) * percent); 81 if (percent < 100) {
|
/external/chromium_org/ui/views/controls/table/ |
table_utils.cc | 49 if (column.percent > 0) { 50 total_percent += column.percent; 72 if (column.width <= 0 && column.percent > 0 && available_width > 0) { 74 (column.percent / total_percent)); 80 // If no columns have specified a percent give the last column all the extra 83 columns.back().width <= 0 && columns.back().percent == 0.f) {
|
/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_org/build/ |
common.croc | 92 'format' : '*RESULT FilesInstrumentedPercent: files_instrumented_percent= %g percent', 114 'format' : '*RESULT PercentCovered: percent_covered= %g percent', 118 'format' : '*RESULT PercentCoveredSource: percent_covered_source= %g percent', 123 'format' : '*RESULT PercentCoveredTest: percent_covered_test= %g percent',
|
/external/chromium_org/third_party/WebKit/Source/core/rendering/style/ |
NinePieceImage.cpp | 59 , imageSlices(Length(100, Percent), Length(100, Percent), Length(100, Percent), Length(100, Percent))
|
/packages/apps/Launcher3/res/values-sw720dp/ |
config.xml | 6 <!-- Out of 100, the percent to shrink the workspace during spring loaded mode. -->
|
/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/chromium_org/ash/system/ |
brightness_control_delegate.h | 26 // Requests that the brightness be set to |percent|, in the range 29 virtual void SetBrightnessPercent(double percent, bool gradual) = 0;
|
/external/chromium_org/cc/scheduler/ |
rolling_time_delta_history.cc | 36 base::TimeDelta RollingTimeDeltaHistory::Percentile(double percent) const { 40 double fraction = percent / 100.0;
|