Searched refs:StringUtil (Results 1 – 3 of 3) sorted by relevance
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/utils/ |
H A D | StringUtilTest.java | 130 assertThat(StringUtil.formatRelativeTime(mContext, testMillis, true, in testFormatRelativeTime_WithSeconds_ShowSeconds() 139 assertThat(StringUtil.formatRelativeTime(mContext, testMillis, false, in testFormatRelativeTime_NoSeconds_DoNotShowSeconds() 148 assertThat(StringUtil.formatRelativeTime(mContext, testMillis, true, in testFormatRelativeTime_LessThanTwoMinutes_withSeconds() 157 assertThat(StringUtil.formatRelativeTime(mContext, testMillis, false, in testFormatRelativeTime_LessThanTwoMinutes_NoSeconds() 166 assertThat(StringUtil.formatRelativeTime(mContext, testMillis, true, in testFormatRelativeTime_TwoMinutes_withSeconds() 175 assertThat(StringUtil.formatRelativeTime(mContext, testMillis, true, in testFormatRelativeTime_LessThanTwoHours_withSeconds() 184 assertThat(StringUtil.formatRelativeTime(mContext, testMillis, true, in testFormatRelativeTime_TwoHours_withSeconds() 193 assertThat(StringUtil.formatRelativeTime(mContext, testMillis, true, in testFormatRelativeTime_LessThanTwoDays_withSeconds() 202 assertThat(StringUtil.formatRelativeTime(mContext, testMillis, true, in testFormatRelativeTime_TwoDays_withSeconds() 211 assertThat(StringUtil.formatRelativeTime(mContext, testMillis, true, in testFormatRelativeTime_FormatZero_WithSeconds() [all …]
|
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/ |
H A D | PowerUtil.java | 65 CharSequence timeString = StringUtil.formatElapsedTime(context, in getBatteryRemainingStringFormatted() 153 CharSequence timeString = StringUtil.formatElapsedTime(context, in getMoreThanOneDayString() 173 CharSequence timeString = StringUtil.formatElapsedTime(context, roundedTimeMs, in getMoreThanOneDayShortString() 197 CharSequence timeString = StringUtil.formatElapsedTime(context, in getRegularTimeRemainingString()
|
H A D | StringUtil.java | 40 public class StringUtil { class
|