/libcore/luni/src/test/java/libcore/java/util/regex/ |
D | OldAndroidRegexTest.java | 160 String[] strings; in testSplit() local 162 strings = p.split("boo:and:foo"); in testSplit() 163 assertEquals(3, strings.length); in testSplit() 164 assertEquals("boo", strings[0]); in testSplit() 165 assertEquals("and", strings[1]); in testSplit() 166 assertEquals("foo", strings[2]); in testSplit() 168 strings = p.split("boo:and:foo", 2); in testSplit() 169 assertEquals(2, strings.length); in testSplit() 170 assertEquals("boo", strings[0]); in testSplit() 171 assertEquals("and:foo", strings[1]); in testSplit() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | Arrays2Test.java | 369 String[] strings = new String[] { "a", "B", "c", "D" }; in test_binarySearch$TTLjava_util_ComparatorsuperT() local 370 Arrays.sort(strings, String.CASE_INSENSITIVE_ORDER); in test_binarySearch$TTLjava_util_ComparatorsuperT() 371 assertEquals(0, Arrays.binarySearch(strings, "a", in test_binarySearch$TTLjava_util_ComparatorsuperT() 373 assertEquals(0, Arrays.binarySearch(strings, "A", in test_binarySearch$TTLjava_util_ComparatorsuperT() 375 assertEquals(1, Arrays.binarySearch(strings, "b", in test_binarySearch$TTLjava_util_ComparatorsuperT() 377 assertEquals(1, Arrays.binarySearch(strings, "B", in test_binarySearch$TTLjava_util_ComparatorsuperT() 379 assertEquals(2, Arrays.binarySearch(strings, "c", in test_binarySearch$TTLjava_util_ComparatorsuperT() 381 assertEquals(2, Arrays.binarySearch(strings, "C", in test_binarySearch$TTLjava_util_ComparatorsuperT() 383 assertEquals(3, Arrays.binarySearch(strings, "d", in test_binarySearch$TTLjava_util_ComparatorsuperT() 385 assertEquals(3, Arrays.binarySearch(strings, "D", in test_binarySearch$TTLjava_util_ComparatorsuperT() [all …]
|
D | ArrayListTest.java | 279 String[] strings = { "0", "1", "2", "3", "4", "5", "6" }; in test_addAllILjava_util_Collection_2() local 282 list1.add(strings[i]); in test_addAllILjava_util_Collection_2() 296 for (int i = location + 1; i < strings.length; i++) { in test_addAllILjava_util_Collection_2() 297 assertEquals(strings[i], list1.get(i + integers.length - 1)); in test_addAllILjava_util_Collection_2() 1044 ArrayList<String> strings = new ArrayList<>(); in testIteratorAddAfterCompleteIteration() local 1045 strings.add("string1"); in testIteratorAddAfterCompleteIteration() 1046 Iterator<String> it = strings.iterator(); in testIteratorAddAfterCompleteIteration() 1050 strings.add("string2"); in testIteratorAddAfterCompleteIteration() 1057 ArrayList<String> strings = new ArrayList<>(); in testHasNextAfterRemoval() local 1058 strings.add("string1"); in testHasNextAfterRemoval() [all …]
|
D | VectorTest.java | 1491 Vector<String> strings = new Vector<>(); in testIteratorAddAfterCompleteIteration() local 1492 strings.add("string1"); in testIteratorAddAfterCompleteIteration() 1493 Iterator<String> it = strings.iterator(); in testIteratorAddAfterCompleteIteration() 1497 strings.add("string2"); in testIteratorAddAfterCompleteIteration() 1504 Vector<String> strings = new Vector<>(); in testHasNextAfterRemoval() local 1505 strings.add("string1"); in testHasNextAfterRemoval() 1506 Iterator<String> it = strings.iterator(); in testHasNextAfterRemoval() 1511 strings = new Vector<>(); in testHasNextAfterRemoval() 1512 strings.add("string1"); in testHasNextAfterRemoval() 1513 strings.add("string2"); in testHasNextAfterRemoval() [all …]
|
D | Collections2Test.java | 253 List<String> strings = Arrays.asList(new String[] { "1", "2", "3", "1", "1" }); in test_frequencyLjava_util_CollectionLint() local 256 Collections.frequency(strings, "1")); in test_frequencyLjava_util_CollectionLint() 259 .frequency(strings, "2")); in test_frequencyLjava_util_CollectionLint() 262 Collections.frequency(strings, "3")); in test_frequencyLjava_util_CollectionLint() 265 Collections.frequency(strings, null)); in test_frequencyLjava_util_CollectionLint()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | ArraysTest.java | 218 String[] strings = new String[3]; in setAll$T() local 219 strings[0] = "a"; in setAll$T() 220 strings[0] = "b"; in setAll$T() 221 strings[0] = "c"; in setAll$T() 223 Arrays.setAll(strings, x -> "a" + x); in setAll$T() 224 assertEquals("a0", strings[0]); in setAll$T() 225 assertEquals("a1", strings[1]); in setAll$T() 226 assertEquals("a2", strings[2]); in setAll$T() 229 Arrays.setAll(strings, null); in setAll$T() 246 String[] strings = new String[3]; in parallelSetAll$T() local [all …]
|
D | OldCollectionsTest.java | 280 List<String> strings = Arrays.asList(new String[] { "1", "2", "3", "1", "1" }); in test_frequencyLjava_util_CollectionLint() local 283 Collections.frequency(strings, "1")); in test_frequencyLjava_util_CollectionLint() 286 .frequency(strings, "2")); in test_frequencyLjava_util_CollectionLint() 289 Collections.frequency(strings, "3")); in test_frequencyLjava_util_CollectionLint() 292 Collections.frequency(strings, null)); in test_frequencyLjava_util_CollectionLint()
|
/libcore/ojluni/src/test/java/net/URLEncoder/ |
D | Decoder.java | 41 String strings[] = { in testDecoder() local 53 for (int i = 0; i < strings.length; i++) { in testDecoder() 54 String encoded = URLEncoder.encode(strings[i], enc); in testDecoder() 56 Assert.assertEquals(strings[i], (decoded)); in testDecoder()
|
/libcore/ojluni/src/test/java/text/Format/ChoiceFormat/ |
D | Bug4387255.java | 42 private static final String[] strings = { field in Bug4387255 55 ChoiceFormat choiceFormat1 = new ChoiceFormat(doubles, strings); in main() 65 if (!result.equals(strings[i])) { in main() 67 strings[i] + ", got " + result); in main()
|
/libcore/luni/src/test/java/libcore/libcore/util/ |
D | CollectionUtilsTest.java | 40 Iterable<String> strings = CollectionUtils.dereferenceIterable(refs, true); in testDereferenceIterable() local 41 assertEquals(Arrays.<String>asList("a", "b", "c", "d", "e"), toList(strings)); in testDereferenceIterable() 44 assertEquals(Arrays.<String>asList("a", "c", "d", "e"), toList(strings)); in testDereferenceIterable() 47 Iterator<String> i = strings.iterator(); in testDereferenceIterable() 66 assertEquals(Arrays.<String>asList(), toList(strings)); in testDereferenceIterable()
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
D | SSLSocketTest.java | 35 @Override public void setEnabledCipherSuites(String[] strings) { } in setEnabledCipherSuites() argument 38 @Override public void setEnabledProtocols(String[] strings) { } in setEnabledProtocols() argument 106 public String apply(SSLSocket sslSocket, List<String> strings) { in test_Alpn()
|
D | SSLEngineTest.java | 45 @Override public void setEnabledCipherSuites(String[] strings) {} in setEnabledCipherSuites() argument 48 @Override public void setEnabledProtocols(String[] strings) {} in setEnabledProtocols() argument 78 public String apply(SSLEngine sslEngine, List<String> strings) { in test_Alpn()
|
D | SSLServerSocketTest.java | 32 @Override public void setEnabledCipherSuites(String[] strings) { } in testToString() 36 @Override public void setEnabledProtocols(String[] strings) { } in testToString()
|
/libcore/metrictests/memory/apps/src/libcore/heapdumper/ |
D | Actions.java | 100 String[] strings = { "caff", "café", "cafe", "안녕", "잘 가" }; in useCollatorForLocale() local 102 Arrays.sort(strings, collator); in useCollatorForLocale()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldStringTest.java | 480 String[][] strings = { in test_matches() local 499 for (int j = 0; j < strings[i].length; j++) { in test_matches() 501 + strings[i][j], strings[i][j].matches(patterns[i])); in test_matches() 502 assertFalse("" + i, strings[i][j].matches(patternsInc[i])); in test_matches()
|
D | DoubleTest.java | 82 String[] strings = { in testExponentParsing() local 90 for (String string : strings) { in testExponentParsing()
|
D | FloatTest.java | 84 String[] strings = { in testExponentParsing() local 90 for (String string : strings) { in testExponentParsing()
|
/libcore/libart/src/main/java/java/lang/ |
D | DexCache.java | 90 private long strings; field in DexCache
|
/libcore/ojluni/src/main/java/java/util/ |
D | Calendar.java | 2186 String[] strings = getFieldStrings(field, style, symbols); in getDisplayName() local 2187 if (strings != null) { in getDisplayName() 2188 if (fieldValue < strings.length) { in getDisplayName() 2189 return strings[fieldValue]; in getDisplayName() 2277 String[] strings = getFieldStrings(field, style, symbols); in getDisplayNamesImpl() local 2278 if (strings != null) { in getDisplayNamesImpl() 2280 for (int i = 0; i < strings.length; i++) { in getDisplayNamesImpl() 2281 if (strings[i].isEmpty()) { in getDisplayNamesImpl() 2284 names.put(strings[i], i); in getDisplayNamesImpl()
|
/libcore/ojluni/src/test/java/net/UnixDomainSocketAddress/ |
D | LengthTest.java | 49 public Object[][] strings() { in strings() method in LengthTest
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | ExplodeOpTest.java | 63 Stream<String> strings = Arrays.asList(stringsArray).stream(); in testFlatMap() local 64 assertConcat(strings.flatMap(flattenChars).iterator(), "hellothereyada"); in testFlatMap()
|
D | MapMultiOpTest.java | 101 Stream<String> strings = Arrays.asList(stringsArray).stream(); in testMapMulti() local 103 assertConcat(strings.mapMulti(charConsumer) in testMapMulti() 121 Stream<String> strings = Arrays.stream(stringsArray); in testDefaultMapMulti() local 123 assertConcat(delegateTo(strings) in testDefaultMapMulti()
|
D | FlatMapOpTest.java | 70 Stream<String> strings = Arrays.asList(stringsArray).stream(); in testFlatMap() local 71 assertConcat(strings.flatMap(flattenChars).iterator(), "hellothereyada"); in testFlatMap()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | SerializationStressTest1.java | 626 String[] strings = { "foo", "bar", "java" }; in test_18_10_writeObject() local 627 objToSave = strings; in test_18_10_writeObject() 820 String[] strings = new String[2]; in test_18_16_writeObject() local 821 strings[0] = FOO; in test_18_16_writeObject() 822 strings[1] = (" " + FOO + " ").trim(); // Safe way to get a copy in test_18_16_writeObject() 824 objToSave = strings; in test_18_16_writeObject()
|
/libcore/luni/src/test/java/libcore/java/lang/invoke/ |
D | MethodHandlesTest.java | 1339 public VariableArityTester(String s0, String... strings) { update(s0, strings); } in VariableArityTester() argument 1361 … public String update(String s0, String... strings) { return lastResult = tally(s0, strings); } in update() argument 1388 public static String tally(String s0, String... strings) { in tally() argument 1389 return s0 + ", " + Arrays.toString(strings); in tally() 1416 public static Object getAsObject(String[] strings) { in getAsObject() argument 1417 return (Object) strings; in getAsObject()
|