Searched refs:StringUtil (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/utils/ |
D | StringUtilTest.java | 49 assertThat(StringUtil.formatElapsedTime(mContext, testMillis, true, false).toString()) in testFormatElapsedTime_WithSeconds_ShowSeconds() 58 assertThat(StringUtil.formatElapsedTime(mContext, testMillis, false, false).toString()) in testFormatElapsedTime_NoSeconds_DoNotShowSeconds() 68 assertThat(StringUtil.formatElapsedTime(mContext, testMillis, false, false).toString()) in testFormatElapsedTime_TimeMoreThanOneDay_ShowCorrectly() 78 assertThat(StringUtil.formatElapsedTime(mContext, testMillis, false, true).toString()) in testFormatElapsedTime_TimeMoreThanOneDayAndCollapseTimeUnit_ShowCorrectly() 87 assertThat(StringUtil.formatElapsedTime(mContext, testMillis, false, false).toString()) in testFormatElapsedTime_ZeroFieldsInTheMiddleDontShow() 96 assertThat(StringUtil.formatElapsedTime(mContext, testMillis, true, false).toString()) in testFormatElapsedTime_FormatZero_WithSeconds() 105 assertThat(StringUtil.formatElapsedTime(mContext, testMillis, false, false).toString()) in testFormatElapsedTime_FormatZero_NoSeconds() 114 StringUtil.formatElapsedTime(mContext, testMillis, false, false); in testFormatElapsedTime_onlyContainsMinute_hasTtsSpan() 130 assertThat(StringUtil.formatRelativeTime(mContext, testMillis, true, in testFormatRelativeTime_WithSeconds_ShowSeconds() 139 assertThat(StringUtil.formatRelativeTime(mContext, testMillis, false, in testFormatRelativeTime_NoSeconds_DoNotShowSeconds() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/ |
D | PowerUtil.java | 108 CharSequence timeString = StringUtil.formatElapsedTime(context, in getMoreThanOneDayString() 128 CharSequence timeString = StringUtil.formatElapsedTime(context, roundedTimeMs, in getMoreThanOneDayShortString() 152 CharSequence timeString = StringUtil.formatElapsedTime(context, in getRegularTimeRemainingString()
|
D | StringUtil.java | 40 public class StringUtil { class
|