Home
last modified time | relevance | path

Searched refs:StringUtil (Results 1 – 6 of 6) sorted by relevance

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DStringUtilTest.java37 assertTrue(StringUtil.isAsciiPrintable(null)); in nullArrayDoesNotCauseCrash()
43 assertTrue(StringUtil.isAsciiPrintable(new byte[]{})); in emptyArrayIsPrintable()
49 assertTrue(StringUtil.isAsciiPrintable(new byte[]{'a'})); in arrayWithSinglePrintableByteIsPrintable()
58 assertTrue(StringUtil.isAsciiPrintable(new byte[]{'a', 'b'})); in arrayWithMultiplePrintableBytesIsPrintable()
67 assertTrue(StringUtil.isAsciiPrintable(new byte[]{0x07})); // bell in printableControlCharactersAreConsideredPrintable()
68 assertTrue(StringUtil.isAsciiPrintable(new byte[]{'\f'})); // form feed in printableControlCharactersAreConsideredPrintable()
69 assertTrue(StringUtil.isAsciiPrintable(new byte[]{'\n'})); in printableControlCharactersAreConsideredPrintable()
70 assertTrue(StringUtil.isAsciiPrintable(new byte[]{'\t'})); in printableControlCharactersAreConsideredPrintable()
71 assertTrue(StringUtil.isAsciiPrintable(new byte[]{0x0b})); // vertical tab in printableControlCharactersAreConsideredPrintable()
77 assertTrue(StringUtil.isAsciiPrintable(new byte[]{'\n'})); in arrayWithNewlineIsPrintable()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/utils/
DStringUtilTest.java49 assertThat(StringUtil.formatElapsedTime(mContext, testMillis, true).toString()) in testFormatElapsedTime_WithSeconds_ShowSeconds()
58 assertThat(StringUtil.formatElapsedTime(mContext, testMillis, false).toString()) in testFormatElapsedTime_NoSeconds_DoNotShowSeconds()
68 assertThat(StringUtil.formatElapsedTime(mContext, testMillis, false).toString()) in testFormatElapsedTime_TimeMoreThanOneDay_ShowCorrectly()
77 assertThat(StringUtil.formatElapsedTime(mContext, testMillis, false).toString()) in testFormatElapsedTime_ZeroFieldsInTheMiddleDontShow()
86 assertThat(StringUtil.formatElapsedTime(mContext, testMillis, true).toString()) in testFormatElapsedTime_FormatZero_WithSeconds()
95 assertThat(StringUtil.formatElapsedTime(mContext, testMillis, false).toString()) in testFormatElapsedTime_FormatZero_NoSeconds()
104 StringUtil.formatElapsedTime(mContext, testMillis, false); in testFormatElapsedTime_onlyContainsMinute_hasTtsSpan()
120 assertThat(StringUtil.formatRelativeTime(mContext, testMillis, true, in testFormatRelativeTime_WithSeconds_ShowSeconds()
129 assertThat(StringUtil.formatRelativeTime(mContext, testMillis, false, in testFormatRelativeTime_NoSeconds_DoNotShowSeconds()
138 assertThat(StringUtil.formatRelativeTime(mContext, testMillis, true, in testFormatRelativeTime_LessThanTwoMinutes_withSeconds()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/
DPowerUtil.java64 CharSequence timeString = StringUtil.formatElapsedTime(context, in getBatteryRemainingStringFormatted()
152 CharSequence timeString = StringUtil.formatElapsedTime(context, in getMoreThanOneDayString()
172 CharSequence timeString = StringUtil.formatElapsedTime(context, roundedTimeMs, in getMoreThanOneDayShortString()
DStringUtil.java37 public class StringUtil { class
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DStringUtil.java20 public class StringUtil { class
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiDiagnostics.java29 import com.android.server.wifi.util.StringUtil;
397 if (StringUtil.isAsciiPrintable(mDriverStateDump)) { in toString()