Home
last modified time | relevance | path

Searched refs:formatPercentage (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DUtils.java151 public static String formatPercentage(double percentage, boolean round) { in formatPercentage() method in Utils
153 return formatPercentage(localPercentage); in formatPercentage()
157 public static String formatPercentage(long amount, long total) { in formatPercentage() method in Utils
158 return formatPercentage(((double) amount) / total); in formatPercentage()
162 public static String formatPercentage(int percentage) { in formatPercentage() method in Utils
163 return formatPercentage(((double) percentage) / 100.0); in formatPercentage()
167 public static String formatPercentage(double percentage) { in formatPercentage() method in Utils
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DCachedBluetoothDevice.java892 com.android.settingslib.Utils.formatPercentage(batteryLevel); in getConnectionSummary()
937 return mContext.getString(stringRes, Utils.formatPercentage(leftBattery), in getConnectionSummary()
938 Utils.formatPercentage(rightBattery)); in getConnectionSummary()
1000 com.android.settingslib.Utils.formatPercentage(batteryLevel); in getCarConnectionSummary()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DUtilsTest.java109 final String percentage = Utils.formatPercentage(TEST_PERCENTAGES[i], true); in testFormatPercentage_RoundTrue_RoundUpIfPossible()
121 final String percentage = Utils.formatPercentage(TEST_PERCENTAGES[i], false); in testFormatPercentage_RoundFalse_NoRound()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DBluetoothTile.java205 Utils.formatPercentage(batteryLevel)); in getSecondaryLabel()
399 Utils.formatPercentage(batteryLevel)); in updateItems()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DVolumeDialogImpl.java656 Utils.formatPercentage(ss.level, ss.levelMax)); in maybeShowToastH()