Searched refs:formatPercentage (Results 1 – 5 of 5) sorted by relevance
151 public static String formatPercentage(double percentage, boolean round) { in formatPercentage() method in Utils153 return formatPercentage(localPercentage); in formatPercentage()157 public static String formatPercentage(long amount, long total) { in formatPercentage() method in Utils158 return formatPercentage(((double) amount) / total); in formatPercentage()162 public static String formatPercentage(int percentage) { in formatPercentage() method in Utils163 return formatPercentage(((double) percentage) / 100.0); in formatPercentage()167 public static String formatPercentage(double percentage) { in formatPercentage() method in Utils
874 com.android.settingslib.Utils.formatPercentage(batteryLevel); in getConnectionSummary()919 return mContext.getString(stringRes, Utils.formatPercentage(leftBattery), in getConnectionSummary()920 Utils.formatPercentage(rightBattery)); in getConnectionSummary()982 com.android.settingslib.Utils.formatPercentage(batteryLevel); in getCarConnectionSummary()
113 final String percentage = Utils.formatPercentage(TEST_PERCENTAGES[i], true); in testFormatPercentage_RoundTrue_RoundUpIfPossible()125 final String percentage = Utils.formatPercentage(TEST_PERCENTAGES[i], false); in testFormatPercentage_RoundFalse_NoRound()
205 Utils.formatPercentage(batteryLevel)); in getSecondaryLabel()399 Utils.formatPercentage(batteryLevel)); in updateItems()
656 Utils.formatPercentage(ss.level, ss.levelMax)); in maybeShowToastH()