HomeSort by relevance Sort by last modified time
    Searched refs:percent (Results 26 - 50 of 627) sorted by null

12 3 4 5 6 7 8 91011>>

  /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)
  /frameworks/support/media-compat/kitkat/android/support/v4/media/
RatingCompatKitkat.java 40 public static Object newPercentageRating(float percent) {
41 return Rating.newPercentageRating(percent);
  /tools/loganalysis/src/com/android/loganalysis/parser/
CpuInfoParser.java 47 double percent = Double.parseDouble(m.group(1)); local
49 item.addRow(pid, percent, name);
  /external/webrtc/webrtc/examples/androidapp/src/org/appspot/apprtc/
CpuMonitor.java 52 * since then deltas would be small and the percent values would fluctuate and
206 int percent = allTime == 0 ? 0 : (int) Math.round(percentFreq * diffRunTime / allTime); local
207 percent = Math.max(0, Math.min(percent, 100));
210 sum3 += percent - percentVec[2];
212 sum10 += percent - percentVec[SAMPLE_SAVE_NUMBER - 1];
214 // Rotate saved percent values, save new measurement in vacated spot.
218 percentVec[0] = percent;
220 cpuCurrent = percent;
  /external/curl/src/
tool_cb_prg.c 50 double percent; local
86 percent = frac * 100.0f;
94 fprintf(bar->out, format, line, percent);
  /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 221 * @param percent the value of the rating
224 public static Rating newPercentageRating(float percent) {
225 if ((percent < 0.0f) || (percent > 100.0f)) {
229 return new Rating(RATING_PERCENTAGE, percent);
  /frameworks/support/percent/tests/java/android/support/percent/
BaseInstrumentationTestCase.java 17 package android.support.percent;
BaseTestActivity.java 17 package android.support.percent;
LayoutDirectionActions.java 17 package android.support.percent;
  /packages/apps/TV/src/com/android/tv/util/
ImageCache.java 40 * Creates a new ImageCache object with a given cache size percent.
42 * @param memCacheSizePercent The cache size as a percent of available app memory.
69 * @param memCacheSizePercent The cache size as a percent of available app memory. Should be in
159 * setting percent to 0.2 would set the memory cache to one fifth of the available memory.
160 * Throws {@link IllegalArgumentException} if percent is < 0.05 or > .8. memCacheSize is stored
166 * @param percent Percent of available app memory to use to size memory cache.
168 public static int calculateMemCacheSize(float percent) {
169 if (percent < MIN_CACHE_SIZE_PERCENT || percent > MAX_CACHE_SIZE_PERCENT)
    [all...]
  /packages/apps/Camera2/src/com/android/camera/ui/
ProgressOverlay.java 73 * Set the progress state as a percent from 0-100.
75 public void setProgress(int percent) {
76 mProgressRenderer.setProgress(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);
  /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);
  /external/swiftshader/third_party/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/toybox/toys/posix/
df.c 86 long long size, used, avail, percent, block; local
111 if (!(used+avail)) percent = 0;
113 percent = (used*100)/(used+avail);
114 if (used*100 != percent*(used+avail)) percent++;
137 size_str, used_str, avail_str, percent, mt->dir);
143 TT.column_widths[4], percent,
  /frameworks/base/core/java/android/os/
UpdateEngine.java 113 public void onStatusUpdate(final int status, final float percent) {
118 callback.onStatusUpdate(status, percent);
122 callback.onStatusUpdate(status, percent);
  /frameworks/base/tests/OneMedia/src/com/android/onemedia/playback/
Renderer.java 175 protected void pushOnBufferingUpdate(int percent) {
177 listener.onBufferingUpdate(percent);
216 public void onBufferingUpdate(int 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));
  /frameworks/support/percent/
Android.mk 21 # android-support-percent \
26 LOCAL_MODULE := android-support-percent
  /external/autotest/client/site_tests/hardware_Fan/
hardware_Fan.py 44 def set_percent(self, percent):
45 cmd = 'mosys sensor set fantach %s %s' % (self._fan_name, percent)
  /external/ipsec-tools/src/libipsec/
policy_token.l 83 percent \%
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
GuidanceRelativeLayout.java 29 * Relative layout implementation that lays out child views based on provided keyline percent(
52 float percent = ta.getFloat(R.styleable.LeanbackGuidedStepTheme_guidedStepKeyline, 40); local
54 return percent;
MessagePageFrameLayout.java 53 float percent = ta.getFloat( local
57 return percent;

Completed in 908 milliseconds

12 3 4 5 6 7 8 91011>>