Searched refs:percentage (Results 1 - 17 of 17) 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/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
H A DUiObject.java919 * @param percent percentage of the object's diagonal length for the pinch gesture
930 float percentage = percent / 100f;
946 Point endPoint1 = new Point(rect.centerX() - (int)((rect.width()/2) * percentage),
948 Point endPoint2 = new Point(rect.centerX() + (int)((rect.width()/2) * percentage),
957 * @param percent percentage of the object's diagonal length for the pinch gesture
968 float percentage = percent / 100f;
979 Point startPoint1 = new Point(rect.centerX() - (int)((rect.width()/2) * percentage),
981 Point startPoint2 = new Point(rect.centerX() + (int)((rect.width()/2) * 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 DGenericSource.h183 void notifyBufferingUpdate_l(int32_t percentage);
H A DNuPlayer.cpp2194 int32_t percentage; local
2195 CHECK(msg->findInt32("percentage", &percentage));
2197 notifyListener(MEDIA_BUFFERING_UPDATE, percentage, 0);
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DBatteryTile.java114 String percentage = NumberFormat.getPercentInstance().format((double) level / 100.0);
133 state.label = percentage;
135 percentage) + "," +
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DKeyguardStatusBarView.java208 String percentage = NumberFormat.getPercentInstance().format((double) level / 100.0);
209 mBatteryLevel.setText(percentage);
H A DStatusBarHeaderView.java418 String percentage = NumberFormat.getPercentInstance().format((double) level / 100.0);
419 mBatteryLevel.setText(percentage);
/frameworks/base/core/java/android/net/
H A DIConnectivityManager.aidl100 void reportInetCondition(int networkType, int percentage);
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/packages/SystemUI/src/com/android/systemui/power/
H A DPowerNotificationWarnings.java154 final String percentage = NumberFormat.getPercentInstance().format((double) mBatteryLevel / 100.0);
161 .setContentText(mContext.getString(textRes, percentage))
/frameworks/av/media/libstagefright/httplive/
H A DLiveSession.h303 void notifyBufferingUpdate(int32_t percentage);
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/base/core/java/com/android/internal/app/procstats/
H A DProcessState.java920 final double percentage = (double) totals.totalTime / (double) totalTime * 100;
922 if (percentage >= 0.005 || totals.numPss != 0) {
/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/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 757 milliseconds