/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Gradient_Delegate.java | 114 float percent = (currentPos - mPositions[prevPos]) / 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) { argument 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) { argument [all...] |
/frameworks/support/v4/api21/android/support/v4/media/ |
H A D | RatingCompatApi21.java | 38 public static Object newPercentageRating(float percent) { argument 39 return Rating.newPercentageRating(percent);
|
/frameworks/av/media/libstagefright/ |
H A D | 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/media/java/android/media/ |
H A D | Rating.java | 202 * @param percent the value of the rating 205 public static Rating newPercentageRating(float percent) { argument 206 if ((percent < 0.0f) || (percent > 100.0f)) { 210 return new Rating(RATING_PERCENTAGE, percent);
|
H A D | MediaPlayer.java | 2738 * For example a buffering update of 80 percent when half the content 2739 * has already been played indicates that the next 30 percent of the 2743 * @param percent the percentage (0-100) of the content 2746 void onBufferingUpdate(MediaPlayer mp, int percent); argument
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | ItemAlignment.java | 62 public void setItemAlignmentOffsetPercent(float percent) { argument 63 if ( (percent < 0 || percent > 100) && 64 percent != ITEM_ALIGN_OFFSET_PERCENT_DISABLED) { 67 mOffsetPercent = percent;
|
H A D | WindowAlignment.java | 95 final public void setWindowAlignmentOffsetPercent(float percent) { argument 96 if ((percent < 0 || percent > 100) 97 && percent != WINDOW_ALIGN_OFFSET_PERCENT_DISABLED) { 100 mWindowAlignmentOffsetPercent = percent;
|
/frameworks/base/core/java/com/android/internal/os/ |
H A D | BatterySipper.java | 46 public double percent; field in class:BatterySipper
|
/frameworks/base/tests/OneMedia/src/com/android/onemedia/ |
H A D | PlayerSession.java | 223 public void onBufferingUpdate(int percent) { argument
|
/frameworks/support/v4/java/android/support/v4/media/ |
H A D | RatingCompat.java | 204 * @param percent the value of the rating 207 public static RatingCompat newPercentageRating(float percent) { argument 208 if ((percent < 0.0f) || (percent > 100.0f)) { 212 return new RatingCompat(RATING_PERCENTAGE, percent);
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
H A D | UiObject.java | 912 * @param percent percentage of the object's diagonal length for the pinch gesture 920 public boolean pinchOut(int percent, int steps) throws UiObjectNotFoundException { argument 922 percent = (percent < 0) ? 1 : (percent > 100) ? 100 : percent; 923 float percentage = percent / 100f; 950 * @param percent percentage of the object's diagonal length for the pinch gesture 958 public boolean pinchIn(int percent, int steps) throws UiObjectNotFoundException { argument 960 percent [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | BatteryMeterView.java | 285 private int getColorForLevel(int percent) { argument 295 if (percent <= thresh) return color;
|
/frameworks/base/tests/OneMedia/src/com/android/onemedia/playback/ |
H A D | Renderer.java | 175 protected void pushOnBufferingUpdate(int percent) { argument 177 listener.onBufferingUpdate(percent); 216 public void onBufferingUpdate(int percent); argument
|
H A D | LocalRenderer.java | 281 public void onBufferingUpdate(MediaPlayer player, int percent) { argument 285 pushOnBufferingUpdate(percent);
|
/frameworks/base/tools/aapt/ |
H A D | Images.cpp | 1337 int percent = (int)(factor*100); local 1338 printf(" (processed image %s: %d%% size of source)\n", printableName.string(), percent); 1474 int percent = (int)(factor*100); local 1476 dest.string(), percent);
|