Home
last modified time | relevance | path

Searched refs:chars (Results 1 – 25 of 41) sorted by relevance

12

/dalvik/libcore/security/src/main/java/org/apache/harmony/security/x509/
DDNParser.java58 protected char[] chars; field in DNParser
73 chars = dn.toCharArray(); in DNParser()
83 for (; pos < length && chars[pos] == ' '; pos++) { in nextAT()
94 for (; pos < length && chars[pos] != '=' && chars[pos] != ' '; pos++) { in nextAT()
109 if (chars[pos] == ' ') { in nextAT()
110 for (; pos < length && chars[pos] != '=' && chars[pos] == ' '; pos++) { in nextAT()
113 if (chars[pos] != '=' || pos == length) { in nextAT()
124 for (; pos < length && chars[pos] == ' '; pos++) { in nextAT()
129 if ((end - beg > 4) && (chars[beg + 3] == '.') in nextAT()
130 && (chars[beg] == 'O' || chars[beg] == 'o') in nextAT()
[all …]
/dalvik/libcore/nio/src/main/java/org/apache/harmony/nio/internal/
DIOUtil.java64 CharBuffer chars, CharsetDecoder decoder, Object lock) in readInputStreamReader() argument
68 if (chars.limit() == chars.position()) { in readInputStreamReader()
69 fillBuf(in, bytes, chars, decoder); in readInputStreamReader()
71 if (chars.limit() == 0) { in readInputStreamReader()
74 return chars.get(); in readInputStreamReader()
85 InputStream in, ByteBuffer bytes, CharBuffer chars, in readInputStreamReader() argument
94 if (chars.limit() == chars.position()) { in readInputStreamReader()
95 fillBuf(in, bytes, chars, decoder); in readInputStreamReader()
97 int position = chars.position(); in readInputStreamReader()
98 int availableChars = chars.limit() - position; in readInputStreamReader()
[all …]
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/
DBufferedReaderTest.java101 char[] chars = new char[3]; in test_markI() local
102 int result = buf.read(chars); in test_markI()
104 assertEquals("Assert 0:", '0', chars[0]); in test_markI()
105 assertEquals("Assert 1:", '1', chars[1]); in test_markI()
106 assertEquals("Assert 2:", '2', chars[2]); in test_markI()
111 chars = new char[4]; in test_markI()
112 result = buf.read(chars); in test_markI()
114 assertEquals("Assert 5:", '0', chars[0]); in test_markI()
115 assertEquals("Assert 6:", '1', chars[1]); in test_markI()
116 assertEquals("Assert 7:", '2', chars[2]); in test_markI()
[all …]
/dalvik/vm/
DUtfString.c215 ArrayObject* chars = (ArrayObject*) dvmGetFieldObject((Object*) strObj, in dvmComputeStringHash() local
222 return dvmComputeUtf16Hash((u2*) chars->contents + offset, len); in dvmComputeStringHash()
256 ArrayObject* chars; in dvmCreateStringFromCstrAndLength() local
280 chars = dvmAllocPrimitiveArray('C', utf16Length, allocFlags); in dvmCreateStringFromCstrAndLength()
281 if (chars == NULL) { in dvmCreateStringFromCstrAndLength()
285 dvmConvertUtf8ToUtf16((u2*)chars->contents, utf8Str); in dvmCreateStringFromCstrAndLength()
286 hashCode = dvmComputeUtf16Hash((u2*) chars->contents, utf16Length); in dvmCreateStringFromCstrAndLength()
289 (Object*)chars); in dvmCreateStringFromCstrAndLength()
290 dvmReleaseTrackedAllocIFN((Object*) chars, NULL, allocFlags); in dvmCreateStringFromCstrAndLength()
310 ArrayObject* chars; in dvmCreateStringFromUnicode() local
[all …]
DDdm.c295 const u2* chars; in dvmDdmSendThreadNotification() local
303 chars = dvmStringChars(nameObj); in dvmDdmSendThreadNotification()
306 chars = NULL; in dvmDdmSendThreadNotification()
320 set2BE((u1*) (outChars++), *chars++); in dvmDdmSendThreadNotification()
341 const u2* chars = dvmStringChars(newName); in dvmDdmSendThreadNameChange() local
356 set2BE((u1*) (outChars++), *chars++); in dvmDdmSendThreadNameChange()
/dalvik/libcore/security/src/main/java/org/bouncycastle/util/
DStrings.java143 char[] chars = string.toCharArray(); in toUpperCase() local
145 for (int i = 0; i != chars.length; i++) in toUpperCase()
147 char ch = chars[i]; in toUpperCase()
151 chars[i] = (char)(ch - 'a' + 'A'); in toUpperCase()
157 return new String(chars); in toUpperCase()
172 char[] chars = string.toCharArray(); in toLowerCase() local
174 for (int i = 0; i != chars.length; i++) in toLowerCase()
176 char ch = chars[i]; in toLowerCase()
180 chars[i] = (char)(ch - 'A' + 'a'); in toLowerCase()
186 return new String(chars); in toLowerCase()
/dalvik/libcore/luni/src/main/java/java/util/
DIllegalFormatCodePointException.java63 char[] chars = Character.toChars(c); in getMessage() local
64 for (int i = 0; i < chars.length; i++) { in getMessage()
65 buffer.append(chars[i]); in getMessage()
/dalvik/libcore/luni/src/main/java/java/io/
DOutputStreamWriter.java240 CharBuffer chars = CharBuffer.wrap(buf, offset, count); in write() local
241 convert(chars); in write()
245 private void convert(CharBuffer chars) throws IOException { in convert() argument
246 CoderResult result = encoder.encode(chars, bytes, true); in convert()
253 result = encoder.encode(chars, bytes, true); in convert()
275 CharBuffer chars = CharBuffer.wrap(new char[] { (char) oneChar }); in write() local
276 convert(chars); in write()
317 CharBuffer chars = CharBuffer.wrap(str, offset, count + offset); in write() local
318 convert(chars); in write()
DBufferedWriter.java298 char[] chars = new char[count]; in write() local
299 str.getChars(offset, offset + count, chars, 0); in write()
300 out.write(chars, 0, count); in write()
318 char[] chars = new char[count]; in write() local
319 str.getChars(offset, offset + available, chars, 0); in write()
320 out.write(chars, 0, available); in write()
DPipedReader.java385 void receive(char[] chars, int offset, int count) throws IOException { in receive() argument
424 System.arraycopy(chars, offset, data, in, length); in receive()
437 System.arraycopy(chars, offset, data, in, length); in receive()
/dalvik/tests/003-omnibus-opcodes/src/
DArray.java26 static void checkChars(char[] chars) { in checkChars() argument
27 assert(chars[0] == 40000); in checkChars()
28 assert(chars[1] == 40001); in checkChars()
29 assert(chars[2] == 40002); in checkChars()
30 assert(chars[3] == 40003); in checkChars()
31 assert(chars[4] == 40004); in checkChars()
/dalvik/libcore/luni/src/test/java/tests/api/java/io/
DInputStreamReaderTest.java264 char[] chars = new char[source.length()]; in testReadcharArrayintint() local
265 assertEquals(0, reader.read(chars, 0, 0)); in testReadcharArrayintint()
266 assertEquals(0, chars[0]); in testReadcharArrayintint()
267 assertEquals(3, reader.read(chars, 0, 3)); in testReadcharArrayintint()
268 assertEquals(5, reader.read(chars, 3, 5)); in testReadcharArrayintint()
269 assertEquals(source.length() - 8, reader.read(chars, 8, in testReadcharArrayintint()
270 chars.length - 8)); in testReadcharArrayintint()
271 assertTrue(Arrays.equals(chars, source.toCharArray())); in testReadcharArrayintint()
272 assertEquals(-1, reader.read(chars, 0, chars.length)); in testReadcharArrayintint()
273 assertTrue(Arrays.equals(chars, source.toCharArray())); in testReadcharArrayintint()
[all …]
DOutputStreamWriterTest.java547 char[] chars = new char[maxChar]; in testEncodeCharset() local
549 chars[i] = (char) i; in testEncodeCharset()
555 charsOut.write(chars); in testEncodeCharset()
610 char[] chars = testString.toCharArray(); in test_write$CII() local
618 writer.write(chars, -1, 1); in test_write$CII()
625 writer.write(chars, 0, -1); in test_write$CII()
646 writer.write(chars, 1, chars.length); in test_write$CII()
652 writer.write(chars, 0, chars.length + 1); in test_write$CII()
658 writer.write(chars, chars.length, 1); in test_write$CII()
664 writer.write(chars, chars.length + 1, 0); in test_write$CII()
[all …]
DBufferedReaderTest.java140 char[] chars = new char[256]; in test_markI() local
142 chars[i] = (char) i; in test_markI()
144 chars)), 12); in test_markI()
156 in = new BufferedReader(new Support_StringReader(new String(chars)), 12); in test_markI()
204 char[] chars = new char[256]; in test_read() local
206 chars[i] = (char) i; in test_read()
208 chars)), 12); in test_read()
215 .equals(new String(chars, 1, 14))); in test_read()
DPushbackReaderTest.java436 char chars[] = new char[] { 'h', 'e', 'l', 'l', 'o' }; in test_skip$J() local
441 reader = new StringReader(new String(chars)); in test_skip$J()
442 reader2 = new StringReader(new String(chars)); in test_skip$J()
445 reader = new FilterReader(new StringReader(new String(chars))) { in test_skip$J()
447 reader2 = new FilterReader(new StringReader(new String(chars))) { in test_skip$J()
451 reader = new CharArrayReader(chars); in test_skip$J()
452 reader2 = new CharArrayReader(chars); in test_skip$J()
DDataOutputStreamTest.java252 char[] chars = new char[unihw.length()]; in test_writeCharsLjava_lang_String() local
254 for (i = 0; i < a; i++) chars[i] = dis.readChar(); in test_writeCharsLjava_lang_String()
256 unihw, new String(chars, 0, i) in test_writeCharsLjava_lang_String()
/dalvik/libcore/luni/src/main/java/java/lang/
DAbstractStringBuilder.java114 final void append0(char chars[]) { in append0() argument
115 int newSize = count + chars.length; in append0()
119 System.arraycopy(chars, 0, value, count, chars.length); in append0()
123 final void append0(char chars[], int start, int length) { in append0() argument
124 if (chars == null) { in append0()
128 if (start >= 0 && 0 <= length && length <= chars.length - start) { in append0()
133 System.arraycopy(chars, start, value, count, length); in append0()
318 final void insert0(int index, char[] chars) { in insert0() argument
322 if (chars.length != 0) { in insert0()
323 move(chars.length, index); in insert0()
[all …]
DStringBuffer.java251 public synchronized StringBuffer append(char chars[]) { in append() argument
252 append0(chars); in append()
272 public synchronized StringBuffer append(char chars[], int start, int length) { in append() argument
273 append0(chars, start, length); in append()
570 public synchronized StringBuffer insert(int index, char[] chars) { in insert() argument
571 insert0(index, chars); in insert()
595 public synchronized StringBuffer insert(int index, char chars[], int start, in insert() argument
597 insert0(index, chars, start, length); in insert()
/dalvik/libcore/nio/src/main/java/java/nio/channels/
DChannels.java480 CharBuffer chars; field in Channels.ByteChannelReader
492 chars = CharBuffer.allocate(bufferSize); in ByteChannelReader()
494 chars.limit(0); in ByteChannelReader()
519 return chars.limit() > chars.position() in ready()
532 bytes, chars, decoder, lock); in read()
540 length, inputStream, bytes, chars, decoder, lock); in read()
/dalvik/libcore/luni-kernel/src/main/java/java/lang/
DRuntime.java808 char[] chars = new char[128]; in readBuffer() local
809 int read = reader.read(chars); in readBuffer()
815 writer.write(chars, 0, read); in readBuffer()
873 char[] chars = new char[128]; in flush() local
875 int read = reader.read(chars); in flush()
877 writer.write(chars, 0, read); in flush()
/dalvik/libcore/nio_char/src/test/java/tests/api/java/nio/charset/
DCharset_TestGenerator_Res.java155 static final char[] chars = new char[codes.length]; // Is filled with contents of codes. field in Charset_TestGenerator_Res
DCharset_AbstractTest.java47 static final char[] chars = new char[codes.length]; // Is filled with field in Charset_AbstractTest
54 char[] chars = new char[codes.length]; in theseChars() local
55 for (int i = 0; i < codes.length; i++) chars[i] = (char) codes[i]; in theseChars()
56 return chars; in theseChars()
DCharset_SingleByteAbstractTest.java195 static void assertEqualBytes2 (String msg, byte[] expected, byte[] actual, char[] chars) { in assertEqualBytes2() argument
201 !((chars[i] == 65533)) && (actual[i] == 63)) { in assertEqualBytes2()
/dalvik/dx/src/com/android/dx/rop/cst/
DCstUtf8.java81 char[] chars = new char[length]; // This is sized to avoid a realloc. in utf8BytesToString() local
154 chars[outAt] = out; in utf8BytesToString()
158 return new String(chars, 0, outAt); in utf8BytesToString()
/dalvik/libcore/nio/src/main/java/java/nio/
DCharBuffer.java872 char[] chars = new char[result]; in read() local
873 get(chars); in read()
874 target.put(chars); in read()

12