Searched refs:percent (Results 1 - 12 of 12) 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/base/media/java/android/media/
H A DRating.java198 * @param percent the value of the rating
201 public static Rating newPercentageRating(float percent) { argument
202 if ((percent < 0.0f) || (percent > 100.0f)) {
206 return new Rating(RATING_PERCENTAGE, percent);
H A DMediaPlayer.java2403 * For example a buffering update of 80 percent when half the content
2404 * has already been played indicates that the next 30 percent of the
2408 * @param percent the percentage (0-100) of the content
2411 void onBufferingUpdate(MediaPlayer mp, int percent); argument
/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/testing/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/uiautomator/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/tools/layoutlib/bridge/src/libcore/icu/
H A DICU_Delegate.java215 result.percent = '%';
/frameworks/base/core/java/android/app/
H A DProgressDialog.java136 /* Update the number and percent */
146 double percent = (double) progress / (double) max;
147 SpannableString tmp = new SpannableString(mProgressPercentFormat.format(percent));
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DBatteryMeterView.java251 private int getColorForLevel(int percent) { argument
256 if (percent <= thresh) return color;
/frameworks/base/core/java/android/widget/
H A DMediaController.java431 int percent = mPlayer.getBufferPercentage();
432 mProgress.setSecondaryProgress(percent * 10);
H A DVideoView.java537 public void onBufferingUpdate(MediaPlayer mp, int percent) {
538 mCurrentBufferPercentage = percent;
/frameworks/base/tools/aapt/
H A DImages.cpp1221 int percent = (int)(factor*100); local
1222 printf(" (processed image %s: %d%% size of source)\n", printableName.string(), percent);
1358 int percent = (int)(factor*100); local
1360 dest.string(), percent);

Completed in 1366 milliseconds