Searched defs:percent (Results 1 - 15 of 15) sorted by relevance

/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DGradient_Delegate.java114 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 DRatingCompatApi21.java38 public static Object newPercentageRating(float percent) { argument
39 return Rating.newPercentageRating(percent);
/frameworks/av/media/libstagefright/
H A DXINGSeeker.cpp51 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 DRating.java202 * @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 DMediaPlayer.java2738 * 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 DItemAlignment.java62 public void setItemAlignmentOffsetPercent(float percent) { argument
63 if ( (percent < 0 || percent > 100) &&
64 percent != ITEM_ALIGN_OFFSET_PERCENT_DISABLED) {
67 mOffsetPercent = percent;
H A DWindowAlignment.java95 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 DBatterySipper.java46 public double percent; field in class:BatterySipper
/frameworks/base/tests/OneMedia/src/com/android/onemedia/
H A DPlayerSession.java223 public void onBufferingUpdate(int percent) { argument
/frameworks/support/v4/java/android/support/v4/media/
H A DRatingCompat.java204 * @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 DUiObject.java912 * @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 DBatteryMeterView.java285 private int getColorForLevel(int percent) { argument
295 if (percent <= thresh) return color;
/frameworks/base/tests/OneMedia/src/com/android/onemedia/playback/
H A DRenderer.java175 protected void pushOnBufferingUpdate(int percent) { argument
177 listener.onBufferingUpdate(percent);
216 public void onBufferingUpdate(int percent); argument
H A DLocalRenderer.java281 public void onBufferingUpdate(MediaPlayer player, int percent) { argument
285 pushOnBufferingUpdate(percent);
/frameworks/base/tools/aapt/
H A DImages.cpp1337 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);

Completed in 4970 milliseconds