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

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
H A DUtils.java98 /** Formats the ratio of amount/total as a percentage. */
103 /** Formats an integer from 0..100 as a percentage. */
104 public static String formatPercentage(int percentage) { argument
105 return formatPercentage(((double) percentage) / 100.0);
108 /** Formats a double from 0.0..1.0 as a percentage. */
109 private static String formatPercentage(double percentage) { argument
110 return NumberFormat.getPercentInstance().format(percentage);
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DHTTPLiveSource.cpp374 int32_t percentage; local
375 CHECK(msg->findInt32("percentage", &percentage));
377 notify->setInt32("percentage", percentage);
H A DGenericSource.cpp1624 void NuPlayer::GenericSource::BufferingMonitor::notifyBufferingUpdate_l(int32_t percentage) { argument
1628 // percentage and don't allow it to go backward.
1629 if (percentage < mPrevBufferPercentage) {
1630 percentage = mPrevBufferPercentage;
1631 } else if (percentage > 100) {
1632 percentage = 100;
1635 mPrevBufferPercentage = percentage;
1637 ALOGV("notifyBufferingUpdate_l: buffering %d%%", percentage);
1641 msg->setInt32("percentage", percentage);
1770 int percentage = 100.0 * cachedPosUs / mDurationUs; local
[all...]
H A DNuPlayer.cpp2194 int32_t percentage; local
2195 CHECK(msg->findInt32("percentage", &percentage));
2197 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.java657 public void reportInetCondition(int networkType, int percentage) { argument
/frameworks/base/core/java/android/net/
H A DConnectivityManager.java2197 * @param percentage The quality of the connection 0 is bad, 100 is good
2200 public void reportInetCondition(int networkType, int percentage) { argument
2202 mService.reportInetCondition(networkType, percentage);
/frameworks/base/services/core/java/com/android/server/
H A DConnectivityService.java2831 public void reportInetCondition(int networkType, int percentage) { argument
2834 reportNetworkConnectivity(nai.network, percentage > 50);

Completed in 203 milliseconds