Searched refs:formatPercentage (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | Utils.java | 195 public static String formatPercentage(double percentage, boolean round) { in formatPercentage() method in Utils 197 return formatPercentage(localPercentage); in formatPercentage() 201 public static String formatPercentage(long amount, long total) { in formatPercentage() method in Utils 202 return formatPercentage(((double) amount) / total); in formatPercentage() 206 public static String formatPercentage(int percentage) { in formatPercentage() method in Utils 207 return formatPercentage(((double) percentage) / 100.0); in formatPercentage() 211 public static String formatPercentage(double percentage) { in formatPercentage() method in Utils
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | CachedBluetoothDevice.java | 749 ? com.android.settingslib.Utils.formatPercentage(batteryLevel) in getValidMinBatteryLevelWithMemberDevices() 1356 Utils.formatPercentage(leftBattery), in getSummaryWithBatteryInfo() 1357 Utils.formatPercentage(rightBattery)); in getSummaryWithBatteryInfo() 1508 return mContext.getString(stringRes, Utils.formatPercentage(leftBattery), in getConnectionSummary() 1509 Utils.formatPercentage(rightBattery)); in getConnectionSummary() 1513 return mContext.getString(stringRes, Utils.formatPercentage(leftBattery)); in getConnectionSummary() 1517 return mContext.getString(stringRes, Utils.formatPercentage(rightBattery)); in getConnectionSummary() 1536 Utils.formatPercentage(leftBattery)); in getTvBatterySummary() 1547 Utils.formatPercentage(rightBattery)); in getTvBatterySummary() 1554 Utils.formatPercentage(mainBattery)), in getTvBatterySummary() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/ |
D | BluetoothTileTest.kt | 164 Utils.formatPercentage(50) in testSecondaryLabel_whenBatteryMetadataAvailable_isMetadataBatteryLevelState() 189 Utils.formatPercentage(25) in testSecondaryLabel_whenBatteryMetadataUnavailable_isBluetoothBatteryLevelState()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/ |
D | UtilsTest.java | 132 final String percentage = Utils.formatPercentage(TEST_PERCENTAGES[i], true); in testFormatPercentage_RoundTrue_RoundUpIfPossible() 152 final String percentage = Utils.formatPercentage(TEST_PERCENTAGES[i], false); in testFormatPercentage_RoundFalse_NoRound()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | BluetoothTile.java | 274 Utils.formatPercentage(batteryLevel)); in getSecondaryLabel()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
D | VolumeDialogImpl.java | 1444 Utils.formatPercentage(ss.level, ss.levelMax)); in maybeShowToastH()
|