/libcore/luni/src/test/java/libcore/java/util/zip/ |
H A D | OldAndroidChecksumTest.java | 40 private void adler32Test(byte[] values, long expected) { argument 44 adler.update(values); 49 for (int i = 0; i < values.length; i++) { 50 adler.update(values[i]); 55 private void cRC32Test(byte[] values, long expected) { argument 59 crc.update(values); 64 for (int i = 0; i < values.length; i++) { 65 crc.update(values[i]);
|
/libcore/ojluni/src/main/java/java/util/ |
H A D | SortedMap.java | 34 * {@code entrySet}, {@code keySet} and {@code values} methods). 100 * @param <V> the type of mapped values 246 * Returns a {@link Collection} view of the values contained in this map. 247 * The collection's iterator returns the values in ascending order 260 * @return a collection view of the values contained in this map, 263 Collection<V> values(); method in interface:SortedMap
|
H A D | Objects.java | 66 * Two {@code null} values are deeply equal. If both arguments are 102 * Generates a hash code for a sequence of input values. The hash 103 * code is generated as if all the input values were placed into an 122 * @param values the values to be hashed 123 * @return a hash value of the sequence of input values 127 public static int hash(Object... values) { argument 128 return Arrays.hashCode(values); 171 * chooses to have for {@code null} values.
|
H A D | AbstractMap.java | 59 * @param <V> the type of mapped values 328 transient Collection<V> values; field in class:AbstractMap 405 public Collection<V> values() { method in class:AbstractMap 406 Collection<V> vals = values; 443 values = vals; 541 * associated value. Keys and values are converted to strings as by 568 * and values themselves are not cloned. 575 result.values = null;
|
H A D | EnumMap.java | 41 * {@link #entrySet()}, and {@link #values()}). 51 * Null values are permitted. 90 * All of the values comprising K. (Cached for performance.) 107 * Distinguished non-null value for representing null values. 411 * Returns a {@link Collection} view of the values contained in this map. 413 * {@link Map#values()}. The collection's iterator will return the 414 * values in the order their corresponding keys appear in map, 418 * @return a collection view of the values contained in this map 420 public Collection<V> values() { method in class:EnumMap 421 Collection<V> vs = values; [all...] |
H A D | Map.java | 36 * An object that maps keys to values. A map cannot contain duplicate keys; 43 * allow a map's contents to be viewed as a set of keys, collection of values, 77 * <p>Some map implementations have restrictions on the keys and values they 79 * values, and some have restrictions on the types of their keys. Attempting 116 * @param <V> the type of mapped values 181 * map does not permit null values 196 * <p>If this map permits null values, then a return value of 230 * if the implementation supports {@code null} values.) 236 * and this map does not permit null keys or values 252 * <p>If this map permits null values, the 342 Collection<V> values(); method in interface:Map [all...] |
/libcore/luni/src/test/java/libcore/libcore/util/ |
H A D | CountryZonesFinderTest.java | 101 private static <X> List<X> list(X... values) { argument 102 return Arrays.asList(values);
|
/libcore/ojluni/src/main/java/java/security/ |
H A D | PKCS12Attribute.java | 58 * list of values, enclosed in square brackets. See 87 String[] values; 89 values = value.substring(1, length - 1).split(", "); 91 values = new String[]{ value }; 96 this.encoded = encode(type, values); 109 * values SET OF AttributeValue 165 * list of values, enclosed in square brackets. See 228 private byte[] encode(ObjectIdentifier type, String[] values) argument 233 for (String value : values) { 259 String[] values [all...] |
/libcore/tools/upstream/src/main/java/libcore/ |
H A D | CompareUpstreams.java | 168 private static void printTsv(PrintStream out, List<String> values) { argument 169 out.println(String.join("\t", values)); 173 * Prints tab-separated values comparing ojluni files vs. each 238 List<String> values = new ArrayList<>(); 239 values.add(expectedUpstream.name()); 240 values.add(guessedUpstream == null ? "" : guessedUpstream.name()); 241 values.add(changedCommentsSummary); 242 values.addAll(comparisons); 243 values.add(diffCommand); 244 printTsv(out, values); [all...] |
/libcore/luni/src/main/java/libcore/reflect/ |
H A D | AnnotationFactory.java | 39 * conforming access to annotation member values and required implementations of 56 * of member element definitions with default values. 108 * @param values actual element values 110 private AnnotationFactory(Class<? extends Annotation> klzz, AnnotationMember[] values) { argument 113 if (values == null) { 116 //merge default and actual values 119 for (AnnotationMember val : values) { 132 * and merges deserialized values with the new definitions. 157 // anyway they remain relevant to values [all...] |
/libcore/luni/src/main/java/org/xml/sax/helpers/ |
H A D | AttributeListImpl.java | 143 values.add(value); 166 values.remove(i); 184 values.clear(); 249 if (i < 0 || i >= values.size()) { 252 return values.get(i); 291 private ArrayList<String> values = new ArrayList<String>(); 288 private ArrayList<String> values = new ArrayList<String>(); field in class:AttributeListImpl
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
H A D | CRLReasonCodeExtension.java | 52 private static CRLReason[] values = CRLReason.values(); field in class:CRLReasonCodeExtension 196 if (reasonCode > 0 && reasonCode < values.length) { 197 return values[reasonCode];
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
H A D | AbstractMapTest.java | 226 * java.util.AbstractMap#values() 230 assertSame("HashMap(0)", map1.values(), map1.values()); 233 assertSame("HashMap(10)", map2.values(), map2.values()); 236 assertSame("EMPTY_MAP", map3.values(), map3.values()); 239 assertSame("IdentityHashMap", map4.values(), map4.values()); 242 assertSame("IdentityHashMap", map5.values(), map 291 Vector values = new Vector(); field in class:AbstractMapTest.AMT [all...] |
H A D | CalendarTest.java | 605 // Other have been set to default values 963 String[] values = null; 967 values = (field == Calendar.AM_PM) ? symbols 969 assertDisplayNameMap(values, shortResult, 0); 970 assertDisplayNameMap(values, longResult, 0); 975 values = symbols.getShortMonths(); 976 assertDisplayNameMap(values, shortResult, 0); 977 values = symbols.getMonths(); 978 assertDisplayNameMap(values, longResult, 0); 983 values 1058 assertDisplayNameMap(String[] values, Map<String, Integer> result, int shift) argument [all...] |
H A D | RefSortedMap.java | 298 public Collection<V> values() { method in class:RefSortedMap 299 return tailMap(firstKey()).values(); 311 for (V v : values()) {
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
H A D | JapaneseEra.java | 229 * for (JapaneseEra c : JapaneseEra.values()) 235 public static JapaneseEra[] values() { method in class:JapaneseEra 306 * Gets the range of valid values for the specified field. 308 * The range object expresses the minimum and maximum valid values for a field. 326 * @return the range of valid values for the field, not null
|
/libcore/json/src/main/java/org/json/ |
H A D | JSONArray.java | 28 * A dense indexed sequence of values. Values may be any mix of 51 private final List<Object> values; field in class:JSONArray 54 * Creates a {@code JSONArray} with no values. 57 values = new ArrayList<Object>(); 61 * Creates a new {@code JSONArray} by copying all values from the given 64 * @param copyFrom a collection whose values are of supported types. 65 * Unsupported values are not permitted and will yield an array in an 79 * Creates a new {@code JSONArray} with values from the next array in the 94 values = ((JSONArray) object).values; [all...] |
/libcore/luni/src/test/java/com/android/org/bouncycastle/jce/provider/ |
H A D | CertBlacklistTest.java | 207 private void writeBlacklist(HashSet<String> values) throws IOException { argument 209 // join the values into a string 210 for (String value : values) {
|
/libcore/ojluni/src/main/java/java/util/jar/ |
H A D | Attributes.java | 44 * values. Valid attribute names are case-insensitive, are restricted to 46 * characters in length. Attribute values can contain any characters and 49 * for more information about valid attribute names and values. 249 * Returns a Collection view of the attribute values contained in this Map. 251 public Collection<Object> values() { method in class:Attributes 252 return map.values(); 287 * Since the attribute names and values are themselves immutable, 297 * XXX Need to handle UTF8 values and break up lines longer than 72 bytes 326 * XXX Need to handle UTF8 values and break up lines longer than 72 bytes 370 * XXX Need to handle UTF8 values [all...] |
/libcore/ojluni/src/main/java/java/util/stream/ |
H A D | DoubleStream.java | 163 * {@code DoubleStream} of new values 234 * especially for large values of {@code maxSize}, since {@code limit(n)} 263 * especially for large values of {@code n}, since {@code skip(n)} 368 * function for combining two values 408 * function for combining two values 446 * function for combining two values, which must be 475 * of the input values as well as the order of addition 484 * values. 560 * which values are recorded. 748 * Returns a sequential ordered stream whose elements are the specified values 753 of(double... values) argument [all...] |
H A D | Stream.java | 65 * transform it into a stream of {@code int} values representing the weight of 264 * of new values 283 * of new values 303 * of new values 323 * of new values 432 * especially for large values of {@code maxSize}, since {@code limit(n)} 461 * especially for large values of {@code n}, since {@code skip(n)} 601 * function for combining two values 637 * function for combining two values 687 * function for combining two values, whic 996 of(T... values) argument [all...] |
/libcore/ojluni/src/main/java/sun/net/www/ |
H A D | MessageHeader.java | 38 values, setting values, and printing headers. 39 Key values of null are legal: they indicate lines in 46 private String values[]; field in class:MessageHeader 69 * Reset a message header (all key/values removed) 73 values = null; 88 return values[i]; 92 return values[i]; 113 return values[n]; 120 * over all the values o [all...] |
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
H A D | OCSPResponse.java | 132 private static ResponseStatus[] rsvalues = ResponseStatus.values(); 176 private static CRLReason[] values = CRLReason.values(); field in class:OCSPResponse 600 for (SingleResponse sr : singleResponseMap.values()) { 709 if (reason >= 0 && reason < values.length) { 710 revocationReason = values[reason];
|
/libcore/ojluni/src/main/java/sun/security/util/ |
H A D | ObjectIdentifier.java | 86 * are serialized as legal values and old object can init correctly. 215 public ObjectIdentifier (int values []) throws IOException 217 checkCount(values.length); 218 checkFirstComponent(values[0]); 219 checkSecondComponent(values[0], values[1]); 220 for (int i=2; i<values.length; i++) 221 checkOtherComponent(i, values[i]); 222 init(values, values 310 newInternal(int[] values) argument [all...] |
/libcore/luni/src/test/java/libcore/java/sql/ |
H A D | OldResultSetGetterTests.java | 76 static List<String> values = Arrays.asList("1", "-1", "22", "2", "33", field in class:OldResultSetGetterTests 152 // first inserted row : actual values 153 // second inserted row: null values 189 + "values (1, -1, 22, 2, 33," 207 + "values (null, null, null, null, null," 246 for (String t : values) { 273 .prepareStatement("insert into testBinary values (?);"); 305 stPrep = conn.prepareStatement("insert into testBinary values (?);"); 355 .prepareStatement("insert into testBinary values (?);"); 387 stPrep = conn.prepareStatement("insert into testBinary values ( [all...] |