/libcore/luni/src/test/java/libcore/libcore/io/ |
D | MemoryTest.java | 28 int[] values = { 3, 7, 31, 127, 8191, 131071, 524287, 2147483647 }; in testSetIntArray() local 29 int[] swappedValues = new int[values.length]; in testSetIntArray() 30 for (int i = 0; i < values.length; ++i) { in testSetIntArray() 31 swappedValues[i] = Integer.reverseBytes(values[i]); in testSetIntArray() 36 byte[] array = (byte[]) runtime.newNonMovableArray(byte.class, scale * values.length + 1); in testSetIntArray() 44 Memory.pokeIntArray(ptr, values, 0, values.length, false); in testSetIntArray() 45 assertIntsEqual(values, ptr, false); in testSetIntArray() 49 Memory.pokeIntArray(ptr, values, 0, values.length, true); in testSetIntArray() 50 assertIntsEqual(values, ptr, true); in testSetIntArray() 54 for (int i = 0; i < values.length; ++i) { in testSetIntArray() [all …]
|
/libcore/luni/src/test/java/libcore/java/time/chrono/ |
D | IsoChronologyTest.java | 55 for (int[] values : allValues) { in test_dateYear() 56 LocalDate localDate = IsoChronology.INSTANCE.dateYearDay(values[0], values[1]); in test_dateYear() 57 IsoEra expectedEra = values[0] <= 0 ? IsoEra.BCE : IsoEra.CE; in test_dateYear() 59 assertEquals(values[0], localDate.getYear()); in test_dateYear() 60 assertEquals(values[1], localDate.getDayOfYear()); in test_dateYear() 61 assertEquals(values[2], localDate.get(ChronoField.YEAR_OF_ERA)); in test_dateYear() 62 assertEquals(values[3], localDate.getMonthValue()); in test_dateYear() 63 assertEquals(values[4], localDate.getDayOfMonth()); in test_dateYear() 80 for (int[] values : invalidValues) { in test_dateYear_invalidValues() 82 LocalDate localDate = IsoChronology.INSTANCE.dateYearDay(values[0], values[1]); in test_dateYear_invalidValues() [all …]
|
/libcore/ojluni/src/main/java/java/security/ |
D | PKCS12Attribute.java | 87 String[] values; in PKCS12Attribute() local 89 values = value.substring(1, length - 1).split(", "); in PKCS12Attribute() 91 values = new String[]{ value }; in PKCS12Attribute() 96 this.encoded = encode(type, values); in PKCS12Attribute() 228 private byte[] encode(ObjectIdentifier type, String[] values) in encode() argument 233 for (String value : values) { in encode() 259 String[] values = new String[attrValueSet.length]; in parse() local 263 values[i] = Debug.toString(attrValueSet[i].getOctetString()); in parse() 266 values[i] = printableString; in parse() 268 values[i] = attrValueSet[i].getOID().toString(); in parse() [all …]
|
/libcore/ojluni/src/main/java/sun/net/www/ |
D | MessageHeader.java | 46 private String values[]; field in MessageHeader 73 values = null; in reset() 88 return values[i]; in findValue() 92 return values[i]; in findValue() 113 return values[n]; in getValue() 133 return values[i]; in findNextValue() 134 else if (values[i] == v) in findNextValue() 140 return values[i]; in findNextValue() 141 else if (values[i] == v) in findNextValue() 155 && values[i] != null && values[i].length() > 5 in filterNTLMResponses() [all …]
|
/libcore/json/src/main/java/org/json/ |
D | JSONArray.java | 53 private final List<Object> values; field in JSONArray 59 values = new ArrayList<Object>(); in JSONArray() 96 values = ((JSONArray) object).values; in JSONArray() 121 values = new ArrayList<Object>(length); in JSONArray() 131 return values.size(); in length() 140 values.add(value); in put() 152 values.add(JSON.checkDouble(value)); in put() 162 values.add(value); in put() 172 values.add(value); in put() 187 values.add(value); in put() [all …]
|
/libcore/luni/src/test/java/tests/java/sql/ |
D | SelectFunctionalityTest.java | 399 HashMap<Integer, Integer> values = new HashMap<Integer, Integer>(); in test_SelectGroupBy() local 400 values.put(100, 3006); in test_SelectGroupBy() 401 values.put(200, 2005); in test_SelectGroupBy() 402 values.put(300, 2009); in test_SelectGroupBy() 407 assertTrue("Wrong value of rating field", values in test_SelectGroupBy() 409 assertEquals("Wrong value of sum field", values.get(rating), in test_SelectGroupBy() 411 assertEquals(new Integer(sum), values.remove(rating)); in test_SelectGroupBy() 414 assertTrue("Result set has wrong size", values.isEmpty()); in test_SelectGroupBy() 426 ArrayList<Integer> values = new ArrayList<Integer>(); in test_SelectOrderBy() local 427 values.add(Integer.valueOf(3001)); in test_SelectOrderBy() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
D | OldAndroidChecksumTest.java | 40 private void adler32Test(byte[] values, long expected) { in adler32Test() argument 44 adler.update(values); in adler32Test() 49 for (int i = 0; i < values.length; i++) { in adler32Test() 50 adler.update(values[i]); in adler32Test() 55 private void cRC32Test(byte[] values, long expected) { in cRC32Test() argument 59 crc.update(values); in cRC32Test() 64 for (int i = 0; i < values.length; i++) { in cRC32Test() 65 crc.update(values[i]); in cRC32Test()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | AbstractCollectionTest.java | 143 String[] values = new String[] { "0", "1", "2" }; in test_removeAllLjava_util_Collection() 147 return index < values.length; in test_removeAllLjava_util_Collection() 151 return values[index++]; in test_removeAllLjava_util_Collection() 155 removed[index - 1] = values[index - 1]; in test_removeAllLjava_util_Collection() 186 String[] values = new String[] { "0", "1", "2" }; in test_retainAllLjava_util_Collection() 190 return index < values.length; in test_retainAllLjava_util_Collection() 194 return values[index++]; in test_retainAllLjava_util_Collection() 198 removed[index - 1] = values[index - 1]; in test_retainAllLjava_util_Collection() 223 String[] values = new String[] { "0", "1", "2" }; in test_toArray() 227 return index < values.length; in test_toArray() [all …]
|
D | AbstractMapTest.java | 230 assertSame("HashMap(0)", map1.values(), map1.values()); in test_values() 233 assertSame("HashMap(10)", map2.values(), map2.values()); in test_values() 236 assertSame("EMPTY_MAP", map3.values(), map3.values()); in test_values() 239 assertSame("IdentityHashMap", map4.values(), map4.values()); in test_values() 242 assertSame("IdentityHashMap", map5.values(), map5.values()); in test_values() 245 assertSame("TreeMap", map6.values(), map6.values()); in test_values() 248 assertSame("WeakHashMap", map7.values(), map7.values()); in test_values() 291 Vector values = new Vector(); field in AbstractMapTest.AMT 301 return index < values.size(); in entrySet() 305 if (index < values.size()) { in entrySet() [all …]
|
D | WeakHashMapTest.java | 187 List values = Arrays.asList(valueArray); in test_entrySet() local 195 assertTrue("Invalid map entry returned--bad key", values.contains(entry.getValue())); in test_entrySet() 198 values = null; in test_entrySet() 296 List values = Arrays.asList(valueArray); in test_keySet() local 306 values = null; in test_keySet() 382 List values = Arrays.asList(valueArray); in test_values() local 384 Collection valuesCollection = whm.values(); in test_values() 389 assertTrue("Invalid map entry returned--bad value", values.contains(value)); in test_values() 392 values = null; in test_values() 425 map.values().forEach((v) -> setOutput.add(v)); in test_forEach() [all …]
|
D | HashMapTest.java | 209 Collection values = map.values(); in test_clone() local 211 "value", values.iterator().next()); in test_clone() 216 Collection values2 = map2.values(); in test_clone() 217 assertTrue("values() is identical", values2 != values); in test_clone() 563 Object[] values = new Object[32768]; in test_removeLjava_lang_Object() local 565 values[i] = new Object(); in test_removeLjava_lang_Object() 566 map.put(i, values[i]); in test_removeLjava_lang_Object() 569 assertEquals("Failed to remove same value", values[i], map.remove(i)); in test_removeLjava_lang_Object() 598 Collection c = hm.values(); in test_values() 608 Collection values = myHashMap.values(); in test_values() local [all …]
|
D | SortedMapTestBase.java | 167 assertEquals(ref.values().size(), map.values().size()); in testValues() 168 assertTrue(ref.values().containsAll(map.values())); in testValues() 169 assertTrue(map.values().containsAll(ref.values())); in testValues() 171 Iterator<Integer> i = ref.values().iterator(); in testValues() 172 Iterator<Integer> j = map.values().iterator(); in testValues() 284 assertFalse(map.values().iterator().hasNext()); in testIsEmpty2() 329 assertEquals(ref.values().size(), map.values().size()); in testViews() 330 compareIterators(ref.values(), map.values()); in testViews()
|
D | LinkedHashMapTest.java | 310 Collection c = hm.values(); in test_values() 320 Collection values = myLinkedHashMap.values(); in test_values() local 322 "Test Returned Collection From LinkedHashMap.values()", values) in test_values() 324 values.remove(new Integer(0)); in test_values() 381 Collection values = map.values(); in test_clone() local 383 "value", values.iterator().next()); in test_clone() 388 Collection values2 = map2.values(); in test_clone() 389 assertTrue("values() is identical", values2 != values); in test_clone() 648 Collection s1 = lhm.values(); in test_ordered_values() 662 Collection s3 = lruhm.values(); in test_ordered_values() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/ |
D | RetentionPolicyTest.java | 55 RetentionPolicy[] values = RetentionPolicy.values(); in test_values() local 56 assertTrue(values.length > 1); in test_values() 57 Arrays.sort(values); in test_values() 58 assertTrue(Arrays.binarySearch(values, RetentionPolicy.RUNTIME) >= 0); in test_values()
|
D | ElementTypeTest.java | 60 ElementType[] values = ElementType.values(); in test_values() local 61 assertTrue(values.length > 1); in test_values() 62 Arrays.sort(values); in test_values() 63 assertTrue(Arrays.binarySearch(values, ElementType.METHOD) >= 0); in test_values()
|
/libcore/luni/src/main/java/org/xml/sax/helpers/ |
D | AttributeListImpl.java | 142 values.add(value); in addAttribute() 165 values.remove(i); in removeAttribute() 183 values.clear(); in clear() 247 if (i < 0 || i >= values.size()) { in getValue() 250 return values.get(i); in getValue() 288 private ArrayList<String> values = new ArrayList<String>(); field in AttributeListImpl
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
D | SSLEngineResultTest.java | 97 SSLEngineResult.Status.values(); in test_bytesConsumed() 99 SSLEngineResult.HandshakeStatus.values(); in test_bytesConsumed() 120 SSLEngineResult.Status.values(); in test_bytesProduced() 122 SSLEngineResult.HandshakeStatus.values(); in test_bytesProduced() 143 SSLEngineResult.Status.values(); in test_getHandshakeStatus() 145 SSLEngineResult.HandshakeStatus.values(); in test_getHandshakeStatus() 166 SSLEngineResult.Status.values(); in test_getStatus() 168 SSLEngineResult.HandshakeStatus.values(); in test_getStatus() 189 SSLEngineResult.Status.values(); in test_toString() 191 SSLEngineResult.HandshakeStatus.values(); in test_toString()
|
/libcore/json/src/test/java/libcore/org/json/ |
D | JSONArrayTest.java | 334 JSONArray values = new JSONArray(); in testToJSONObject() local 335 values.put(5.5d); in testToJSONObject() 336 values.put(false); in testToJSONObject() 338 JSONObject object = values.toJSONObject(keys); in testToJSONObject() 343 values.put(0, 11.0d); in testToJSONObject() 352 JSONArray values = new JSONArray(); in testToJSONObjectWithNulls() local 353 values.put(5.5d); in testToJSONObjectWithNulls() 354 values.put((Collection) null); in testToJSONObjectWithNulls() 357 JSONObject object = values.toJSONObject(keys); in testToJSONObjectWithNulls() 367 JSONArray values = new JSONArray(); in testToJSONObjectMoreNamesThanValues() local [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
D | TCKTemporalAdjusters.java | 112 for (Month month : Month.values()) { in test_firstDayOfMonth_nonLeap() 125 for (Month month : Month.values()) { in test_firstDayOfMonth_leap() 146 for (Month month : Month.values()) { in test_lastDayOfMonth_nonLeap() 159 for (Month month : Month.values()) { in test_lastDayOfMonth_leap() 180 for (Month month : Month.values()) { in test_firstDayOfNextMonth_nonLeap() 193 for (Month month : Month.values()) { in test_firstDayOfNextMonth_leap() 214 for (Month month : Month.values()) { in test_firstDayOfYear_nonLeap() 227 for (Month month : Month.values()) { in test_firstDayOfYear_leap() 248 for (Month month : Month.values()) { in test_lastDayOfYear_nonLeap() 261 for (Month month : Month.values()) { in test_lastDayOfYear_leap() [all …]
|
/libcore/tools/upstream/src/main/java/libcore/ |
D | CompareUpstreams.java | 145 private static void printTsv(PrintStream out, List<String> values) { in printTsv() argument 146 out.println(String.join("\t", values)); in printTsv() 229 List<String> values = new ArrayList<>(); in run() local 230 values.add(expectedUpstream.name()); in run() 231 values.add(guessedUpstream == null ? "" : guessedUpstream.name()); in run() 232 values.add(changedCommentsSummary); in run() 233 values.addAll(comparisons); in run() 234 values.add(diffCommand); in run() 235 printTsv(out, values); in run()
|
/libcore/ojluni/src/main/java/sun/security/pkcs/ |
D | PKCS9Attribute.java | 525 String[] values = new String[elems.length]; in PKCS9Attribute() local 528 values[i] = elems[i].getAsString(); in PKCS9Attribute() 529 value = values; in PKCS9Attribute() 547 SignerInfo[] values = new SignerInfo[elems.length]; in PKCS9Attribute() local 549 values[i] = in PKCS9Attribute() 551 value = values; in PKCS9Attribute() 614 String[] values = (String[]) value; in derEncode() local 616 DerOutputStream[values.length]; in derEncode() 618 for (int i=0; i < values.length; i++) { in derEncode() 620 temps[i].putIA5String( values[i]); in derEncode() [all …]
|
/libcore/luni/src/main/java/libcore/internal/ |
D | Java9LanguageFeatures.java | 53 public static<T> String toListString(T... values) { in toListString() argument 54 return toString(values).toString(); in toListString() 59 private static<T> List<String> toString(T... values) { in toString() argument 61 for (T value : values) { in toString()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/ |
D | MapTest.java | 82 final Set<String> values = new HashSet<>(EXPECTED.size()); in testForEach() local 83 map.forEach((k, v) -> {values.add(v);}); in testForEach() 84 LambdaTestHelpers.assertContentsUnordered(values, EXPECTED.values()); in testForEach()
|
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/ |
D | NodeImpl.java | 601 List<Object> values = new ArrayList<Object>(); in createEqualityKey() local 602 values.add(node.getNodeType()); in createEqualityKey() 603 values.add(node.getNodeName()); in createEqualityKey() 604 values.add(node.getLocalName()); in createEqualityKey() 605 values.add(node.getNamespaceURI()); in createEqualityKey() 606 values.add(node.getPrefix()); in createEqualityKey() 607 values.add(node.getNodeValue()); in createEqualityKey() 609 values.add(child); in createEqualityKey() 615 values.add(doctype.getPublicId()); in createEqualityKey() 616 values.add(doctype.getSystemId()); in createEqualityKey() [all …]
|
/libcore/ojluni/src/main/java/javax/crypto/ |
D | EncryptedPrivateKeyInfo.java | 411 DerValue[] values = in.getSequence(3); in checkPKCS8Encoding() local 413 switch (values.length) { in checkPKCS8Encoding() 415 checkTag(values[3], DerValue.TAG_CONTEXT, "attributes"); in checkPKCS8Encoding() 418 checkTag(values[0], DerValue.tag_Integer, "version"); in checkPKCS8Encoding() 419 DerInputStream algid = values[1].toDerInputStream(); in checkPKCS8Encoding() 424 checkTag(values[2], DerValue.tag_OctetString, "privateKey"); in checkPKCS8Encoding()
|