Home
last modified time | relevance | path

Searched refs:truncateStringForUtf8Storage (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/text/
DTextUtilsTest.java786 public void truncateStringForUtf8Storage() { in truncateStringForUtf8Storage() method in TextUtilsTest
787 assertEquals("", TextUtils.truncateStringForUtf8Storage("abc", 0)); in truncateStringForUtf8Storage()
797 String result = TextUtils.truncateStringForUtf8Storage(initial, n); in truncateStringForUtf8Storage()
812 result = TextUtils.truncateStringForUtf8Storage(s, 100); in truncateStringForUtf8Storage()
823 String result = TextUtils.truncateStringForUtf8Storage(builder.toString(), 3); in testTruncateInMiddleOfSurrogate()
840 String result = TextUtils.truncateStringForUtf8Storage(builder.toString(), 3); in testTruncateInMiddleOfChar()
851 String res = TextUtils.truncateStringForUtf8Storage(sub, 255); in testTruncateSubString()
857 TextUtils.truncateStringForUtf8Storage("abc", -1); in truncateStringForUtf8StorageThrowsExceptionForNegativeSize()
/frameworks/base/core/java/android/text/
DTextUtils.java387 public static String truncateStringForUtf8Storage(String str, int maxbytes) { in truncateStringForUtf8Storage() method in TextUtils
/frameworks/base/telephony/java/android/telephony/
DTelephonyManager.java12689 .truncateStringForUtf8Storage(newList.get(i), maxOperatorLength)); in setNetworkOperatorNameForPhone()