/libcore/luni/src/main/java/java/net/ |
D | DefaultFileNameMap.java | 31 int lastCharInExtension = filename.lastIndexOf('#'); in getContentTypeFor() 35 int firstCharInExtension = filename.lastIndexOf('.') + 1; in getContentTypeFor() 37 if (firstCharInExtension > filename.lastIndexOf('/')) { in getContentTypeFor()
|
D | URLClassLoader.java | 273 int pos = name.lastIndexOf("/"); in findResources() 382 int pos = name.lastIndexOf("/"); in findResource() 428 int sepIdx = file.lastIndexOf("!/"); in createURLSubJarHandler() 738 int position = partialName.lastIndexOf('/'); in findClass() 739 if ((position = partialName.lastIndexOf('/')) != -1) { in findClass() 860 int sepIdx = file.lastIndexOf("!/"); in createURLJarHandler() 991 int jarIndex = file.lastIndexOf("!/") - 1; in getInternalURLs() 992 int index = file.lastIndexOf("/", jarIndex) + 1; in getInternalURLs() 994 index = file.lastIndexOf( in getInternalURLs()
|
D | URL.java | 284 if (host != null && (index = host.lastIndexOf('@')) > -1) { in fixURL() 548 if ((index = authority.lastIndexOf('@')) > -1) { in readObject()
|
/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/luni/src/main/java/javax/security/auth/x500/ |
D | X500Principal.java | 230 while (-1 != (equalIndex = resultName.lastIndexOf("=", fromIndex))) { in getName() 231 int commaIndex = resultName.lastIndexOf(",", equalIndex); in getName() 254 while (-1 != (equalIndex = resultName.lastIndexOf("=", fromIndex))) { in getName() 255 subsidyEqualIndex = subsidyName.lastIndexOf("=", in getName() 257 int commaIndex = resultName.lastIndexOf(",", equalIndex); in getName() 306 while (-1 != (equalIndex = sbName.lastIndexOf("=", fromIndex))) { in substituteNameFromMap() 307 int commaIndex = sbName.lastIndexOf(",", equalIndex); in substituteNameFromMap()
|
/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 | 583 assertEquals("Failed to return correct index", 5, hw1.lastIndexOf('W')); in test_lastIndexOfI() 585 .lastIndexOf('Z')); in test_lastIndexOfI() 587 .lastIndexOf(0x10000)); in test_lastIndexOfI() 595 assertEquals("Failed to return correct index", 5, hw1.lastIndexOf('W', in test_lastIndexOfII() 598 .lastIndexOf('W', 4)); in test_lastIndexOfII() 600 .lastIndexOf('Z', 9)); in test_lastIndexOfII() 609 assertEquals("Returned incorrect index", 5, hw1.lastIndexOf("World")); in test_lastIndexOfLjava_lang_String() 611 .lastIndexOf("HeKKKKKKKK")); in test_lastIndexOfLjava_lang_String() 620 assertEquals("Returned incorrect index", 5, hw1.lastIndexOf("World", 9)); in test_lastIndexOfLjava_lang_StringI() 621 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/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/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 | 793 assertEquals("Failed to return correct index", 8, v.lastIndexOf("Test")); in test_lastIndexOfLjava_lang_Object() 797 + tVector.lastIndexOf(null), tVector.lastIndexOf(null) == 40); in test_lastIndexOfLjava_lang_Object() 807 0, tVector.lastIndexOf("Test 0", 0)); in test_lastIndexOfLjava_lang_ObjectI() 808 assertTrue("Found Object outside of index", (tVector.lastIndexOf( in test_lastIndexOfLjava_lang_ObjectI() 814 + tVector.lastIndexOf(null, 15), in test_lastIndexOfLjava_lang_ObjectI() 815 tVector.lastIndexOf(null, 15) == -1); in test_lastIndexOfLjava_lang_ObjectI() 817 + tVector.lastIndexOf(null, 45), in test_lastIndexOfLjava_lang_ObjectI() 818 tVector.lastIndexOf(null, 45) == 40); in test_lastIndexOfLjava_lang_ObjectI() 820 assertEquals(-1, tVector.lastIndexOf("Test 98", -1)); in test_lastIndexOfLjava_lang_ObjectI() 821 assertEquals(-1, tVector.lastIndexOf("Test 98", 0)); in test_lastIndexOfLjava_lang_ObjectI() [all …]
|
D | LinkedListTest.java | 411 100, ll.lastIndexOf(objArray[99])); in test_lastIndexOfLjava_lang_Object() 413 .lastIndexOf(new Object())); in test_lastIndexOfLjava_lang_Object() 417 + ll.lastIndexOf(null), ll.lastIndexOf(null) == 24); in test_lastIndexOfLjava_lang_Object() 665 …assertEquals("offer() should add an element as the last one", origSize, ll.lastIndexOf(objArray[0]… in test_offer()
|
/libcore/dalvik/src/main/java/dalvik/system/ |
D | DalvikLogging.java | 43 int lastPeriod = loggerName.lastIndexOf("."); in loggerNameToTag()
|
/libcore/luni/src/main/java/java/util/ |
D | List.java | 212 public int lastIndexOf(Object object); in lastIndexOf() method
|
D | Vector.java | 639 public synchronized int lastIndexOf(Object object) { in lastIndexOf() method 640 return lastIndexOf(object, elementCount - 1); in lastIndexOf() 660 public synchronized int lastIndexOf(Object object, int location) { in lastIndexOf() method
|
/libcore/luni/src/main/java/java/util/concurrent/ |
D | CopyOnWriteArrayList.java | 160 public int lastIndexOf(E object, int to) { in lastIndexOf() method in CopyOnWriteArrayList 162 return lastIndexOf(object, snapshot, 0, to); in lastIndexOf() 165 public int lastIndexOf(Object object) { in lastIndexOf() method in CopyOnWriteArrayList 167 return lastIndexOf(object, snapshot, 0, snapshot.length); in lastIndexOf() 424 static int lastIndexOf(Object o, Object[] data, int from, int to) { in lastIndexOf() method in CopyOnWriteArrayList 533 @Override public int lastIndexOf(Object object) { in lastIndexOf() method in CopyOnWriteArrayList.CowSubList 537 int result = CopyOnWriteArrayList.lastIndexOf(object, snapshot, slice.from, slice.to); in lastIndexOf()
|
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/ |
D | ASN1GeneralizedTime.java | 93 while (((nullId = temp.lastIndexOf('0', currLength = temp.length() - 1)) != -1) in setEncodingContent()
|
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/ |
D | DocumentTypeImpl.java | 50 int prefixSeparator = qualifiedName.lastIndexOf(":"); in DocumentTypeImpl()
|
/libcore/luni/src/main/java/libcore/net/url/ |
D | JarHandler.java | 76 String tmpFile = file.substring(idx + 1, file.lastIndexOf('/') + 1) + spec; in parseURL()
|
D | UrlUtils.java | 65 int prevSegmentStart = path.lastIndexOf('/', segmentStart - 2) + 1; in canonicalizePath()
|
D | FtpURLConnection.java | 142 int idx = url.getFile().lastIndexOf('/'); in cd() 435 + url.getFile().substring(url.getFile().lastIndexOf('/') + 1, in sendFile()
|
/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/luni/src/main/java/java/lang/ |
D | StringBuffer.java | 656 public synchronized int lastIndexOf(String subString, int start) { in lastIndexOf() method in StringBuffer 657 return super.lastIndexOf(subString, start); in lastIndexOf()
|
/libcore/libart/src/main/java/java/lang/ |
D | String.java | 989 public int lastIndexOf(int c) { in lastIndexOf() method in String 1009 public int lastIndexOf(int c, int start) { in lastIndexOf() method in String 1035 return lastIndexOf(needle, start); in lastIndexOfSupplementary() 1046 public int lastIndexOf(String string) { in lastIndexOf() method in String 1048 return lastIndexOf(string, count); in lastIndexOf() 1060 public int lastIndexOf(String subString, int start) { in lastIndexOf() method in String 1073 int i = lastIndexOf(firstChar, start); in lastIndexOf()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | CopyOnWriteArrayListTest.java | 299 assertEquals(3, full.lastIndexOf(one)); in testLastIndexOf1() 300 assertEquals(-1, full.lastIndexOf(six)); in testLastIndexOf1() 310 assertEquals(3, full.lastIndexOf(one, 4)); in testLastIndexOf2() 311 assertEquals(-1, full.lastIndexOf(three, 3)); in testLastIndexOf2()
|