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

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
H A DUtils.java101 /** Formats the ratio of amount/total as a percentage. */
106 /** Formats an integer from 0..100 as a percentage. */
107 public static String formatPercentage(int percentage) { argument
108 return formatPercentage(((double) percentage) / 100.0);
111 /** Formats a double from 0.0..1.0 as a percentage. */
112 private static String formatPercentage(double percentage) { argument
113 return NumberFormat.getPercentInstance().format(percentage);
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DHTTPLiveSource.cpp387 int32_t percentage; local
388 CHECK(msg->findInt32("percentage", &percentage));
390 notify->setInt32("percentage", percentage);
H A DGenericSource.cpp1632 void NuPlayer::GenericSource::BufferingMonitor::notifyBufferingUpdate_l(int32_t percentage) { argument
1636 // percentage and don't allow it to go backward.
1637 if (percentage < mPrevBufferPercentage) {
1638 percentage = mPrevBufferPercentage;
1639 } else if (percentage > 100) {
1640 percentage = 100;
1643 mPrevBufferPercentage = percentage;
1645 ALOGV("notifyBufferingUpdate_l: buffering %d%%", percentage);
1649 msg->setInt32("percentage", percentage);
1778 int percentage = 100.0 * cachedPosUs / mDurationUs; local
[all...]
H A DNuPlayer.cpp2222 int32_t percentage; local
2223 CHECK(msg->findInt32("percentage", &percentage));
2225 notifyListener(MEDIA_BUFFERING_UPDATE, percentage, 0);
/frameworks/av/media/libstagefright/httplive/
H A DLiveSession.cpp2246 void LiveSession::notifyBufferingUpdate(int32_t percentage) { argument
2247 if (percentage < mPrevBufferPercentage) {
2248 percentage = mPrevBufferPercentage;
2249 } else if (percentage > 100) {
2250 percentage = 100;
2253 mPrevBufferPercentage = percentage;
2255 ALOGV("notifyBufferingUpdate: percentage=%d%%", percentage);
2259 notify->setInt32("percentage", percentage);
[all...]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
H A DConnectivityServiceMock.java671 public void reportInetCondition(int networkType, int percentage) { argument
/frameworks/base/core/java/android/net/
H A DConnectivityManager.java2256 * @param percentage The quality of the connection 0 is bad, 100 is good
2259 public void reportInetCondition(int networkType, int percentage) { argument
2261 mService.reportInetCondition(networkType, percentage);
/frameworks/base/services/core/java/com/android/server/
H A DConnectivityService.java3147 public void reportInetCondition(int networkType, int percentage) { argument
3150 reportNetworkConnectivity(nai.network, percentage > 50);

Completed in 233 milliseconds