/libcore/luni/src/test/java/tests/api/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/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()
|
D | Support_StringWriter.java | 150 public void write(String str) { in write() argument 152 buf.append(str); in write() 172 public void write(String str, int offset, int count) { in write() argument 173 String sub = str.substring(offset, offset + count); in write()
|
/libcore/luni/src/main/java/java/io/ |
D | StringReader.java | 29 private String str; field in StringReader 45 public StringReader(String str) { in StringReader() argument 46 this.str = str; in StringReader() 47 this.count = str.length(); in StringReader() 57 str = null; in close() 66 return str == null; in isClosed() 127 return str.charAt(pos++); in read() 166 str.getChars(pos, end, buf, offset); in read()
|
D | Writer.java | 140 public void write(String str) throws IOException { in write() argument 141 write(str, 0, str.length()); in write() 160 public void write(String str, int offset, int count) throws IOException { in write() argument 161 if ((offset | count) < 0 || offset > str.length() - count) { in write() 162 throw new StringIndexOutOfBoundsException(str, offset, count); in write() 165 str.getChars(offset, offset + count, buf, 0); in write()
|
D | DataOutputStream.java | 148 public final void writeBytes(String str) throws IOException { in writeBytes() argument 149 if (str.length() == 0) { in writeBytes() 152 byte[] bytes = new byte[str.length()]; in writeBytes() 153 for (int index = 0; index < str.length(); index++) { in writeBytes() 154 bytes[index] = (byte) str.charAt(index); in writeBytes() 164 public final void writeChars(String str) throws IOException { in writeChars() argument 165 byte[] bytes = str.getBytes("UTF-16BE"); in writeChars() 196 public final void writeUTF(String str) throws IOException { in writeUTF() argument 197 write(ModifiedUtf8.encode(str)); in writeUTF()
|
D | StringBufferInputStream.java | 55 public StringBufferInputStream(String str) { in StringBufferInputStream() argument 56 if (str == null) { in StringBufferInputStream() 59 buffer = str; in StringBufferInputStream() 60 count = str.length(); in StringBufferInputStream()
|
D | DataOutput.java | 100 public abstract void writeBytes(String str) throws IOException; in writeBytes() argument 123 public abstract void writeChars(String str) throws IOException; in writeChars() argument 193 public abstract void writeUTF(String str) throws IOException; in writeUTF() argument
|
D | BufferedWriter.java | 264 public void write(String str, int offset, int count) throws IOException { in write() argument 270 if (offset < 0 || offset > str.length() - count) { in write() 271 throw new StringIndexOutOfBoundsException(str, offset, count); in write() 275 str.getChars(offset, offset + count, chars, 0); in write() 284 str.getChars(offset, offset + available, buf, pos); in write() 295 str.getChars(offset, offset + available, chars, 0); in write() 299 str.getChars(offset, offset + available, buf, pos); in write()
|
D | CharArrayWriter.java | 203 public void write(String str, int offset, int count) { in write() argument 204 if (str == null) { in write() 207 if ((offset | count) < 0 || offset > str.length() - count) { in write() 208 throw new StringIndexOutOfBoundsException(str, offset, count); in write() 212 str.getChars(offset, offset + count, buf, this.count); in write()
|
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/ |
D | ObjectIdentifier.java | 158 public static int[] toIntArray(String str) { in toIntArray() argument 159 return toIntArray(str, true); in toIntArray() 171 public static boolean isOID(String str) { in isOID() argument 172 return toIntArray(str, false) != null; in isOID() 188 private static int[] toIntArray(String str, boolean shouldThrow) { in toIntArray() argument 189 if (str == null) { in toIntArray() 196 int length = str.length(); in toIntArray() 208 c = str.charAt(i); in toIntArray() 245 c = str.charAt(i); in toIntArray()
|
/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 | 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 | 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 | 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()
|
D | OldAndroidBufferedOutputStreamTest.java | 29 String str = "AbCdEfGhIjKlMnOpQrStUvWxYz"; in testBufferedOutputStream() local 33 a.write(str.getBytes(), 0, 26); in testBufferedOutputStream() 37 assertEquals(aa.toString(), str); in testBufferedOutputStream() local
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | OldTimeZoneTest.java | 68 String[] str = TimeZone.getAvailableIDs(); in test_getAvailableIDs() local 69 assertNotNull(str); in test_getAvailableIDs() 70 assertTrue(str.length != 0); in test_getAvailableIDs() 71 for(int i = 0; i < str.length; i++) { in test_getAvailableIDs() 72 assertNotNull(TimeZone.getTimeZone(str[i])); in test_getAvailableIDs() 77 String[] str = TimeZone.getAvailableIDs(0); in test_getAvailableIDsI() local 78 assertNotNull(str); in test_getAvailableIDsI() 79 assertTrue(str.length != 0); in test_getAvailableIDsI() 80 for(int i = 0; i < str.length; i++) { in test_getAvailableIDsI() 81 assertNotNull(TimeZone.getTimeZone(str[i])); in test_getAvailableIDsI()
|
/libcore/luni/src/main/java/java/lang/ |
D | StringBuilder.java | 94 public StringBuilder(String str) { in StringBuilder() argument 95 super(str); in StringBuilder() 215 public StringBuilder append(String str) { in append() argument 216 append0(str); in append() 270 public StringBuilder append(char[] str, int offset, int len) { in append() argument 271 append0(str, offset, len); in append() 518 public StringBuilder insert(int offset, String str) { in insert() argument 519 insert0(offset, str); in insert() 564 public StringBuilder insert(int offset, char[] str, int strOffset, in insert() argument 566 insert0(offset, str, strOffset, strLen); in insert()
|
/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/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()
|
/libcore/luni/src/test/java/tests/security/interfaces/ |
D | DSAKeyPairGeneratorTest.java | 101 String str = ipe.getMessage(); in test_DSAKeyPairGenerator02() 102 if (!str.equals("there are not precomputed parameters")) { in test_DSAKeyPairGenerator02() 103 fail("Incorrect exception's message: " + str); in test_DSAKeyPairGenerator02() 115 String str = ipe.getMessage(); in test_DSAKeyPairGenerator02() 116 if (!str.equals("Incorrect modlen")) { in test_DSAKeyPairGenerator02() 117 fail("Incorrect exception's message: " + str); in test_DSAKeyPairGenerator02()
|