Searched refs:values (Results 1 - 25 of 213) sorted by relevance

123456789

/libcore/luni/src/test/java/libcore/io/
H A DMemoryTest.java26 int[] values = { 3, 7, 31, 127, 8191, 131071, 524287, 2147483647 };
27 int[] swappedValues = new int[values.length];
28 for (int i = 0; i < values.length; ++i) {
29 swappedValues[i] = Integer.reverseBytes(values[i]);
34 byte[] array = (byte[]) runtime.newNonMovableArray(byte.class, scale * values.length + 1);
42 Memory.pokeIntArray(ptr, values, 0, values.length, false);
43 assertIntsEqual(values, ptr, false);
47 Memory.pokeIntArray(ptr, values, 0, values
[all...]
/libcore/luni/src/test/java/libcore/java/time/chrono/
H A DIsoChronologyTest.java55 for (int[] values : allValues) {
56 LocalDate localDate = IsoChronology.INSTANCE.dateYearDay(values[0], values[1]);
57 IsoEra expectedEra = values[0] <= 0 ? IsoEra.BCE : IsoEra.CE;
59 assertEquals(values[0], localDate.getYear());
60 assertEquals(values[1], localDate.getDayOfYear());
61 assertEquals(values[2], localDate.get(ChronoField.YEAR_OF_ERA));
62 assertEquals(values[3], localDate.getMonthValue());
63 assertEquals(values[4], localDate.getDayOfMonth());
80 for (int[] values
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/
H A DRetentionPolicyTest.java51 * @tests java.lang.annotation.RetentionPolicy#values()
55 RetentionPolicy[] values = RetentionPolicy.values();
56 assertTrue(values.length > 1);
57 Arrays.sort(values);
58 assertTrue(Arrays.binarySearch(values, RetentionPolicy.RUNTIME) >= 0);
H A DElementTypeTest.java56 * @tests java.lang.annotation.ElementType#values()
60 ElementType[] values = ElementType.values();
61 assertTrue(values.length > 1);
62 Arrays.sort(values);
63 assertTrue(Arrays.binarySearch(values, ElementType.METHOD) >= 0);
/libcore/ojluni/src/main/java/java/security/
H A DPKCS12Attribute.java58 * list of values, enclosed in square brackets. See
87 String[] values;
89 values = value.substring(1, length - 1).split(", ");
91 values = new String[]{ value };
96 this.encoded = encode(type, values);
109 * values SET OF AttributeValue
165 * list of values, enclosed in square brackets. See
228 private byte[] encode(ObjectIdentifier type, String[] values) argument
233 for (String value : values) {
259 String[] values
[all...]
/libcore/luni/src/test/java/libcore/java/util/zip/
H A DOldAndroidChecksumTest.java40 private void adler32Test(byte[] values, long expected) { argument
44 adler.update(values);
49 for (int i = 0; i < values.length; i++) {
50 adler.update(values[i]);
55 private void cRC32Test(byte[] values, long expected) { argument
59 crc.update(values);
64 for (int i = 0; i < values.length; i++) {
65 crc.update(values[i]);
/libcore/json/src/main/java/org/json/
H A DJSONArray.java28 * A dense indexed sequence of values. Values may be any mix of
51 private final List<Object> values; field in class:JSONArray
54 * Creates a {@code JSONArray} with no values.
57 values = new ArrayList<Object>();
61 * Creates a new {@code JSONArray} by copying all values from the given
64 * @param copyFrom a collection whose values are of supported types.
65 * Unsupported values are not permitted and will yield an array in an
79 * Creates a new {@code JSONArray} with values from the next array in the
94 values = ((JSONArray) object).values;
[all...]
/libcore/ojluni/src/main/java/sun/net/www/
H A DMessageHeader.java44 values, setting values, and printing headers.
45 Key values of null are legal: they indicate lines in
52 private String values[]; field in class:MessageHeader
64 * Reset a message header (all key/values removed)
68 values = null;
83 return values[i];
87 return values[i];
108 return values[n];
115 * over all the values o
[all...]
/libcore/luni/src/main/java/org/xml/sax/helpers/
H A DAttributeListImpl.java143 values.add(value);
166 values.remove(i);
184 values.clear();
249 if (i < 0 || i >= values.size()) {
252 return values.get(i);
291 private ArrayList<String> values = new ArrayList<String>();
288 private ArrayList<String> values = new ArrayList<String>(); field in class:AttributeListImpl
/libcore/ojluni/src/main/java/java/time/format/
H A DTextStyle.java142 return TextStyle.values()[ordinal() | 1];
151 return TextStyle.values()[ordinal() & ~1];
166 * value, 0 for long names and 1 for short names (abbreviations). Note that these values
168 * java.util.TimeZone#SHORT} values.
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DAbstractMapTest.java226 * java.util.AbstractMap#values()
230 assertSame("HashMap(0)", map1.values(), map1.values());
233 assertSame("HashMap(10)", map2.values(), map2.values());
236 assertSame("EMPTY_MAP", map3.values(), map3.values());
239 assertSame("IdentityHashMap", map4.values(), map4.values());
242 assertSame("IdentityHashMap", map5.values(), map
291 Vector values = new Vector(); field in class:AbstractMapTest.AMT
[all...]
H A DAbstractCollectionTest.java143 String[] values = new String[] { "0", "1", "2" };
147 return index < values.length;
151 return values[index++];
155 removed[index - 1] = values[index - 1];
186 String[] values = new String[] { "0", "1", "2" };
190 return index < values.length;
194 return values[index++];
198 removed[index - 1] = values[index - 1];
223 String[] values = new String[] { "0", "1", "2" };
227 return index < values
[all...]
H A DWeakHashMapTest.java187 List values = Arrays.asList(valueArray);
195 assertTrue("Invalid map entry returned--bad key", values.contains(entry.getValue()));
198 values = null;
296 List values = Arrays.asList(valueArray);
306 values = null;
373 * java.util.WeakHashMap#values()
376 // Test for method java.util.Set java.util.WeakHashMap.values()
382 List values = Arrays.asList(valueArray);
384 Collection valuesCollection = whm.values();
389 assertTrue("Invalid map entry returned--bad value", values
[all...]
H A DHashMapTest.java190 assertNull("Failed to clear integer map values", map.get(i));
207 // get the keySet() and values() on the original Map
209 Collection values = map.values();
210 assertEquals("values() does not work",
211 "value", values.iterator().next());
216 Collection values2 = map2.values();
217 assertTrue("values() is identical", values2 != values);
218 // values() an
[all...]
/libcore/luni/src/test/java/tests/java/sql/
H A DSelectFunctionalityTest.java399 HashMap<Integer, Integer> values = new HashMap<Integer, Integer>();
400 values.put(100, 3006);
401 values.put(200, 2005);
402 values.put(300, 2009);
407 assertTrue("Wrong value of rating field", values
409 assertEquals("Wrong value of sum field", values.get(rating),
411 assertEquals(new Integer(sum), values.remove(rating));
414 assertTrue("Result set has wrong size", values.isEmpty());
426 ArrayList<Integer> values = new ArrayList<Integer>();
427 values
[all...]
/libcore/luni/src/test/java/libcore/java/time/
H A DZoneOffsetTest.java38 for (ChronoField field : ChronoField.values()) {
58 for (ChronoField field : ChronoField.values()) {
/libcore/support/src/test/java/tests/support/
H A DSupport_MapTest2.java46 assertTrue("Should not have values", !map.values().iterator()
60 assertTrue("Should not have values", !map.values().iterator()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/
H A DMapTest.java82 final Set<String> values = new HashSet<>(EXPECTED.size());
83 map.forEach((k, v) -> {values.add(v);});
84 LambdaTestHelpers.assertContentsUnordered(values, EXPECTED.values());
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
H A DSSLEngineResultTest.java97 SSLEngineResult.Status.values();
99 SSLEngineResult.HandshakeStatus.values();
120 SSLEngineResult.Status.values();
122 SSLEngineResult.HandshakeStatus.values();
143 SSLEngineResult.Status.values();
145 SSLEngineResult.HandshakeStatus.values();
166 SSLEngineResult.Status.values();
168 SSLEngineResult.HandshakeStatus.values();
189 SSLEngineResult.Status.values();
191 SSLEngineResult.HandshakeStatus.values();
[all...]
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/
H A DDdmServer.java111 Collection values = mHandlerMap.values();
112 Iterator iter = values.iterator();
/libcore/ojluni/src/main/java/java/lang/
H A DEnum.java219 * implicit {@code public static T[] values()} method of that
244 T[] values = getSharedConstants(enumType);
245 if (values == null) {
250 // unexpected / likely invalid case where there are multiple values with the same name.
251 for (int i = values.length - 1; i >= 0; --i) {
252 T value = values[i];
268 Method method = enumType.getDeclaredMethod("values", EmptyArray.CLASS);
/libcore/ojluni/src/main/java/java/util/
H A DSortedMap.java34 * {@code entrySet}, {@code keySet} and {@code values} methods).
100 * @param <V> the type of mapped values
246 * Returns a {@link Collection} view of the values contained in this map.
247 * The collection's iterator returns the values in ascending order
260 * @return a collection view of the values contained in this map,
263 Collection<V> values(); method in interface:SortedMap
/libcore/ojluni/src/main/java/sun/security/x509/
H A DCRLReasonCodeExtension.java52 private static CRLReason[] values = CRLReason.values(); field in class:CRLReasonCodeExtension
196 if (reasonCode > 0 && reasonCode < values.length) {
197 return values[reasonCode];
/libcore/json/src/test/java/org/json/
H A DJSONArrayTest.java207 // toString() and getString(int) return different values for -0d
329 JSONArray values = new JSONArray();
330 values.put(5.5d);
331 values.put(false);
333 JSONObject object = values.toJSONObject(keys);
338 values.put(0, 11.0d);
347 JSONArray values = new JSONArray();
348 values.put(5.5d);
349 values.put((Collection) null);
351 // null values ar
[all...]
/libcore/luni/src/test/java/libcore/java/util/
H A DAbstractCollectionTest.java36 m.values().toArray();
37 m.values().toArray(new Integer[m.size()]);

Completed in 562 milliseconds

123456789