Home
last modified time | relevance | path

Searched refs:forAsciiBytes (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DCharSequencesTest.java20 import static com.android.internal.util.CharSequences.forAsciiBytes;
31 String copy = toString(forAsciiBytes(bytes)); in testCharSequences()
34 copy = toString(forAsciiBytes(bytes, 0, s.length())); in testCharSequences()
37 String crazy = toString(forAsciiBytes(bytes, 0, 5)); in testCharSequences()
40 String a = toString(forAsciiBytes(bytes, 0, 3).subSequence(2, 3)); in testCharSequences()
43 String empty = toString(forAsciiBytes(bytes, 0, 3).subSequence(3, 3)); in testCharSequences()
/frameworks/base/core/java/com/android/internal/util/
DCharSequences.java32 public static CharSequence forAsciiBytes(final byte[] bytes) { in forAsciiBytes() method in CharSequences
43 return forAsciiBytes(bytes, start, end); in forAsciiBytes()
63 public static CharSequence forAsciiBytes(final byte[] bytes,
79 return forAsciiBytes(bytes, newStart, newEnd);