HomeSort by relevance Sort by last modified time
    Searched refs:indexOf (Results 1 - 25 of 1217) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /dalvik/dx/src/junit/runner/
SimpleTestCollector.java 17 classFileName.indexOf('$') < 0 &&
18 classFileName.indexOf("Test") > 0;
  /external/junit/src/junit/runner/
SimpleTestCollector.java 17 classFileName.indexOf('$') < 0 &&
18 classFileName.indexOf("Test") > 0;
  /frameworks/base/test-runner/src/junit/runner/
SimpleTestCollector.java 18 classFileName.indexOf('$') < 0 &&
19 classFileName.indexOf("Test") > 0;
  /dalvik/tests/020-string/src/
Main.java 66 baseStr.indexOf('T') + ":" +
67 subStr.indexOf('T') + ":" +
68 subStr.indexOf('u') + ":" +
69 baseStr.indexOf('!') + ":" +
70 subStr.indexOf('y') + ":" +
71 subStr.indexOf('d') + ":" +
72 baseStr.indexOf('x') + ":" +
73 subStr.indexOf('x', 0) + ":" +
74 subStr.indexOf('x', -1) + ":" +
75 subStr.indexOf('x', 200) + ":"
    [all...]
  /external/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/
XMLFormatterTest.java 60 assertTrue(result.indexOf("<message>" + rb.getString("pattern")
62 assertTrue(result.indexOf("<key>pattern</key>") > 0);
66 assertTrue(result.indexOf("<message>" + rb.getString("msg")
68 assertTrue(result.indexOf("<key>msg</key>") > 0);
72 assertTrue(result.indexOf("<message>pattern {0, number}</message>") > 0);
73 assertTrue(result.indexOf("<key>") < 0);
78 assertTrue(result.indexOf("<message>bad key</message>") > 0);
79 assertTrue(result.indexOf("<key>") < 0);
96 assertTrue(output.indexOf("<record>") >= 0);
97 assertTrue(output.indexOf("<date>") >= 0)
    [all...]
SimpleFormatterTest.java 65 assertTrue(str.indexOf(localeMsg) > 0);
73 assertTrue(str.indexOf(localeMsg) < 0);
99 assertTrue(str.indexOf(String.valueOf(cal.get(Calendar.YEAR))) >= 0);
100 assertTrue(str.indexOf("class") > 0);
101 assertTrue(str.indexOf("method") > 0);
102 assertTrue(str.indexOf("100") > 0);
103 assertTrue(str.indexOf(t.toString()) > 0);
104 assertTrue(str.indexOf(Level.FINE.getLocalizedName()) > 0);
  /external/v8/test/mjsunit/
string-indexof-1.js 30 assertEquals(0, s.indexOf("t"));
31 assertEquals(3, s.indexOf("t", 1));
32 assertEquals(5, s.indexOf("t", 4));
33 assertEquals(1, s.indexOf("e"));
34 assertEquals(2, s.indexOf("s"));
36 assertEquals(5, s.indexOf("test", 4));
37 assertEquals(5, s.indexOf("test", 5));
38 assertEquals(10, s.indexOf("test", 6));
39 assertEquals(0, s.indexOf("test", 0));
40 assertEquals(0, s.indexOf("test", -1))
    [all...]
array-indexing.js 49 // Array.prototype.indexOf.
53 assertEquals(-1, [].indexOf(1));
54 assertEquals(-1, array.indexOf(4));
55 assertEquals(-1, array.indexOf(3, array.length));
57 assertEquals(2, array.indexOf(3));
59 assertEquals(0, array.indexOf(1, -17));
61 assertEquals(3, array.indexOf(1, -11));
63 assertEquals(3, array.indexOf(1, 1));
64 assertEquals(3, array.indexOf(1, 3));
65 assertEquals(6, array.indexOf(1, 4))
    [all...]
debug-breakpoints.js 70 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]a=1;") > 0);
76 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]") < 0);
84 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]b=2;") > 0);
90 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]a=1;") > 0);
91 assertTrue(Debug.showBreakPoints(g).indexOf("[B1]b=2;") > 0);
97 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]a=1;") > 0);
98 assertTrue(Debug.showBreakPoints(g).indexOf("[B1]b=2;") > 0);
99 assertTrue(Debug.showBreakPoints(g).indexOf("[B2]}") > 0);
105 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]a=1;") > 0);
106 assertTrue(Debug.showBreakPoints(g).indexOf("[B1]}") > 0)
    [all...]
