Searched refs:lastIndexOf (Results 1 - 25 of 50) sorted by relevance

12

/libcore/luni/src/main/java/java/net/
H A DDefaultFileNameMap.java31 int lastCharInExtension = filename.lastIndexOf('#');
35 int firstCharInExtension = filename.lastIndexOf('.') + 1;
37 if (firstCharInExtension > filename.lastIndexOf('/')) {
H A DURLClassLoader.java273 int pos = name.lastIndexOf("/");
382 int pos = name.lastIndexOf("/");
428 int sepIdx = file.lastIndexOf("!/");
738 int position = partialName.lastIndexOf('/');
739 if ((position = partialName.lastIndexOf('/')) != -1) {
860 int sepIdx = file.lastIndexOf("!/");
991 int jarIndex = file.lastIndexOf("!/") - 1;
992 int index = file.lastIndexOf("/", jarIndex) + 1;
994 index = file.lastIndexOf(
H A DCookieManager.java202 int lastSlash = path.lastIndexOf('/'); // -1 yields the empty string
H A DURL.java284 if (host != null && (index = host.lastIndexOf('@')) > -1) {
548 if ((index = authority.lastIndexOf('@')) > -1) {
/libcore/dalvik/src/main/java/dalvik/system/
H A DDalvikLogging.java43 int lastPeriod = loggerName.lastIndexOf(".");
/libcore/luni/src/test/java/libcore/java/util/
H A DOldAndroidArrayListTest.java52 assertEquals(4, array.lastIndexOf(new Integer(1)));
54 assertTrue(array.lastIndexOf(new Integer(5)) < 0);
68 assertEquals(2, array.lastIndexOf(new Integer(1)));
70 assertTrue(array.lastIndexOf(new Integer(5)) < 0);
77 assertTrue(array.lastIndexOf(new Integer(5)) < 0);
/libcore/luni/src/main/java/javax/security/auth/x500/
H A DX500Principal.java230 while (-1 != (equalIndex = resultName.lastIndexOf("=", fromIndex))) {
231 int commaIndex = resultName.lastIndexOf(",", equalIndex);
254 while (-1 != (equalIndex = resultName.lastIndexOf("=", fromIndex))) {
255 subsidyEqualIndex = subsidyName.lastIndexOf("=",
257 int commaIndex = resultName.lastIndexOf(",", equalIndex);
306 while (-1 != (equalIndex = sbName.lastIndexOf("=", fromIndex))) {
307 int commaIndex = sbName.lastIndexOf(",", equalIndex);
/libcore/luni/src/main/java/java/util/
H A DList.java212 public int lastIndexOf(Object object); method in interface:List
H A DVector.java518 * @see #lastIndexOf(Object)
519 * @see #lastIndexOf(Object, int)
540 * @see #lastIndexOf(Object)
541 * @see #lastIndexOf(Object, int)
639 public synchronized int lastIndexOf(Object object) { method in class:Vector
640 return lastIndexOf(object, elementCount - 1);
660 public synchronized int lastIndexOf(Object object, int location) { method in class:Vector
/libcore/luni/src/main/java/libcore/net/url/
H A DJarHandler.java76 String tmpFile = file.substring(idx + 1, file.lastIndexOf('/') + 1) + spec;
H A DUrlUtils.java65 int prevSegmentStart = path.lastIndexOf('/', segmentStart - 2) + 1;
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/
H A DASN1GeneralizedTime.java93 while (((nullId = temp.lastIndexOf('0', currLength = temp.length() - 1)) != -1)
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
H A DDocumentTypeImpl.java50 int prefixSeparator = qualifiedName.lastIndexOf(":");
/libcore/luni/src/test/java/tests/org/w3c/dom/
H A DDOMTestCase.java111 int lastPound = actual.lastIndexOf("#");
124 int lastQuestion = uri.lastIndexOf("?");
165 int finalSlash = actualPath.lastIndexOf("/");
176 int finalPeriod = actualFile.lastIndexOf(".");
/libcore/luni/src/main/java/java/util/concurrent/
H A DCopyOnWriteArrayList.java55 * #lastIndexOf}) and methods for conditional adds ({@link #addIfAbsent} and
160 public int lastIndexOf(E object, int to) { method in class:CopyOnWriteArrayList
162 return lastIndexOf(object, snapshot, 0, to);
165 public int lastIndexOf(Object object) { method in class:CopyOnWriteArrayList
167 return lastIndexOf(object, snapshot, 0, snapshot.length);
424 static int lastIndexOf(Object o, Object[] data, int from, int to) { method in class:CopyOnWriteArrayList
533 @Override public int lastIndexOf(Object object) { method in class:CopyOnWriteArrayList.CowSubList
537 int result = CopyOnWriteArrayList.lastIndexOf(object, snapshot, slice.from, slice.to);
/libcore/luni/src/test/java/tests/api/java/util/
H A DVectorTest.java728 * java.util.Vector#lastIndexOf(java.lang.Object)
731 // Test for method int java.util.Vector.lastIndexOf(java.lang.Object)
736 assertEquals("Failed to return correct index", 8, v.lastIndexOf("Test"));
739 assertTrue("Incorrect lastIndexOf returned for null: "
740 + tVector.lastIndexOf(null), tVector.lastIndexOf(null) == 40);
744 * java.util.Vector#lastIndexOf(java.lang.Object, int)
747 // Test for method int java.util.Vector.lastIndexOf(java.lang.Object,
750 0, tVector.lastIndexOf("Test 0", 0));
751 assertTrue("Found Object outside of index", (tVector.lastIndexOf(
[all...]
H A DAbstractListTest.java253 assertEquals(-1, al.lastIndexOf(5));
254 assertEquals(6, al.lastIndexOf(2));
H A DLinkedListTest.java332 * java.util.LinkedList#lastIndexOf(java.lang.Object)
336 // java.util.LinkedList.lastIndexOf(java.lang.Object)
339 100, ll.lastIndexOf(objArray[99]));
341 .lastIndexOf(new Object()));
345 + ll.lastIndexOf(null), ll.lastIndexOf(null) == 24);
592 assertEquals("offer() should add an element as the last one", origSize, ll.lastIndexOf(objArray[0]));
H A DArrayListTest.java401 * java.util.ArrayList#lastIndexOf(java.lang.Object)
404 // Test for method int java.util.ArrayList.lastIndexOf(java.lang.Object)
407 100, alist.lastIndexOf(objArray[99]));
409 .lastIndexOf(new Object()));
412 assertTrue("Wrong lastIndexOf for null. Wanted 50 got: "
413 + alist.lastIndexOf(null), alist.lastIndexOf(null) == 50);
/libcore/dom/src/test/java/org/w3c/domts/
H A DDOMTestCase.java687 int lastPound = actual.lastIndexOf("#");
700 int lastQuestion = uri.lastIndexOf("?");
741 int finalSlash = actualPath.lastIndexOf("/");
752 int finalPeriod = actualFile.lastIndexOf(".");
/libcore/luni/src/main/java/java/lang/
H A DStringBuffer.java656 public synchronized int lastIndexOf(String subString, int start) { method in class:StringBuffer
657 return super.lastIndexOf(subString, start);
/libcore/libart/src/main/java/java/lang/
H A DString.java1059 public int lastIndexOf(int c) { method in class:String
1079 public int lastIndexOf(int c, int start) { method in class:String
1105 return lastIndexOf(needle, start);
1120 public int lastIndexOf(String string) { method in class:String
1121 // Use count instead of count - 1 so lastIndexOf("") returns count
1122 return lastIndexOf(string, count);
1139 public int lastIndexOf(String subString, int start) { method in class:String
1152 int i = lastIndexOf(firstChar, start);
/libcore/libdvm/src/main/java/java/lang/
H A DString.java1094 public int lastIndexOf(int c) { method in class:String
1114 public int lastIndexOf(int c, int start) { method in class:String
1140 return lastIndexOf(needle, start);
1155 public int lastIndexOf(String string) { method in class:String
1156 // Use count instead of count - 1 so lastIndexOf("") returns count
1157 return lastIndexOf(string, count);
1174 public int lastIndexOf(String subString, int start) { method in class:String
1187 int i = lastIndexOf(firstChar, start);
H A DClass.java960 int dot = name.lastIndexOf('.');
992 int dot = pkg.lastIndexOf('.');
1024 int dot = pkg.lastIndexOf('.');
1231 int dot = name.lastIndexOf('.');
/libcore/libdvm/src/main/java/java/lang/reflect/
H A DProxy.java120 int last = name.lastIndexOf('.');

Completed in 419 milliseconds

12