/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 | 212 String[] strings = new String[3]; in setAll$T() local 213 strings[0] = "a"; in setAll$T() 214 strings[0] = "b"; in setAll$T() 215 strings[0] = "c"; in setAll$T() 217 Arrays.setAll(strings, x -> "a" + x); in setAll$T() 218 assertEquals("a0", strings[0]); in setAll$T() 219 assertEquals("a1", strings[1]); in setAll$T() 220 assertEquals("a2", strings[2]); in setAll$T() 223 Arrays.setAll(strings, null); in setAll$T() 240 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/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 | SSLServerSocketTest.java | 32 @Override public void setEnabledCipherSuites(String[] strings) { } in testToString() 36 @Override public void setEnabledProtocols(String[] strings) { } in testToString()
|
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()
|
/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 | FloatTest.java | 84 String[] strings = { in testExponentParsing() local 90 for (String string : strings) { in testExponentParsing()
|
D | DoubleTest.java | 82 String[] strings = { in testExponentParsing() local 90 for (String string : strings) { in testExponentParsing()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Calendar.java | 2101 String[] strings = getFieldStrings(field, style, symbols); in getDisplayName() local 2102 if (strings != null) { in getDisplayName() 2103 if (fieldValue < strings.length) { in getDisplayName() 2104 return strings[fieldValue]; in getDisplayName() 2191 String[] strings = getFieldStrings(field, style, symbols); in getDisplayNamesImpl() local 2192 if (strings != null) { in getDisplayNamesImpl() 2194 for (int i = 0; i < strings.length; i++) { in getDisplayNamesImpl() 2195 if (strings[i].length() == 0) { in getDisplayNamesImpl() 2198 names.put(strings[i], i); in getDisplayNamesImpl() 2232 String[] strings = null; in getFieldStrings() local [all …]
|
/libcore/libart/src/main/java/java/lang/ |
D | DexCache.java | 91 private long strings; field in DexCache
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | ExplodeOpTest.java | 60 Stream<String> strings = Arrays.asList(stringsArray).stream(); in testFlatMap() local 61 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 | 1268 public VariableArityTester(String s0, String... strings) { update(s0, strings); } in VariableArityTester() argument 1290 … public String update(String s0, String... strings) { return lastResult = tally(s0, strings); } in update() argument 1317 public static String tally(String s0, String... strings) { in tally() argument 1318 return s0 + ", " + Arrays.toString(strings); in tally() 1345 public static Object getAsObject(String[] strings) { in getAsObject() argument 1346 return (Object) strings; in getAsObject()
|
D | MethodHandleAccessorsTest.java | 700 String [] strings = { "octopus", "crab" }; in testStringSettersAndGetters() local 701 for (String s : strings) { in testStringSettersAndGetters()
|
/libcore/luni/src/test/java/libcore/java/util/concurrent/ |
D | CopyOnWriteArrayListTest.java | 277 String[] strings = { "a", "b", "c" }; in testDoesNotRetainToArray() local 278 List<String> asList = Arrays.asList(strings); in testDoesNotRetainToArray()
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/ |
D | ObjectInputStreamTest.java | 1341 String[] strings = new String[] { "AAA", "BBB" }; in test_readObject_array() local 1342 assertTrue(java.util.Arrays.equals(strings, testArray.array)); in test_readObject_array()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
D | SSLEngineTest.java | 1061 @Override public void setEnabledCipherSuites(String[] strings) {} in getRawEngine() argument 1064 @Override public void setEnabledProtocols(String[] strings) {} in getRawEngine() argument
|
/libcore/expectations/ |
D | knownfailures.txt | 1652 …substring: "Large hex longs shouldn't be yield ints or strings expected:<-1> but was:<0xFFFFFFFFFF…
|