/libcore/luni/src/main/java/org/apache/harmony/security/x509/ |
H A D | DNParser.java | 50 /** distinguished name chars */ 51 private final char[] chars; field in class:DNParser 63 chars = dn.toCharArray(); 72 // skip preceding space chars, they can present after 74 for (; pos < chars.length && chars[pos] == ' '; pos++) { 76 if (pos == chars.length) { 83 // attribute type chars 85 for (; pos < chars.length && chars[po [all...] |
/libcore/luni/src/main/java/java/nio/charset/ |
H A D | Charsets.java | 29 public static native byte[] toAsciiBytes(char[] chars, int offset, int length); argument 35 public static native byte[] toIsoLatin1Bytes(char[] chars, int offset, int length); argument 41 public static native byte[] toUtf8Bytes(char[] chars, int offset, int length); argument 47 public static byte[] toBigEndianUtf16Bytes(char[] chars, int offset, int length) { argument 52 char ch = chars[i]; 67 public static native void asciiBytesToChars(byte[] bytes, int offset, int length, char[] chars); argument 76 public static native void isoLatin1BytesToChars(byte[] bytes, int offset, int length, char[] chars); argument
|
/libcore/luni/src/main/java/javax/net/ssl/ |
H A D | DistinguishedNameParser.java | 41 /** distinguished name chars */ 42 private char[] chars; field in class:DistinguishedNameParser 54 // skip preceding space chars, they can present after 56 for (; pos < length && chars[pos] == ' '; pos++) { 65 // attribute type chars 67 for (; pos < length && chars[pos] != '=' && chars[pos] != ' '; pos++) { 78 // skip trailing space chars between attribute type and '=' 80 if (chars[pos] == ' ') { 81 for (; pos < length && chars[po [all...] |
/libcore/benchmarks/src/benchmarks/regression/ |
H A D | CharacterBenchmark.java | 33 private char[] chars; field in class:CharacterBenchmark 36 this.chars = characterSet.chars; 48 final char[] chars; field in class:CharacterBenchmark.CharacterSet 50 this.chars = new char[65536]; 52 chars[i] = (char) (i % size); 80 Character.digit(chars[ch], 10); 86 Character.digit((int) chars[ch], 10); 96 Character.getNumericValue(chars[ch]); 102 Character.getNumericValue((int) chars[c [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
H A D | OldInputStreamReaderTest.java | 118 char[] chars = new char[source.length()]; 119 assertEquals(0, reader.read(chars, 0, 0)); 120 assertEquals(0, chars[0]); 121 assertEquals(3, reader.read(chars, 0, 3)); 122 assertEquals(5, reader.read(chars, 3, 5)); 123 assertEquals(source.length() - 8, reader.read(chars, 8, 124 chars.length - 8)); 125 assertTrue(Arrays.equals(chars, source.toCharArray())); 126 assertEquals(-1, reader.read(chars, 0, chars [all...] |
H A D | OldOutputStreamWriterTest.java | 294 char[] chars = new char[maxChar]; 296 chars[i] = (char) i; 302 charsOut.write(chars); 339 char[] chars = testString.toCharArray(); 347 writer.write(chars, -1, 1); 354 writer.write(chars, 0, -1); 375 writer.write(chars, 1, chars.length); 381 writer.write(chars, 0, chars [all...] |
H A D | DataOutputStreamTest.java | 92 char[] chars = new char[65535 - 1 - 2]; 93 Arrays.fill(chars, 0, chars.length, 'a'); 94 chars[0] = '\u0666'; // a two-byte character 95 chars[1] = '\u2603'; // a three-byte character 96 String maxLength = new String(chars);
|
H A D | OutputStreamWriterTest.java | 36 char[] chars = new char[16*1024]; 37 Arrays.fill(chars, 'x'); 39 writer.write(chars);
|
H A D | OldBufferedReaderTest.java | 108 char[] chars = new char[256]; 110 chars[i] = (char) i; 112 chars)), 12); 118 assertTrue("Wrong chars", in.read() == (char) 6 124 in = new BufferedReader(new Support_StringReader(new String(chars)), 12); 130 assertTrue("Wrong chars 2", in.read() == (char) 6 156 char[] chars = new char[256]; 158 chars[i] = (char) i; 160 chars)), 12); 167 .equals(new String(chars, [all...] |
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
H A D | ArrayTest.java | 25 private static char[] chars; field in class:ArrayTest 36 chars = new char[] { '\uffff' }; 47 try { Array.getBoolean(chars, 0); fail(); } catch (IllegalArgumentException expected) {} 59 try { Array.getByte(chars, 0); fail(); } catch (IllegalArgumentException expected) {} 71 assertEquals(chars[0], Array.getChar(chars, 0)); 83 assertEquals((double) chars[0], Array.getDouble(chars, 0)); 95 assertEquals((float) chars[0], Array.getFloat(chars, [all...] |
/libcore/benchmarks/src/benchmarks/ |
H A D | StringIterationBenchmark.java | 49 char[] chars = s.toCharArray(); 50 for (int i = 0, length = chars.length; i < length; ++i) { 51 ch = chars[i]; 58 char[] chars = s.toCharArray();
|
/libcore/luni/src/main/java/java/io/ |
H A D | OutputStreamWriter.java | 176 private void convert(CharBuffer chars) throws IOException { argument 178 CoderResult result = encoder.encode(chars, bytes, false); 195 CharBuffer chars = CharBuffer.allocate(0); 197 CoderResult result = encoder.encode(chars, bytes, true); 265 CharBuffer chars = CharBuffer.wrap(buffer, offset, count); 266 convert(chars); 285 CharBuffer chars = CharBuffer.wrap(new char[] { (char) oneChar }); 286 convert(chars); 323 CharBuffer chars = CharBuffer.wrap(str, offset, count + offset); 324 convert(chars); [all...] |
H A D | StringWriter.java | 107 * @param chars 110 * the index of the first character in {@code chars} to write. 118 public void write(char[] chars, int offset, int count) { argument 119 Arrays.checkOffsetAndCount(chars.length, offset, count); 123 buf.append(chars, offset, count);
|
H A D | PipedReader.java | 104 * @param pipeSize the size of the buffer in chars. 121 * @param pipeSize the size of the buffer in chars. 196 char[] chars = new char[1]; 197 int result = read(chars, 0, 1); 198 return result != -1 ? chars[0] : result; 261 /* Copy chars from out to end of buffer first */ 383 synchronized void receive(char[] chars, int offset, int count) throws IOException { argument 384 Arrays.checkOffsetAndCount(chars.length, offset, count); 420 System.arraycopy(chars, offset, buffer, in, length); 433 System.arraycopy(chars, offse [all...] |
H A D | BufferedWriter.java | 49 * of 8192 chars. 58 * Constructs a new {@code BufferedWriter}, providing {@code out} with {@code size} chars 62 * @param size the size of buffer in chars. 274 char[] chars = new char[count]; 275 str.getChars(offset, offset + count, chars, 0); 276 out.write(chars, 0, count); 294 char[] chars = new char[count]; 295 str.getChars(offset, offset + available, chars, 0); 296 out.write(chars, 0, available);
|
H A D | PrintStream.java | 368 * Prints the string representation of the character array {@code chars}. 370 public void print(char[] chars) { argument 371 print(new String(chars, 0, chars.length)); 464 * Prints the string representation of the character array {@code chars} followed by a newline. 466 public void println(char[] chars) { argument 467 println(new String(chars, 0, chars.length));
|
/libcore/luni/src/main/native/ |
H A D | java_nio_charset_Charsets.cpp | 114 ScopedCharArrayRW chars(env, javaChars); 115 if (chars.get() == NULL) { 120 jchar* dst = &chars[0]; 133 ScopedCharArrayRW chars(env, javaChars); 134 if (chars.get() == NULL) { 139 jchar* dst = &chars[0]; 151 ScopedCharArrayRO chars(env, javaChars); 152 if (chars.get() == NULL) { 162 const jchar* src = &chars[offset]; 184 ScopedCharArrayRO chars(en [all...] |
/libcore/luni/src/main/java/libcore/internal/ |
H A D | StringPool.java | 28 private static boolean contentEquals(String s, char[] chars, int start, int length) { argument 33 if (chars[start + i] != s.charAt(i)) {
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
H A D | PropertyResourceBundleTest.java | 77 char[] chars = new char[cbuffer.limit()]; 78 cbuffer.get(chars); 80 prb = new PropertyResourceBundle(new CharArrayReader(chars)); 87 chars = new char[cbuffer.limit()]; 88 cbuffer.get(chars); 90 prb = new PropertyResourceBundle(new CharArrayReader(chars));
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
H A D | InputStreamReaderTest.java | 439 assertTrue("returned incorrect chars", rbuf[i] == sbuf[i]); 457 char[] chars = new char[source.length()]; 458 assertEquals(source.length() - 3, isr.read(chars, 0, chars.length - 3)); 459 assertEquals(3, isr.read(chars, 0, 10)); 505 char[] chars = new char[source.length()]; 506 assertEquals(0, reader.read(chars, 0, 0)); 507 assertEquals(0, chars[0]); 508 assertEquals(3, reader.read(chars, 0, 3)); 509 assertEquals(5, reader.read(chars, [all...] |
H A D | PushbackReaderTest.java | 120 assertTrue("Failed to read chars", new String(c).equals(pbString 210 assertTrue("Failed to unread chars", new String(c).equals(pbString 221 char chars[] = new char[] { 'h', 'e', 'l', 'l', 'o' }; 226 reader = new StringReader(new String(chars)); 227 reader2 = new StringReader(new String(chars)); 230 reader = new FilterReader(new StringReader(new String(chars))) { 232 reader2 = new FilterReader(new StringReader(new String(chars))) { 236 reader = new CharArrayReader(chars); 237 reader2 = new CharArrayReader(chars); 292 assertTrue("Failed to unread chars", ne [all...] |
/libcore/luni/src/main/java/java/lang/ |
H A D | StringBuffer.java | 250 * @param chars 254 * if {@code chars} is {@code null}. 256 public synchronized StringBuffer append(char[] chars) { argument 257 append0(chars); 264 * @param chars 273 * length > chars.length}. 275 * if {@code chars} is {@code null}. 277 public synchronized StringBuffer append(char[] chars, int start, int length) { argument 278 append0(chars, start, length); 567 * @param chars 575 insert(int index, char[] chars) argument 600 insert(int index, char[] chars, int start, int length) argument [all...] |
H A D | AbstractStringBuilder.java | 112 final void append0(char[] chars) { argument 113 int newCount = count + chars.length; 117 System.arraycopy(chars, 0, value, count, chars.length); 121 final void append0(char[] chars, int offset, int length) { argument 122 Arrays.checkOffsetAndCount(chars.length, offset, length); 127 System.arraycopy(chars, offset, value, count, length); 302 final void insert0(int index, char[] chars) { argument 306 if (chars.length != 0) { 307 move(chars 313 insert0(int index, char[] chars, int start, int length) argument [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
H A D | CharsetEncoder2Test.java | 187 CharBuffer chars = utf8.newDecoder().decode(bytes); 189 assertEquals(2, chars.limit()); 190 assertEquals(0xd800, chars.get(0)); 191 assertEquals(0xdc00, chars.get(1));
|
/libcore/luni/src/main/java/libcore/net/url/ |
H A D | UrlUtils.java | 129 * Returns the index of the first char of {@code chars} in {@code string} 133 public static int findFirstOf(String string, String chars, int start, int end) { argument 136 if (chars.indexOf(c) != -1) {
|