HomeSort by relevance Sort by last modified time
    Searched full:indexof (Results 1 - 25 of 5185) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /frameworks/base/core/tests/coretests/src/android/text/method/
WordIteratorTest.java 65 assertEquals(BreakIterator.DONE, wordIterator.preceding(text.indexOf('a')));
66 assertEquals(text.indexOf('a'), wordIterator.preceding(text.indexOf('c')));
67 assertEquals(text.indexOf('a'), wordIterator.preceding(text.indexOf('d')));
68 assertEquals(text.indexOf('d'), wordIterator.preceding(text.indexOf('e')));
69 assertEquals(text.indexOf('d'), wordIterator.preceding(text.indexOf('g')));
70 assertEquals(text.indexOf('g'), wordIterator.preceding(text.indexOf('h')))
    [all...]
  /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...]
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...]
debug-breakpoints.js 72 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...]
global-properties.js 33 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/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...]
  /external/doclava/src/com/google/doclava/
DocFile.java 62 int langStart = filename.indexOf("/" + t + "/");
64 int langEnd = filename.indexOf("/", langStart + 1);
195 if (filename.indexOf("design") == 0) {
199 } else if (filename.indexOf("develop") == 0) {
203 } else if (filename.indexOf("guide") == 0) {
206 if (filename.indexOf("guide/topics/manif") == 0) {
211 } else if (filename.indexOf("training") == 0) {
215 } else if (filename.indexOf("more") == 0) {
217 } else if (filename.indexOf("google") == 0) {
221 } else if (filename.indexOf("samples") == 0)
    [all...]
  /frameworks/base/test-runner/src/junit/runner/
SimpleTestCollector.java 18 classFileName.indexOf('$') < 0 &&
19 classFileName.indexOf("Test") > 0;
  /external/v8/test/mjsunit/harmony/
reflect-enumerate-special-cases.js 44 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...]
  /frameworks/base/core/tests/coretests/src/android/widget/
TextViewActivityMouseTest.java 76 mouseDragOnText(helloWorld.indexOf("llo"), helloWorld.indexOf("ld!")));
85 onView(withId(R.id.textview)).perform(mouseClickOnTextAtIndex(helloWorld.indexOf("w")));
97 mouseDragOnText( helloWorld.indexOf("ld!"), helloWorld.indexOf("llo")));
111 mouseClickOnTextAtIndex(text.indexOf("d"), MotionEvent.BUTTON_SECONDARY));
123 mouseDragOnText(text.indexOf("c"), text.indexOf("h")));
125 mouseClickOnTextAtIndex(text.indexOf("d"), MotionEvent.BUTTON_SECONDARY));
138 mouseClickOnTextAtIndex(text.indexOf("i"), MotionEvent.BUTTON_SECONDARY))
    [all...]
TextViewActivityTest.java 89 onView(withId(R.id.textview)).perform(clickOnTextAtIndex(helloWorld.indexOf("world")));
139 longPressOnTextAtIndex(helloWorld.indexOf("Kirk")));
150 onView(withId(R.id.textview)).perform(clickOnTextAtIndex(helloWorld.indexOf("big")));
163 longPressAndDragOnText(helloWorld.indexOf("little"), helloWorld.indexOf(" boy!")));
173 onView(withId(R.id.textview)).perform(longPressOnTextAtIndex(text.indexOf("e")));
176 longPressAndDragOnText(text.indexOf("e"), text.length()));
196 doubleClickOnTextAtIndex(helloWorld.indexOf("SuetYi")));
207 doubleTapAndDragOnText(helloWorld.indexOf("young"), helloWorld.indexOf(" girl!")))
    [all...]
  /external/v8/test/mjsunit/es6/
typedarray-indexing.js 21 // %TypedArray%.prototype.indexOf.
25 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))
    [all...]
  /external/v8/test/mjsunit/regress/
regress-crbug-381534.js 14 assertEquals(9, arr.indexOf(-(4/3)));
17 assertEquals(9, arr.indexOf(v));
20 assertEquals(8, arr.indexOf(obj));
25 assertEquals(index, arr.indexOf(0));
28 assertEquals(index, arr.indexOf(v));
regress-crbug-382513.js 7 function foo() { return [+0,false].indexOf(-(4/3)); }
regress-crbug-387636.js 8 [].indexOf(0x40000000);
  /cts/tests/tests/widget/src/android/widget/cts/
