/external/mockito/cglib-and-asm/src/org/mockito/cglib/util/ |
StringSwitcher.java | 37 public Object newInstance(String[] strings, int[] ints, boolean fixedInput); 44 * @param strings the array of String keys; must be the same length as the value array 49 public static StringSwitcher create(String[] strings, int[] ints, boolean fixedInput) { 51 gen.setStrings(strings); 72 private String[] strings; field in class:StringSwitcher.Generator 81 * Set the array of recognized Strings. 82 * @param strings the array of String keys; must be the same length as the value array 85 public void setStrings(String[] strings) { 86 this.strings = strings; [all...] |
/external/openfst/src/include/fst/ |
synchronize.h | 80 // Residual strings are represented by const pointers to 107 vector<const String*> strings; local 110 strings.push_back(*it); 112 for (size_t i = 0; i < strings.size(); ++i) 113 delete strings[i]; 273 // Equality function for Elements, assume strings have been hashed. 298 // Equality function for strings 309 // Hash function for set of strings
|
/frameworks/base/core/java/android/preference/ |
MultiSelectListPreference.java | 35 * This preference will store a set of strings into the SharedPreferences. 257 String[] strings = source.readStringArray(); local 259 final int stringCount = strings.length; 261 values.add(strings[i]);
|
/frameworks/support/v14/preference/src/android/support/v14/preference/ |
MultiSelectListPreference.java | 39 * This preference will store a set of strings into the SharedPreferences. 83 * Attempts to persist a set of Strings to the {@link android.content.SharedPreferences}. 86 * the {@link android.preference.PreferenceManager}, put in the strings, and check if we should 114 * Attempts to get a persisted set of Strings from the 297 String[] strings = new String[size]; local 298 source.readStringArray(strings); 300 Collections.addAll(values, strings);
|
/packages/apps/UnifiedEmail/tests/src/com/android/mail/browse/ |
SendersFormattingTests.java | 47 final ArrayList<SpannableString> strings = Lists.newArrayList(); local 48 assertEquals(0, strings.size()); 51 SendersView.format(getContext(), conv, "", 100, strings, null, null, account, false, false); local 52 assertEquals(1, strings.size()); 53 assertEquals("me", strings.get(0).toString()); 59 final ArrayList<SpannableString> strings = Lists.newArrayList(); local 60 assertEquals(0, strings.size()); 63 SendersView.format(getContext(), conv, "", 100, strings, null, null, account, false, false); local 64 assertEquals(1, strings.size()); 65 assertEquals("me", strings.get(0).toString()) 72 final ArrayList<SpannableString> strings = Lists.newArrayList(); local 76 SendersView.format(getContext(), conv, "", 100, strings, null, null, account, false, false); local 87 final ArrayList<SpannableString> strings = Lists.newArrayList(); local 91 SendersView.format(getContext(), conv, "", 100, strings, null, null, account, false, false); local [all...] |
/system/core/libcutils/ |
sched_policy.c | 383 static const char * const strings[SP_CNT] = { local 390 if ((policy < SP_CNT) && (strings[policy] != NULL)) 391 return strings[policy];
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
StringTrieBuilder.java | 126 strings.setLength(0); 353 strings=builderStrings; 373 if(strings.charAt(i)!=strings.charAt(j)) { 394 LinearMatchNode suffixNode=new LinearMatchNode(strings, i, length-prefixLength, next); 400 char thisChar=strings.charAt(i); 431 strings, i, length-(prefixLength+1), next); 455 new LinearMatchNode(strings, nextOffset, maxLinearMatchLength, next); 493 hash=hash*37+strings.charAt(i); 497 private CharSequence strings; field in class:StringTrieBuilder.LinearMatchNode 885 protected StringBuilder strings=new StringBuilder(); field in class:StringTrieBuilder [all...] |
/external/javassist/src/main/javassist/bytecode/ |
ConstPool.java | 37 HashMap strings; field in class:ConstPool 130 strings = new HashMap(); 143 strings = new HashMap(); 154 strings = new HashMap(); 963 Utf8Info info = (Utf8Info)strings.get(utf8); 968 strings.put(utf8, info); [all...] |
/external/jmonkeyengine/engine/src/xml/com/jme3/export/xml/ |
DOMInputCapsule.java | 153 String[] strings = parseTokens(tmpEl.getAttribute("data")); local 156 if (strings.length != requiredSize) 160 + strings.length); 162 byte[] tmp = new byte[strings.length]; 163 for (int i = 0; i < strings.length; i++) { 164 tmp[i] = Byte.parseByte(strings[i]); 254 String[] strings = parseTokens(tmpEl.getAttribute("data")); local 257 if (strings.length != requiredSize) 260 + ", data contains " + strings.length); 262 int[] tmp = new int[strings.length] 357 String[] strings = parseTokens(tmpEl.getAttribute("data")); local 396 String[] strings = parseTokens(tmpEl.getAttribute("data")); local 443 String[] strings = parseTokens(tmpEl.getAttribute("data")); local 542 String[] strings = parseTokens(tmpEl.getAttribute("data")); local 641 String[] strings = parseTokens(tmpEl.getAttribute("data")); local 737 String[] strings = parseTokens(tmpEl.getAttribute("data")); local 829 List<String> strings = new ArrayList<String>(); local 910 String[] strings = parseTokens(tmpString); local 1327 String[] strings = parseTokens(tmpEl.getAttribute("data")); local 1360 String[] strings = parseTokens(tmpEl.getAttribute("data")); local 1393 String[] strings = parseTokens(tmpEl.getAttribute("data")); local 1426 String[] strings = parseTokens(tmpEl.getAttribute("data")); local [all...] |
/art/test/074-gc-thrash/src/ |
Main.java | 167 String strings[] = new String[ARRAY_SIZE]; local 171 strings[idx] = makeString(idx);
|
/external/google-breakpad/src/testing/test/ |
gmock-generated-matchers_test.cc | 460 const char* strings[] = { local 466 for (size_t i = 0; i < GMOCK_ARRAY_SIZE_(strings); i++) { 467 nested.push_back(list<char>(strings[i], strings[i] + strlen(strings[i]))); [all...] |
/external/icu/icu4c/source/test/intltest/ |
collationtest.cpp | 297 static const char *strings[] = { local 310 StringPiece fffd(strings[0]); 311 for(int32_t i = 1; i < UPRV_LENGTHOF(strings); ++i) { 312 StringPiece illegal(strings[i]); [all...] |
colldata.cpp | 170 : strings(NULL), listMax(STRING_LIST_BUFFER_SIZE), listSize(0) 176 strings = new UnicodeString [listMax]; 178 if (strings == NULL) { 186 delete[] strings; 202 newStrings[i] = strings[i]; 204 delete[] strings; 205 strings = newStrings; 209 // The ctor initialized all the strings in 210 // the array to empty strings, so this 212 strings[listSize++].append(*string) 241 StringList *strings = (StringList *) obj; local 286 StringList *strings = getStringList(ce); local 517 const StringList *strings = ceToCharsStartingWith->getStringList(ce); local [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
DisplayNameTest.java | 153 String[] strings = (String[]) data.get(olsonID); local 154 if (strings == null || item >= strings.length) return olsonID; 155 return strings[item]; 334 * Add two unknown strings, just to make sure they get passed through without colliding 335 * @param strings 338 private String[] addUnknown(String[] strings, int len) { 339 String[] result = new String[strings.length + 2]; 342 System.arraycopy(strings,0,result,2,strings.length) [all...] |
/external/libexif/libexif/ |
exif-entry.c | 665 const char *strings[10]; member in struct:__anon12318 [all...] |
/external/libxml2/ |
dict.c | 2 * dict.c: dictionary of reusable strings, just used to avoid allocation 121 xmlDictStringsPtr strings; member in struct:_xmlDict 250 pool = dict->strings; 277 pool->next = dict->strings; 278 dict->strings = pool; 318 pool = dict->strings; 345 pool->next = dict->strings; 346 dict->strings = pool; 398 * Calculate a hash key for two strings using a good hash function 404 * Neither of the two strings must be NULL [all...] |
/external/mesa3d/src/gallium/state_trackers/xa/ |
xa_tgsi.c | 71 const char *strings[] = { local 96 debug_printf("%s, ", strings[i]);
|
/external/mesa3d/src/gallium/state_trackers/xorg/ |
xorg_exa_tgsi.c | 47 const char *strings[] = { local 70 debug_printf("%s, ", strings[i]);
|
/frameworks/base/core/java/android/widget/ |
ArrayAdapter.java | 463 CharSequence[] strings = context.getResources().getTextArray(textArrayResId); local 464 return new ArrayAdapter<CharSequence>(context, textViewResId, strings);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
Arrays2Test.java | 367 String[] strings = new String[] { "a", "B", "c", "D" }; local 368 Arrays.sort(strings, String.CASE_INSENSITIVE_ORDER); 369 assertEquals(0, Arrays.binarySearch(strings, "a", 371 assertEquals(0, Arrays.binarySearch(strings, "A", 373 assertEquals(1, Arrays.binarySearch(strings, "b", 375 assertEquals(1, Arrays.binarySearch(strings, "B", 377 assertEquals(2, Arrays.binarySearch(strings, "c", 379 assertEquals(2, Arrays.binarySearch(strings, "C", 381 assertEquals(3, Arrays.binarySearch(strings, "d", 383 assertEquals(3, Arrays.binarySearch(strings, "D" [all...] |
Collections2Test.java | 250 List<String> strings = Arrays.asList(new String[] { "1", "2", "3", "1", "1" }); local 252 assertEquals("Assert 1: did not find three \"1\" strings", 3, 253 Collections.frequency(strings, "1")); 255 assertEquals("Assert 2: did not find one \"2\" strings", 1, Collections 256 .frequency(strings, "2")); 258 assertEquals("Assert 3: did not find three \"3\" strings", 1, 259 Collections.frequency(strings, "3")); 262 Collections.frequency(strings, null));
|
/libcore/luni/src/main/java/java/lang/ |
HexStringParser.java | 152 String[] strings = significantStr.split("\\."); local 153 String strIntegerPart = strings[0]; 154 String strDecimalPart = strings.length > 1 ? strings[1] : "";
|
/libcore/luni/src/test/java/libcore/java/lang/ |
OldStringTest.java | 84 assertTrue("Returned false for equals strings.", hwlc 87 assertFalse("Returned true for different strings.", hwlc 476 String[][] strings = { local 495 for (int j = 0; j < strings[i].length; j++) { 497 + strings[i][j], strings[i][j].matches(patterns[i])); 498 assertFalse("" + i, strings[i][j].matches(patternsInc[i]));
|
/libcore/luni/src/test/java/libcore/java/util/concurrent/ |
CopyOnWriteArrayListTest.java | 276 String[] strings = { "a", "b", "c" }; local 277 List<String> asList = Arrays.asList(strings);
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
InstallShortcutReceiver.java | 70 Set<String> strings = sharedPrefs.getStringSet(key, null); local 71 if (strings == null) { 72 strings = new HashSet<String>(0); 74 strings = new HashSet<String>(strings); 76 strings.add(value); 77 editor.putStringSet(key, strings); 113 Set<String> strings = sharedPrefs.getStringSet(APPS_PENDING_INSTALL, null); local 114 if (strings == null) { 119 for (String json : strings) { [all...] |