Home
last modified time | relevance | path

Searched refs:getValue (Results 1 – 25 of 176) sorted by relevance

12345678

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DCRC32Test.java29 assertEquals("Constructor of CRC32 failed", 0, crc.getValue()); in test_Constructor()
39 0, crc.getValue()); in test_getValue()
47 4278190080L, crc.getValue()); in test_getValue()
56 1295764014L, crc.getValue()); in test_getValue()
67 .getValue()); in test_getValue()
81 2768625435L, crc.getValue()); in test_reset()
84 .getValue()); in test_reset()
99 2768625435L, crc.getValue()); in test_updateI()
107 4278190080L, crc.getValue()); in test_updateI()
115 3523407757L, crc.getValue()); in test_updateI()
[all …]
DAdler32Test.java29 assertEquals("Constructor of adl32 failed", 1, adl.getValue()); in test_Constructor()
39 1, adl.getValue()); in test_getValue()
46 131074, adl.getValue()); in test_getValue()
49 .getValue()); in test_getValue()
56 65537L, adl.getValue()); in test_getValue()
69 131074, adl.getValue()); in test_reset()
72 .getValue()); in test_reset()
84 131074, adl.getValue()); in test_updateI()
91 16777472L, adl.getValue()); in test_updateI()
98 65537L, adl.getValue()); in test_updateI()
[all …]
DCheckedOutputStreamTest.java40 .getChecksum().getValue()); in test_ConstructorLjava_io_OutputStreamLjava_util_zip_Checksum()
66 .getChecksum().getValue()); in test_getChecksum()
73 .getChecksum().getValue()); in test_getChecksum()
99 chkOut.getChecksum().getValue() != 0); in test_writeI()
122 chkOut.getChecksum().getValue() != 0); in test_write$BII()
DCheckedInputStreamTest.java38 .getValue()); in test_ConstructorLjava_io_InputStreamLjava_util_zip_Checksum()
53 .getChecksum().getValue()); in test_getChecksum()
64 .getValue()); in test_getChecksum()
73 .getValue()); in test_getChecksum()
91 .getValue()); in test_skipJ()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/helpers/
DAttributeListImplTest.java76 assertEquals(multi.getValue(i), attrs.getValue(i)); in testSetAttributeList()
95 assertEquals("false", multi.getValue(3)); in testAddAttribute()
102 assertEquals("false", multi.getValue(4)); in testAddAttribute()
108 assertEquals(null, multi.getValue(5)); in testAddAttribute()
116 assertEquals("xyz", multi.getValue(0)); in testRemoveAttribute()
170 assertEquals("abc", multi.getValue(0)); in testGetValueInt()
171 assertEquals("xyz", multi.getValue(1)); in testGetValueInt()
172 assertEquals("42", multi.getValue(2)); in testGetValueInt()
175 assertEquals(null, multi.getValue(-1)); in testGetValueInt()
176 assertEquals(null, multi.getValue(5)); in testGetValueInt()
[all …]
DAttributesImplTest.java134 assertEquals("abc", multi.getValue(0)); in testGetValueInt()
135 assertEquals("xyz", multi.getValue(1)); in testGetValueInt()
136 assertEquals("42", multi.getValue(2)); in testGetValueInt()
137 assertEquals("1-2-3-4", multi.getValue(3)); in testGetValueInt()
138 assertEquals("1-2-3-4", multi.getValue(4)); in testGetValueInt()
141 assertEquals(null, multi.getValue(-1)); in testGetValueInt()
142 assertEquals(null, multi.getValue(5)); in testGetValueInt()
203 assertEquals("abc", multi.getValue("http://some.uri", "foo")); in testGetValueStringString()
204 assertEquals("xyz", multi.getValue("http://some.uri", "bar")); in testGetValueStringString()
205 assertEquals("42", multi.getValue("http://some.other.uri", "answer")); in testGetValueStringString()
[all …]
/libcore/luni/src/test/java/libcore/java/util/zip/
DOldAndroidChecksumTest.java45 assertEquals(adler.getValue(), expected); in adler32Test()
52 assertEquals(adler.getValue(), expected); in adler32Test()
60 assertEquals(crc.getValue(), expected); in cRC32Test()
67 assertEquals(crc.getValue(), expected); in cRC32Test()
86 long arrayChecksum = adler.getValue(); in wrongChecksumWithAdler32Test()
92 " actual: " + adler.getValue(), arrayChecksum, adler.getValue()); in wrongChecksumWithAdler32Test()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DSimpleEntryTest.java40 public Object getValue() { in getValue() method in SimpleEntryTest.NullEntry
55 assertEquals("test", testEntry.getValue()); in test_SimpleEntry_Constructor_LEntry()
60 assertNull(testEntry.getValue()); in test_SimpleEntry_Constructor_LEntry()
79 assertEquals("test", entry.getValue()); in test_SimpleEntry_getValue()
81 assertNull(entry.getValue()); in test_SimpleEntry_getValue()
86 assertEquals("test", entry.getValue()); in test_SimpleEntry_setValue()
88 assertEquals("Another String", entry.getValue()); in test_SimpleEntry_setValue()
107 ^ (e.getValue() == null ? 0 : e.getValue().hashCode()), e in test_SimpleEntry_hashCode()
113 assertEquals(e.getKey() + "=" + e.getValue(), e.toString()); in test_SimpleEntry_toString()
DSimpleImmutableEntryTest.java41 public Object getValue() { in getValue() method in SimpleImmutableEntryTest.NullEntry
56 assertEquals("test", testEntry.getValue()); in test_SimpleImmutableEntry_Constructor_LEntry()
61 assertNull(testEntry.getValue()); in test_SimpleImmutableEntry_Constructor_LEntry()
80 assertEquals("test", entry.getValue()); in test_SimpleImmutableEntry_getValue()
82 assertNull(entry.getValue()); in test_SimpleImmutableEntry_getValue()
87 assertEquals("test", entry.getValue()); in test_SimpleImmutableEntry_setValue()
94 assertEquals("test", entry.getValue()); in test_SimpleImmutableEntry_setValue()
115 ^ (e.getValue() == null ? 0 : e.getValue().hashCode()), e in test_SimpleImmutableEntry_hashCode()
121 assertEquals(e.getKey() + "=" + e.getValue(), e.toString()); in test_SimpleImmutableEntry_toString()
DTreeMapExtendTest.java1570 key).getValue()); in test_AscendingSubMap_ceilingEntry()
1572 key).getValue()); in test_AscendingSubMap_ceilingEntry()
1574 key).getValue()); in test_AscendingSubMap_ceilingEntry()
1576 key).getValue()); in test_AscendingSubMap_ceilingEntry()
1581 .ceilingEntry(key).getValue()); in test_AscendingSubMap_ceilingEntry()
1583 .ceilingEntry(key).getValue()); in test_AscendingSubMap_ceilingEntry()
1585 .ceilingEntry(key).getValue()); in test_AscendingSubMap_ceilingEntry()
1587 .ceilingEntry(key).getValue()); in test_AscendingSubMap_ceilingEntry()
1594 key).getValue()); in test_AscendingSubMap_ceilingEntry()
1597 key).getValue()); in test_AscendingSubMap_ceilingEntry()
[all …]
DRefSortedMap.java55 public V getValue() { in getValue() method in RefSortedMap.MapEntry
67 ^ (getValue() == null ? 0 : getValue().hashCode()); in hashCode()
78 && (getValue() == null ? entry.getValue() == null : getValue() in equals()
79 .equals(entry.getValue())); in equals()
322 return idx >= 0 ? entries.get(idx).getValue() : null;
341 put(e.getKey(), e.getValue());
352 return entries.remove(idx).getValue();
385 stream.writeObject(e.getValue());
/libcore/luni/src/main/java/java/util/
DAbstractMap.java65 value = copyFrom.getValue(); in SimpleImmutableEntry()
72 public V getValue() { in getValue() method in AbstractMap.SimpleImmutableEntry
92 && (value == null ? entry.getValue() == null : value in equals()
93 .equals(entry.getValue())); in equals()
130 value = copyFrom.getValue(); in SimpleEntry()
137 public V getValue() { in getValue() method in AbstractMap.SimpleEntry
155 && (value == null ? entry.getValue() == null : value in equals()
156 .equals(entry.getValue())); in equals()
217 if (value.equals(it.next().getValue())) { in containsValue()
223 if (it.next().getValue() == null) { in containsValue()
[all …]
DMapEntry.java59 && (value == null ? entry.getValue() == null : value in equals()
60 .equals(entry.getValue())); in equals()
69 public V getValue() { in getValue() method in MapEntry
/libcore/support/src/test/java/tests/util/
DCallVerificationStack.java212 Boolean value = (Boolean) wrapper.getValue(); in popBoolean()
223 Character value = (Character) wrapper.getValue(); in popChar()
234 Double value = (Double) wrapper.getValue(); in popDouble()
245 Float value = (Float) wrapper.getValue(); in popFloat()
256 Integer value = (Integer) wrapper.getValue(); in popInt()
267 Long value = (Long) wrapper.getValue(); in popLong()
278 Short value = (Short) wrapper.getValue(); in popShort()
349 public Object getValue() { in getValue() method in CallVerificationStack.BaseTypeWrapper
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/
DPSourceTest.java51 0, PSource.PSpecified.DEFAULT.getValue().length); in testPSpecified()
58 .getValue()[0]); in testPSpecified()
70 byte[] result = ps.getValue(); in testGetValue()
78 result[0] == ps.getValue()[0]); in testGetValue()
/libcore/luni/src/main/java/org/xml/sax/
DAttributes.java166 public abstract String getValue (int index); in getValue() method
239 public abstract String getValue (String uri, String localName); in getValue() method
253 public abstract String getValue (String qName); in getValue() method
DAttributeList.java150 public abstract String getValue (int i); in getValue() method
190 public abstract String getValue (String name); in getValue() method
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/ext/
DAttributes2ImplTest.java78 assertEquals(multi.getValue(i), attrs.getValue(i)); in testSetAttributes()
95 assertEquals(multi.getValue(i), attrs.getValue(i)); in testSetAttributes()
128 assertEquals("abc", attrs.getValue(0)); in testAddAttribute()
143 assertEquals("abc", attrs.getValue(1)); in testAddAttribute()
161 assertEquals(multi.getValue(0), attrs.getValue(0)); in testRemoveAttribute()
169 assertEquals(multi.getValue(2), attrs.getValue(1)); in testRemoveAttribute()
203 assertEquals(multi.getValue(i), attrs.getValue(i)); in testAttributes2ImplAttributes()
220 assertEquals(multi.getValue(i), attrs.getValue(i)); in testAttributes2ImplAttributes()
/libcore/jsr166-tests/src/test/java/jsr166/
DEntryTest.java25 assertEquals(v1, e.getValue()); in testConstructor1()
34 assertEquals(v1, s.getValue()); in testConstructor2()
44 assertEquals(v1, e.getValue()); in testConstructor3()
54 assertEquals(v1, s.getValue()); in testConstructor4()
104 assertEquals(v1, e.getValue()); in testSetValue1()
106 assertEquals(k2, e.getValue()); in testSetValue1()
117 assertEquals(v1, s.getValue()); in testSetValue2()
/libcore/luni/src/main/java/org/apache/harmony/xml/
DExpatAttributes.java71 public String getValue(int index) { in getValue() method in ExpatAttributes
116 public String getValue(String uri, String localName) { in getValue() method in ExpatAttributes
127 return getValue(pointer, uri, localName); in getValue()
130 public String getValue(String qName) { in getValue() method in ExpatAttributes
147 private static native String getValue(long attributePointer, String uri, String localName); in getValue() method in ExpatAttributes
/libcore/luni/src/main/java/org/xml/sax/helpers/
DAttributeListImpl.java121 addAttribute(atts.getName(i), atts.getType(i), atts.getValue(i)); in setAttributeList()
246 public String getValue(int i) { in getValue() method in AttributeListImpl
276 public String getValue(String name) { in getValue() method in AttributeListImpl
277 return getValue(names.indexOf(name)); in getValue()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/
DAttributesTest.java94 valueSet.add(e.getValue()); in test_entrySet()
110 assertEquals("a) Incorrect value returned", "one", a.getValue("1")); in test_getLjava_lang_Object()
111 assertNull("b) Incorrect value returned", a.getValue("0")); in test_getLjava_lang_Object()
147 assertEquals("Should not have been replaced", "one", a.getValue("1")); in test_putAllLjava_util_Map()
148 assertEquals("Should have been replaced", "san", a.getValue("3")); in test_putAllLjava_util_Map()
149 assertEquals("Should have been added", "go", a.getValue("5")); in test_putAllLjava_util_Map()
171 assertNull("Should have been removed", a.getValue("1")); in test_removeLjava_lang_Object()
172 assertEquals("Should not have been removed", "four", a.getValue("4")); in test_removeLjava_lang_Object()
229 assertEquals("Assert 1: ", "tools.jar", atts.getValue(Attributes.Name.CLASS_PATH)); in test_putLjava_lang_ObjectLjava_lang_Object()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DAnnotationTest.java33 assertNull(a.getValue()); in testGetValue()
35 assertEquals("value", a.getValue()); in testGetValue()
/libcore/luni/src/test/java/libcore/java/util/jar/
DOldAttributesTest.java38 a.getValue("IllegalArgumentException expected"); in test_getLjava_lang_Object()
63 .getValue(new Attributes.Name("1"))); in test_getValueLjava_util_jar_Attributes_Name()
65 .getValue(new Attributes.Name("0"))); in test_getValueLjava_util_jar_Attributes_Name()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DMessageDigest2Test.java81 for (String algorithm : e.getValue()) { in test_clone()
243 for (String algorithm : e.getValue()) { in test_digest$B()
256 for (String algorithm : e.getValue()) { in test_digest$BII()
288 for (String algorithm : e.getValue()) { in test_getAlgorithm()
300 for (String algorithm : e.getValue()) { in test_getDigestLength()
312 for (String algorithm : e.getValue()) { in test_getInstanceLjava_lang_String()
331 for (String algorithm : e.getValue()) { in test_getInstanceLjava_lang_StringLjava_lang_String()
376 for (String algorithm : e.getValue()) { in test_getInstanceLjava_lang_StringLjava_security_Provider()
406 for (String algorithm : e.getValue()) { in test_getProvider()

12345678