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

12 3 4 5 6 7 8 91011>>

  /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 );
  /external/guava/guava/src/com/google/common/collect/
ImmutableSortedAsList.java 44 // Override contains(), indexOf(), and lastIndexOf() to be O(log N) instead of O(N).
48 return backingSet.indexOf(target) >= 0;
51 @Override public int indexOf(@Nullable Object target) {
52 return backingSet.indexOf(target);
56 return backingSet.indexOf(target);
59 // The returned ImmutableSortedAsList maintains the contains(), indexOf(), and
  /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/chromium_org/net/data/websocket/
connect_check.html 8 var hostBegin = href.indexOf('/') + 2;
14 var scheme = href.indexOf('https') >= 0 ? 'wss' : 'ws';
split_packet_check.html 8 var hostBegin = href.indexOf('/') + 2;
14 var scheme = href.indexOf('https') >= 0 ? 'wss' : 'ws';
  /external/chromium_org/chrome/common/extensions/docs/examples/api/downloads/download_open/
background.js 25 if (ids.indexOf(delta.id) < 0) {
29 ids.splice(ids.indexOf(delta.id), 1);
36 if (ids.indexOf(downloadId) >= 0) {
  /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);
  /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 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...]
  /frameworks/ex/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...]
  /external/guava/guava-tests/test/com/google/common/primitives/
DoublesTest.java 101 assertEquals(-1, Doubles.indexOf(EMPTY, (double) 1));
102 assertEquals(-1, Doubles.indexOf(ARRAY1, (double) 2));
103 assertEquals(-1, Doubles.indexOf(ARRAY234, (double) 1));
104 assertEquals(0, Doubles.indexOf(
106 assertEquals(0, Doubles.indexOf(ARRAY234, (double) 2));
107 assertEquals(1, Doubles.indexOf(ARRAY234, (double) 3));
108 assertEquals(2, Doubles.indexOf(ARRAY234, (double) 4));
109 assertEquals(1, Doubles.indexOf(
115 1, Doubles.indexOf(new double[] {5.0, value}, value));
117 assertEquals(-1, Doubles.indexOf(new double[] {5.0, NaN}, NaN))
    [all...]
FloatsTest.java 100 assertEquals(-1, Floats.indexOf(EMPTY, (float) 1));
101 assertEquals(-1, Floats.indexOf(ARRAY1, (float) 2));
102 assertEquals(-1, Floats.indexOf(ARRAY234, (float) 1));
103 assertEquals(0, Floats.indexOf(
105 assertEquals(0, Floats.indexOf(ARRAY234, (float) 2));
106 assertEquals(1, Floats.indexOf(ARRAY234, (float) 3));
107 assertEquals(2, Floats.indexOf(ARRAY234, (float) 4));
108 assertEquals(1, Floats.indexOf(
114 Floats.indexOf(new float[] {5f, value}, value));
116 assertEquals(-1, Floats.indexOf(new float[] {5f, NaN}, NaN))
    [all...]
  /frameworks/base/docs/html/sdk/
download.jd 14 if (location.indexOf('?v=') != -1) {
15 var filename = location.substring(location.indexOf('=')+1,location.length);
55 if (loc.indexOf('?v=') != -1) {
56 var filename = loc.substring(loc.indexOf('=')+1,loc.length);
82 var filename = loc.substring(loc.indexOf('=')+1,loc.length);
83 version = filename.substring(filename.indexOf('.')-1,filename.lastIndexOf('.'));
  /external/chromium_org/v8/test/mjsunit/compiler/
regress-stacktrace.js 43 var p3 = stack.indexOf("at three");
44 var p2 = stack.indexOf("at two");
45 var p1 = stack.indexOf("at one");
  /external/v8/test/mjsunit/compiler/
regress-stacktrace.js 43 var p3 = stack.indexOf("at three");
44 var p2 = stack.indexOf("at two");
45 var p1 = stack.indexOf("at one");
  /libcore/harmony-tests/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);
  /external/chromium_org/chrome/common/extensions/docs/examples/api/pageAction/pageaction_by_url/
background.js 8 if (tab.url.indexOf('g') > -1) {
  /external/chromium_org/third_party/WebKit/Source/devtools/scripts/jsdoc-validator/src/org/chromium/devtools/jsdoc/
ScriptText.java 21 int lineEnd = text.indexOf('\n', offset);
  /external/chromium_org/v8/test/intl/date-format/
timezone-name.js 46 assertTrue(dfs.format(winter).indexOf('PST') !== -1);
47 assertTrue(dfs.format(summer).indexOf('PDT') !== -1);
52 assertTrue(dfl.format(winter).indexOf('Pacific Standard Time') !== -1);
53 assertTrue(dfl.format(summer).indexOf('Pacific Daylight Time') !== -1);
  /external/junit/src/org/junit/internal/matchers/
StringContains.java 18 return s.indexOf(substring) >= 0;
  /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();
  /frameworks/native/services/sensorservice/
traits.h 43 template <typename TList, typename T> struct IndexOf;
46 struct IndexOf<NullType, T> {
51 struct IndexOf<TypeList<T, Tail>, T> {
56 struct IndexOf<TypeList<Head, Tail>, T> {
58 enum { temp = IndexOf<Tail, T>::value };
104 enum { isStdUnsignedInt = TL::IndexOf<UnsignedInts, T>::value >= 0 };
105 enum { isStdSignedInt = TL::IndexOf<SignedInts, T>::value >= 0 };
106 enum { isStdIntegral = TL::IndexOf<OtherInts, T>::value >= 0 || isStdUnsignedInt || isStdSignedInt };
107 enum { isStdFloat = TL::IndexOf<Floats, T>::value >= 0 };
  /libcore/luni/src/test/java/libcore/java/util/logging/
OldXMLFormatterTest.java 45 .indexOf("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>");
46 int dtdPos = result.indexOf("<!DOCTYPE log SYSTEM \"logger.dtd\">");
47 int rootPos = result.indexOf("<log>");
56 .getTail(handler).indexOf("/log>") > 0);
  /packages/apps/Camera2/src/com/android/camera/data/
LocalDataList.java 32 * LinkedList. A linked list in indexOf does a other.equals(get(i)).
91 * This implementation routes through to LinkedList.indexOf, so performs in
95 public int indexOf(Uri uri) {
99 return mList.indexOf(new UriWrapper(uri));

Completed in 1045 milliseconds

12 3 4 5 6 7 8 91011>>