/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
H A D | CollectionsTest.java | 143 // starting at the value size to 2*size - 1 230 // starting at the value size to 2*size - 1 249 public MyInt(int value) { argument 250 data = value; 439 Collections.fill(mal, "value"); 895 // test replacing null elements with another value 1441 assertNull("Trying to use a null value in map failed", synchMap 1804 assertNull("Trying to use a null value in map failed", unmodMap 1959 String value = "Fundamental constant"; 1961 Map single = Collections.singletonMap(key, value); [all...] |
H A D | ArraysTest.java | 112 assertEquals("Binary search succeeded for value not present in array 1", 115 "Binary search succeeded for value not present in array 2", 134 assertEquals("Binary search succeeded for value not present in array 1", 137 "Binary search succeeded for value not present in array 2", 150 assertEquals("Binary search succeeded for value not present in array 1", 153 "Binary search succeeded for value not present in array 2", 184 assertEquals("Binary search succeeded for value not present in array 1", 187 "Binary search succeeded for value not present in array 2", 216 assertEquals("Binary search succeeded for value not present in array 1", 218 assertTrue("Binary search succeeded for value no 1619 public int value; field in class:ArraysTest.Element 1625 Element(int value) argument [all...] |
/libcore/jsr166-tests/src/test/java/jsr166/ |
H A D | ForkJoinTaskTest.java | 316 protected final void setControlState(int value) { argument 317 controlState = value; 1618 * normally without setting a value. The most recent value
|
/libcore/luni/src/main/java/java/math/ |
H A D | BigDecimal.java | 30 * <p>A value is represented by an arbitrary-precision "unscaled value" and a signed 32-bit "scale", 97 * the case that the value cannot be represented exactly. 212 * The arbitrary precision integer (unscaled value) in the internal 227 * Represent the number of decimal digits in the unscaled value. This 269 StringBuilder unscaledBuffer; // buffer for unscaled value 342 // Parsing the unscaled value 459 * double value to be converted to a {@code BigDecimal} instance. 485 // Calculating the new unscaled value and the new scale 527 * double value t 1804 decimalDigitsInLong(long value) argument [all...] |
/libcore/luni/src/main/java/java/sql/ |
H A D | ResultSet.java | 250 * Gets the value of a column specified by column name as a {@code 262 * Gets the value of a column specified by column index as an ASCII 274 * Gets the value of a column specified by column name as an ASCII character 286 * Gets the value of a column specified by column index as a {@code 291 * @return a {@code BigDecimal} with the value of the column. 298 * Gets the value of a column specified by column index as a {@code 306 * @return a {@code BigDecimal} with the value of the column. 315 * Gets the value of a column specified by column name, as a {@code 320 * @return a BigDecimal with value of the column. 327 * Gets the value o 1962 updateRowId(int columnIndex, RowId value) argument 1969 updateRowId(String columnLabel, RowId value) argument [all...] |
/libcore/luni/src/main/java/java/util/ |
H A D | Calendar.java | 58 * has value {@code MONTH} == {@code JANUARY} for all calendars. 162 * <strong>{@code set(f, value)}</strong> changes field {@code f} 163 * to {@code value}. In addition, it sets an internal member variable to 170 * other fields may also change, depending on the field, the field value, and 172 * return {@code value} after the fields have been recomputed. The 193 * <strong>Add rule 1</strong>. The value of field {@code f} after the 194 * call minus the value of field {@code f} before the call is 196 * {@code f}. Overflow occurs when a field value exceeds its range and, 198 * field value is adjusted back into its range. 202 * but it is impossible for it to be equal to its prior value becaus 748 add(int field, int value) argument 1104 roll(int field, int value) argument 1123 set(int field, int value) argument 1174 setFirstDayOfWeek(int value) argument 1182 setLenient(boolean value) argument 1189 setMinimalDaysInFirstWeek(int value) argument [all...] |
H A D | Formatter.java | 245 * <td width="25%" valign="top">Decimal or engineering, depending on the magnitude of the value.</td> 294 * <td width="25%">Newline. (The value of {@link System#lineSeparator}.)</td> 1679 long value; 1681 value = ((Long) arg).longValue(); 1683 value = ((Integer) arg).longValue(); 1685 value = ((Short) arg).longValue(); 1687 value = ((Byte) arg).longValue(); 1703 CharSequence digits = Long.toString(value); 1712 if (value < 0) { 1730 value 1977 appendLocalized(StringBuilder result, long value, int width) argument [all...] |
H A D | Locale.java | 392 * previous value is cleared. 397 * This value is usually an <a href="http://www.loc.gov/standards/iso639-2/"> 463 * previous value is cleared. 497 * the previous value is cleared. 558 * the previous value is cleared. 705 * Sets the extension identified by {@code key} to {@code value}. 709 * If {@code value} is {@code null} or empty, the extension is removed. 711 * In the general case, {@code value} must be a series of subtags separated 723 * state being replaced by the parsed result of {@code value}. For example, 741 * @throws IllformedLocaleException if {@code value} i 743 setExtension(char key, String value) argument [all...] |
H A D | TreeMap.java | 91 * Create a natural order tree map populated with the key/value pairs of 129 * Create a tree map with the ordering and key/value pairs of {@code 185 @Override public V put(K key, V value) { argument 186 return putInternal(key, value); 197 return node != null ? node.value : null; 239 V putInternal(K key, V value) { argument 241 V result = created.value; 242 created.value = value; 355 * Returns this map's entry that has the same key and value a 738 V value; field in class:TreeMap.Node 768 setValue(V value) argument 1141 put(K key, V value) argument 1470 outOfBounds(Object value, Bound fromBound, Bound toBound) argument [all...] |
H A D | Collections.java | 143 @Override public boolean containsValue(Object value) { argument 298 SingletonMap(K key, V value) { argument 300 v = value; 307 @Override public boolean containsValue(Object value) { argument 308 return v == null ? value == null : v.equals(value); 352 @Override public V setValue(V value) { 686 @Override public boolean containsValue(Object value) { argument 688 return m.containsValue(value); 728 @Override public V put(K key, V value) { argument 1255 containsValue(Object value) argument 1283 put(K key, V value) argument 1854 singletonMap(K key, V value) argument 3123 containsValue(Object value) argument 3131 put(K key, V value) argument [all...] |
/libcore/luni/src/main/java/java/util/concurrent/ |
H A D | ThreadPoolExecutor.java | 61 * maximumPoolSize to an essentially unbounded value such as {@code 97 * TimeUnit)}. Using a value of {@code Long.MAX_VALUE} {@link 103 * keepAliveTime value is non-zero. </dd> 144 * threads will ever be created. (And the value of the maximumPoolSize 305 * permitted to start and not permitted to stop. The value may be 556 * state to a negative value, and clear it upon start (in 593 // The value 0 represents the unlocked state. 594 // The value 1 represents the locked state. 861 * value to ensure reads of fresh values after checking other pool 1496 * Sets the core number of threads. This overrides any value se 1609 allowCoreThreadTimeOut(boolean value) argument [all...] |
H A D | ConcurrentHashMap.java | 52 * that key reporting the updated value.) For aggregate operations 94 * does <em>not</em> allow {@code null} to be used as a key or value. 118 * key-value mapping is held in a Node. Most nodes are instances 119 * of the basic Node class with hash, key, value, and next 128 * because they have negative hash fields and null key and value 287 * this, the tree is ordered primarily by hash value, then by 342 * The largest possible table capacity. This value must be 369 * The load factor for this table. Overrides of this value in 371 * actual floating point value isn't normally used -- it is 380 * bin with at least this many nodes. The value mus 473 setValue(V value) argument 813 containsValue(Object value) argument 841 put(K key, V value) argument 846 putVal(K key, V value, boolean onlyIfAbsent) argument 941 replaceNode(Object key, V value, Object cv) argument 1365 putIfAbsent(K key, V value) argument 1374 remove(Object key, Object value) argument 1398 replace(K key, V value) argument 1423 contains(Object value) argument 2763 setValue(V value) argument 2942 private final V value; field in class:ConcurrentHashMap.KeySetView 2943 KeySetView(ConcurrentHashMap<K,V> map, V value) argument 3161 volatile long value; field in class:ConcurrentHashMap.CounterCell [all...] |
H A D | ConcurrentSkipListMap.java | 128 * space by defining marker nodes not to have key/value fields, it 135 * nullness of value fields to indicate deletion, in a style 136 * similar to typical lazy-deletion schemes. If a node's value is 141 * must return the last non-null value held in the field. (Note: 142 * Null, rather than some special marker, is used for value fields 146 * even when deleted. Using any other marker value here would be 156 * 1. CAS n's value field from non-null to null. 179 * thread noticed during a traversal a node with null value and 204 * is that under contention, the effective "p" value may be lower 205 * than its nominal value 376 volatile Object value; field in class:ConcurrentSkipListMap.Node 382 Node(K key, Object value, Node<K,V> next) argument 827 doPut(K kkey, V value, boolean onlyIfAbsent) argument 1026 doRemove(Object okey, Object value) argument 1622 put(K key, V value) argument 1654 containsValue(Object value) argument 1858 putIfAbsent(K key, V value) argument 1871 remove(Object key, Object value) argument 1913 replace(K key, V value) argument 2720 put(K key, V value) argument 2745 containsValue(Object value) argument 2769 putIfAbsent(K key, V value) argument 2774 remove(Object key, Object value) argument 2784 replace(K key, V value) argument [all...] |
H A D | ForkJoinPool.java | 203 * Submitter probe value serves as a hash code for 294 * counter value (that reflects the number of times a worker has 615 * value a bit less than this to help users trap runaway 1097 * Initial timeout value (in nanoseconds) for the thread 1100 * workers. The value should be large enough to avoid overly 1107 * Timeout value when there are more threads than parallelism level 1273 * when CAS of seq value for unlock fails. 1497 * workQueue array and set plock to a valid value. This lock body 1498 * must also be exception-free. Because the plock seq value can 1707 * @param c the ctl value o 3179 newTaskFor(Runnable runnable, T value) argument [all...] |
/libcore/luni/src/main/java/libcore/icu/ |
H A D | NativeDecimalFormat.java | 283 public char[] formatBigDecimal(BigDecimal value, FieldPosition field) { argument 285 char[] result = formatDigitList(this.address, value.toString(), fpi); 292 public char[] formatBigInteger(BigInteger value, FieldPosition field) { argument 294 char[] result = formatDigitList(this.address, value.toString(10), fpi); 301 public char[] formatLong(long value, FieldPosition field) { argument 303 char[] result = formatLong(this.address, value, fpi); 310 public char[] formatDouble(double value, FieldPosition field) { argument 312 char[] result = formatDouble(this.address, value, fpi); 473 public void setDecimalSeparatorAlwaysShown(boolean value) { argument 474 int i = value 483 setGroupingSize(int value) argument 487 setGroupingUsed(boolean value) argument 492 setMaximumFractionDigits(int value) argument 496 setMaximumIntegerDigits(int value) argument 500 setMinimumFractionDigits(int value) argument 504 setMinimumIntegerDigits(int value) argument 508 setMultiplier(int value) argument 512 setNegativePrefix(String value) argument 519 setNegativeSuffix(String value) argument 526 setPositivePrefix(String value) argument 533 setPositiveSuffix(String value) argument 540 setParseBigDecimal(boolean value) argument 544 setParseIntegerOnly(boolean value) argument 621 formatLong(long addr, long value, FieldPositionIterator iter) argument 622 formatDouble(long addr, double value, FieldPositionIterator iter) argument 623 formatDigitList(long addr, String value, FieldPositionIterator iter) argument [all...] |
/libcore/luni/src/main/native/ |
H A D | libcore_icu_ICU.cpp | 323 static void setIntegerField(JNIEnv* env, jobject obj, const char* fieldName, int value) { argument 324 ScopedLocalRef<jobject> integerValue(env, integerValueOf(env, value)); 329 static void setStringField(JNIEnv* env, jobject obj, const char* fieldName, jstring value) { argument 331 env->SetObjectField(obj, fid, value); 332 env->DeleteLocalRef(value); 335 static void setStringArrayField(JNIEnv* env, jobject obj, const char* fieldName, jobjectArray value) { argument 337 env->SetObjectField(obj, fid, value); 366 static void setCharField(JNIEnv* env, jobject obj, const char* fieldName, const icu::UnicodeString& value) { argument 367 if (value.length() == 0) { 371 env->SetCharField(obj, fid, value 374 setStringField(JNIEnv* env, jobject obj, const char* fieldName, const icu::UnicodeString& value) argument [all...] |
H A D | org_apache_harmony_xml_ExpatParser.cpp | 1133 * Gets the value of the attribute at the given index. 1138 * @returns Java string containing attribute's value 1143 const char* value = attributes[(index * 2) + 1]; local 1144 return env->NewStringUTF(value); 1206 * Gets the value of the attribute with the given qualified name. 1211 * @returns value of attribute with the given uri and local name or NULL if not 1222 * Gets the value of the attribute with the given URI and name. 1227 * @returns value of attribute with the given uri and local name or NULL if not
|
/libcore/luni/src/test/java/libcore/java/lang/ |
H A D | OldClassTest.java | 52 String value(); method in interface:OldClassTest.TestAnnotation 78 void setCount(int value); argument 99 public void setCount(int value) { argument 135 public void setCount(int value) { argument 136 count = value; 347 assertEquals(target.value(), PublicTestClass.class.getName());
|
/libcore/luni/src/main/java/android/system/ |
H A D | Os.java | 429 public static void setenv(String name, String value, boolean overwrite) throws ErrnoException { Libcore.os.setenv(name, value, overwrite); } argument 461 /** @hide */ public static void setsockoptByte(FileDescriptor fd, int level, int option, int value) throws ErrnoException { Libcore.os.setsockoptByte(fd, level, option, value); } argument 462 /** @hide */ public static void setsockoptIfreq(FileDescriptor fd, int level, int option, String value) throws ErrnoException { Libcore.os.setsockoptIfreq(fd, level, option, value); } argument 463 /** @hide */ public static void setsockoptInt(FileDescriptor fd, int level, int option, int value) throws ErrnoException { Libcore.os.setsockoptInt(fd, level, option, value); } argument 464 /** @hide */ public static void setsockoptIpMreqn(FileDescriptor fd, int level, int option, int value) throws ErrnoException { Libcore.os.setsockoptIpMreqn(fd, level, option, value); } argument 465 setsockoptGroupReq(FileDescriptor fd, int level, int option, StructGroupReq value) argument 466 setsockoptGroupSourceReq(FileDescriptor fd, int level, int option, StructGroupSourceReq value) argument 467 setsockoptLinger(FileDescriptor fd, int level, int option, StructLinger value) argument 468 setsockoptTimeval(FileDescriptor fd, int level, int option, StructTimeval value) argument 475 setxattr(String path, String name, byte[] value, int flags) argument [all...] |
/libcore/luni/src/main/java/libcore/io/ |
H A D | ForwardingOs.java | 142 public void setenv(String name, String value, boolean overwrite) throws ErrnoException { os.setenv(name, value, overwrite); } argument 149 public void setsockoptByte(FileDescriptor fd, int level, int option, int value) throws ErrnoException { os.setsockoptByte(fd, level, option, value); } argument 150 public void setsockoptIfreq(FileDescriptor fd, int level, int option, String value) throws ErrnoException { os.setsockoptIfreq(fd, level, option, value); } argument 151 public void setsockoptInt(FileDescriptor fd, int level, int option, int value) throws ErrnoException { os.setsockoptInt(fd, level, option, value); } argument 152 public void setsockoptIpMreqn(FileDescriptor fd, int level, int option, int value) throws ErrnoException { os.setsockoptIpMreqn(fd, level, option, value); } argument 153 setsockoptGroupReq(FileDescriptor fd, int level, int option, StructGroupReq value) argument 154 setsockoptGroupSourceReq(FileDescriptor fd, int level, int option, StructGroupSourceReq value) argument 155 setsockoptLinger(FileDescriptor fd, int level, int option, StructLinger value) argument 156 setsockoptTimeval(FileDescriptor fd, int level, int option, StructTimeval value) argument 158 setxattr(String path, String name, byte[] value, int flags) argument [all...] |
H A D | Os.java | 135 public void setenv(String name, String value, boolean overwrite) throws ErrnoException; argument 142 public void setsockoptByte(FileDescriptor fd, int level, int option, int value) throws ErrnoException; argument 143 public void setsockoptIfreq(FileDescriptor fd, int level, int option, String value) throws ErrnoException; argument 144 public void setsockoptInt(FileDescriptor fd, int level, int option, int value) throws ErrnoException; argument 145 public void setsockoptIpMreqn(FileDescriptor fd, int level, int option, int value) throws ErrnoException; argument 146 public void setsockoptGroupReq(FileDescriptor fd, int level, int option, StructGroupReq value) throws ErrnoException; argument 147 public void setsockoptGroupSourceReq(FileDescriptor fd, int level, int option, StructGroupSourceReq value) throws ErrnoException; argument 148 public void setsockoptLinger(FileDescriptor fd, int level, int option, StructLinger value) throws ErrnoException; argument 149 public void setsockoptTimeval(FileDescriptor fd, int level, int option, StructTimeval value) throws ErrnoException; argument 151 public void setxattr(String path, String name, byte[] value, in argument [all...] |
H A D | Posix.java | 219 public native void setenv(String name, String value, boolean overwrite) throws ErrnoException; argument 226 public native void setsockoptByte(FileDescriptor fd, int level, int option, int value) throws ErrnoException; argument 227 public native void setsockoptIfreq(FileDescriptor fd, int level, int option, String value) throws ErrnoException; argument 228 public native void setsockoptInt(FileDescriptor fd, int level, int option, int value) throws ErrnoException; argument 229 public native void setsockoptIpMreqn(FileDescriptor fd, int level, int option, int value) throws ErrnoException; argument 230 public native void setsockoptGroupReq(FileDescriptor fd, int level, int option, StructGroupReq value) throws ErrnoException; argument 231 public native void setsockoptGroupSourceReq(FileDescriptor fd, int level, int option, StructGroupSourceReq value) throws ErrnoException; argument 232 public native void setsockoptLinger(FileDescriptor fd, int level, int option, StructLinger value) throws ErrnoException; argument 233 public native void setsockoptTimeval(FileDescriptor fd, int level, int option, StructTimeval value) throws ErrnoException; argument 235 public native void setxattr(String path, String name, byte[] value, in argument [all...] |
/libcore/luni/src/test/java/libcore/javax/crypto/ |
H A D | CipherTest.java | 395 String algorithm, int value) { 397 map.put(algorithm, value); 401 String algorithm, int mode, int value) { 402 setExpectedSize(map, modeKey(algorithm, mode), value); 406 String algorithm, int mode, String provider, int value) { 407 setExpectedSize(map, modeProviderKey(algorithm, mode, provider), value); 427 private static void setExpectedBlockSize(String algorithm, int value) { argument 428 setExpectedSize(EXPECTED_BLOCK_SIZE, algorithm, value); 431 private static void setExpectedBlockSize(String algorithm, int mode, int value) { argument 432 setExpectedSize(EXPECTED_BLOCK_SIZE, algorithm, mode, value); 394 setExpectedSize(Map<String, Integer> map, String algorithm, int value) argument 400 setExpectedSize(Map<String, Integer> map, String algorithm, int mode, int value) argument 405 setExpectedSize(Map<String, Integer> map, String algorithm, int mode, String provider, int value) argument 435 setExpectedBlockSize(String algorithm, int mode, String provider, int value) argument 600 setExpectedOutputSize(String algorithm, int value) argument 604 setExpectedOutputSize(String algorithm, int mode, int value) argument 608 setExpectedOutputSize(String algorithm, int mode, String provider, int value) argument [all...] |
/libcore/xml/src/main/java/org/kxml2/io/ |
H A D | KXmlParser.java | 174 * i + 3 = attribute value 548 checkRelaxed("illegal standalone value: " + st); 798 * The default is either #REQUIRED, #IMPLIED, #FIXED, a quoted value, or 799 * #FIXED with a quoted value. 847 // default value 868 String value = readValue((char) c, true, true, ValueContext.ATTRIBUTE); 872 defineAttributeDefault(elementName, attributeName, value); 877 private void defineAttributeDefault(String elementName, String attributeName, String value) { argument 886 elementAttributes.put(attributeName, value); 890 * Read an entity declaration. The value o 1775 defineEntityReplacementText(String entity, String value) argument 2092 setFeature(String feature, boolean value) argument 2104 setProperty(String property, Object value) argument [all...] |
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | URLConnectionTest.java | 968 int value = in.read(); 969 if (value == -1) { 973 result.append((char) value); 1188 // Later releases of Android ignore the value for chunkLength if it is > 0 and default to 2522 private void assertContains(List<String> list, String value) { argument 2523 assertTrue(list.toString(), list.contains(value)); 3029 @Override public void setTrafficClass(int value) throws SocketException { argument 3030 delegate.setTrafficClass(value); 3037 @Override public void sendUrgentData(int value) throws IOException { argument 3038 delegate.sendUrgentData(value); [all...] |