AlphabetIndexerTest.java 59 int index = ALPHABET.indexOf('A');
63 index = ALPHABET.indexOf('C');
67 index = ALPHABET.indexOf('T');
71 index = ALPHABET.indexOf('X');
75 assertEquals(ALPHABET.indexOf('A'), indexer.getSectionForPosition(0));
76 assertEquals(ALPHABET.indexOf('C'), indexer.getSectionForPosition(2));
77 assertEquals(ALPHABET.indexOf('G'), indexer.getSectionForPosition(4));
78 assertEquals(ALPHABET.indexOf('J'), indexer.getSectionForPosition(6));
87 index = ALPHABET.indexOf('B');
91 index = ALPHABET.indexOf('M')
    [all...]
  /external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.test.performance.ui/scripts/
Fingerprints.js 4 var idx=document.URL.indexOf("php?");
13 var idx=document.URL.indexOf("?");
17 idx=typeStr.indexOf("=");
  /external/guava/guava/src/com/google/common/collect/
ImmutableSortedAsList.java 48 // Override indexOf() and lastIndexOf() to be O(log N) instead of O(N).
50 @GwtIncompatible("ImmutableSortedSet.indexOf")
52 @Override public int indexOf(@Nullable Object target) {
53 int index = delegateCollection().indexOf(target);
63 @GwtIncompatible("ImmutableSortedSet.indexOf")
65 return indexOf(target);
71 return indexOf(target) >= 0;
76 * TODO(cpovirk): if we start to override indexOf/lastIndexOf under GWT, we'll want some way to
  /external/proguard/src/proguard/util/
ListUtil.java 87 nextIndex = string.indexOf('\'', index + 1);
98 nextIndex = string.indexOf(',', index);
138 string.indexOf(' ') >= 0 ||
139 string.indexOf('@') >= 0 ||
140 string.indexOf('{') >= 0 ||
141 string.indexOf('}') >= 0 ||
142 string.indexOf('(') >= 0 ||
143 string.indexOf(')') >= 0 ||
144 string.indexOf(':') >= 0 ||
145 string.indexOf(';') >= 0 |
    [all...]
  /art/test/020-string/src/
Main.java 71 baseStr.indexOf('T') + ":" +
72 subStr.indexOf('T') + ":" +
73 subStr.indexOf('u') + ":" +
74 baseStr.indexOf('!') + ":" +
75 subStr.indexOf('y') + ":" +
76 subStr.indexOf('d') + ":" +
77 baseStr.indexOf('x') + ":" +
78 subStr.indexOf('x', 0) + ":" +
79 subStr.indexOf('x', -1) + ":" +
80 subStr.indexOf('x', 200) + ":"
    [all...]
  /external/jacoco/jacoco-maven-plugin.test/it/it-report-nomatch/
verify.bsh 16 if ( buildLog.indexOf( "Classes in bundle " ) < 0 || buildLog.indexOf(" do no match with execution data." ) < 0 ) {
19 if ( buildLog.indexOf( "For report generation the same class files must be used as at runtime." ) < 0 ) {
22 if ( buildLog.indexOf( "Execution data for class Example does not match." ) < 0 ) {
  /external/v8/test/mjsunit/compiler/
regress-stacktrace-methods.js 57 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);
  /external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
ListIndexOfTester.java 28 * A generic JUnit test which tests {@code indexOf()} operations on a list.
37 return getList().indexOf(o);
41 return "indexOf";
50 assertEquals("indexOf(duplicate) should return index of first occurrence",
51 0, getList().indexOf(samples.e0));
  /external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.JavaExtensions/
StringExtensions.cs 54 public static int indexOf( string str, char value )
56 return str.IndexOf( value );
60 public static int indexOf( string str, char value, int startIndex )
62 return str.IndexOf( value, startIndex );
66 public static int indexOf( string str, string value )
68 return str.IndexOf( value );
72 public static int indexOf( string str, string value, int startIndex )
74 return str.IndexOf( value, startIndex );
98 int index = str.IndexOf( oldValue );

Completed in 1727 milliseconds

1 2 3 4 5 6 7 8 91011>>