Searched refs:value (Results 176 - 200 of 417) sorted by relevance

1234567891011>>

/libcore/dom/src/test/java/org/w3c/domts/level2/core/
H A DimportNode15.java38 * Create a text node with value being the string "this is text data" in
40 * this document. Method should return a text node whose value matches
77 String value;
87 value = aNode.getNodeValue();
88 assertEquals("nodeValue", "this is text data", value);
H A DsetNamedItemNS03.java39 * "prefix:newAttr" and value "newValue".
77 String value;
87 value = retnode.getNodeValue();
88 assertEquals("throw_Equals", "newValue", value);
H A DsetNamedItemNS05.java39 * and qualifiedName "dmstc:domestic" whose value is "newVal".
42 * by namespaceURI and qualifiedName from above,whose value is "Yes".
77 String value;
85 value = retnode.getNodeValue();
86 assertEquals("throw_Equals", "Yes", value);
/libcore/luni/src/main/java/java/nio/
H A DByteBuffer.java278 * @return a negative value if this is less than {@code other}; 0 if this
279 * equals to {@code other}; a positive value if this is greater
832 * @param value
840 public abstract ByteBuffer putChar(char value); argument
851 * @param value
859 public abstract ByteBuffer putChar(int index, char value); argument
867 * @param value
875 public abstract ByteBuffer putDouble(double value); argument
886 * @param value
894 public abstract ByteBuffer putDouble(int index, double value); argument
910 putFloat(float value) argument
929 putFloat(int index, float value) argument
945 putInt(int value) argument
964 putInt(int index, int value) argument
980 putLong(long value) argument
999 putLong(int index, long value) argument
1015 putShort(short value) argument
1034 putShort(int index, short value) argument
[all...]
H A DDirectByteBuffer.java36 // We're throwing this exception after we passed a bogus value
329 @Override public ByteBuffer put(byte value) { argument
337 this.block.pokeByte(offset + position++, value);
341 @Override public ByteBuffer put(int index, byte value) { argument
347 this.block.pokeByte(offset + index, value);
404 @Override public ByteBuffer putChar(char value) { argument
413 this.block.pokeShort(offset + position, (short) value, order);
418 @Override public ByteBuffer putChar(int index, char value) { argument
424 this.block.pokeShort(offset + index, (short) value, order);
428 @Override public ByteBuffer putDouble(double value) { argument
442 putDouble(int index, double value) argument
452 putFloat(float value) argument
466 putFloat(int index, float value) argument
476 putInt(int value) argument
490 putInt(int index, int value) argument
500 putLong(long value) argument
514 putLong(int index, long value) argument
524 putShort(short value) argument
538 putShort(int index, short value) argument
[all...]
/libcore/luni/src/main/java/libcore/net/http/
H A DResponseUtils.java78 final String value = components[1].trim();
79 if (key.isEmpty() || value.isEmpty()) {
83 parameters.put(key, value);
/libcore/luni/src/main/java/org/apache/harmony/security/x501/
H A DAttributeTypeAndValue.java211 /** Attribute value */
212 private final AttributeValue value; field in class:AttributeTypeAndValue
215 private AttributeTypeAndValue(int[] oid, AttributeValue value) throws IOException { argument
221 this.value = value;
229 * @param value
230 * attribute value
232 public AttributeTypeAndValue(ObjectIdentifier oid, AttributeValue value) throws IOException { argument
234 this.value = value;
[all...]
/libcore/luni/src/main/java/java/util/
H A DHashtable.java89 * The value of this field is generally .75 * capacity, except when
192 * The returned value will be between 0 and MAXIMUM_CAPACITY (inclusive).
202 * Returns a new {@code Hashtable} with the same key/value pairs, capacity
233 * Returns true if this {@code Hashtable} has no key/value pairs.
235 * @return {@code true} if this {@code Hashtable} has no key/value pairs,
244 * Returns the number of key/value pairs in this {@code Hashtable}.
246 * @return the number of key/value pairs in this {@code Hashtable}.
255 * Returns the value associated with the specified key in this
259 * the key of the value returned.
260 * @return the value associate
309 containsValue(Object value) argument
338 contains(Object value) argument
358 put(K key, V value) argument
394 constructorPut(K key, V value) argument
661 V value; field in class:Hashtable.HashtableEntry
665 HashtableEntry(K key, V value, int hash, HashtableEntry<K, V> next) argument
680 setValue(V value) argument
796 containsMapping(Object key, Object value) argument
812 removeMapping(Object key, Object value) argument
[all...]
H A DWeakHashMap.java25 * key/value mapping is removed when the key is no longer referenced. All
62 V value; field in class:WeakHashMap.Entry
74 value = object;
82 return value;
86 V result = value;
87 value = object;
100 && (value == null ? value == entry.getValue() : value
106 return hash + (value
508 containsValue(Object value) argument
588 put(K key, V value) argument
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DAbstractMapTest.java64 public Object put(Object key, Object value) { argument
104 Object value = new Object();
107 map1.put("key", value);
108 assertSame("HashMap(0)", map1.remove("key"), value);
111 map4.put(key, value);
112 assertSame("IdentityHashMap", map4.remove(key), value);
115 map5.put(key, value);
116 assertSame("LinkedHashMap", map5.remove(key), value);
124 map6.put(key, value);
125 assertSame("TreeMap", map6.remove(key), value);
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/support/
H A DMockReader.java111 public void setFeature(String name, boolean value) { argument
112 if (value) {
119 public void setProperty(String name, Object value) throws SAXNotRecognizedException, argument
121 if (value == null) {
124 properties.put(name, value);
/libcore/luni/src/main/java/java/util/jar/
H A DManifestReader.java45 private String value; field in class:ManifestReader
52 main.put(name, value);
63 String entryNameValue = value;
71 entry.put(name, value);
124 throw new IOException(String.format("Invalid value for attribute '%s'", nameString));
181 value = valueBuffer.toString(StandardCharsets.UTF_8.name());
H A DAttributes.java34 * The {@code Attributes} as name/value pairs. Maps the attribute names (as
42 * The name part of the name/value pairs constituting an attribute as
69 * The {@code Sealed} manifest attribute which may have the value
75 * The {@code Implementation-Title} attribute whose value is a string
214 * Removes all key/value pairs from this {@code Attributes}.
232 * Determines whether this {@code Attributes} contains the specified value.
234 * @param value
235 * the value to search for.
236 * @return {@code true} if the value is found, {@code false} otherwise.
238 public boolean containsValue(Object value) { argument
297 put(Object key, Object value) argument
429 putValue(String name, String value) argument
[all...]
/libcore/luni/src/main/java/java/util/logging/
H A DLevel.java33 * set of predefined logging levels, each associated with an integer value.
155 * The integer value indicating the level.
159 private final int value; field in class:Level
176 * level value.
181 * an integer value indicating the level.
191 * value and resource bundle name.
196 * an integer value indicating the level.
207 this.value = level;
241 * Gets the integer value indicating this level.
243 * @return this level's integer value
[all...]
H A DXMLFormatter.java132 private static void append(StringBuilder sb, int indentCount, String tag, Object value) { argument
137 sb.append(value);
142 private static void escapeAndAppend(StringBuilder sb, int indentCount, String tag, Object value) { argument
143 if (value == null) {
144 append(sb, indentCount, tag, value);
151 escapeXml(sb, value.toString());
160 private static void escapeXml(Appendable valueBuilder, String value) throws IOException { argument
161 for (int i = 0; i < value.length(); i++) {
162 char c = value.charAt(i);
/libcore/luni/src/main/java/libcore/io/
H A DIoBridge.java59 if (available.value < 0) {
66 available.value = 0;
68 return available.value;
267 // Since setting this from java.net always sets IPv4 and IPv6 to the same value,
271 // Since setting this from java.net always sets IPv4 and IPv6 to the same value,
275 // Since setting this from java.net always sets IPv4 and IPv6 to the same value,
317 public static void setSocketOption(FileDescriptor fd, int option, Object value) throws SocketException { argument
319 setSocketOptionErrno(fd, option, value);
325 private static void setSocketOptionErrno(FileDescriptor fd, int option, Object value) throws ErrnoException, SocketException { argument
331 Libcore.os.setsockoptIpMreqn(fd, IPPROTO_IP, IP_MULTICAST_IF, (Integer) value);
[all...]
/libcore/luni/src/main/java/org/xml/sax/ext/
H A DAttributes2Impl.java79 * Returns the current value of the attribute's "declared" flag.
92 * Returns the current value of the attribute's "declared" flag.
108 * Returns the current value of the attribute's "declared" flag.
123 * Returns the current value of an attribute's "specified" flag.
126 * @return current flag value
140 * Returns the current value of an attribute's "specified" flag.
145 * @return current flag value
162 * Returns the current value of an attribute's "specified" flag.
165 * @return current flag value
221 * "specified" flag to true. To set that flag's value
240 addAttribute(String uri, String localName, String qName, String type, String value) argument
288 setDeclared(int index, boolean value) argument
307 setSpecified(int index, boolean value) argument
[all...]
/libcore/luni/src/test/java/libcore/util/
H A DBasicLruCacheTest.java76 @Override protected void entryEvicted(String key, String value) {
77 evictionLog.add(key + "=" + value);
92 * Replacing the value for a key doesn't cause an eviction but it does bring
99 @Override protected void entryEvicted(String key, String value) {
100 evictionLog.add(key + "=" + value);
115 @Override protected void entryEvicted(String key, String value) {
116 evictionLog.add(key + "=" + value);
/libcore/luni/src/test/java/tests/org/w3c/dom/
H A DSetNamedItemNS.java140 String value;
150 value = retnode.getNodeValue();
151 assertEquals("throw_Equals", "newValue", value);
205 String value;
213 value = retnode.getNodeValue();
214 assertEquals("throw_Equals", "Yes", value);
/libcore/luni/src/test/native/
H A Dlibcore_io_Memory_test.cpp85 void memory_peek_test(T (*peek_func)(JNIEnv*, jclass, jlong), T value) { argument
91 memcpy(reinterpret_cast<void*>(src_aligned), &value, sizeof(T)); local
93 ASSERT_EQ(value, result);
111 void memory_poke_test(void (*poke_func)(JNIEnv*, jclass, jlong, T), T value) { argument
118 poke_func(nullptr, nullptr, dst_aligned, value);
119 ASSERT_EQ(0, memcmp(reinterpret_cast<void*>(dst_aligned), &value, sizeof(T)));
/libcore/luni/src/test/java/tests/java/security/
H A DIdentityTest.java59 Object value[] = {
66 for (int k=0; k<value.length; k+=2) {
67 assertEquals(value[k+1], new Boolean(i1.equals(value[k])));
68 if (Boolean.TRUE.equals(value[k+1])) assertEquals(i1.hashCode(), value[k].hashCode());
219 Object[] value = {
228 for (int k=0; k<value.length; k+=2){
229 assertEquals(value[k+1], new Boolean(i.identityEquals((Identity)value[
[all...]
/libcore/benchmarks/src/benchmarks/regression/
H A DPropertyAccessBenchmark.java50 Float value = 0.1f;
51 view.setX(value);
57 Float value = 0.1f;
58 view.x = value;
/libcore/libart/src/main/java/java/lang/reflect/
H A DField.java45 * and the field's value can be accessed dynamically.
263 * Returns the value of the field in the specified object. This reproduces
266 * <p>If the type of this field is a primitive type, the field value is
280 * @return the field value, possibly boxed
292 * Returns the value of the field in the specified object as a {@code
306 * @return the field value
318 * Returns the value of the field in the specified object as a {@code byte}.
332 * @return the field value
344 * Returns the value of the field in the specified object as a {@code char}.
358 * @return the field value
528 set(Object object, Object value) argument
559 setBoolean(Object object, boolean value) argument
589 setByte(Object object, byte value) argument
618 setChar(Object object, char value) argument
648 setDouble(Object object, double value) argument
678 setFloat(Object object, float value) argument
708 setInt(Object object, int value) argument
738 setLong(Object object, long value) argument
768 setShort(Object object, short value) argument
[all...]
/libcore/luni/src/main/java/java/io/
H A DSerializationHandleMap.java31 /* Actual number of key-value pairs. */
54 int value = oldValues[i];
57 values[index] = value;
95 public int put(Object key, int value) { argument
97 int _value = value;
107 // insert the key and assign the value to -1 initially
112 // insert value to where it needs to go, return the old value
135 // store the value for this key
163 // clear both the key and the value
[all...]
/libcore/luni/src/main/java/org/apache/harmony/xml/
H A DExpatReader.java94 public void setFeature(String name, boolean value) argument
103 if (value) {
112 processNamespaces = value;
117 processNamespacePrefixes = value;
122 if (value) {
146 public void setProperty(String name, Object value) argument
154 if (value instanceof LexicalHandler || value == null) {
155 this.lexicalHandler = (LexicalHandler) value;
158 throw new SAXNotSupportedException("value does
[all...]

Completed in 897 milliseconds

1234567891011>>