Searched refs:add (Results 76 - 100 of 683) sorted by relevance

1234567891011>>

/libcore/ojluni/src/main/java/java/util/
H A DEnumSet.java178 result.add(i.next());
215 result.add(e);
236 result.add(e1);
237 result.add(e2);
259 result.add(e1);
260 result.add(e2);
261 result.add(e3);
284 result.add(e1);
285 result.add(e2);
286 result.add(e
[all...]
H A DAbstractQueue.java46 * elements. Methods {@link #add add}, {@link #remove remove}, and
83 * @param e the element to add
84 * @return {@code true} (as specified by {@link Collection#add})
94 public boolean add(E e) { method in class:AbstractQueue
161 * trying to add an element (including, in particular, a
178 * @see #add(Object)
187 if (add(e))
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/support/
H A DMethodLogger.java41 public void add(String method, Object ... args) { method in class:MethodLogger
45 methods.add(method);
46 argLists.add(argsCopy);
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
H A DSummaryStatisticsTest.java47 instances.add(countTo(1000).stream().collect(Collectors.summarizingInt(i -> i)));
48 instances.add(countTo(1000).stream().mapToInt(i -> i).summaryStatistics());
49 instances.add(countTo(1000).parallelStream().collect(Collectors.summarizingInt(i -> i)));
50 instances.add(countTo(1000).parallelStream().mapToInt(i -> i).summaryStatistics());
62 instances.add(countTo(1000).stream().collect(Collectors.summarizingLong(i -> i)));
63 instances.add(countTo(1000).stream().mapToLong(i -> i).summaryStatistics());
64 instances.add(countTo(1000).parallelStream().collect(Collectors.summarizingLong(i -> i)));
65 instances.add(countTo(1000).parallelStream().mapToLong(i -> i).summaryStatistics());
77 instances.add(countTo(1000).stream().collect(Collectors.summarizingDouble(i -> i)));
78 instances.add(countT
[all...]
H A DCollectionAndMapModifyStreamTest.java61 collections.add(new ArrayList<>(content));
62 collections.add(new LinkedList<>(content));
63 collections.add(new Vector<>(content));
65 collections.add(new HashSet<>(content));
66 collections.add(new LinkedHashSet<>(content));
67 collections.add(new TreeSet<>(content));
71 collections.add(stack);
72 collections.add(new PriorityQueue<>(content));
73 collections.add(new ArrayDeque<>(content));
77 collections.add(ne
[all...]
/libcore/dom/src/test/java/org/w3c/domts/level1/core/
H A Dhc_noderemovechildnode.java77 expected.add("strong");
78 expected.add("code");
79 expected.add("sup");
80 expected.add("var");
81 expected.add("acronym");
100 actual.add(childName);
H A Dhc_nodereplacechildnewchildexists.java75 expected.add("strong");
76 expected.add("code");
77 expected.add("sup");
78 expected.add("var");
79 expected.add("em");
97 actual.add(childName);
H A Dhc_elementretrieveallattributes.java70 htmlExpected.add("title");
73 expected.add("title");
74 expected.add("dir");
83 actual.add(attributeName);
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
H A DNodeListImpl.java46 void add(NodeImpl node) { method in class:NodeListImpl
47 children.add(node);
/libcore/luni/src/test/java/tests/security/cert/
H A DCollectionCertStoreParametersTest.java65 c.add(new Object());
77 certificates.add(new MyCertificate("TEST", new byte[] {}));
90 certificates.add(new String("Not a Certificate"));
108 certificates.add(new MyCertificate("TEST", new byte[] {(byte)1}));
109 certificates.add(new MyCertificate("TEST", new byte[] {(byte)2}));
131 certificates.add(new MyCertificate("TEST", new byte[] {(byte)4}));
145 certificates.add(new MyCertificate("TEST", new byte[] {(byte)4}));
184 certificates.add(new MyCertificate("TEST", new byte[] {(byte)4}));
/libcore/ojluni/src/main/java/java/io/
H A DDeleteOnExitHook.java50 static synchronized void add(String file) { method in class:DeleteOnExitHook
52 // DeleteOnExitHook is running. Too late to add a file
56 files.add(file);
/libcore/support/src/test/java/tests/support/
H A DSupport_SetTest.java37 // add
39 !set.add(new Integer(50)));
45 set.add(new Integer(50));
/libcore/jsr166-tests/src/test/java/jsr166/
H A DDoubleAdderTest.java37 * add adds given value to current, and sum returns current value
41 ai.add(2.0);
43 ai.add(-4.0);
52 ai.add(2.0);
63 ai.add(2.0);
76 x.add(-22.0);
89 ai.add(1.0);
99 ai.add(1.0);
109 ai.add(1.0);
119 ai.add(1.
[all...]
/libcore/ojluni/src/main/java/sun/nio/fs/
H A DAbstractBasicFileAttributeView.java103 names.add(name);
122 void add(String name, Object value) { method in class:AbstractBasicFileAttributeView.AttributesBuilder
136 * Invoked by readAttributes or sub-classes to add all matching basic
143 builder.add(SIZE_NAME, attrs.size());
145 builder.add(CREATION_TIME_NAME, attrs.creationTime());
147 builder.add(LAST_ACCESS_TIME_NAME, attrs.lastAccessTime());
149 builder.add(LAST_MODIFIED_TIME_NAME, attrs.lastModifiedTime());
151 builder.add(FILE_KEY_NAME, attrs.fileKey());
153 builder.add(IS_DIRECTORY_NAME, attrs.isDirectory());
155 builder.add(IS_REGULAR_FILE_NAM
[all...]
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
H A DIntStreamTestDataProvider.java86 list.add(new Object[]{"array:" +
93 list.add(new Object[]{"SpinedList:" + name,
96 list.add(streamDataDescr("IntStream.intRange(0,l): " + ints.length,
98 list.add(streamDataDescr("IntStream.rangeClosed(0,l): " + ints.length,
115 spliterators.add(splitDescr("Arrays.s(array):" + name,
117 spliterators.add(splitDescr("Arrays.s(array,o,l):" + name,
120 spliterators.add(splitDescr("SpinedBuffer.s():" + name,
123 spliterators.add(splitDescr("Primitives.s(SpinedBuffer.iterator(), size):" + name,
125 spliterators.add(splitDescr("Primitives.s(SpinedBuffer.iterator()):" + name,
128 spliterators.add(splitDesc
[all...]
H A DLongStreamTestDataProvider.java86 list.add(new Object[]{"array:" + name,
93 list.add(new Object[]{"SpinedList:" + name,
96 list.add(streamDataDescr("LongStream.longRange(0,l): " + longs.length,
98 list.add(streamDataDescr("LongStream.longRangeClosed(0,l): " + longs.length,
115 spliterators.add(splitDescr("Arrays.s(array):" + name,
117 spliterators.add(splitDescr("Arrays.s(array,o,l):" + name,
120 spliterators.add(splitDescr("SpinedBuffer.s():" + name,
123 spliterators.add(splitDescr("Primitives.s(SpinedBuffer.iterator(), size):" + name,
125 spliterators.add(splitDescr("Primitives.s(SpinedBuffer.iterator()):" + name,
128 spliterators.add(splitDesc
[all...]
H A DStreamTestDataProvider.java93 list.add(arrayDataDescr("array:" + name, ints));
94 list.add(collectionDataDescr("ArrayList.asList:" + name, intsAsList));
95 list.add(collectionDataDescr("ArrayList:" + name, new ArrayList<>(intsAsList)));
96 list.add(streamDataDescr("DelegatingStream(ArrayList):" + name,
104 list.add(collectionDataDescr("ArrayList.Sublist:" + name,
107 list.add(collectionDataDescr("LinkedList:" + name, new LinkedList<>(intsAsList)));
108 list.add(collectionDataDescr("HashSet:" + name, new HashSet<>(intsAsList)));
109 list.add(collectionDataDescr("LinkedHashSet:" + name, new LinkedHashSet<>(intsAsList)));
110 list.add(collectionDataDescr("TreeSet:" + name, new TreeSet<>(intsAsList)));
113 list.add(sbDataDesc
[all...]
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
H A DIntStreamTestDataProvider.java90 list.add(new Object[]{"array:" +
97 list.add(new Object[]{"SpinedList:" + name,
100 list.add(streamDataDescr("IntStream.intRange(0,l): " + ints.length,
102 list.add(streamDataDescr("IntStream.rangeClosed(0,l): " + ints.length,
119 spliterators.add(splitDescr("Arrays.s(array):" + name,
121 spliterators.add(splitDescr("Arrays.s(array,o,l):" + name,
124 spliterators.add(splitDescr("SpinedBuffer.s():" + name,
127 spliterators.add(splitDescr("Primitives.s(SpinedBuffer.iterator(), size):" + name,
129 spliterators.add(splitDescr("Primitives.s(SpinedBuffer.iterator()):" + name,
132 spliterators.add(splitDesc
[all...]
H A DLongStreamTestDataProvider.java90 list.add(new Object[]{"array:" + name,
97 list.add(new Object[]{"SpinedList:" + name,
100 list.add(streamDataDescr("LongStream.longRange(0,l): " + longs.length,
102 list.add(streamDataDescr("LongStream.longRangeClosed(0,l): " + longs.length,
119 spliterators.add(splitDescr("Arrays.s(array):" + name,
121 spliterators.add(splitDescr("Arrays.s(array,o,l):" + name,
124 spliterators.add(splitDescr("SpinedBuffer.s():" + name,
127 spliterators.add(splitDescr("Primitives.s(SpinedBuffer.iterator(), size):" + name,
129 spliterators.add(splitDescr("Primitives.s(SpinedBuffer.iterator()):" + name,
132 spliterators.add(splitDesc
[all...]
H A DStreamTestDataProvider.java99 list.add(arrayDataDescr("array:" + name, ints));
100 list.add(collectionDataDescr("ArrayList.asList:" + name, intsAsList));
101 list.add(collectionDataDescr("ArrayList:" + name, new ArrayList<>(intsAsList)));
102 list.add(streamDataDescr("DelegatingStream(ArrayList):" + name,
110 list.add(collectionDataDescr("ArrayList.Sublist:" + name,
113 list.add(collectionDataDescr("LinkedList:" + name, new LinkedList<>(intsAsList)));
114 list.add(collectionDataDescr("HashSet:" + name, new HashSet<>(intsAsList)));
115 list.add(collectionDataDescr("LinkedHashSet:" + name, new LinkedHashSet<>(intsAsList)));
116 list.add(collectionDataDescr("TreeSet:" + name, new TreeSet<>(intsAsList)));
119 list.add(sbDataDesc
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DHashSetTest.java107 * java.util.HashSet#add(java.lang.Object)
110 // Test for method boolean java.util.HashSet.add(java.lang.Object)
112 hs.add(new Integer(8));
114 hs.add(new Integer(-9));
115 assertTrue("Failed to increment set size after add",
117 assertTrue("Failed to add element to set", hs.contains(new Integer(-9)));
153 s.add(null);
181 s.add(null);
196 s.add(null);
216 hs.add("hell
[all...]
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/
H A DFlagOpTest.java94 ops.add(new FlagDeclaringOp<>(clearAllFlags));
97 ops.add(new TestFlagExpectedOp<>(f.set(),
101 known.add(f);
105 ops.add(new TestFlagExpectedOp<>(0,
135 ops.add(new FlagDeclaringOp<>(setAllFlags));
137 ops.add(new TestFlagExpectedOp<>(f.clear(),
142 notKnown.add(f);
144 ops.add(new TestFlagExpectedOp<>(0,
169 ops.add(cf.get());
170 ops.add(ne
[all...]
/libcore/dom/src/test/java/org/w3c/domts/level2/core/
H A Ddomimplementationcreatedocumenttype01.java74 publicIds.add("1234");
75 publicIds.add("test");
78 systemIds.add("");
79 systemIds.add("test");
/libcore/luni/src/test/java/libcore/sun/security/jca/
H A DProvidersTest.java70 BC_ALGORITHMS.add(new Algorithm() {
77 BC_ALGORITHMS.add(new Algorithm() {
84 BC_ALGORITHMS.add(new Algorithm() {
91 BC_ALGORITHMS.add(new Algorithm() {
98 BC_ALGORITHMS.add(new Algorithm() {
105 BC_ALGORITHMS.add(new Algorithm() {
112 BC_ALGORITHMS.add(new Algorithm() {
120 BC_ALGORITHMS.add(new Algorithm() {
130 CONSCRYPT_ALGORITHMS.add(new Algorithm() {
136 CONSCRYPT_ALGORITHMS.add(ne
[all...]
/libcore/ojluni/src/main/java/java/net/
H A DCookieStore.java35 * <p>{@link CookieManager} will call {@code CookieStore.add} to save cookies
67 public void add(URI uri, HttpCookie cookie); method in interface:CookieStore
82 * @see #add

Completed in 444 milliseconds

1234567891011>>