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

12 3 4 5 6 7 8 91011>>

  /external/guava/guava-gwt/test-super/com/google/common/primitives/super/com/google/common/primitives/
BytesTest.java 61 assertEquals(-1, Bytes.indexOf(EMPTY, (byte) 1));
62 assertEquals(-1, Bytes.indexOf(ARRAY1, (byte) 2));
63 assertEquals(-1, Bytes.indexOf(ARRAY234, (byte) 1));
64 assertEquals(0, Bytes.indexOf(
66 assertEquals(0, Bytes.indexOf(ARRAY234, (byte) 2));
67 assertEquals(1, Bytes.indexOf(ARRAY234, (byte) 3));
68 assertEquals(2, Bytes.indexOf(ARRAY234, (byte) 4));
69 assertEquals(1, Bytes.indexOf(
75 assertEquals(0, Bytes.indexOf(EMPTY, EMPTY));
76 assertEquals(0, Bytes.indexOf(ARRAY234, EMPTY))
    [all...]
CharsTest.java 107 assertEquals(-1, Chars.indexOf(EMPTY, (char) 1));
108 assertEquals(-1, Chars.indexOf(ARRAY1, (char) 2));
109 assertEquals(-1, Chars.indexOf(ARRAY234, (char) 1));
110 assertEquals(0, Chars.indexOf(
112 assertEquals(0, Chars.indexOf(ARRAY234, (char) 2));
113 assertEquals(1, Chars.indexOf(ARRAY234, (char) 3));
114 assertEquals(2, Chars.indexOf(ARRAY234, (char) 4));
115 assertEquals(1, Chars.indexOf(
121 assertEquals(0, Chars.indexOf(EMPTY, EMPTY));
122 assertEquals(0, Chars.indexOf(ARRAY234, EMPTY))
    [all...]
BooleansTest.java 70 assertEquals(-1, Booleans.indexOf(EMPTY, ARRAY_FALSE));
71 assertEquals(-1, Booleans.indexOf(ARRAY_FALSE, ARRAY_FALSE_TRUE));
72 assertEquals(0, Booleans.indexOf(ARRAY_FALSE_FALSE, ARRAY_FALSE));
73 assertEquals(0, Booleans.indexOf(ARRAY_FALSE, ARRAY_FALSE));
74 assertEquals(0, Booleans.indexOf(ARRAY_FALSE_TRUE, ARRAY_FALSE));
75 assertEquals(1, Booleans.indexOf(ARRAY_FALSE_TRUE, ARRAY_TRUE));
76 assertEquals(0, Booleans.indexOf(ARRAY_TRUE, new boolean[0]));
80 assertEquals(-1, Booleans.indexOf(EMPTY, false));
81 assertEquals(-1, Booleans.indexOf(ARRAY_FALSE, true));
82 assertEquals(-1, Booleans.indexOf(ARRAY_FALSE_FALSE, true))
    [all...]
DoublesTest.java 100 assertEquals(-1, Doubles.indexOf(EMPTY, (double) 1));
101 assertEquals(-1, Doubles.indexOf(ARRAY1, (double) 2));
102 assertEquals(-1, Doubles.indexOf(ARRAY234, (double) 1));
103 assertEquals(0, Doubles.indexOf(
105 assertEquals(0, Doubles.indexOf(ARRAY234, (double) 2));
106 assertEquals(1, Doubles.indexOf(ARRAY234, (double) 3));
107 assertEquals(2, Doubles.indexOf(ARRAY234, (double) 4));
108 assertEquals(1, Doubles.indexOf(
114 1, Doubles.indexOf(new double[] {5.0, value}, value));
116 assertEquals(-1, Doubles.indexOf(new double[] {5.0, NaN}, NaN))
    [all...]
FloatsTest.java 97 assertEquals(-1, Floats.indexOf(EMPTY, (float) 1));
98 assertEquals(-1, Floats.indexOf(ARRAY1, (float) 2));
99 assertEquals(-1, Floats.indexOf(ARRAY234, (float) 1));
100 assertEquals(0, Floats.indexOf(
102 assertEquals(0, Floats.indexOf(ARRAY234, (float) 2));
103 assertEquals(1, Floats.indexOf(ARRAY234, (float) 3));
104 assertEquals(2, Floats.indexOf(ARRAY234, (float) 4));
105 assertEquals(1, Floats.indexOf(
111 Floats.indexOf(new float[] {5f, value}, value));
113 assertEquals(-1, Floats.indexOf(new float[] {5f, NaN}, NaN))
    [all...]
  /external/guava/guava-tests/test/com/google/common/primitives/
BytesTest.java 63 assertEquals(-1, Bytes.indexOf(EMPTY, (byte) 1));
64 assertEquals(-1, Bytes.indexOf(ARRAY1, (byte) 2));
65 assertEquals(-1, Bytes.indexOf(ARRAY234, (byte) 1));
66 assertEquals(0, Bytes.indexOf(
68 assertEquals(0, Bytes.indexOf(ARRAY234, (byte) 2));
69 assertEquals(1, Bytes.indexOf(ARRAY234, (byte) 3));
70 assertEquals(2, Bytes.indexOf(ARRAY234, (byte) 4));
71 assertEquals(1, Bytes.indexOf(
77 assertEquals(0, Bytes.indexOf(EMPTY, EMPTY));
78 assertEquals(0, Bytes.indexOf(ARRAY234, EMPTY))
    [all...]
BooleansTest.java 73 assertEquals(-1, Booleans.indexOf(EMPTY, ARRAY_FALSE));
74 assertEquals(-1, Booleans.indexOf(ARRAY_FALSE, ARRAY_FALSE_TRUE));
75 assertEquals(0, Booleans.indexOf(ARRAY_FALSE_FALSE, ARRAY_FALSE));
76 assertEquals(0, Booleans.indexOf(ARRAY_FALSE, ARRAY_FALSE));
77 assertEquals(0, Booleans.indexOf(ARRAY_FALSE_TRUE, ARRAY_FALSE));
78 assertEquals(1, Booleans.indexOf(ARRAY_FALSE_TRUE, ARRAY_TRUE));
79 assertEquals(0, Booleans.indexOf(ARRAY_TRUE, new boolean[0]));
83 assertEquals(-1, Booleans.indexOf(EMPTY, false));
84 assertEquals(-1, Booleans.indexOf(ARRAY_FALSE, true));
85 assertEquals(-1, Booleans.indexOf(ARRAY_FALSE_FALSE, true))
    [all...]
  /external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/
StringExtensions.cs 55 public static int indexOf( this string str, char value )
57 return str.IndexOf( value );
61 public static int indexOf( this string str, char value, int startIndex )
63 return str.IndexOf( value, startIndex );
67 public static int indexOf( this string str, string value )
69 return str.IndexOf( value );
73 public static int indexOf( this string str, string value, int startIndex )
75 return str.IndexOf( value, startIndex );
  /external/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/
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/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/
ECUtils.java 28 if (curveName.indexOf(' ') > 0)
30 curveName = curveName.substring(curveName.indexOf(' ') + 1);
  /external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/layout/
ModuleWriter.java 130 if(what.equals("script") && inputText.indexOf("Script=") >= 0){
131 previousTotalScripts = Integer.parseInt(inputText.substring(inputText.indexOf("=")+1));
132 }else if(what.equals("languages") && inputText.indexOf("Language=") >= 0){
133 previousTotalLanguages = Integer.parseInt(inputText.substring(inputText.indexOf("=")+1));
134 }else if(what.equals("script") && inputText.indexOf("Scripts={") >= 0){
135 while((versionToAdd=reader.readLine()).indexOf("}") == -1){
138 }else if(what.equals("languages") && inputText.indexOf("Languages={") >= 0){
139 while((versionToAdd=reader.readLine()).indexOf("}") == -1){
  /external/jacoco/jacoco-maven-plugin.test/it/it-check-fails-halt/
verify.bsh 17 if ( buildLog.indexOf( "Coverage checks have not been met." ) < 0 ) {
21 if ( buildLog.indexOf( "methods missed count is 1, but expected maximum is 0" ) < 0 ) {
  /external/jacoco/jacoco-maven-plugin.test/it/it-check-fails-no-halt/
verify.bsh 17 if ( buildLog.indexOf( "Coverage checks have not been met." ) < 0 ) {
21 if ( buildLog.indexOf( "methods missed count is 1, but expected maximum is 0" ) < 0 ) {
  /external/jacoco/jacoco-maven-plugin.test/it/it-merge-passes/
verify.bsh 16 if ( buildLog.indexOf( "Loading execution data file" ) < 0 ) {
19 if ( buildLog.indexOf( "Writing merged execution data to" ) < 0 ) {
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/io/pem/
PemReader.java 38 int index = line.indexOf('-');
60 if (line.indexOf(":") >= 0)
62 int index = line.indexOf(':');
71 if (line.indexOf(endMarker) != -1)
  /external/hamcrest/library/src/org/hamcrest/text/
StringContains.java 17 return s.indexOf(substring) >= 0;
  /external/libgdx/extensions/gdx-jnigen/src/com/badlogic/gdx/jnigen/parsing/
JniHeaderCMethodParser.java 27 int index = headerFile.indexOf(C_METHOD_MARKER);
33 index = headerFile.indexOf(C_METHOD_MARKER, method.endIndex);
39 int headEnd = headerFile.indexOf('(', start);
45 int argsEnd = headerFile.indexOf(')', argsStart);
  /external/snakeyaml/src/test/java/org/pyyaml/
PyMarkTest.java 44 assertTrue("Must only have one '\n'.", snippet.indexOf("\n") > -1);
45 assertEquals("Must only have only one '\n'.", snippet.indexOf("\n"),
51 int dataPosition = data.indexOf("*");
52 int pointerPosition = pointer.indexOf("^");
  /external/v8/test/mjsunit/regress/
regress-crbug-407946.js 7 function f(n) { return [0].indexOf((n - n) + 0); }
  /external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/util/
ListOrganizer.java 49 int refIndex = list.indexOf(reference);
62 int refIndex = list.indexOf(reference);
70 //int widgetIndex = widgetOrder.indexOf(key);
79 int widgetIndex = list.indexOf(key);
94 int widgetIndex = list.indexOf(key);
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/
InvalidPreferencesFormatExceptionTest.java 47 assertTrue(e.getMessage().indexOf("root") < 0);
48 assertTrue(e.getMessage().indexOf(t.getClass().getName()) < 0);
49 assertTrue(e.getMessage().indexOf("msg") >= 0);
60 assertTrue(e.getMessage().indexOf("root") >= 0);
61 assertTrue(e.getMessage().indexOf(t.getClass().getName()) >= 0);
  /libcore/luni/src/test/java/libcore/java/util/
OldAndroidArrayListTest.java 51 assertEquals(0, array.indexOf(new Integer(1)));
53 assertTrue(array.indexOf(new Integer(5)) < 0);
67 assertEquals(0, array.indexOf(new Integer(1)));
69 assertTrue(array.indexOf(new Integer(5)) < 0);
76 assertTrue(array.indexOf(new Integer(5)) < 0);
  /packages/apps/Email/tests/src/com/android/emailcommon/utility/
TextUtilitiesTests.java 147 int knownEnd = text.indexOf('@') + 2;
149 // indexOf will return -1, so we'll get 1 as knownEnd
208 assertEquals(text.indexOf("visi"), ssb.getSpanStart(span));
209 assertEquals(text.indexOf("bl>e"), ssb.getSpanEnd(span));
219 assertEquals(text.indexOf("search word"), ssb.getSpanStart(span));
220 assertEquals(text.indexOf(" word"), ssb.getSpanEnd(span));
222 assertEquals(text.indexOf("search result"), ssb.getSpanStart(span));
223 assertEquals(text.indexOf(" result"), ssb.getSpanEnd(span));
235 assertEquals(text.indexOf("should"), ssb.getSpanStart(span));
236 assertEquals(text.indexOf(" be"), ssb.getSpanEnd(span))
    [all...]
  /frameworks/opt/chips/tests/src/com/android/ex/chips/
ChipsTest.java 189 int firstStart = mEditable.toString().indexOf(first);
191 int secondStart = mEditable.toString().indexOf(second);
197 assertEquals(editableString.indexOf(extra), -1);
198 assertEquals(editableString.indexOf(first), firstStart);
199 assertEquals(editableString.indexOf(second), secondStart - extra.length());
207 firstStart = mEditable.toString().indexOf(first);
226 int firstStart = mEditable.toString().indexOf(first);
228 int secondStart = mEditable.toString().indexOf(second);
234 assertEquals(editableString.indexOf(extra), -1);
235 assertEquals(editableString.indexOf(first), firstStart)
    [all...]
  /frameworks/base/core/tests/utiltests/src/com/android/internal/util/
ArrayUtilsTest.java 50 assertEquals(0, ArrayUtils.indexOf(new Object[] { A, B, C }, A));
51 assertEquals(1, ArrayUtils.indexOf(new Object[] { A, B, C }, B));
52 assertEquals(2, ArrayUtils.indexOf(new Object[] { A, B, C }, C));
53 assertEquals(-1, ArrayUtils.indexOf(new Object[] { A, B, C }, D));
55 assertEquals(-1, ArrayUtils.indexOf(new Object[] { A, B, C }, null));
56 assertEquals(-1, ArrayUtils.indexOf(new Object[] { }, A));
57 assertEquals(-1, ArrayUtils.indexOf(new Object[] { }, null));
59 assertEquals(0, ArrayUtils.indexOf(new Object[] { null, null }, null));
60 assertEquals(1, ArrayUtils.indexOf(new Object[] { A, null, B }, null));
61 assertEquals(2, ArrayUtils.indexOf(new Object[] { A, null, B }, B))
    [all...]

Completed in 2150 milliseconds

12 3 4 5 6 7 8 91011>>