Home
last modified time | relevance | path

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

1234567891011

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DAdler32Test.java30 assertEquals("Constructor of adl32 failed", 1, adl.getValue()); in test_Constructor()
40 1, adl.getValue()); in test_getValue()
47 131074, adl.getValue()); in test_getValue()
50 .getValue()); in test_getValue()
57 65537L, adl.getValue()); in test_getValue()
70 131074, adl.getValue()); in test_reset()
73 .getValue()); in test_reset()
85 131074, adl.getValue()); in test_updateI()
92 16777472L, adl.getValue()); in test_updateI()
99 65537L, adl.getValue()); in test_updateI()
[all …]
DCRC32Test.java30 assertEquals("Constructor of CRC32 failed", 0, crc.getValue()); in test_Constructor()
40 0, crc.getValue()); in test_getValue()
48 4278190080L, crc.getValue()); in test_getValue()
57 1295764014L, crc.getValue()); in test_getValue()
68 .getValue()); in test_getValue()
82 2768625435L, crc.getValue()); in test_reset()
85 .getValue()); in test_reset()
100 2768625435L, crc.getValue()); in test_updateI()
108 4278190080L, crc.getValue()); in test_updateI()
116 3523407757L, crc.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/
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 …]
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 …]
/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/
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()
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()
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 …]
/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/ojluni/src/main/java/java/util/
DAbstractMap.java116 if (e.getValue()==null) in containsValue()
122 if (value.equals(e.getValue())) in containsValue()
181 return e.getValue(); in get()
187 return e.getValue(); in get()
253 oldValue = correctEntry.getValue(); in remove()
281 put(e.getKey(), e.getValue()); in putAll()
418 return i.next().getValue(); in values()
490 V value = e.getValue(); in equals()
556 V value = e.getValue(); in toString()
635 this.value = entry.getValue(); in SimpleEntry()
[all …]
/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/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/jsr166-tests/src/test/java/jsr166/
DEntryTest.java37 assertEquals(v1, e.getValue()); in testConstructor1()
46 assertEquals(v1, s.getValue()); in testConstructor2()
56 assertEquals(v1, e.getValue()); in testConstructor3()
66 assertEquals(v1, s.getValue()); in testConstructor4()
116 assertEquals(v1, e.getValue()); in testSetValue1()
118 assertEquals(k2, e.getValue()); in testSetValue1()
129 assertEquals(v1, s.getValue()); in testSetValue2()
/libcore/luni/src/test/java/libcore/java/security/
DPKCS12AttributeTest.java109 assertEquals(EXAMPLE_EMAIL_ADDRESS, att.getValue()); in test_Constructor_String_String_success()
140 assertEquals(EXAMPLE_EMAIL_ADDRESS, att.getValue()); in test_Constructor_byteArray_success()
163 assertEquals(EXAMPLE_SEQUENCE_OF_EMAILS, att.getValue()); in test_Constructor_String_String_sequenceValue()
172 assertEquals(EXAMPLE_EMAIL_AS_HEX_BYTES, att.getValue()); in test_Constructor_String_String_hexValues()
195 assertEquals(PKCS7_SIGNED_DATA_OID, att.getValue()); in test_encoding_ObjectIdValue()
/libcore/ojluni/src/main/java/java/lang/
DPackage.java507 specTitle = attr.getValue(Name.SPECIFICATION_TITLE); in Package()
508 specVersion = attr.getValue(Name.SPECIFICATION_VERSION); in Package()
509 specVendor = attr.getValue(Name.SPECIFICATION_VENDOR); in Package()
510 implTitle = attr.getValue(Name.IMPLEMENTATION_TITLE); in Package()
511 implVersion = attr.getValue(Name.IMPLEMENTATION_VERSION); in Package()
512 implVendor = attr.getValue(Name.IMPLEMENTATION_VENDOR); in Package()
513 sealed = attr.getValue(Name.SEALED); in Package()
518 specTitle = attr.getValue(Name.SPECIFICATION_TITLE); in Package()
521 specVersion = attr.getValue(Name.SPECIFICATION_VERSION); in Package()
524 specVendor = attr.getValue(Name.SPECIFICATION_VENDOR); in Package()
[all …]
/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
/libcore/luni/src/test/java/libcore/javax/crypto/spec/
DAlgorithmParametersTestOAEP.java145 Arrays.equals(PSource.PSpecified.DEFAULT.getValue(), in testEncoding()
146 ((PSource.PSpecified) producedSpec.getPSource()).getValue())); in testEncoding()
158 Arrays.equals(PSource.PSpecified.DEFAULT.getValue(), in testEncoding()
159 ((PSource.PSpecified) producedSpec.getPSource()).getValue())); in testEncoding()
172 ((PSource.PSpecified) producedSpec.getPSource()).getValue())); in testEncoding()
184 Arrays.equals(PSource.PSpecified.DEFAULT.getValue(), in testEncoding()
185 ((PSource.PSpecified) producedSpec.getPSource()).getValue())); in testEncoding()
/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/ojluni/src/main/java/java/net/
DURLClassLoader.java499 specTitle = attr.getValue(Name.SPECIFICATION_TITLE); in definePackage()
500 specVersion = attr.getValue(Name.SPECIFICATION_VERSION); in definePackage()
501 specVendor = attr.getValue(Name.SPECIFICATION_VENDOR); in definePackage()
502 implTitle = attr.getValue(Name.IMPLEMENTATION_TITLE); in definePackage()
503 implVersion = attr.getValue(Name.IMPLEMENTATION_VERSION); in definePackage()
504 implVendor = attr.getValue(Name.IMPLEMENTATION_VENDOR); in definePackage()
505 sealed = attr.getValue(Name.SEALED); in definePackage()
510 specTitle = attr.getValue(Name.SPECIFICATION_TITLE); in definePackage()
513 specVersion = attr.getValue(Name.SPECIFICATION_VERSION); in definePackage()
516 specVendor = attr.getValue(Name.SPECIFICATION_VENDOR); in definePackage()
[all …]
/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/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/ojluni/src/main/java/java/time/chrono/
DEra.java122 int getValue(); in getValue() method
210 return getValue(); in get()
240 return getValue(); in getLong()
301 return temporal.with(ERA, getValue()); in adjustInto()
/libcore/luni/src/test/java/libcore/java/util/
DLinkedHashMapTest.java56 assertEquals("value1", newest.getValue()); in test_getOrDefault()
77 assertEquals("value2", newest.getValue()); in test_putIfAbsent()
85 assertEquals("value1", newest.getValue()); in test_putIfAbsent()
109 assertEquals("value2", newest.getValue()); in test_replace$K$V$V()
118 assertEquals("value2", newest.getValue()); in test_replace$K$V$V()
136 assertEquals("value2", newest.getValue()); in test_replace$K$V()
154 assertEquals("value1", newest.getValue()); in test_computeIfAbsent()
163 assertEquals("value3", newest.getValue()); in test_computeIfAbsent()
180 assertEquals("value3", newest.getValue()); in test_computeIfPresent()
197 assertEquals("value3", newest.getValue()); in test_compute()
[all …]

1234567891011