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

1 2 3 4 5 6 7 8 91011>>

  /packages/apps/Dialer/java/com/android/dialer/common/
MathUtil.java 27 * @param percent Percentage value, between 0 and 1
30 public static int lerp(int begin, int end, float percent) {
31 return (int) (begin * (1 - percent) + end * percent);
39 * @param percent Percentage value, between 0 and 1
42 public static float lerp(float begin, float end, float percent) {
43 return begin * (1 - percent) + end * percent;
  /external/e2fsprogs/lib/e2p/
percent.c 2 * percent.c - Take percentage of a number
21 unsigned int e2p_percent(int percent, unsigned int base)
25 if (!percent)
27 if (100 % percent == 0)
28 return base / (100 / percent);
30 return (base / 100) * percent;
31 return base * percent / 100;
41 int percent; local
46 fprintf(stderr, "Usage: %s percent base\n", argv[0]);
50 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;
  /frameworks/base/core/java/android/os/
UpdateEngineCallback.java 38 * and {@code percent} will be valid [TODO: in which cases?].
41 public abstract void onStatusUpdate(int status, float percent);
  /prebuilts/misc/windows/sdl2/test/
testpower.c 20 int seconds, percent; local
21 const SDL_PowerState state = SDL_GetPowerInfo(&seconds, &percent);
48 if (percent == -1) {
49 SDL_Log("Percent left: unknown\n");
51 SDL_Log("Percent left: %d%%\n", percent);
  /tools/loganalysis/src/com/android/loganalysis/parser/
BatteryDischargeStatsInfoParser.java 53 int percent = Integer.parseInt(m.group(8)); local
55 if (minPercent == null || percent < minPercent) {
56 minPercent = percent;
59 if (maxPercent == null || maxPercent < percent) {
60 maxPercent = percent;
73 if (percent > 94) {
77 if (minProjectionPercent == null || percent < minProjectionPercent) {
78 minProjectionPercent = percent;
81 if (maxProjectionPercent == null || maxProjectionPercent < percent) {
82 maxProjectionPercent = percent;
    [all...]
CpuInfoParser.java 47 double percent = Double.parseDouble(m.group(1)); local
49 item.addRow(pid, percent, name);
  /frameworks/support/leanback/src/main/java/androidx/leanback/widget/
ItemAlignmentFacet.java 40 * Value indicates that percent is not used. Equivalent to 0.
103 * Sets the offset percent for item alignment in addition to offset. E.g., 40
107 public final void setItemAlignmentOffsetPercent(float percent) {
108 if ((percent < 0 || percent > 100)
109 && percent != ITEM_ALIGN_OFFSET_PERCENT_DISABLED) {
112 mOffsetPercent = percent;
116 * Gets the offset percent for item alignment in addition to offset. E.g., 40
  /development/tools/bugreport/src/com/android/bugreport/cpuinfo/
CpuUsage.java 25 public int percent; field in class:CpuUsage
  /external/bart/bart/thermal/
ThermalAssert.py 40 def getThermalResidency(self, temp_range, window, percent=False):
52 :param percent: Returns the residency as a percentage of the total
54 :type percent: bool
79 if percent:
91 percent=False):
125 :param percent: Returns the residency as a percentage of the total
127 :type percent: bool
134 residency = self.getThermalResidency(temp_range, window, percent)
  /external/icu/icu4c/source/i18n/unicode/
nounit.h 16 * \brief C++ API: units for percent and permille
28 * Dimensionless unit for percent and permille.
43 * Returns an instance for percent, or 1/100 of a base unit.
48 static NoUnit U_EXPORT2 percent();
  /frameworks/support/samples/SupportPercentDemos/src/main/java/com/example/android/support/percent/
IncludePercentFrameLayoutActivity.java 17 package com.example.android.support.percent;
PercentFrameLayoutActivityHPaddings.java 17 package com.example.android.support.percent;
PercentFrameLayoutActivityVPaddings.java 17 package com.example.android.support.percent;
PercentRelativeLayoutActivityHPaddings.java 17 package com.example.android.support.percent;
PercentRelativeLayoutActivityVPaddings.java 17 package com.example.android.support.percent;
SimplePercentFrameLayoutActivity.java 17 package com.example.android.support.percent;
SimplePercentRelativeLayoutActivity.java 17 package com.example.android.support.percent;
  /packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
MultiValueUpdateListener.java 33 final float percent = animator.getAnimatedFraction(); local
34 final float currentPlayTime = percent * animator.getDuration();
43 onUpdate(percent);
46 public abstract void onUpdate(float percent);
  /system/update_engine/scripts/update_payload/
format_utils.py 30 Percentage string, or None if percent cannot be computed (i.e. total is
37 percent = 0
41 percent = num * 100 * factor / total
42 if percent:
47 whole, frac = divmod(percent, factor)
  /external/lisa/libs/utils/android/
screen.py 67 def set_brightness(target, auto=True, percent=None):
73 # Force manual brightness if a percent specified
74 if percent:
81 if percent<0 or percent>100:
83 .format(percent)
85 value = 255 * percent / 100
90 log.info('Set brightness: %d%%', 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) {
  /tools/loganalysis/src/com/android/loganalysis/item/
CpuInfoItem.java 35 public static final String PERCENT_KEY = "percent";
42 public double percent; field in class:CpuInfoItem.Row
100 * @param percent The percentage of CPU usage by the process
103 public void addRow(int pid, double percent, String name) {
105 row.percent = percent;
114 return mRows.get(pid).percent;
  /frameworks/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/autotest/client/tools/
oprofile_diff 8 (samples, percent, symbol) = line.split()
9 data[symbol] = float(percent)

Completed in 3678 milliseconds

1 2 3 4 5 6 7 8 91011>>