Home
last modified time | relevance | path

Searched refs:lastIndexOf (Results 1 – 25 of 76) sorted by relevance

1234

/libcore/luni/src/test/java/libcore/java/util/
DOldAndroidArrayListTest.java52 assertEquals(4, array.lastIndexOf(new Integer(1))); in testArrayList()
54 assertTrue(array.lastIndexOf(new Integer(5)) < 0); in testArrayList()
68 assertEquals(2, array.lastIndexOf(new Integer(1))); in testArrayList()
70 assertTrue(array.lastIndexOf(new Integer(5)) < 0); in testArrayList()
77 assertTrue(array.lastIndexOf(new Integer(5)) < 0); in testArrayList()
/libcore/ojluni/src/main/java/sun/security/x509/
DRFC822Name.java203 int inNdx = thisName.lastIndexOf(inName); in constrains()
217 int ndx = inName.lastIndexOf(thisName); in constrains()
243 int atNdx = subtree.lastIndexOf('@'); in subtreeDepth()
250 for (; subtree.lastIndexOf('.') >= 0; i++) { in subtreeDepth()
251 subtree=subtree.substring(0,subtree.lastIndexOf('.')); in subtreeDepth()
DDNSName.java208 int inNdx = thisName.lastIndexOf(inName); in constrains()
214 int ndx = inName.lastIndexOf(thisName); in constrains()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DStringBufferTest.java568 assertEquals(0, sb.lastIndexOf("0")); in test_lastIndexOfLjava_lang_StringI()
569 assertEquals(0, sb.lastIndexOf("012")); in test_lastIndexOfLjava_lang_StringI()
570 assertEquals(-1, sb.lastIndexOf("02")); in test_lastIndexOfLjava_lang_StringI()
571 assertEquals(8, sb.lastIndexOf("89")); in test_lastIndexOfLjava_lang_StringI()
573 assertEquals(0, sb.lastIndexOf("0"), 0); in test_lastIndexOfLjava_lang_StringI()
574 assertEquals(0, sb.lastIndexOf("012"), 0); in test_lastIndexOfLjava_lang_StringI()
575 assertEquals(-1, sb.lastIndexOf("02"), 0); in test_lastIndexOfLjava_lang_StringI()
576 assertEquals(8, sb.lastIndexOf("89"), 0); in test_lastIndexOfLjava_lang_StringI()
578 assertEquals(-1, sb.lastIndexOf("0"), 5); in test_lastIndexOfLjava_lang_StringI()
579 assertEquals(-1, sb.lastIndexOf("012"), 5); in test_lastIndexOfLjava_lang_StringI()
[all …]
DString2Test.java585 assertEquals("Failed to return correct index", 5, hw1.lastIndexOf('W')); in test_lastIndexOfI()
587 .lastIndexOf('Z')); in test_lastIndexOfI()
589 .lastIndexOf(0x10000)); in test_lastIndexOfI()
597 assertEquals("Failed to return correct index", 5, hw1.lastIndexOf('W', in test_lastIndexOfII()
600 .lastIndexOf('W', 4)); in test_lastIndexOfII()
602 .lastIndexOf('Z', 9)); in test_lastIndexOfII()
611 assertEquals("Returned incorrect index", 5, hw1.lastIndexOf("World")); in test_lastIndexOfLjava_lang_String()
613 .lastIndexOf("HeKKKKKKKK")); in test_lastIndexOfLjava_lang_String()
622 assertEquals("Returned incorrect index", 5, hw1.lastIndexOf("World", 9)); in test_lastIndexOfLjava_lang_StringI()
623 int result = hw1.lastIndexOf("Hello", 2); in test_lastIndexOfLjava_lang_StringI()
[all …]
DStringBuilderTest.java1384 assertEquals(0, sb.lastIndexOf("0")); in test_lastIndexOfLjava_lang_String()
1385 assertEquals(0, sb.lastIndexOf("012")); in test_lastIndexOfLjava_lang_String()
1386 assertEquals(-1, sb.lastIndexOf("02")); in test_lastIndexOfLjava_lang_String()
1387 assertEquals(8, sb.lastIndexOf("89")); in test_lastIndexOfLjava_lang_String()
1390 sb.lastIndexOf(null); in test_lastIndexOfLjava_lang_String()
1403 assertEquals(0, sb.lastIndexOf("0")); in test_lastIndexOfLjava_lang_StringI()
1404 assertEquals(0, sb.lastIndexOf("012")); in test_lastIndexOfLjava_lang_StringI()
1405 assertEquals(-1, sb.lastIndexOf("02")); in test_lastIndexOfLjava_lang_StringI()
1406 assertEquals(8, sb.lastIndexOf("89")); in test_lastIndexOfLjava_lang_StringI()
1408 assertEquals(0, sb.lastIndexOf("0"), 0); in test_lastIndexOfLjava_lang_StringI()
[all …]
/libcore/ojluni/src/main/java/java/lang/
DStringBuilder.java390 public int lastIndexOf(String str) { in lastIndexOf() method in StringBuilder
391 return super.lastIndexOf(str); in lastIndexOf()
395 public int lastIndexOf(String str, int fromIndex) { in lastIndexOf() method in StringBuilder
396 return super.lastIndexOf(str, fromIndex); in lastIndexOf()
DString.java1604 public int lastIndexOf(int ch) { in lastIndexOf() method in String
1605 return lastIndexOf(ch, length() - 1); in lastIndexOf()
1642 public int lastIndexOf(int ch, int fromIndex) { in lastIndexOf() method in String
1846 public int lastIndexOf(String str) { in lastIndexOf() method in String
1847 return lastIndexOf(str, length()); in lastIndexOf()
1866 public int lastIndexOf(String str, int fromIndex) { in lastIndexOf() method in String
1868 return lastIndexOf(this, str, fromIndex); in lastIndexOf()
1880 private static int lastIndexOf(String source, String target, int fromIndex) { in lastIndexOf() method in String
1938 static int lastIndexOf(char[] source, int sourceOffset, int sourceCount, in lastIndexOf() method in String
1940 return lastIndexOf(source, sourceOffset, sourceCount, in lastIndexOf()
[all …]
/libcore/ojluni/annotations/hiddenapi/java/lang/
DString.java225 public int lastIndexOf(int ch) { in lastIndexOf() method in String
229 public int lastIndexOf(int ch, int fromIndex) { in lastIndexOf() method in String
270 public int lastIndexOf(java.lang.String str) { in lastIndexOf() method in String
274 public int lastIndexOf(java.lang.String str, int fromIndex) { in lastIndexOf() method in String
278 private static int lastIndexOf( in lastIndexOf() method in String
283 static int lastIndexOf( in lastIndexOf() method in String
293 static int lastIndexOf( in lastIndexOf() method in String
DAbstractStringBuilder.java246 public int lastIndexOf(java.lang.String str) { in lastIndexOf() method in AbstractStringBuilder
250 public int lastIndexOf(java.lang.String str, int fromIndex) { in lastIndexOf() method in AbstractStringBuilder
/libcore/luni/src/test/java/tests/org/w3c/dom/
DDOMTestCase.java111 int lastPound = actual.lastIndexOf("#"); in assertURIEquals()
124 int lastQuestion = uri.lastIndexOf("?"); in assertURIEquals()
165 int finalSlash = actualPath.lastIndexOf("/"); in assertURIEquals()
176 int finalPeriod = actualFile.lastIndexOf("."); in assertURIEquals()
/libcore/ojluni/src/main/java/sun/reflect/misc/
DReflectUtil.java146 int b = cname.lastIndexOf('[') + 2; in checkPackageAccess()
151 int i = cname.lastIndexOf('.'); in checkPackageAccess()
255 int i = name.lastIndexOf('.'); in isNonPublicProxyClass()
/libcore/ojluni/src/main/java/java/text/
DMergeCollation.java267 oldIndex = patterns.lastIndexOf(newEntry); in fixEntry()
274 oldIndex = patterns.lastIndexOf(newEntry); in fixEntry()
317 oldIndex = patterns.lastIndexOf(entry); in findLastEntry()
320 oldIndex = patterns.lastIndexOf(entry); in findLastEntry()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DAbstractListTest.java330 assertEquals(-1, al.lastIndexOf(5)); in test_lastIndexOfLjava_lang_Object()
331 assertEquals(6, al.lastIndexOf(2)); in test_lastIndexOfLjava_lang_Object()
466 sub.lastIndexOf(10); in test_subListII2()
536 .lastIndexOf(new Integer(6))); in test_lastIndexOf_Ljava_lang_Object()
538 .lastIndexOf(new Integer(4))); in test_lastIndexOf_Ljava_lang_Object()
540 list.lastIndexOf(null)); in test_lastIndexOf_Ljava_lang_Object()
543 list.lastIndexOf(null)); in test_lastIndexOf_Ljava_lang_Object()
DVectorTest.java803 assertEquals("Failed to return correct index", 8, v.lastIndexOf("Test")); in test_lastIndexOfLjava_lang_Object()
807 + tVector.lastIndexOf(null), tVector.lastIndexOf(null) == 40); in test_lastIndexOfLjava_lang_Object()
817 0, tVector.lastIndexOf("Test 0", 0)); in test_lastIndexOfLjava_lang_ObjectI()
818 assertTrue("Found Object outside of index", (tVector.lastIndexOf( in test_lastIndexOfLjava_lang_ObjectI()
824 + tVector.lastIndexOf(null, 15), in test_lastIndexOfLjava_lang_ObjectI()
825 tVector.lastIndexOf(null, 15) == -1); in test_lastIndexOfLjava_lang_ObjectI()
827 + tVector.lastIndexOf(null, 45), in test_lastIndexOfLjava_lang_ObjectI()
828 tVector.lastIndexOf(null, 45) == 40); in test_lastIndexOfLjava_lang_ObjectI()
830 assertEquals(-1, tVector.lastIndexOf("Test 98", -1)); in test_lastIndexOfLjava_lang_ObjectI()
831 assertEquals(-1, tVector.lastIndexOf("Test 98", 0)); in test_lastIndexOfLjava_lang_ObjectI()
[all …]
/libcore/ojluni/src/main/java/java/net/
DURLStreamHandler.java194 if (ind != authority.lastIndexOf('@')) { in parseURL()
288 int ind = path.lastIndexOf('/'); in parseURL()
338 } else if (i > 0 && (limit = path.lastIndexOf('/', i - 1)) >= 0 && in parseURL()
349 if ((limit = path.lastIndexOf('/', i - 1)) >= 0) { in parseURL()
604 int at = host.lastIndexOf('@'); in setURL()
617 int q = file.lastIndexOf('?'); in setURL()
/libcore/ojluni/src/main/java/java/util/
DStack.java131 int i = lastIndexOf(o); in search()
/libcore/ojluni/src/main/java/sun/invoke/util/
DVerifyAccess.java293 int dot = name1.lastIndexOf('.'); in isSamePackage()
294 if (dot != name2.lastIndexOf('.')) in isSamePackage()
/libcore/ojluni/src/main/java/sun/reflect/
DReflection.java226 int lastDot1 = name1.lastIndexOf('.'); in isSameClassPackage()
227 int lastDot2 = name2.lastIndexOf('.'); in isSameClassPackage()
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/
DHandler.java46 while((indexOfBang = spec.lastIndexOf('!', indexOfBang)) != -1) { in indexOfBangSlash()
199 int lastSlash = ctxFile.lastIndexOf('/'); in parseContextSpec()
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DString.annotated.java124 public int lastIndexOf(int ch) { throw new RuntimeException("Stub!"); } in lastIndexOf() method in String
126 public int lastIndexOf(int ch, int fromIndex) { throw new RuntimeException("Stub!"); } in lastIndexOf() method in String
132 public int lastIndexOf(@libcore.util.NonNull java.lang.String str) { throw new RuntimeException("St… in lastIndexOf() method in String
134 public int lastIndexOf(@libcore.util.NonNull java.lang.String str, int fromIndex) { throw new Runti… in lastIndexOf() method in String
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
DDocumentTypeImpl.java50 int prefixSeparator = qualifiedName.lastIndexOf(":"); in DocumentTypeImpl()
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/
DCopyOnWriteArrayList.java79 private static int lastIndexOf(java.lang.Object o, java.lang.Object[] elements, int index) { in lastIndexOf() method in CopyOnWriteArrayList
95 public int lastIndexOf(java.lang.Object o) { in lastIndexOf() method in CopyOnWriteArrayList
99 public int lastIndexOf(E e, int index) { in lastIndexOf() method in CopyOnWriteArrayList
/libcore/dom/src/test/java/org/w3c/domts/
DDOMTestCase.java687 int lastPound = actual.lastIndexOf("#"); in assertURIEquals()
700 int lastQuestion = uri.lastIndexOf("?"); in assertURIEquals()
741 int finalSlash = actualPath.lastIndexOf("/"); in assertURIEquals()
752 int finalPeriod = actualFile.lastIndexOf("."); in assertURIEquals()
/libcore/ojluni/src/main/java/sun/misc/
DJarIndex.java178 if((pos = fileName.lastIndexOf("/")) != -1) { in get()
201 if((pos = fileName.lastIndexOf("/")) != -1) { in add()

1234