Home
last modified time | relevance | path

Searched refs:vals (Results 1 – 9 of 9) sorted by relevance

/libcore/ojluni/src/main/java/java/util/
DEnumMap.java99 private transient Object[] vals; field in EnumMap
138 vals = new Object[keyUniverse.length]; in EnumMap()
151 vals = m.vals.clone(); in EnumMap()
172 vals = em.vals.clone(); in EnumMap()
179 vals = new Object[keyUniverse.length]; in EnumMap()
205 for (Object val : vals) in containsValue()
221 return isValidKey(key) && vals[((Enum)key).ordinal()] != null; in containsKey()
226 maskNull(value).equals(vals[((Enum)key).ordinal()]); in containsMapping()
246 unmaskNull(vals[((Enum)key).ordinal()]) : null); in get()
269 Object oldValue = vals[index]; in put()
[all …]
/libcore/ojluni/src/main/java/sun/net/
DNetworkClient.java68 final int vals[] = {0, 0};
74vals[0] = Integer.getInteger("sun.net.client.defaultReadTimeout", 0).intValue(); in AccessController.doPrivileged()
75vals[1] = Integer.getInteger("sun.net.client.defaultConnectTimeout", 0).intValue(); in AccessController.doPrivileged()
80 if (vals[0] != 0) {
81 defaultSoTimeout = vals[0];
83 if (vals[1] != 0) {
84 defaultConnectTimeout = vals[1];
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DTreeMapTest.java685 Collection vals = tm.values(); in test_values() local
686 vals.iterator(); in test_values()
688 vals.size() == objArray.length); in test_values()
690 assertTrue("Collection contains incorrect elements", vals in test_values()
693 assertEquals(1000, vals.size()); in test_values()
695 for (Iterator iter = vals.iterator(); iter.hasNext(); ) { in test_values()
701 vals = tm.descendingMap().values(); in test_values()
702 vals.iterator(); in test_values()
704 vals.size() == objArray.length); in test_values()
706 assertTrue("Collection contains incorrect elements", vals in test_values()
[all …]
DIdentityHashMapTest.java668 Collection vals = map.values(); in test_values() local
669 boolean result = vals.remove(key); in test_values()
674 result = vals.remove(value); in test_values()
686 result = vals.remove(key); in test_values()
692 result = vals.remove(value); in test_values()
700 vals.clear(); in test_values()
DFormatterTest.java4155 BigDecimalLayoutForm[] vals = BigDecimalLayoutForm.values(); in test_values() local
4156 assertEquals("Invalid length of enum values", 2, vals.length); in test_values()
4157 assertEquals("Wrong scientific value in enum", BigDecimalLayoutForm.SCIENTIFIC, vals[0]); in test_values()
4158 assertEquals("Wrong dec float value in enum", BigDecimalLayoutForm.DECIMAL_FLOAT, vals[1]); in test_values()
/libcore/ojluni/src/main/java/sun/net/ftp/impl/
DFtpClient.java113 final int vals[] = {0, 0};
120vals[0] = Integer.getInteger("sun.net.client.defaultReadTimeout", 0).intValue(); in AccessController.doPrivileged()
121vals[1] = Integer.getInteger("sun.net.client.defaultConnectTimeout", 0).intValue(); in AccessController.doPrivileged()
126 if (vals[0] == 0) {
129 defaultSoTimeout = vals[0];
132 if (vals[1] == 0) {
135 defaultConnectTimeout = vals[1];
/libcore/ojluni/src/main/java/java/io/
DObjectStreamClass.java1240 void getObjFieldValues(Object obj, Object[] vals) { in getObjFieldValues() argument
1241 fieldRefl.getObjFieldValues(obj, vals); in getObjFieldValues()
1249 void setObjFieldValues(Object obj, Object[] vals) { in setObjFieldValues() argument
1250 fieldRefl.setObjFieldValues(obj, vals); in setObjFieldValues()
2037 void getObjFieldValues(Object obj, Object[] vals) { in getObjFieldValues() argument
2049 vals[offsets[i]] = unsafe.getObject(obj, readKeys[i]); in getObjFieldValues()
2065 void setObjFieldValues(Object obj, Object[] vals) { in setObjFieldValues() argument
2077 Object val = vals[offsets[i]]; in setObjFieldValues()
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/
DPatternTest.java671 Object[] vals = { ":", new Integer(2), in testBug197() local
682 for (int i = 0; i < vals.length / 3;) { in testBug197()
683 String[] res = Pattern.compile(vals[i++].toString()).split( in testBug197()
684 "boo:and:foo", ((Integer) vals[i++]).intValue()); in testBug197()
685 String[] expectedRes = (String[]) vals[i++]; in testBug197()
/libcore/jsr166-tests/src/test/java/jsr166/
DCountedCompleterTest.java342 int[] vals = {
347 for (int val : vals) {