for-in-special-cases.js 77 assertTrue(-1 != elements.indexOf("0"));
78 assertTrue(-1 != elements.indexOf("1"));
79 assertTrue(-1 != elements.indexOf("2"));
80 assertTrue(-1 != elements.indexOf("3"));
103 assertTrue(-1 != elements.indexOf("0"));
104 assertTrue(-1 != elements.indexOf("1"));
105 assertTrue(-1 != elements.indexOf("2"));
106 assertTrue(-1 != elements.indexOf("7"));
107 assertTrue(-1 != elements.indexOf("foo"));
108 assertTrue(-1 != elements.indexOf("bar"))
    [all...]
  /external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/String/
15.5.4.6-2.js 24 ECMA Section: 15.5.4.6 String.prototype.indexOf( searchString, pos)
33 When the indexOf method is called with two arguments,
54 Note that the indexOf function is intentionally generic;
64 The length property of the indexOf method is 1
70 var TITLE = "String.protoype.indexOf";
92 this.indexOf = String.prototype.indexOf;
104 array[item++] = new TestCase( SECTION, "String.prototype.indexOf.length", 1, String.prototype.indexOf.length );
105 array[item++] = new TestCase( SECTION, "String.prototype.indexOf.length = null; String.prototype.indexOf.length", 1, eval("String.prototype.indexOf.lengt (…)
    [all...]
  /external/proguard/src/proguard/classfile/util/
ExternalTypeEnumeration.java 64 index = descriptor.indexOf(ClassConstants.EXTERNAL_METHOD_ARGUMENTS_OPEN) + 1;
84 index = descriptor.indexOf(ClassConstants.EXTERNAL_METHOD_ARGUMENTS_SEPARATOR,
90 index = descriptor.indexOf(ClassConstants.EXTERNAL_METHOD_ARGUMENTS_CLOSE,
104 return descriptor.substring(0, descriptor.indexOf(ClassConstants.EXTERNAL_METHOD_ARGUMENTS_OPEN)).trim();
  /external/webkit/Source/JavaScriptCore/tests/mozilla/js1_6/Array/
regress-310425-02.js 39 var summary = 'Array.indexOf/lastIndexOf edge cases';
47 actual = Array(1).indexOf(1);
  /external/proguard/src/proguard/util/
ListUtil.java 80 nextIndex = string.indexOf('\'', index + 1);
91 nextIndex = string.indexOf(',', index);
131 string.indexOf(' ') >= 0 ||
132 string.indexOf('@') >= 0 ||
133 string.indexOf('{') >= 0 ||
134 string.indexOf('}') >= 0 ||
135 string.indexOf('(') >= 0 ||
136 string.indexOf(')') >= 0 ||
137 string.indexOf(':') >= 0 ||
138 string.indexOf(';') >= 0 |
    [all...]
  /dalvik/tests/082-inline-execute/src/
Main.java 108 assert(str0.indexOf('a') == -1);
109 assert(str3.indexOf('a') == 0);
110 assert(str3.indexOf('b') == 1);
111 assert(str3.indexOf('c') == 2);
112 assert(str10.indexOf('j') == 9);
113 assert(str40.indexOf('a') == 0);
114 assert(str40.indexOf('b') == 38);
115 assert(str40.indexOf('c') == 39);
116 assert(str0.indexOf('a',20) == -1);
117 assert(str0.indexOf('a',0) == -1)
    [all...]
  /external/apache-harmony/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/
InvalidPreferencesFormatExceptionTest.java 49 assertTrue(e.getMessage().indexOf("root") < 0);
50 assertTrue(e.getMessage().indexOf(t.getClass().getName()) < 0);
51 assertTrue(e.getMessage().indexOf("msg") >= 0);
62 assertTrue(e.getMessage().indexOf("root") >= 0);
63 assertTrue(e.getMessage().indexOf(t.getClass().getName()) >= 0);
  /packages/apps/Email/tests/src/com/android/emailcommon/utility/
TextUtilitiesTests.java 144 int knownEnd = text.indexOf('@') + 2;
146 // indexOf will return -1, so we'll get 1 as knownEnd
205 assertEquals(text.indexOf("visi"), ssb.getSpanStart(span));
206 assertEquals(text.indexOf("bl>e"), ssb.getSpanEnd(span));
216 assertEquals(text.indexOf("search word"), ssb.getSpanStart(span));
217 assertEquals(text.indexOf(" word"), ssb.getSpanEnd(span));
219 assertEquals(text.indexOf("search result"), ssb.getSpanStart(span));
220 assertEquals(text.indexOf(" result"), ssb.getSpanEnd(span));
232 assertEquals(text.indexOf("should"), ssb.getSpanStart(span));
233 assertEquals(text.indexOf(" be"), ssb.getSpanEnd(span))
    [all...]
  /cts/tests/tests/widget/src/android/widget/cts/
AlphabetIndexerTest.java 94 int index = ALPHABET.indexOf('A');
98 index = ALPHABET.indexOf('C');
102 index = ALPHABET.indexOf('T');
106 index = ALPHABET.indexOf('X');
110 assertEquals(ALPHABET.indexOf('A'), indexer.getSectionForPosition(0));
111 assertEquals(ALPHABET.indexOf('C'), indexer.getSectionForPosition(2));
112 assertEquals(ALPHABET.indexOf('G'), indexer.getSectionForPosition(4));
113 assertEquals(ALPHABET.indexOf('J'), indexer.getSectionForPosition(6));
122 index = ALPHABET.indexOf('B');
126 index = ALPHABET.indexOf('M')
    [all...]
  /external/apache-harmony/nio_char/src/test/java/tests/api/java/nio/charset/
CodingErrorActionTest.java 58 assertTrue(CodingErrorAction.IGNORE.toString().indexOf("IGNORE") != -1);
59 assertTrue(CodingErrorAction.REPLACE.toString().indexOf("REPLACE") != -1);
60 assertTrue(CodingErrorAction.REPORT.toString().indexOf("REPORT") != -1);
  /libcore/luni/src/main/java/java/util/
StringTokenizer.java 113 if (delimiters.indexOf(string.charAt(i), 0) >= 0) {
156 if (delimiters.indexOf(string.charAt(i), 0) == -1)
190 if (delimiters.indexOf(string.charAt(position), 0) >= 0)
193 if (delimiters.indexOf(string.charAt(position), 0) >= 0)
198 while (i < length && delimiters.indexOf(string.charAt(i), 0) >= 0)
203 if (delimiters.indexOf(string.charAt(position), 0) >= 0)
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/
InvalidClassExceptionTest.java 58 returnedMessage.indexOf(className) >= 0
59 && returnedMessage.indexOf(message) >= 0);
  /external/proguard/src/proguard/obfuscate/
MappingReader.java 113 int arrowIndex = line.indexOf("->");
119 int colonIndex = line.indexOf(':', arrowIndex + 2);
148 int colonIndex1 = line.indexOf(':');
149 int colonIndex2 = colonIndex1 < 0 ? -1 : line.indexOf(':', colonIndex1 + 1);
150 int spaceIndex = line.indexOf(' ', colonIndex2 + 2);
151 int argumentIndex1 = line.indexOf('(', spaceIndex + 1);
152 int argumentIndex2 = argumentIndex1 < 0 ? -1 : line.indexOf(')', argumentIndex1 + 1);
153 int arrowIndex = line.indexOf("->", Math.max(spaceIndex, argumentIndex2) + 1);
  /external/bouncycastle/src/main/java/org/bouncycastle/util/io/pem/
PemReader.java 30 int index = line.indexOf('-');
52 if (line.indexOf(":") >= 0)
54 int index = line.indexOf(':');
63 if (line.indexOf(endMarker) != -1)
  /external/guava/src/com/google/common/collect/
ImmutableSortedAsList.java 37 // Override contains(), indexOf(), and lastIndexOf() to be O(log N) instead of
41 return set.indexOf(target) >= 0;
44 @Override public int indexOf(Object target) {
45 return set.indexOf(target);
49 return set.indexOf(target);
52 // The returned ImmutableSortedAsList maintains the contains(), indexOf(), and
  /external/webkit/Source/JavaScriptCore/tests/mozilla/js1_6/String/
regress-306591.js 63 actual = String.indexOf(null, 'l');
65 " String.indexOf(null, 'l')");
68 actual = String.indexOf(String(null), 'l');
70 " String.indexOf(String(null), 'l')");
88 actual = String.indexOf(undefined, 'd');
90 " String.indexOf(undefined, 'd')");
93 actual = String.indexOf(String(undefined), 'd');
95 " String.indexOf(String(undefined), 'd')");

Completed in 2435 milliseconds

1 2 3 4 5 6 7 8 91011>>