Searched refs:StringUtil (Results 1 – 14 of 14) sorted by relevance
37 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 …]
36 assertThat(StringUtil.splitToIntList(""), is(Collections.<Integer>emptyList())); in testEmpty()37 assertThat(StringUtil.joinIntoString(Collections.<Integer>emptyList()), is("")); in testEmpty()42 assertThat(StringUtil.splitToIntList(null), nullValue()); in testNull()43 assertThat(StringUtil.joinIntoString(null), nullValue()); in testNull()48 assertThat(StringUtil.splitToIntList("4"), is(asList(4))); in testSingle()49 assertThat(StringUtil.joinIntoString(asList(4)), is("4")); in testSingle()54 assertThat(StringUtil.splitToIntList("4,5"), is(asList(4, 5))); in testMultiple()55 assertThat(StringUtil.joinIntoString(asList(4, 5)), is("4,5")); in testMultiple()60 assertThat(StringUtil.splitToIntList("-4,-5,6,-7"), is(asList(-4, -5, 6, -7))); in testNegative()61 assertThat(StringUtil.joinIntoString(asList(-4, -5, 6, -7)), is("-4,-5,6,-7")); in testNegative()[all …]
48 assertThat(StringUtil.formatElapsedTime(mContext, testMillis, true).toString()) in testFormatElapsedTime_WithSeconds_ShowSeconds()57 assertThat(StringUtil.formatElapsedTime(mContext, testMillis, false).toString()) in testFormatElapsedTime_NoSeconds_DoNotShowSeconds()67 assertThat(StringUtil.formatElapsedTime(mContext, testMillis, false).toString()) in testFormatElapsedTime_TimeMoreThanOneDay_ShowCorrectly()76 assertThat(StringUtil.formatElapsedTime(mContext, testMillis, false).toString()) in testFormatElapsedTime_ZeroFieldsInTheMiddleDontShow()85 assertThat(StringUtil.formatElapsedTime(mContext, testMillis, true).toString()) in testFormatElapsedTime_FormatZero_WithSeconds()94 assertThat(StringUtil.formatElapsedTime(mContext, testMillis, false).toString()) in testFormatElapsedTime_FormatZero_NoSeconds()103 StringUtil.formatElapsedTime(mContext, testMillis, false); in testFormatElapsedTime_onlyContainsMinute_hasTtsSpan()119 assertThat(StringUtil.formatRelativeTime(mContext, testMillis, true).toString()).isEqualTo( in testFormatRelativeTime_WithSeconds_ShowSeconds()128 assertThat(StringUtil.formatRelativeTime(mContext, testMillis, false).toString()).isEqualTo( in testFormatRelativeTime_NoSeconds_DoNotShowSeconds()137 assertThat(StringUtil.formatRelativeTime(mContext, testMillis, true).toString()).isEqualTo( in testFormatRelativeTime_LessThanTwoMinutes_withSeconds()[all …]
4 import androidx.room.util.StringUtil12 if (data == null) null else StringUtil.splitToIntList(data)17 if (ints == null) null else StringUtil.joinIntoString(ints)
10 import androidx.room.util.StringUtil;142 StringBuilder _stringBuilder = StringUtil.newStringBuilder(); in loadAllByIds()145 StringUtil.appendPlaceholders(_stringBuilder, _inputSize); in loadAllByIds()203 StringBuilder _stringBuilder = StringUtil.newStringBuilder(); in getAllAges()206 StringUtil.appendPlaceholders(_stringBuilder, _inputSize); in getAllAges()235 StringBuilder _stringBuilder = StringUtil.newStringBuilder(); in getAllAgesAsList()238 StringUtil.appendPlaceholders(_stringBuilder, _inputSize); in getAllAgesAsList()324 StringBuilder _stringBuilder = StringUtil.newStringBuilder(); in loadUsersByIdsLive()327 StringUtil.appendPlaceholders(_stringBuilder, _inputSize); in loadUsersByIdsLive()384 StringBuilder _stringBuilder = StringUtil.newStringBuilder();[all …]
6 import androidx.room.util.StringUtil;221 StringBuilder _stringBuilder = StringUtil.newStringBuilder(); in deleteByUidList()224 StringUtil.appendPlaceholders(_stringBuilder, _inputSize); in deleteByUidList()
34 public class StringUtil { class116 private StringUtil() { in StringUtil() method in StringUtil
20 public class StringUtil { class
6 per-file StringUtil*=quiche@google.com
63 CharSequence timeString = StringUtil.formatElapsedTime(context, in getBatteryRemainingStringFormatted()105 CharSequence timeString = StringUtil.formatElapsedTime(context, in getMoreThanOneDayString()
37 public class StringUtil { class
26 import com.android.server.wifi.util.StringUtil;350 if (StringUtil.isAsciiPrintable(mDriverStateDump)) { in toString()
2440 "android/arch/persistence/room/util/StringUtil": "androidx/room/util/StringUtil",
META-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/ ...