Home
last modified time | relevance | path

Searched refs:values (Results 1 – 25 of 214) sorted by relevance

123456789

/libcore/luni/src/test/java/libcore/java/time/chrono/
DIsoChronologyTest.java55 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/
DPKCS12Attribute.java87 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/
DMessageHeader.java46 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/
DJSONArray.java53 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/libcore/java/util/zip/
DOldAndroidChecksumTest.java40 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/luni/src/test/java/tests/java/sql/
DSelectFunctionalityTest.java399 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/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DAbstractCollectionTest.java143 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 …]
DAbstractMapTest.java230 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 …]
DHashMapTest.java209 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 …]
DSortedMapTestBase.java167 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()
DLinkedHashMapTest.java310 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/
DRetentionPolicyTest.java55 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()
DElementTypeTest.java60 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/libcore/internal/
DJava9LanguageFeatures.java53 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/tools/upstream/src/main/java/libcore/
DCompareUpstreams.java145 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/test/java/time/tck/java/time/temporal/
DTCKTemporalAdjusters.java112 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/ojluni/src/main/java/sun/security/pkcs/
DPKCS9Attribute.java525 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/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/
DMapTest.java82 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/ojluni/src/main/java/sun/security/x509/
DCRLReasonCodeExtension.java52 private static CRLReason[] values = CRLReason.values(); field in CRLReasonCodeExtension
196 if (reasonCode > 0 && reasonCode < values.length) { in getReasonCode()
197 return values[reasonCode]; in getReasonCode()
/libcore/ojluni/src/main/java/javax/crypto/
DEncryptedPrivateKeyInfo.java411 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()
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
DNodeImpl.java601 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/luni/src/test/java/libcore/java/time/
DDurationTest.java87 for (Object[] values : breakingValues) { in test_addTo_exceeds()
88 Temporal temporal = (Temporal) values[0]; in test_addTo_exceeds()
89 Duration duration = (Duration) values[1]; in test_addTo_exceeds()
115 for (Object[] values : breakingValues) { in test_subtractFrom_exceeds()
116 Temporal temporal = (Temporal) values[0]; in test_subtractFrom_exceeds()
117 Duration duration = (Duration) values[1]; in test_subtractFrom_exceeds()
/libcore/ojluni/src/main/java/sun/security/util/
DObjectIdentifier.java214 public ObjectIdentifier (int values []) throws IOException in ObjectIdentifier() argument
216 checkCount(values.length); in ObjectIdentifier()
217 checkFirstComponent(values[0]); in ObjectIdentifier()
218 checkSecondComponent(values[0], values[1]); in ObjectIdentifier()
219 for (int i=2; i<values.length; i++) in ObjectIdentifier()
220 checkOtherComponent(i, values[i]); in ObjectIdentifier()
221 init(values, values.length); in ObjectIdentifier()
309 public static ObjectIdentifier newInternal(int[] values) { in newInternal() argument
311 return new ObjectIdentifier(values); in newInternal()
/libcore/luni/src/test/java/libcore/java/util/
DHashMapTest.java123 Collection<Integer> values = m.values(); in test_spliterator_values() local
124 SpliteratorTester.runBasicIterationTests(values.spliterator(), expectedValues); in test_spliterator_values()
125 SpliteratorTester.runBasicSplitTests(values, expectedValues); in test_spliterator_values()
126 SpliteratorTester.testSpliteratorNPE(values.spliterator()); in test_spliterator_values()
127 SpliteratorTester.runSizedTests(values, 10); in test_spliterator_values()
128 assertEquals(Spliterator.SIZED, values.spliterator().characteristics()); in test_spliterator_values()
129 SpliteratorTester.assertSupportsTrySplit(values); in test_spliterator_values()
/libcore/ojluni/src/main/java/java/time/format/
DTextStyle.java142 return TextStyle.values()[ordinal() | 1]; in asStandalone()
151 return TextStyle.values()[ordinal() & ~1]; in asNormal()

123456789