Searched refs:forAsciiBytes (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | CharSequencesTest.java | 20 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/ |
D | CharSequences.java | 32 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);
|