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

/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DGradient_Delegate.java113 float percent = (currentPos - mPositions[prevPos]) /
116 mGradient[i] = computeColor(mColors[prevPos], mColors[nextPos], percent);
192 * Returns the color between c1, and c2, based on the percent of the distance
195 private int computeColor(int c1, int c2, float percent) { argument
196 int a = computeChannel((c1 >> 24) & 0xFF, (c2 >> 24) & 0xFF, percent);
197 int r = computeChannel((c1 >> 16) & 0xFF, (c2 >> 16) & 0xFF, percent);
198 int g = computeChannel((c1 >> 8) & 0xFF, (c2 >> 8) & 0xFF, percent);
199 int b = computeChannel((c1 ) & 0xFF, (c2 ) & 0xFF, percent);
204 * Returns the channel value between 2 values based on the percent of the distance between
207 private int computeChannel(int c1, int c2, float percent) { argument
[all...]
/frameworks/base/media/libstagefright/
H A DXINGSeeker.cpp67 float percent = (float)(*timeUs) * 100 / mDurationUs; local
69 if( percent <= 0.0f ) {
71 } else if( percent >= 100.0f ) {
74 int a = (int)percent;
86 fx = fa + (fb-fa)*(percent-a);
/frameworks/base/core/java/android/webkit/
H A DHTML5Audio.java139 public void onBufferingUpdate(MediaPlayer mp, int percent) { argument
140 nativeOnBuffering(percent, mNativePointer);
317 private native void nativeOnBuffering(int percent, int nativePointer); argument
/frameworks/base/tools/aapt/
H A DImages.cpp1065 int percent = (int)(factor*100); local
1066 printf(" (processed image %s: %d%% size of source)\n", printableName.string(), percent);
1202 int percent = (int)(factor*100); local
1204 dest.string(), percent);
/frameworks/base/media/java/android/media/
H A DMediaPlayer.java1678 * For example a buffering update of 80 percent when half the content
1679 * has already been played indicates that the next 30 percent of the
1683 * @param percent the percentage (0-100) of the content
1686 void onBufferingUpdate(MediaPlayer mp, int percent); argument

Completed in 186 milliseconds