Searched refs:forAsciiBytes (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | CharSequencesTest.java | 19 import static com.android.internal.util.CharSequences.forAsciiBytes; 46 String copy = toString(forAsciiBytes(bytes)); in testCharSequences() 49 copy = toString(forAsciiBytes(bytes, 0, s.length())); in testCharSequences() 52 String hello = toString(forAsciiBytes(bytes, 0, 5)); in testCharSequences() 55 String l = toString(forAsciiBytes(bytes, 0, 3).subSequence(2, 3)); in testCharSequences() 58 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);
|