Home
last modified time | relevance | path

Searched refs:indexOf (Results 1 – 25 of 1449) sorted by relevance

12345678910>>...58

/external/v8/test/mjsunit/
Dstring-indexof-1.js30 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 …]
Darray-indexing.js53 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));
68 assertEquals(3, undef_array.indexOf(undefined));
[all …]
Ddebug-breakpoints.js72 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]a=1;") > 0);
78 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]") < 0);
86 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]b=2;") > 0);
92 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]a=1;") > 0);
93 assertTrue(Debug.showBreakPoints(g).indexOf("[B1]b=2;") > 0);
99 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]a=1;") > 0);
100 assertTrue(Debug.showBreakPoints(g).indexOf("[B1]b=2;") > 0);
101 assertTrue(Debug.showBreakPoints(g).indexOf("[B2]}") > 0);
107 assertTrue(Debug.showBreakPoints(g).indexOf("[B0]a=1;") > 0);
108 assertTrue(Debug.showBreakPoints(g).indexOf("[B1]}") > 0);
[all …]
Dfor-in-special-cases.js77 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 …]
Dglobal-properties.js33 assertTrue(-1 < Object.keys(global).indexOf(key));
34 assertTrue(-1 < Object.getOwnPropertyNames(global).indexOf(key));
35 assertTrue(-1 == Object.getOwnPropertySymbols(global).indexOf(key));
48 assertTrue(-1 == Object.keys(global).indexOf(key));
49 assertTrue(-1 < Object.getOwnPropertyNames(global).indexOf(key));
50 assertTrue(-1 == Object.getOwnPropertySymbols(global).indexOf(key));
61 assertTrue(-1 == Object.keys(global).indexOf(key));
62 assertTrue(-1 == Object.getOwnPropertyNames(global).indexOf(key));
63 assertTrue(-1 < Object.getOwnPropertySymbols(global).indexOf(key));
/external/doclava/src/com/google/doclava/
DDocFile.java61 int langStart = filename.indexOf("/" + t + "/"); in getPathRoot()
63 int langEnd = filename.indexOf("/", langStart + 1); in getPathRoot()
194 if (filename.indexOf("design") == 0) { in writePage()
198 } else if (filename.indexOf("develop") == 0) { in writePage()
202 } else if (filename.indexOf("guide") == 0) { in writePage()
205 if (filename.indexOf("guide/topics/manif") == 0) { in writePage()
210 } else if (filename.indexOf("training") == 0) { in writePage()
214 } else if (filename.indexOf("more") == 0) { in writePage()
216 } else if (filename.indexOf("google") == 0) { in writePage()
220 } else if (filename.indexOf("samples") == 0) { in writePage()
[all …]
/external/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/
DXMLFormatterTest.java60 assertTrue(result.indexOf("<message>" + rb.getString("pattern") in testLocalFormat()
62 assertTrue(result.indexOf("<key>pattern</key>") > 0); in testLocalFormat()
66 assertTrue(result.indexOf("<message>" + rb.getString("msg") in testLocalFormat()
68 assertTrue(result.indexOf("<key>msg</key>") > 0); in testLocalFormat()
72 assertTrue(result.indexOf("<message>pattern {0, number}</message>") > 0); in testLocalFormat()
73 assertTrue(result.indexOf("<key>") < 0); in testLocalFormat()
78 assertTrue(result.indexOf("<message>bad key</message>") > 0); in testLocalFormat()
79 assertTrue(result.indexOf("<key>") < 0); in testLocalFormat()
96 assertTrue(output.indexOf("<record>") >= 0);
97 assertTrue(output.indexOf("<date>") >= 0);
[all …]
/external/v8/test/mjsunit/harmony/
Dreflect-enumerate-special-cases.js44 assertTrue(-1 != elements.indexOf("0"));
45 assertTrue(-1 != elements.indexOf("1"));
46 assertTrue(-1 != elements.indexOf("2"));
47 assertTrue(-1 != elements.indexOf("3"));
70 assertTrue(-1 != elements.indexOf("0"));
71 assertTrue(-1 != elements.indexOf("1"));
72 assertTrue(-1 != elements.indexOf("2"));
73 assertTrue(-1 != elements.indexOf("7"));
74 assertTrue(-1 != elements.indexOf("foo"));
75 assertTrue(-1 != elements.indexOf("bar"));
[all …]
/external/v8/test/mjsunit/es6/
Dtypedarray-indexing.js25 assertEquals(-1, new constructor([]).indexOf(1));
26 assertEquals(-1, array.indexOf(4));
27 assertEquals(-1, array.indexOf(3, array.length));
29 assertEquals(2, array.indexOf(3));
31 assertEquals(0, array.indexOf(1, -17));
33 assertEquals(3, array.indexOf(1, -11));
35 assertEquals(3, array.indexOf(1, 1));
36 assertEquals(3, array.indexOf(1, 3));
37 assertEquals(6, array.indexOf(1, 4));
40 assertEquals(1, array.indexOf.length);
[all …]
/external/jetty/src/java/org/eclipse/jetty/server/ssl/
DServletSSL.java67 else if (cipherSuite.indexOf("WITH_AES_256_") >= 0) in deduceKeyLength()
69 else if (cipherSuite.indexOf("WITH_RC4_128_") >= 0) in deduceKeyLength()
71 else if (cipherSuite.indexOf("WITH_AES_128_") >= 0) in deduceKeyLength()
73 else if (cipherSuite.indexOf("WITH_RC4_40_") >= 0) in deduceKeyLength()
75 else if (cipherSuite.indexOf("WITH_3DES_EDE_CBC_") >= 0) in deduceKeyLength()
77 else if (cipherSuite.indexOf("WITH_IDEA_CBC_") >= 0) in deduceKeyLength()
79 else if (cipherSuite.indexOf("WITH_RC2_CBC_40_") >= 0) in deduceKeyLength()
81 else if (cipherSuite.indexOf("WITH_DES40_CBC_") >= 0) in deduceKeyLength()
83 else if (cipherSuite.indexOf("WITH_DES_CBC_") >= 0) in deduceKeyLength()
/external/guava/guava-gwt/test-super/com/google/common/primitives/super/com/google/common/primitives/
DBytesTest.java61 assertEquals(-1, Bytes.indexOf(EMPTY, (byte) 1)); in testIndexOf()
62 assertEquals(-1, Bytes.indexOf(ARRAY1, (byte) 2)); in testIndexOf()
63 assertEquals(-1, Bytes.indexOf(ARRAY234, (byte) 1)); in testIndexOf()
64 assertEquals(0, Bytes.indexOf( in testIndexOf()
66 assertEquals(0, Bytes.indexOf(ARRAY234, (byte) 2)); in testIndexOf()
67 assertEquals(1, Bytes.indexOf(ARRAY234, (byte) 3)); in testIndexOf()
68 assertEquals(2, Bytes.indexOf(ARRAY234, (byte) 4)); in testIndexOf()
69 assertEquals(1, Bytes.indexOf( in testIndexOf()
75 assertEquals(0, Bytes.indexOf(EMPTY, EMPTY)); in testIndexOf_arrayTarget()
76 assertEquals(0, Bytes.indexOf(ARRAY234, EMPTY)); in testIndexOf_arrayTarget()
[all …]
DCharsTest.java107 assertEquals(-1, Chars.indexOf(EMPTY, (char) 1)); in testIndexOf()
108 assertEquals(-1, Chars.indexOf(ARRAY1, (char) 2)); in testIndexOf()
109 assertEquals(-1, Chars.indexOf(ARRAY234, (char) 1)); in testIndexOf()
110 assertEquals(0, Chars.indexOf( in testIndexOf()
112 assertEquals(0, Chars.indexOf(ARRAY234, (char) 2)); in testIndexOf()
113 assertEquals(1, Chars.indexOf(ARRAY234, (char) 3)); in testIndexOf()
114 assertEquals(2, Chars.indexOf(ARRAY234, (char) 4)); in testIndexOf()
115 assertEquals(1, Chars.indexOf( in testIndexOf()
121 assertEquals(0, Chars.indexOf(EMPTY, EMPTY)); in testIndexOf_arrayTarget()
122 assertEquals(0, Chars.indexOf(ARRAY234, EMPTY)); in testIndexOf_arrayTarget()
[all …]
DFloatsTest.java97 assertEquals(-1, Floats.indexOf(EMPTY, (float) 1)); in testIndexOf()
98 assertEquals(-1, Floats.indexOf(ARRAY1, (float) 2)); in testIndexOf()
99 assertEquals(-1, Floats.indexOf(ARRAY234, (float) 1)); in testIndexOf()
100 assertEquals(0, Floats.indexOf( in testIndexOf()
102 assertEquals(0, Floats.indexOf(ARRAY234, (float) 2)); in testIndexOf()
103 assertEquals(1, Floats.indexOf(ARRAY234, (float) 3)); in testIndexOf()
104 assertEquals(2, Floats.indexOf(ARRAY234, (float) 4)); in testIndexOf()
105 assertEquals(1, Floats.indexOf( in testIndexOf()
111 Floats.indexOf(new float[] {5f, value}, value)); in testIndexOf()
113 assertEquals(-1, Floats.indexOf(new float[] {5f, NaN}, NaN)); in testIndexOf()
[all …]
DDoublesTest.java100 assertEquals(-1, Doubles.indexOf(EMPTY, (double) 1)); in testIndexOf()
101 assertEquals(-1, Doubles.indexOf(ARRAY1, (double) 2)); in testIndexOf()
102 assertEquals(-1, Doubles.indexOf(ARRAY234, (double) 1)); in testIndexOf()
103 assertEquals(0, Doubles.indexOf( in testIndexOf()
105 assertEquals(0, Doubles.indexOf(ARRAY234, (double) 2)); in testIndexOf()
106 assertEquals(1, Doubles.indexOf(ARRAY234, (double) 3)); in testIndexOf()
107 assertEquals(2, Doubles.indexOf(ARRAY234, (double) 4)); in testIndexOf()
108 assertEquals(1, Doubles.indexOf( in testIndexOf()
114 1, Doubles.indexOf(new double[] {5.0, value}, value)); in testIndexOf()
116 assertEquals(-1, Doubles.indexOf(new double[] {5.0, NaN}, NaN)); in testIndexOf()
[all …]
DBooleansTest.java70 assertEquals(-1, Booleans.indexOf(EMPTY, ARRAY_FALSE)); in testIndexOf()
71 assertEquals(-1, Booleans.indexOf(ARRAY_FALSE, ARRAY_FALSE_TRUE)); in testIndexOf()
72 assertEquals(0, Booleans.indexOf(ARRAY_FALSE_FALSE, ARRAY_FALSE)); in testIndexOf()
73 assertEquals(0, Booleans.indexOf(ARRAY_FALSE, ARRAY_FALSE)); in testIndexOf()
74 assertEquals(0, Booleans.indexOf(ARRAY_FALSE_TRUE, ARRAY_FALSE)); in testIndexOf()
75 assertEquals(1, Booleans.indexOf(ARRAY_FALSE_TRUE, ARRAY_TRUE)); in testIndexOf()
76 assertEquals(0, Booleans.indexOf(ARRAY_TRUE, new boolean[0])); in testIndexOf()
80 assertEquals(-1, Booleans.indexOf(EMPTY, false)); in testIndexOf_arrays()
81 assertEquals(-1, Booleans.indexOf(ARRAY_FALSE, true)); in testIndexOf_arrays()
82 assertEquals(-1, Booleans.indexOf(ARRAY_FALSE_FALSE, true)); in testIndexOf_arrays()
[all …]
DShortsTest.java116 assertEquals(-1, Shorts.indexOf(EMPTY, (short) 1)); in testIndexOf()
117 assertEquals(-1, Shorts.indexOf(ARRAY1, (short) 2)); in testIndexOf()
118 assertEquals(-1, Shorts.indexOf(ARRAY234, (short) 1)); in testIndexOf()
119 assertEquals(0, Shorts.indexOf( in testIndexOf()
121 assertEquals(0, Shorts.indexOf(ARRAY234, (short) 2)); in testIndexOf()
122 assertEquals(1, Shorts.indexOf(ARRAY234, (short) 3)); in testIndexOf()
123 assertEquals(2, Shorts.indexOf(ARRAY234, (short) 4)); in testIndexOf()
124 assertEquals(1, Shorts.indexOf( in testIndexOf()
130 assertEquals(0, Shorts.indexOf(EMPTY, EMPTY)); in testIndexOf_arrayTarget()
131 assertEquals(0, Shorts.indexOf(ARRAY234, EMPTY)); in testIndexOf_arrayTarget()
[all …]
DLongsTest.java74 assertEquals(-1, Longs.indexOf(EMPTY, (long) 1)); in testIndexOf()
75 assertEquals(-1, Longs.indexOf(ARRAY1, (long) 2)); in testIndexOf()
76 assertEquals(-1, Longs.indexOf(ARRAY234, (long) 1)); in testIndexOf()
77 assertEquals(0, Longs.indexOf( in testIndexOf()
79 assertEquals(0, Longs.indexOf(ARRAY234, (long) 2)); in testIndexOf()
80 assertEquals(1, Longs.indexOf(ARRAY234, (long) 3)); in testIndexOf()
81 assertEquals(2, Longs.indexOf(ARRAY234, (long) 4)); in testIndexOf()
82 assertEquals(1, Longs.indexOf( in testIndexOf()
88 assertEquals(0, Longs.indexOf(EMPTY, EMPTY)); in testIndexOf_arrayTarget()
89 assertEquals(0, Longs.indexOf(ARRAY234, EMPTY)); in testIndexOf_arrayTarget()
[all …]
DIntsTest.java108 assertEquals(-1, Ints.indexOf(EMPTY, (int) 1)); in testIndexOf()
109 assertEquals(-1, Ints.indexOf(ARRAY1, (int) 2)); in testIndexOf()
110 assertEquals(-1, Ints.indexOf(ARRAY234, (int) 1)); in testIndexOf()
111 assertEquals(0, Ints.indexOf( in testIndexOf()
113 assertEquals(0, Ints.indexOf(ARRAY234, (int) 2)); in testIndexOf()
114 assertEquals(1, Ints.indexOf(ARRAY234, (int) 3)); in testIndexOf()
115 assertEquals(2, Ints.indexOf(ARRAY234, (int) 4)); in testIndexOf()
116 assertEquals(1, Ints.indexOf( in testIndexOf()
122 assertEquals(0, Ints.indexOf(EMPTY, EMPTY)); in testIndexOf_arrayTarget()
123 assertEquals(0, Ints.indexOf(ARRAY234, EMPTY)); in testIndexOf_arrayTarget()
[all …]
/external/guava/guava-tests/test/com/google/common/primitives/
DBytesTest.java63 assertEquals(-1, Bytes.indexOf(EMPTY, (byte) 1)); in testIndexOf()
64 assertEquals(-1, Bytes.indexOf(ARRAY1, (byte) 2)); in testIndexOf()
65 assertEquals(-1, Bytes.indexOf(ARRAY234, (byte) 1)); in testIndexOf()
66 assertEquals(0, Bytes.indexOf( in testIndexOf()
68 assertEquals(0, Bytes.indexOf(ARRAY234, (byte) 2)); in testIndexOf()
69 assertEquals(1, Bytes.indexOf(ARRAY234, (byte) 3)); in testIndexOf()
70 assertEquals(2, Bytes.indexOf(ARRAY234, (byte) 4)); in testIndexOf()
71 assertEquals(1, Bytes.indexOf( in testIndexOf()
77 assertEquals(0, Bytes.indexOf(EMPTY, EMPTY)); in testIndexOf_arrayTarget()
78 assertEquals(0, Bytes.indexOf(ARRAY234, EMPTY)); in testIndexOf_arrayTarget()
[all …]
DCharsTest.java110 assertEquals(-1, Chars.indexOf(EMPTY, (char) 1)); in testIndexOf()
111 assertEquals(-1, Chars.indexOf(ARRAY1, (char) 2)); in testIndexOf()
112 assertEquals(-1, Chars.indexOf(ARRAY234, (char) 1)); in testIndexOf()
113 assertEquals(0, Chars.indexOf( in testIndexOf()
115 assertEquals(0, Chars.indexOf(ARRAY234, (char) 2)); in testIndexOf()
116 assertEquals(1, Chars.indexOf(ARRAY234, (char) 3)); in testIndexOf()
117 assertEquals(2, Chars.indexOf(ARRAY234, (char) 4)); in testIndexOf()
118 assertEquals(1, Chars.indexOf( in testIndexOf()
124 assertEquals(0, Chars.indexOf(EMPTY, EMPTY)); in testIndexOf_arrayTarget()
125 assertEquals(0, Chars.indexOf(ARRAY234, EMPTY)); in testIndexOf_arrayTarget()
[all …]
DBooleansTest.java73 assertEquals(-1, Booleans.indexOf(EMPTY, ARRAY_FALSE)); in testIndexOf()
74 assertEquals(-1, Booleans.indexOf(ARRAY_FALSE, ARRAY_FALSE_TRUE)); in testIndexOf()
75 assertEquals(0, Booleans.indexOf(ARRAY_FALSE_FALSE, ARRAY_FALSE)); in testIndexOf()
76 assertEquals(0, Booleans.indexOf(ARRAY_FALSE, ARRAY_FALSE)); in testIndexOf()
77 assertEquals(0, Booleans.indexOf(ARRAY_FALSE_TRUE, ARRAY_FALSE)); in testIndexOf()
78 assertEquals(1, Booleans.indexOf(ARRAY_FALSE_TRUE, ARRAY_TRUE)); in testIndexOf()
79 assertEquals(0, Booleans.indexOf(ARRAY_TRUE, new boolean[0])); in testIndexOf()
83 assertEquals(-1, Booleans.indexOf(EMPTY, false)); in testIndexOf_arrays()
84 assertEquals(-1, Booleans.indexOf(ARRAY_FALSE, true)); in testIndexOf_arrays()
85 assertEquals(-1, Booleans.indexOf(ARRAY_FALSE_FALSE, true)); in testIndexOf_arrays()
[all …]
/external/ant-glob/src/org/apache/tools/ant/taskdefs/condition/
DOs.java261 boolean isWindows = OS_NAME.indexOf(FAMILY_WINDOWS) > -1; in isOs()
266 is9x = (OS_NAME.indexOf("95") >= 0 in isOs()
267 || OS_NAME.indexOf("98") >= 0 in isOs()
268 || OS_NAME.indexOf("me") >= 0 in isOs()
271 || OS_NAME.indexOf("ce") >= 0); in isOs()
281 isFamily = OS_NAME.indexOf(FAMILY_OS2) > -1; in isOs()
283 isFamily = OS_NAME.indexOf(FAMILY_NETWARE) > -1; in isOs()
287 isFamily = OS_NAME.indexOf(FAMILY_MAC) > -1 in isOs()
288 || OS_NAME.indexOf(DARWIN) > -1; in isOs()
290 isFamily = OS_NAME.indexOf("nonstop_kernel") > -1; in isOs()
[all …]
/external/proguard/src/proguard/util/
DListUtil.java87 nextIndex = string.indexOf('\'', index + 1); in commaSeparatedList()
98 nextIndex = string.indexOf(',', index); in commaSeparatedList()
138 string.indexOf(' ') >= 0 || in quotedString()
139 string.indexOf('@') >= 0 || in quotedString()
140 string.indexOf('{') >= 0 || in quotedString()
141 string.indexOf('}') >= 0 || in quotedString()
142 string.indexOf('(') >= 0 || in quotedString()
143 string.indexOf(')') >= 0 || in quotedString()
144 string.indexOf(':') >= 0 || in quotedString()
145 string.indexOf(';') >= 0 || in quotedString()
[all …]
/external/doclava/res/assets/templates/assets/
Ddoclava-developer-docs.js30 if ((agent.indexOf("mobile") != -1) || // android, iphone, ipod
31 (agent.indexOf("blackberry") != -1) ||
32 (agent.indexOf("webos") != -1) ||
33 (agent.indexOf("mini") != -1)) { // opera mini browsers
37 } else if (agent.indexOf("msie 6") != -1) {
106 var index = document.cookie.indexOf(myCookie);
109 var valEnd = document.cookie.indexOf(";", valStart);
132 if (location.href.indexOf("/reference/") != -1) {
134 } else if (location.href.indexOf("/guide/") != -1) {
136 } else if (location.href.indexOf("/resources/") != -1) {
[all …]
/external/v8/test/mjsunit/compiler/
Dregress-stacktrace-methods.js57 var p3 = stack.indexOf("at Hest.three");
58 var p2 = stack.indexOf("at Svin.two");
59 var p1 = stack.indexOf("at Hest.one");
65 assertTrue(stack.indexOf("38:56") != -1);
66 assertTrue(stack.indexOf("34:51") != -1);
67 assertTrue(stack.indexOf("36:38") != -1);
68 assertTrue(stack.indexOf("54:5") != -1);

12345678910>>...58