Searched defs:percentage (Results 1 - 9 of 9) sorted by relevance

/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DHTTPLiveSource.cpp435 int32_t percentage; local
436 CHECK(msg->findInt32("percentage", &percentage));
438 notify->setInt32("percentage", percentage);
H A DGenericSource.cpp1679 void NuPlayer::GenericSource::BufferingMonitor::notifyBufferingUpdate_l(int32_t percentage) { argument
1683 // percentage and don't allow it to go backward.
1684 if (percentage < mPrevBufferPercentage) {
1685 percentage = mPrevBufferPercentage;
1686 } else if (percentage > 100) {
1687 percentage = 100;
1690 mPrevBufferPercentage = percentage;
1692 ALOGV("notifyBufferingUpdate_l: buffering %d%%", percentage);
1696 msg->setInt32("percentage", percentage);
1822 int percentage = 100.0 * cachedPosUs / mDurationUs; local
[all...]
H A DNuPlayer.cpp2444 int32_t percentage; local
2445 CHECK(msg->findInt32("percentage", &percentage));
2447 notifyListener(MEDIA_BUFFERING_UPDATE, percentage, 0);
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
H A DUtils.java116 public static String formatPercentage(double percentage, boolean round) { argument
117 final int localPercentage = round ? Math.round((float) percentage) : (int) percentage;
121 /** Formats the ratio of amount/total as a percentage. */
126 /** Formats an integer from 0..100 as a percentage. */
127 public static String formatPercentage(int percentage) { argument
128 return formatPercentage(((double) percentage) / 100.0);
131 /** Formats a double from 0.0..1.0 as a percentage. */
132 private static String formatPercentage(double percentage) { argument
133 return NumberFormat.getPercentInstance().format(percentage);
[all...]
/frameworks/support/wear/src/android/support/wear/widget/
H A DCircledImageView.java415 /** Sets the size of the image based on a percentage in [0, 1]. */
416 public void setImageCirclePercentage(float percentage) { argument
417 float clamped = Math.max(0, Math.min(1, percentage));
424 /** Sets the horizontal offset given a percentage in [0, 1]. */
425 public void setImageHorizontalOffcenterPercentage(float percentage) { argument
426 if (percentage != mImageHorizontalOffcenterPercentage) {
427 mImageHorizontalOffcenterPercentage = percentage;
466 * Sets the radius of the circle to be a percentage of the largest dimension of the view.
468 * @param circleRadiusPercent A {@code float} from 0 to 1 representing the radius percentage.
505 * Sets the radius of the circle to be a percentage o
[all...]
/frameworks/av/media/libstagefright/httplive/
H A DLiveSession.cpp2264 void LiveSession::notifyBufferingUpdate(int32_t percentage) { argument
2265 if (percentage < mPrevBufferPercentage) {
2266 percentage = mPrevBufferPercentage;
2267 } else if (percentage > 100) {
2268 percentage = 100;
2271 mPrevBufferPercentage = percentage;
2273 ALOGV("notifyBufferingUpdate: percentage=%d%%", percentage);
2277 notify->setInt32("percentage", percentage);
[all...]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
H A DConnectivityServiceMock.java592 public void reportInetCondition(int networkType, int percentage) { argument
/frameworks/base/core/java/android/net/
H A DConnectivityManager.java2285 * @param percentage The quality of the connection 0 is bad, 100 is good
2288 public void reportInetCondition(int networkType, int percentage) { argument
2290 mService.reportInetCondition(networkType, percentage);
/frameworks/base/services/core/java/com/android/server/
H A DConnectivityService.java3041 public void reportInetCondition(int networkType, int percentage) { argument
3044 reportNetworkConnectivity(nai.network, percentage > 50);

Completed in 1140 milliseconds