/libcore/luni/src/test/java/libcore/java/util/ |
D | OldAndroidArrayListTest.java | 52 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/ |
D | RFC822Name.java | 203 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()
|
D | DNSName.java | 208 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/ |
D | StringBufferTest.java | 568 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 …]
|
D | String2Test.java | 585 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 …]
|
D | StringBuilderTest.java | 1384 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/ |
D | StringBuilder.java | 390 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()
|
D | String.java | 1604 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/ |
D | String.java | 225 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
|
D | AbstractStringBuilder.java | 246 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/ |
D | DOMTestCase.java | 111 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/ |
D | ReflectUtil.java | 146 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/ |
D | MergeCollation.java | 267 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/ |
D | AbstractListTest.java | 330 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()
|
D | VectorTest.java | 803 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/ |
D | URLStreamHandler.java | 194 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/ |
D | Stack.java | 131 int i = lastIndexOf(o); in search()
|
/libcore/ojluni/src/main/java/sun/invoke/util/ |
D | VerifyAccess.java | 293 int dot = name1.lastIndexOf('.'); in isSamePackage() 294 if (dot != name2.lastIndexOf('.')) in isSamePackage()
|
/libcore/ojluni/src/main/java/sun/reflect/ |
D | Reflection.java | 226 int lastDot1 = name1.lastIndexOf('.'); in isSameClassPackage() 227 int lastDot2 = name2.lastIndexOf('.'); in isSameClassPackage()
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/ |
D | Handler.java | 46 while((indexOfBang = spec.lastIndexOf('!', indexOfBang)) != -1) { in indexOfBangSlash() 199 int lastSlash = ctxFile.lastIndexOf('/'); in parseContextSpec()
|
/libcore/ojluni/annotations/sdk/nullability/java/lang/ |
D | String.annotated.java | 124 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/ |
D | DocumentTypeImpl.java | 50 int prefixSeparator = qualifiedName.lastIndexOf(":"); in DocumentTypeImpl()
|
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/ |
D | CopyOnWriteArrayList.java | 79 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/ |
D | DOMTestCase.java | 687 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/ |
D | JarIndex.java | 178 if((pos = fileName.lastIndexOf("/")) != -1) { in get() 201 if((pos = fileName.lastIndexOf("/")) != -1) { in add()
|