/libcore/ojluni/src/main/java/java/lang/ |
D | StringBuilder.java | 112 public StringBuilder(String str) { in StringBuilder() argument 113 super(str.length() + 16); in StringBuilder() 114 append(str); in StringBuilder() 136 public StringBuilder append(String str) { in append() argument 137 super.append(str); in append() 181 public StringBuilder append(char[] str) { in append() argument 182 super.append(str); in append() 190 public StringBuilder append(char[] str, int offset, int len) { in append() argument 191 super.append(str, offset, len); in append() 262 public StringBuilder replace(int start, int end, String str) { in replace() argument [all …]
|
D | StringBuffer.java | 138 public StringBuffer(String str) { in StringBuffer() argument 139 super(str.length() + 16); in StringBuffer() 140 append(str); in StringBuffer() 268 public synchronized StringBuffer append(String str) { in append() argument 270 super.append(str); in append() 355 public synchronized StringBuffer append(char[] str) { in append() argument 357 super.append(str); in append() 365 public synchronized StringBuffer append(char[] str, int offset, int len) { in append() argument 367 super.append(str, offset, len); in append() 450 public synchronized StringBuffer replace(int start, int end, String str) { in replace() argument [all …]
|
D | AbstractStringBuilder.java | 447 public AbstractStringBuilder append(String str) { in append() argument 448 if (str == null) in append() 450 int len = str.length(); in append() 452 str.getChars(0, len, value, count); in append() 572 public AbstractStringBuilder append(char[] str) { in append() argument 573 int len = str.length; in append() 575 System.arraycopy(str, 0, value, count, len); in append() 603 public AbstractStringBuilder append(char str[], int offset, int len) { in append() argument 606 System.arraycopy(str, offset, value, count, len); in append() 868 public AbstractStringBuilder replace(int start, int end, String str) { in replace() argument [all …]
|
D | ProcessEnvironment.java | 128 protected final String str; field in ProcessEnvironment.ExternalData 131 protected ExternalData(String str, byte[] bytes) { in ExternalData() argument 132 this.str = str; in ExternalData() 141 return str; in toString() 157 protected Variable(String str, byte[] bytes) { in Variable() argument 158 super(str, bytes); in Variable() 161 public static Variable valueOfQueryOnly(Object str) { in valueOfQueryOnly() argument 162 return valueOfQueryOnly((String) str); in valueOfQueryOnly() 165 public static Variable valueOfQueryOnly(String str) { in valueOfQueryOnly() argument 166 return new Variable(str, str.getBytes()); in valueOfQueryOnly() [all …]
|
/libcore/ojluni/src/main/java/java/util/ |
D | StringTokenizer.java | 107 private String str; field in StringTokenizer 194 public StringTokenizer(String str, String delim, boolean returnDelims) { in StringTokenizer() argument 198 this.str = str; in StringTokenizer() 199 maxPosition = str.length(); in StringTokenizer() 220 public StringTokenizer(String str, String delim) { in StringTokenizer() argument 221 this(str, delim, false); in StringTokenizer() 235 public StringTokenizer(String str) { in StringTokenizer() argument 236 this(str, " \t\n\r\f", false); in StringTokenizer() 251 char c = str.charAt(position); in skipDelimiters() 256 int c = str.codePointAt(position); in skipDelimiters() [all …]
|
/libcore/ojluni/src/main/java/sun/invoke/util/ |
D | BytecodeDescriptor.java | 48 String str = bytecodeSignature; in parseMethod() local 51 if (i[0] < end && str.charAt(i[0]) == '(') { in parseMethod() 53 while (i[0] < end && str.charAt(i[0]) != ')') { in parseMethod() 54 Class<?> pt = parseSig(str, i, end, loader); in parseMethod() 56 parseError(str, "bad argument type"); in parseMethod() 61 parseError(str, "not a method type"); in parseMethod() 63 Class<?> rtype = parseSig(str, i, end, loader); in parseMethod() 65 parseError(str, "bad return type"); in parseMethod() 70 static private void parseError(String str, String msg) { in parseError() argument 71 throw new IllegalArgumentException("bad signature: "+str+": "+msg); in parseError() [all …]
|
/libcore/ojluni/src/main/java/java/nio/ |
D | StringCharBuffer.java | 33 CharSequence str; field in StringCharBuffer 40 str = s; in StringCharBuffer() 44 return new StringCharBuffer(str, in slice() 59 str = s; in StringCharBuffer() 63 return new StringCharBuffer(str, markValue(), in duplicate() 72 return str.charAt(nextGetIndex() + offset); in get() 76 return str.charAt(checkIndex(index) + offset); in get() 80 return str.charAt(index + offset); in getUnchecked() 102 return str.toString().substring(start + offset, end + offset); in toString() 108 return new StringCharBuffer(str, in subSequence()
|
/libcore/support/src/test/java/tests/support/ |
D | Support_StringReader.java | 24 private String str; field in Support_StringReader 40 public Support_StringReader(String str) { in Support_StringReader() argument 41 super(str); in Support_StringReader() 42 this.str = str; in Support_StringReader() 43 this.count = str.length(); in Support_StringReader() 56 str = null; in close() 65 return str != null; in isOpen() 122 return str.charAt(pos++); in read() 159 str.getChars(pos, end, buf, offset); in read()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
D | SSLEngineResultStatusTest.java | 34 String[] str = {"BUFFER_OVERFLOW", "BUFFER_UNDERFLOW", "CLOSED", "OK"}; in test_SSLEngineResultStatus_values() local 36 if (enS.length == str.length) { in test_SSLEngineResultStatus_values() 39 for (int j = 0; j < str.length; j++) { in test_SSLEngineResultStatus_values() 40 if (enS[i].toString() == str[j]) { in test_SSLEngineResultStatus_values() 56 String[] str = {"BUFFER_OVERFLOW", "BUFFER_UNDERFLOW", "CLOSED", "OK"}; in test_SSLEngineResultStatus_valueOf() local 62 for (int i = 0; i < str.length; i++) { in test_SSLEngineResultStatus_valueOf() 64 enS = SSLEngineResult.Status.valueOf(str[i]); in test_SSLEngineResultStatus_valueOf() 65 assertEquals("Incorrect Status", enS.toString(), str[i]); in test_SSLEngineResultStatus_valueOf() 67 fail("Unexpected exception " + e + " was thrown for " + str[i]); in test_SSLEngineResultStatus_valueOf()
|
D | SSLEngineResultHandshakeStatusTest.java | 33 String[] str = {"NOT_HANDSHAKING", "FINISHED", "NEED_TASK", "NEED_WRAP", "NEED_UNWRAP"}; in test_SSLEngineResultHandshakeStatus_values() local 35 if (enS.length == str.length) { in test_SSLEngineResultHandshakeStatus_values() 38 assertEquals("Incorrect Status", enS[i].toString(), str[i]); in test_SSLEngineResultHandshakeStatus_values() 49 String[] str = {"FINISHED", "NEED_TASK", "NEED_UNWRAP", "NEED_WRAP", "NOT_HANDSHAKING"}; in test_SSLEngineResultStatus_valueOf() local 55 for (int i = 0; i < str.length; i++) { in test_SSLEngineResultStatus_valueOf() 57 enS = SSLEngineResult.HandshakeStatus.valueOf(str[i]); in test_SSLEngineResultStatus_valueOf() 58 assertEquals("Incorrect Status", enS.toString(), str[i]); in test_SSLEngineResultStatus_valueOf() 60 fail("Unexpected exception " + e + " was thrown for " + str[i]); in test_SSLEngineResultStatus_valueOf()
|
D | SSLContextSpiTest.java | 61 String str = re.getMessage(); in test_engineCreateSSLEngine_01() 62 if (!str.equals("Not initialiazed")) in test_engineCreateSSLEngine_01() 63 fail("Incorrect exception message: " + str); in test_engineCreateSSLEngine_01() 80 String str = re.getMessage(); in test_engineCreateSSLEngine_02() 81 if (!str.equals("Not initialiazed")) in test_engineCreateSSLEngine_02() 82 fail("Incorrect exception message: " + str); in test_engineCreateSSLEngine_02() 111 String str = re.getMessage(); in test_commonTest_01() 112 if (!str.equals("Not initialiazed")) in test_commonTest_01() 113 fail("Incorrect exception message: " + str); in test_commonTest_01() 122 String str = re.getMessage(); in test_commonTest_01() [all …]
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldAndroidBufferedInputStreamTest.java | 32 String str = "AbCdEfGhIjKlM\nOpQrStUvWxYz"; in testBufferedInputStream() local 33 ByteArrayInputStream aa = new ByteArrayInputStream(str.getBytes()); in testBufferedInputStream() 34 ByteArrayInputStream ba = new ByteArrayInputStream(str.getBytes()); in testBufferedInputStream() 35 ByteArrayInputStream ca = new ByteArrayInputStream(str.getBytes()); in testBufferedInputStream() 36 ByteArrayInputStream da = new ByteArrayInputStream(str.getBytes()); in testBufferedInputStream() 37 ByteArrayInputStream ea = new ByteArrayInputStream(str.getBytes()); in testBufferedInputStream() 41 Assert.assertEquals(str, read(a)); in testBufferedInputStream() 76 assertEquals(str, read(e, 10000)); in testBufferedInputStream()
|
D | OldAndroidLineNumberReaderTest.java | 32 String str = "AbCdEfGhIjKlM\nOpQrStUvWxYz"; in testLineNumberReader() local 34 StringReader aa = new StringReader(str); in testLineNumberReader() 35 StringReader ba = new StringReader(str); in testLineNumberReader() 36 StringReader ca = new StringReader(str); in testLineNumberReader() 37 StringReader da = new StringReader(str); in testLineNumberReader() 38 StringReader ea = new StringReader(str); in testLineNumberReader() 43 Assert.assertEquals(str, read(a)); in testLineNumberReader()
|
D | OldAndroidStringReaderTest.java | 28 String str = "AbCdEfGhIjKlMnOpQrStUvWxYz"; in testStringReader() local 30 StringReader a = new StringReader(str); in testStringReader() 31 StringReader b = new StringReader(str); in testStringReader() 32 StringReader c = new StringReader(str); in testStringReader() 33 StringReader d = new StringReader(str); in testStringReader() 35 Assert.assertEquals(str, read(a)); in testStringReader()
|
D | OldAndroidByteArrayInputStreamTest.java | 31 String str = "AbCdEfGhIjKlMnOpQrStUvWxYz"; in testByteArrayInputStream() local 33 ByteArrayInputStream a = new ByteArrayInputStream(str.getBytes()); in testByteArrayInputStream() 34 ByteArrayInputStream b = new ByteArrayInputStream(str.getBytes()); in testByteArrayInputStream() 35 ByteArrayInputStream c = new ByteArrayInputStream(str.getBytes()); in testByteArrayInputStream() 36 ByteArrayInputStream d = new ByteArrayInputStream(str.getBytes()); in testByteArrayInputStream() 38 Assert.assertEquals(str, read(a)); in testByteArrayInputStream()
|
D | OldAndroidCharArrayReaderTest.java | 31 String str = "AbCdEfGhIjKlMnOpQrStUvWxYz"; in testCharArrayReader() local 32 CharArrayReader a = new CharArrayReader(str.toCharArray()); in testCharArrayReader() 33 CharArrayReader b = new CharArrayReader(str.toCharArray()); in testCharArrayReader() 34 CharArrayReader c = new CharArrayReader(str.toCharArray()); in testCharArrayReader() 35 CharArrayReader d = new CharArrayReader(str.toCharArray()); in testCharArrayReader() 37 Assert.assertEquals(str, read(a)); in testCharArrayReader()
|
D | OldAndroidBufferedReaderTest.java | 31 String str = "AbCdEfGhIjKlMnOpQrStUvWxYz"; in testBufferedReader() local 32 StringReader aa = new StringReader(str); in testBufferedReader() 33 StringReader ba = new StringReader(str); in testBufferedReader() 34 StringReader ca = new StringReader(str); in testBufferedReader() 35 StringReader da = new StringReader(str); in testBufferedReader() 39 assertEquals(str, read(a)); in testBufferedReader()
|
/libcore/ojluni/src/main/native/ |
D | io_util.h | 90 jstring _##var##str = (strexp); \ 91 if (_##var##str == NULL) { \ 95 var = JNU_GetStringPlatformChars((env), _##var##str, NULL); \ 106 JNU_ReleaseStringPlatformChars(env, _##var##str, var); \ 118 jstring _##var##str = (strexp); \ 119 if (_##var##str == NULL) { \ 123 var = (*(env))->GetStringChars((env), _##var##str, NULL); \ 127 (*(env))->ReleaseStringChars(env, _##var##str, var); \
|
/libcore/ojluni/src/main/java/java/io/ |
D | StringReader.java | 38 private String str; field in StringReader 49 this.str = s; in StringReader() 55 if (str == null) in ensureOpen() 72 return str.charAt(next++); in read() 100 str.getChars(next, next + n, cbuf, off); in read() 199 str = null; in close()
|
D | Writer.java | 156 public void write(String str) throws IOException { in write() argument 157 write(str, 0, str.length()); in write() 180 public void write(String str, int off, int len) throws IOException { in write() argument 191 str.getChars(off, (off + len), cbuf, 0); in write()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldStringTest.java | 170 String str = "!'123123.123HelloWorld!123123helloworld#"; in test_replaceAll() local 180 results[i], str.replaceAll(patterns[i], "?")); in test_replaceAll() 184 str.replaceAll("[abc*", "?"); in test_replaceAll() 192 String str = "!'123123.123HelloWorld!123123helloworld#"; in test_replaceFirst() local 202 results[i], str.replaceFirst(patterns[i], "?")); in test_replaceFirst() 206 str.replaceFirst("[abc*", "?"); in test_replaceFirst() 214 String str = "!'123123.123HelloWorld!123123helloworld#"; in test_splitLString() local 222 patterns[i], Arrays.equals(results[i], str.split(patterns[i]))); in test_splitLString() 226 str.split("[a}"); in test_splitLString() 234 String str = "!'123123.123HelloWorld!123123helloworld#"; in test_splitLStringLint() local [all …]
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | OldTimeZoneTest.java | 66 String[] str = TimeZone.getAvailableIDs(); in test_getAvailableIDs() local 67 assertNotNull(str); in test_getAvailableIDs() 68 assertTrue(str.length != 0); in test_getAvailableIDs() 69 for(int i = 0; i < str.length; i++) { in test_getAvailableIDs() 70 assertNotNull(TimeZone.getTimeZone(str[i])); in test_getAvailableIDs() 75 String[] str = TimeZone.getAvailableIDs(0); in test_getAvailableIDsI() local 76 assertNotNull(str); in test_getAvailableIDsI() 77 assertTrue(str.length != 0); in test_getAvailableIDsI() 78 for(int i = 0; i < str.length; i++) { in test_getAvailableIDsI() 79 assertNotNull(TimeZone.getTimeZone(str[i])); in test_getAvailableIDsI()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | MockEnum.java | 32 String str; field in MockEnum 41 str = "test"; in MockEnum() 51 if (str.equals(test.str) && i == test.i && samEnum == test.samEnum) { in equals()
|
D | MockEnum2.java | 33 String str; field in MockEnum2 44 str = "test"; in MockEnum2() 54 if (str.equals(test.str) && i == test.i && samEnum == test.samEnum in equals()
|
/libcore/luni/src/main/java/javax/xml/datatype/ |
D | DatatypeConstants.java | 165 private final String str; field in DatatypeConstants.Field 179 private Field(final String str, final int id) { in Field() argument 180 this.str = str; in Field() 191 public String toString() { return str; } in toString()
|