HomeSort by relevance Sort by last modified time
    Searched refs:percent (Results 1 - 25 of 322) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /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;
  /prebuilts/sdk/current/support/percent/libs/
android-support-percent.jar 
  /frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
ItemAlignmentFacet.java 42 * Value indicates that percent is not used.
89 * Sets the offset percent for item alignment in addition to offset. E.g., 40
93 public final void setItemAlignmentOffsetPercent(float percent) {
94 if ( (percent < 0 || percent > 100) &&
95 percent != ITEM_ALIGN_OFFSET_PERCENT_DISABLED) {
98 mOffsetPercent = percent;
102 * Gets the offset percent for item alignment in addition to offset. E.g., 40
WindowAlignment.java 95 final public void setWindowAlignmentOffsetPercent(float percent) {
96 if ((percent < 0 || percent > 100)
97 && percent != WINDOW_ALIGN_OFFSET_PERCENT_DISABLED) {
100 mWindowAlignmentOffsetPercent = 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));
  /packages/apps/Camera2/src/com/android/camera/ui/
ProgressRenderer.java 68 * @param percent the progress in percent (0-100).
70 public void setProgress(int percent) {
72 percent = Math.min(100, Math.max(percent, 0));
73 mProgressAngleDegrees = (int) ((360f / 100) * percent);
76 if (percent < 100) {
ProgressOverlay.java 73 * Set the progress state as a percent from 0-100.
75 public void setProgress(int percent) {
76 mProgressRenderer.setProgress(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...]
  /frameworks/support/v4/api21/android/support/v4/media/
RatingCompatApi21.java 38 public static Object newPercentageRating(float percent) {
39 return Rating.newPercentageRating(percent);
  /external/linux-tools-perf/src/tools/perf/ui/gtk/
browser.c 37 const char *perf_gtk__get_percent_color(double percent)
39 if (percent >= MIN_RED)
41 if (percent >= MIN_GREEN)
hists.c 11 static int __percent_color_snprintf(char *buf, size_t size, double percent)
16 markup = perf_gtk__get_percent_color(percent);
20 ret += scnprintf(buf + ret, size - ret, " %6.2f%%", percent);
33 double percent = 0.0; local
38 percent = 100.0 * get_field(he) / hists->stats.total_period;
40 ret = __percent_color_snprintf(hpp->buf, hpp->size, percent);
66 percent = 100.0 * period / total;
69 percent);
146 double percent; local
152 percent = 100.0 * hits / total
283 float percent = h->stat.period * 100.0 \/ local
    [all...]
  /external/ltrace/
printf.c 39 int percent; member in struct:param_enum
104 self->percent = 0;
231 if (!self->percent) {
233 self->percent = 1;
302 self->percent = 0;
315 self->percent = 0;
323 self->percent = 0;
332 self->percent = 0;
341 self->percent = 0;
349 self->percent = 0
    [all...]
  /libcore/luni/src/main/java/java/text/
DecimalFormatSymbols.java 50 private String percent; field in class:DecimalFormatSymbols
95 this.percent = localeData.percent;
192 percent.equals(obj.percent) &&
212 ",percent=" + percent +
317 return percent;
350 * Returns the percent character.
352 * @return the percent character
    [all...]
  /external/linux-tools-perf/src/tools/perf/util/
color.c 292 const char *get_percent_color(double percent)
301 if (percent >= MIN_RED)
304 if (percent > MIN_GREEN)
310 int percent_color_fprintf(FILE *fp, const char *fmt, double percent)
315 color = get_percent_color(percent);
316 r = color_fprintf(fp, color, fmt, percent);
324 double percent; local
328 percent = va_arg(args, double);
330 color = get_percent_color(percent);
331 return color_snprintf(bf, size, color, fmt, percent);
    [all...]
color.h 43 int percent_color_fprintf(FILE *fp, const char *fmt, double percent);
44 const char *get_percent_color(double percent);
  /development/samples/SupportPercentDemos/
Android.mk 26 android-support-percent \
31 frameworks/support/percent/res
34 --extra-packages android.support.percent
  /external/toybox/toys/posix/
df.c 39 long long size, used, avail, percent, block; local
64 if (!(used+avail)) percent = 0;
66 percent = (used*100)/(used+avail);
67 if (used*100 != percent*(used+avail)) percent++;
77 size, used, avail, (toys.optflags & FLAG_P) ? 7 : 3, percent, mt->dir);
  /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...]
  /frameworks/base/media/java/android/media/
Rating.java 202 * @param percent the value of the rating
205 public static Rating newPercentageRating(float percent) {
206 if ((percent < 0.0f) || (percent > 100.0f)) {
210 return new Rating(RATING_PERCENTAGE, percent);
  /frameworks/support/percent/
Android.mk 22 LOCAL_MODULE := android-support-percent-res
34 LOCAL_MODULE := android-support-percent
37 LOCAL_JAVA_LIBRARIES := android-support-percent-res \
47 support_module_java_packages := android.support.percent
  /packages/apps/Settings/src/com/android/settings/deviceinfo/
StorageSummaryPreference.java 38 public void setPercent(int percent) {
39 mPercent = percent;
  /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);
  /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 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);

Completed in 927 milliseconds

1 2 3 4 5 6 7 8 91011>>