/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
H A D | Utils.java | 98 /** 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 D | UiObject.java | 919 * @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 D | HTTPLiveSource.cpp | 374 int32_t percentage; local 375 CHECK(msg->findInt32("percentage", &percentage)); 377 notify->setInt32("percentage", percentage);
|
H A D | GenericSource.cpp | 1624 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 D | GenericSource.h | 183 void notifyBufferingUpdate_l(int32_t percentage);
|
H A D | NuPlayer.cpp | 2194 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 D | BatteryTile.java | 114 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 D | KeyguardStatusBarView.java | 208 String percentage = NumberFormat.getPercentInstance().format((double) level / 100.0); 209 mBatteryLevel.setText(percentage);
|
H A D | StatusBarHeaderView.java | 418 String percentage = NumberFormat.getPercentInstance().format((double) level / 100.0); 419 mBatteryLevel.setText(percentage);
|
/frameworks/base/core/java/android/net/ |
H A D | IConnectivityManager.aidl | 100 void reportInetCondition(int networkType, int percentage);
|
H A D | ConnectivityManager.java | 2197 * @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 D | PowerNotificationWarnings.java | 154 final String percentage = NumberFormat.getPercentInstance().format((double) mBatteryLevel / 100.0); 161 .setContentText(mContext.getString(textRes, percentage))
|
/frameworks/av/media/libstagefright/httplive/ |
H A D | LiveSession.h | 303 void notifyBufferingUpdate(int32_t percentage);
|
H A D | LiveSession.cpp | 2246 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 D | ProcessState.java | 920 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 D | ConnectivityServiceMock.java | 657 public void reportInetCondition(int networkType, int percentage) { argument
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | ConnectivityService.java | 2831 public void reportInetCondition(int networkType, int percentage) { argument 2834 reportNetworkConnectivity(nai.network, percentage > 50);
|