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

1234567891011>>

/libcore/dom/src/test/java/org/w3c/domts/level2/core/
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/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/lang/
H A DCaseMapper.java36 * this class should be changed so that you instantiate it with the String and its value,
44 * if nothing changes. We need 'value', 'offset', and 'count' because they're not otherwise
47 public static String toLowerCase(Locale locale, String s, char[] value, int offset, int count) { argument
58 char ch = value[i];
63 } else if (ch == GREEK_CAPITAL_SIGMA && isFinalSigma(value, offset, count, i)) {
71 System.arraycopy(value, offset, newValue, 0, newCount);
85 private static boolean isFinalSigma(char[] value, int offset, int count, int index) { argument
91 char previous = value[index - 1];
98 char next = value[index + 1];
150 public static String toUpperCase(Locale locale, String s, char[] value, in 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...]
/libcore/luni/src/main/java/libcore/io/
H A DIoBridge.java59 if (available.value < 0) {
66 available.value = 0;
68 return available.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,
279 // Since setting this from java.net always sets IPv4 and IPv6 to the same value,
321 public static void setSocketOption(FileDescriptor fd, int option, Object value) throws SocketException { argument
323 setSocketOptionErrno(fd, option, value);
329 private static void setSocketOptionErrno(FileDescriptor fd, int option, Object value) throws ErrnoException, SocketException { argument
335 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/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/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...]
H A DObjectOutputStream.java120 * Puts the value of the boolean field identified by {@code name} to the
125 * @param value
126 * the value that is put to the persistent field.
128 public abstract void put(String name, boolean value); argument
131 * Puts the value of the character field identified by {@code name} to
136 * @param value
137 * the value that is put to the persistent field.
139 public abstract void put(String name, char value); argument
142 * Puts the value of the byte field identified by {@code name} to the
147 * @param value
150 put(String name, byte value) argument
161 put(String name, short value) argument
172 put(String name, int value) argument
183 put(String name, long value) argument
194 put(String name, float value) argument
205 put(String name, double value) argument
216 put(String name, Object value) argument
637 write(int value) argument
650 writeBoolean(boolean value) argument
663 writeByte(int value) argument
678 writeBytes(String value) argument
691 writeChar(int value) argument
705 writeChars(String value) argument
801 writeDouble(double value) argument
982 writeFloat(float value) argument
1074 writeInt(int value) argument
1087 writeLong(long value) argument
1783 writeShort(int value) argument
1808 writeUTF(String value) argument
[all...]
/libcore/luni/src/test/java/libcore/java/math/
H A DBigDecimalTest.java52 private void assertPrecision(int expectedPrecision, String value) { argument
53 BigDecimal parsed = new BigDecimal(value);
54 assertEquals("Unexpected precision for parsed value " + value,
58 assertEquals("Unexpected precision for computed value " + value,
/libcore/luni/src/test/java/tests/security/cert/
H A DX509CRL2Test.java92 byte[] value = pemCert.getExtensionValue(oid);
93 if (value != null && value.length > 0) {
95 assertTrue("The extension value for the oid " + oid
97 value[0] == 0x04);
/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...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
H A DBigIntegerConstructorsTest.java191 * Verify an exception thrown if a sign has improper value.
571 * Create a number from a string value and radix.
575 String value = "9234853876401";
578 new BigInteger(value, radix);
585 * Create a number from a string value and radix.
589 String value = " 9234853876401";
592 new BigInteger(value, radix);
599 * Create a number from a string value and radix.
603 String value = "92348$*#78987";
606 new BigInteger(value, radi
[all...]

Completed in 771 milliseconds

1234567891011>>