Home
last modified time | relevance | path

Searched refs:indexOf (Results 1 – 25 of 163) sorted by relevance

1234567

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/
DInvalidPreferencesFormatExceptionTest.java47 assertTrue(e.getMessage().indexOf("root") < 0); in testInvalidPreferencesFormatExceptionStringThrowable()
48 assertTrue(e.getMessage().indexOf(t.getClass().getName()) < 0); in testInvalidPreferencesFormatExceptionStringThrowable()
49 assertTrue(e.getMessage().indexOf("msg") >= 0); in testInvalidPreferencesFormatExceptionStringThrowable()
60 assertTrue(e.getMessage().indexOf("root") >= 0);
61 assertTrue(e.getMessage().indexOf(t.getClass().getName()) >= 0);
DBackingStoreExceptionTest.java44 assertTrue(e.getMessage().indexOf(t.getClass().getName()) >= 0); in testBackingStoreExceptionThrowable()
45 assertTrue(e.getMessage().indexOf("msg") >= 0); in testBackingStoreExceptionThrowable()
/libcore/luni/src/main/java/java/util/
DStringTokenizer.java113 if (delimiters.indexOf(string.charAt(i), 0) >= 0) { in countTokens()
156 if (delimiters.indexOf(string.charAt(i), 0) == -1) in hasMoreTokens()
190 if (delimiters.indexOf(string.charAt(position), 0) >= 0) in nextToken()
193 if (delimiters.indexOf(string.charAt(position), 0) >= 0) in nextToken()
198 while (i < length && delimiters.indexOf(string.charAt(i), 0) >= 0) in nextToken()
203 if (delimiters.indexOf(string.charAt(position), 0) >= 0) in nextToken()
/libcore/luni/src/test/java/libcore/java/util/logging/
DOldXMLFormatterTest.java45 .indexOf("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>"); in testXMLFormatter()
46 int dtdPos = result.indexOf("<!DOCTYPE log SYSTEM \"logger.dtd\">"); in testXMLFormatter()
47 int rootPos = result.indexOf("<log>"); in testXMLFormatter()
56 .getTail(handler).indexOf("/log>") > 0); in testXMLFormatter()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
DCodingErrorActionTest.java58 assertTrue(CodingErrorAction.IGNORE.toString().indexOf("IGNORE") != -1); in testToString()
59 assertTrue(CodingErrorAction.REPLACE.toString().indexOf("REPLACE") != -1); in testToString()
60 assertTrue(CodingErrorAction.REPORT.toString().indexOf("REPORT") != -1); in testToString()
DUnsupportedCharsetExceptionTest.java38 assertTrue(ex.getMessage().indexOf("impossible") != -1); in testConstructor()
43 assertTrue(ex.getMessage().indexOf("ascii") != -1); in testConstructor()
53 assertTrue(ex.getMessage().indexOf("null") != -1); in testConstructor()
DUnmappableCharacterExceptionTest.java38 assertTrue(ex.getMessage().indexOf("3") != -1); in testConstructor()
43 assertTrue(ex.getMessage().indexOf("-3") != -1); in testConstructor()
48 assertTrue(ex.getMessage().indexOf("0") != -1); in testConstructor()
DIllegalCharsetNameExceptionTest.java38 assertTrue(ex.getMessage().indexOf("impossible") != -1); in testConstructor()
43 assertTrue(ex.getMessage().indexOf("ascii") != -1); in testConstructor()
53 assertTrue(ex.getMessage().indexOf("null") != -1); in testConstructor()
DMalformedInputExceptionTest.java38 assertTrue(ex.getMessage().indexOf("3") != -1); in testConstructor()
43 assertTrue(ex.getMessage().indexOf("-3") != -1); in testConstructor()
48 assertTrue(ex.getMessage().indexOf("0") != -1); in testConstructor()
DCoderResultTest.java58 assertTrue(CoderResult.OVERFLOW.toString().indexOf("OVERFLOW") != -1); in testConstants()
78 assertTrue(CoderResult.UNDERFLOW.toString().indexOf("UNDERFLOW") != -1); in testConstants()
258 assertTrue(CoderResult.OVERFLOW.toString().indexOf("OVERFLOW") != -1); in testToString()
259 assertTrue(CoderResult.UNDERFLOW.toString().indexOf("UNDERFLOW") != -1); in testToString()
261 .indexOf("666") != -1); in testToString()
262 assertTrue(CoderResult.unmappableForLength(666).toString().indexOf( in testToString()
/libcore/luni/src/test/java/libcore/java/util/
DOldAndroidArrayListTest.java51 assertEquals(0, array.indexOf(new Integer(1))); in testArrayList()
53 assertTrue(array.indexOf(new Integer(5)) < 0); in testArrayList()
67 assertEquals(0, array.indexOf(new Integer(1))); in testArrayList()
69 assertTrue(array.indexOf(new Integer(5)) < 0); in testArrayList()
76 assertTrue(array.indexOf(new Integer(5)) < 0); in testArrayList()
/libcore/luni/src/main/java/libcore/net/url/
DJarHandler.java67 if (spec.indexOf("!/") == -1 && (file.indexOf("!/") == -1)) { in parseURL()
73 file = file.substring(0, file.indexOf('!') + 1) + spec; in parseURL()
75 int idx = file.indexOf('!'); in parseURL()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DString2Test.java534 assertEquals("Invalid index returned", 1, hw1.indexOf('e')); in test_indexOfI()
535 assertEquals("Invalid index returned", 1, "a\ud800\udc00".indexOf(0x10000)); in test_indexOfI()
543 assertEquals("Invalid character index returned", 5, hw1.indexOf('W', 2)); in test_indexOfII()
544 assertEquals("Invalid index returned", 2, "ab\ud800\udc00".indexOf(0x10000, 1)); in test_indexOfII()
552 assertTrue("Failed to find string", hw1.indexOf("World") > 0); in test_indexOfLjava_lang_String()
553 assertTrue("Failed to find string", !(hw1.indexOf("ZZ") > 0)); in test_indexOfLjava_lang_String()
561 assertTrue("Failed to find string", hw1.indexOf("World", 0) > 0); in test_indexOfLjava_lang_StringI()
562 assertTrue("Found string outside index", !(hw1.indexOf("Hello", 6) > 0)); in test_indexOfLjava_lang_StringI()
564 hello1.indexOf("", -5)); in test_indexOfLjava_lang_StringI()
565 assertEquals("Reported wrong error code", 5, hello1.indexOf("", 5)); in test_indexOfLjava_lang_StringI()
[all …]
DStringBufferTest.java538 assertEquals(0, sb.indexOf("0")); in test_IndexOfStringInt()
539 assertEquals(0, sb.indexOf("012")); in test_IndexOfStringInt()
540 assertEquals(-1, sb.indexOf("02")); in test_IndexOfStringInt()
541 assertEquals(8, sb.indexOf("89")); in test_IndexOfStringInt()
543 assertEquals(0, sb.indexOf("0"), 0); in test_IndexOfStringInt()
544 assertEquals(0, sb.indexOf("012"), 0); in test_IndexOfStringInt()
545 assertEquals(-1, sb.indexOf("02"), 0); in test_IndexOfStringInt()
546 assertEquals(8, sb.indexOf("89"), 0); in test_IndexOfStringInt()
548 assertEquals(-1, sb.indexOf("0"), 5); in test_IndexOfStringInt()
549 assertEquals(-1, sb.indexOf("012"), 5); in test_IndexOfStringInt()
[all …]
/libcore/luni/src/main/java/java/util/regex/
DSplitter.java46 if (len == 1 && METACHARACTERS.indexOf(ch) == -1) { in fastSplit()
52 if (METACHARACTERS.indexOf(ch) == -1) { in fastSplit()
71 while (separatorCount + 1 != limit && (end = input.indexOf(ch, begin)) != -1) { in fastSplit()
95 end = input.indexOf(ch, begin); in fastSplit()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DInvalidClassExceptionTest.java58 returnedMessage.indexOf(className) >= 0 in test_ConstructorLjava_lang_StringLjava_lang_String()
59 && returnedMessage.indexOf(message) >= 0); in test_ConstructorLjava_lang_StringLjava_lang_String()
/libcore/luni/src/test/java/tests/security/cert/
DCRLExceptionTest.java99 .indexOf(toS) != -1)); in testCRLException05()
143 .indexOf(toS) != -1)); in testCRLException08()
163 .indexOf(msgs[i]) != -1); in testCRLException09()
166 .indexOf(toS) != -1); in testCRLException09()
DCertStoreExceptionTest.java101 .indexOf(toS) != -1)); in testCertStoreException05()
145 .indexOf(toS) != -1)); in testCertStoreException08()
165 .indexOf(msgs[i]) != -1); in testCertStoreException09()
168 .indexOf(toS) != -1); in testCertStoreException09()
DCertificateEncodingExceptionTest.java106 .indexOf(toS) != -1)); in testCertificateEncodingException05()
152 .indexOf(toS) != -1)); in testCertificateEncodingException08()
172 .indexOf(msgs[i]) != -1); in testCertificateEncodingException09()
175 .indexOf(toS) != -1); in testCertificateEncodingException09()
DCertificateParsingExceptionTest.java104 .indexOf(toS) != -1)); in testCertificateParsingException05()
150 .indexOf(toS) != -1)); in testCertificateParsingException08()
170 .indexOf(msgs[i]) != -1); in testCertificateParsingException09()
173 .indexOf(toS) != -1); in testCertificateParsingException09()
DCertificateExceptionTest.java103 .indexOf(toS) != -1)); in testCertificateException05()
147 .indexOf(toS) != -1)); in testCertificateException08()
167 .indexOf(msgs[i]) != -1); in testCertificateException09()
170 .indexOf(toS) != -1); in testCertificateException09()
DCertPathBuilderExceptionTest.java104 .indexOf(toS) != -1)); in testCertPathBuilderException05()
148 .indexOf(toS) != -1)); in testCertPathBuilderException08()
168 .indexOf(msgs[i]) != -1); in testCertPathBuilderException09()
171 .indexOf(toS) != -1); in testCertPathBuilderException09()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DSSLExceptionTest.java84 .indexOf(toS) != -1)); in testSSLException04()
127 .indexOf(toS) != -1)); in testSSLException07()
147 .indexOf(msgs[i]) != -1); in testSSLException08()
150 .indexOf(toS) != -1); in testSSLException08()
/libcore/luni/src/test/java/tests/security/spec/
DInvalidKeySpecExceptionTest.java103 .indexOf(toS) != -1)); in testInvalidKeySpecException05()
147 .indexOf(toS) != -1)); in testInvalidKeySpecException08()
167 .indexOf(msgs[i]) != -1); in testInvalidKeySpecException09()
170 .indexOf(toS) != -1); in testInvalidKeySpecException09()
/libcore/luni/src/main/java/org/xml/sax/helpers/
DAttributeListImpl.java161 int i = names.indexOf(name); in removeAttribute()
264 return getType(names.indexOf(name)); in getType()
277 return getValue(names.indexOf(name)); in getValue()

1234567