Home
last modified time | relevance | path

Searched refs:StringUtil (Results 1 – 14 of 14) 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/support/room/runtime/src/test/java/androidx/room/util/
DStringUtilTest.java36 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 …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/utils/
DStringUtilTest.java48 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 …]
/frameworks/support/room/integration-tests/kotlintestapp/src/androidTest/java/androidx/room/integration/kotlintestapp/vo/
DStringToIntListConverters.kt4 import androidx.room.util.StringUtil
12 if (data == null) null else StringUtil.splitToIntList(data)
17 if (ints == null) null else StringUtil.joinIntoString(ints)
/frameworks/support/room/compiler/src/test/data/daoWriter/output/
DComplexDao.java10 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 …]
DDeletionDao.java6 import androidx.room.util.StringUtil;
221 StringBuilder _stringBuilder = StringUtil.newStringBuilder(); in deleteByUidList()
224 StringUtil.appendPlaceholders(_stringBuilder, _inputSize); in deleteByUidList()
/frameworks/support/room/runtime/src/main/java/androidx/room/util/
DStringUtil.java34 public class StringUtil { class
116 private StringUtil() { in StringUtil() method in StringUtil
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DStringUtil.java20 public class StringUtil { class
DOWNERS6 per-file StringUtil*=quiche@google.com
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/
DPowerUtil.java63 CharSequence timeString = StringUtil.formatElapsedTime(context, in getBatteryRemainingStringFormatted()
105 CharSequence timeString = StringUtil.formatElapsedTime(context, in getMoreThanOneDayString()
DStringUtil.java37 public class StringUtil { class
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiDiagnostics.java26 import com.android.server.wifi.util.StringUtil;
350 if (StringUtil.isAsciiPrintable(mDriverStateDump)) { in toString()
/frameworks/support/jetifier/jetifier/core/src/main/resources/
Ddefault.generated.config2440 "android/arch/persistence/room/util/StringUtil": "androidx/room/util/StringUtil",
/frameworks/data-binding/prebuilds/1.0-rc0/
Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/ ...