/libcore/luni/src/main/java/org/w3c/dom/ |
H A D | DOMStringList.java | 44 * @param str The string to look for. 48 public boolean contains(String str); argument
|
H A D | NameList.java | 51 * @param str The name to look for. 55 public boolean contains(String str); argument
|
/libcore/luni/src/main/java/java/io/ |
H A D | StringReader.java | 29 private String str; field in class:StringReader 38 * Construct a new {@code StringReader} with {@code str} as source. The size 40 * to synchronize access through is set to {@code str}. 42 * @param str 45 public StringReader(String str) { argument 46 this.str = str; 47 this.count = str.length(); 57 str = null; 66 return str [all...] |
H A D | Writer.java | 135 * @param str 140 public void write(String str) throws IOException { argument 141 write(str, 0, str.length()); 145 * Writes {@code count} characters from {@code str} starting at {@code 148 * @param str 151 * the index of the first character in {@code str} to write. 153 * the number of characters from {@code str} to write. 158 * offset + count} is greater than the length of {@code str}. 160 public void write(String str, in argument [all...] |
H A D | DataOutput.java | 95 * @param str 100 public abstract void writeBytes(String str) throws IOException; argument 115 * Writes the 16-bit characters contained in {@code str} in big-endian order. 117 * @param str 123 public abstract void writeChars(String str) throws IOException; argument 187 * @param str 193 public abstract void writeUTF(String str) throws IOException; argument
|
H A D | DataOutputStream.java | 148 public final void writeBytes(String str) throws IOException { argument 149 if (str.length() == 0) { 152 byte[] bytes = new byte[str.length()]; 153 for (int index = 0; index < str.length(); index++) { 154 bytes[index] = (byte) str.charAt(index); 164 public final void writeChars(String str) throws IOException { argument 165 byte[] bytes = str.getBytes("UTF-16BE"); 196 public final void writeUTF(String str) throws IOException { argument 197 write(ModifiedUtf8.encode(str));
|
H A D | StringBufferInputStream.java | 46 * Construct a new {@code StringBufferInputStream} with {@code str} as 50 * @param str 53 * if {@code str} is {@code null}. 55 public StringBufferInputStream(String str) { argument 56 if (str == null) { 59 buffer = str; 60 count = str.length();
|
H A D | StringWriter.java | 142 * @param str 146 public void write(String str) { argument 147 buf.append(str); 151 * Writes {@code count} characters from {@code str} starting at {@code 154 * @param str 157 * the index of the first character in {@code str} to write. 159 * the number of characters from {@code str} to write. 162 * offset + count} is greater than the length of {@code str}. 165 public void write(String str, int offset, int count) { argument 166 String sub = str [all...] |
/libcore/luni/src/test/java/tests/api/javax/net/ssl/ |
H A D | SSLEngineResultStatusTest.java | 34 String[] str = {"BUFFER_OVERFLOW", "BUFFER_UNDERFLOW", "CLOSED", "OK"}; 36 if (enS.length == str.length) { 39 for (int j = 0; j < str.length; j++) { 40 if (enS[i].toString() == str[j]) { 56 String[] str = {"BUFFER_OVERFLOW", "BUFFER_UNDERFLOW", "CLOSED", "OK"}; 62 for (int i = 0; i < str.length; i++) { 64 enS = SSLEngineResult.Status.valueOf(str[i]); 65 assertEquals("Incorrect Status", enS.toString(), str[i]); 67 fail("Unexpected exception " + e + " was thrown for " + str[i]);
|
H A D | SSLEngineResultHandshakeStatusTest.java | 33 String[] str = {"NOT_HANDSHAKING", "FINISHED", "NEED_TASK", "NEED_WRAP", "NEED_UNWRAP"}; 35 if (enS.length == str.length) { 38 assertEquals("Incorrect Status", enS[i].toString(), str[i]); 49 String[] str = {"FINISHED", "NEED_TASK", "NEED_UNWRAP", "NEED_WRAP", "NOT_HANDSHAKING"}; 55 for (int i = 0; i < str.length; i++) { 57 enS = SSLEngineResult.HandshakeStatus.valueOf(str[i]); 58 assertEquals("Incorrect Status", enS.toString(), str[i]); 60 fail("Unexpected exception " + e + " was thrown for " + str[i]);
|
H A D | SSLContextSpiTest.java | 61 String str = re.getMessage(); 62 if (!str.equals("Not initialiazed")) 63 fail("Incorrect exception message: " + str); 80 String str = re.getMessage(); 81 if (!str.equals("Not initialiazed")) 82 fail("Incorrect exception message: " + str); 111 String str = re.getMessage(); 112 if (!str.equals("Not initialiazed")) 113 fail("Incorrect exception message: " + str); 122 String str [all...] |
/libcore/support/src/test/java/tests/support/ |
H A D | Support_StringReader.java | 24 private String str; field in class:Support_StringReader 33 * Construct a StringReader on the String <code>str</code>. The size of 35 * Object to synchronize access through is set to <code>str</code>. 37 * @param str 40 public Support_StringReader(String str) { argument 41 super(str); 42 this.str = str; 43 this.count = str.length(); 56 str [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
H A D | OldAndroidBufferedOutputStreamTest.java | 29 String str = "AbCdEfGhIjKlMnOpQrStUvWxYz"; 33 a.write(str.getBytes(), 0, 26); 37 assertEquals(aa.toString(), str);
|
H A D | OldAndroidByteArrayOutputStreamTest.java | 28 String str = "AbCdEfGhIjKlMnOpQrStUvWxYz"; 32 a.write(str.getBytes(), 0, 26);
|
H A D | OldAndroidStringWriterTest.java | 25 String str = "AbCdEfGhIjKlMnOpQrStUvWxYz"; 28 a.write(str, 0, 26);
|
H A D | OldAndroidByteArrayInputStreamTest.java | 31 String str = "AbCdEfGhIjKlMnOpQrStUvWxYz"; 33 ByteArrayInputStream a = new ByteArrayInputStream(str.getBytes()); 34 ByteArrayInputStream b = new ByteArrayInputStream(str.getBytes()); 35 ByteArrayInputStream c = new ByteArrayInputStream(str.getBytes()); 36 ByteArrayInputStream d = new ByteArrayInputStream(str.getBytes()); 38 Assert.assertEquals(str, read(a));
|
H A D | OldAndroidCharArrayReaderTest.java | 31 String str = "AbCdEfGhIjKlMnOpQrStUvWxYz"; 32 CharArrayReader a = new CharArrayReader(str.toCharArray()); 33 CharArrayReader b = new CharArrayReader(str.toCharArray()); 34 CharArrayReader c = new CharArrayReader(str.toCharArray()); 35 CharArrayReader d = new CharArrayReader(str.toCharArray()); 37 Assert.assertEquals(str, read(a));
|
H A D | OldAndroidStringReaderTest.java | 28 String str = "AbCdEfGhIjKlMnOpQrStUvWxYz"; 30 StringReader a = new StringReader(str); 31 StringReader b = new StringReader(str); 32 StringReader c = new StringReader(str); 33 StringReader d = new StringReader(str); 35 Assert.assertEquals(str, read(a));
|
H A D | OldAndroidBufferedInputStreamTest.java | 32 String str = "AbCdEfGhIjKlM\nOpQrStUvWxYz"; 33 ByteArrayInputStream aa = new ByteArrayInputStream(str.getBytes()); 34 ByteArrayInputStream ba = new ByteArrayInputStream(str.getBytes()); 35 ByteArrayInputStream ca = new ByteArrayInputStream(str.getBytes()); 36 ByteArrayInputStream da = new ByteArrayInputStream(str.getBytes()); 37 ByteArrayInputStream ea = new ByteArrayInputStream(str.getBytes()); 41 Assert.assertEquals(str, read(a)); 76 assertEquals(str, read(e, 10000));
|
H A D | OldAndroidBufferedWriterTest.java | 29 String str = "AbCdEfGhIjKlMnOpQrStUvWxYz"; 34 a.write(str.toCharArray(), 0, 26);
|
H A D | OldAndroidDataOutputStreamTest.java | 29 String str = "AbCdEfGhIjKlMnOpQrStUvWxYz"; 34 a.write(str.getBytes(), 0, 26);
|
H A D | OldAndroidOutputStreamWriterTest.java | 29 String str = "AbCdEfGhIjKlMnOpQrStUvWxYz"; 33 a.write(str, 0, 4);
|
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/ |
H A D | ObjectIdentifier.java | 154 * @param str string representation of OID 158 public static int[] toIntArray(String str) { argument 159 return toIntArray(str, true); 168 * @param str string representation of OID 171 public static boolean isOID(String str) { argument 172 return toIntArray(str, false) != null; 182 * @param str string representation of OID 188 private static int[] toIntArray(String str, boolean shouldThrow) { argument 189 if (str == null) { 196 int length = str [all...] |
/libcore/luni/src/main/java/javax/xml/datatype/ |
H A D | DatatypeConstants.java | 165 private final String str; field in class:DatatypeConstants.Field 176 * @param str <code>String</code> representation of <code>Field</code> 179 private Field(final String str, final int id) { argument 180 this.str = str; 191 public String toString() { return str; }
|
/libcore/luni/src/main/java/java/lang/ |
H A D | StringBuilder.java | 89 * @param str 92 * if {@code str} is {@code null}. 94 public StringBuilder(String str) { argument 95 super(str); 211 * @param str 215 public StringBuilder append(String str) { argument 216 append0(str); 258 * @param str 270 public StringBuilder append(char[] str, int offset, int len) { argument 271 append0(str, offse 518 insert(int offset, String str) argument 564 insert(int offset, char[] str, int strOffset, int strLen) argument 636 replace(int start, int end, String str) argument [all...] |