Searched refs:set (Results 76 - 100 of 308) sorted by relevance

1234567891011>>

/libcore/luni/src/test/java/libcore/libcore/icu/
H A DRelativeDateTimeFormatterTest.java47 cal.set(2015, Calendar.FEBRUARY, 5, 10, 50, 0);
103 cal.set(2015, Calendar.FEBRUARY, 5, 10, 50, 0);
360 cal.set(2015, Calendar.FEBRUARY, 5, 10, 50, 0);
388 cal.set(2015, Calendar.FEBRUARY, 5, 10, 50, 0);
428 cal.set(2015, Calendar.FEBRUARY, 5, 10, 50, 0);
474 cal.set(2014, Calendar.MARCH, 9, 3, 15, 0);
481 cal.set(2014, Calendar.MARCH, 9, 2, 0, 0);
489 cal.set(2014, Calendar.NOVEMBER, 2, 5, 20, 0);
495 cal.set(2014, Calendar.NOVEMBER, 2, 0, 45, 0);
517 cal.set(201
[all...]
/libcore/ojluni/src/main/java/java/util/
H A DAbstractList.java40 * override the {@link #set(int, Object) set(int, E)} method (which otherwise
54 * {@link #set(int, Object) set(int, E)},
131 public E set(int index, E element) { method in class:AbstractList
309 * {@code get(int)}, {@code set(int, E)}, {@code add(int, E)}
314 * {@code remove}, {@code set} and {@code add} methods unless the
315 * list's {@code remove(int)}, {@code set(int, E)}, and
420 public void set(E e) { method in class:AbstractList.ListItr
426 AbstractList.this.set(lastRe
632 public E set(int index, E element) { method in class:SubList
[all...]
H A DJapaneseImperialCalendar.java401 set(ERA, getEraIndex(d));
402 set(YEAR, d.getYear());
403 set(MONTH, d.getMonth() - 1);
404 set(DAY_OF_MONTH, d.getDayOfMonth());
409 set(ERA, getEraIndex(d));
410 set(YEAR, d.getYear());
411 set(MONTH, d.getMonth() - 1);
412 set(DAY_OF_MONTH, d.getDayOfMonth());
420 set(ERA, era);
533 * @see #set(in
[all...]
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/
H A DFlagOpTest.java47 ops[0].set(null, ops[1]);
48 ops[1].set(ops[0], ops[2]);
49 ops[2].set(ops[1], null);
62 void set(TestFlagPassThroughOp<T> upstream, TestFlagPassThroughOp<T> downstream) { method in class:FlagOpTest.TestFlagPassThroughOp
97 ops.add(new TestFlagExpectedOp<>(f.set(),
125 setAllFlags |= f.set();
170 ops.add(new TestFlagExpectedOp<>(f.set(),
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DPropertiesTest.java462 Set<String> set = tProps.stringPropertyNames();
463 assertEquals(2, set.size());
464 assertTrue(set.contains("test.prop"));
465 assertTrue(set.contains("bogus.prop"));
466 assertNotSame(set, tProps.stringPropertyNames());
468 set = new Properties().stringPropertyNames();
469 assertEquals(0, set.size());
471 set = new Properties(System.getProperties()).stringPropertyNames();
472 assertTrue(set.size() > 0);
477 set
[all...]
H A DConcurrentModTest.java97 // illegal call the subList's method set(int,Object).
98 sub.set(1, two);
555 abstr1.set(1, 1);
559 abstr1.set(abstr1.size() + 1, 1);
566 abstr1.set(-1, 1);
587 abstr.set(0, null);
595 public Double set(int index, Double value) {
611 abstr.set(0, 1);
620 public Integer set(int index, Integer value) {
639 abstr.set(
[all...]
H A DCollections2Test.java159 fail("Assert 0: synchronizedSet(set) must throw NPE");
545 void testSetForEach(Set<Integer> set) { argument
547 set.forEach(k -> output.add(k));
549 assertEquals(set.size(), output.size());
550 for (Integer key : set) {
556 HashSet<Integer> set = new HashSet<Integer>();
557 set.add(1);
558 set.add(2);
559 set.add(3);
560 testSetForEach(Collections.unmodifiableSet(set));
[all...]
/libcore/ojluni/src/main/java/sun/net/www/
H A DURLConnection.java63 /** Call this routine to set the property list for this object. */
73 properties.set(key, value);
190 properties.set("content-type", type);
213 /** Call this routine to set the content-length associated with this
218 properties.set("content-length", String.valueOf(length));
/libcore/ojluni/src/main/java/sun/security/jca/
H A DProviders.java38 * Collection of methods to get and set provider list. Also includes
62 // set providerList to empty list first in case initialization somehow
162 * Return the current ProviderList. If the thread-local list is set,
174 * Set the current ProviderList. Affects the thread-local list if set,
233 threadLists.set(list);
258 threadLists.set(list);
273 threadLists.set(list);
350 // The set of algorithms that are deprecated. This list is created using
/libcore/ojluni/src/main/java/sun/util/locale/
H A DLocaleUtils.java213 static boolean isEmpty(Set<?> set) { argument
214 return set == null || set.isEmpty();
/libcore/ojluni/src/main/java/sun/security/util/
H A DDisabledAlgorithmConstraints.java282 debug.println("Constraints set to keySize: " +
291 debug.println("Constraints set to jdkCA.");
327 Set<Constraint> set = getConstraints(key.getAlgorithm());
328 if (set == null) {
331 for (Constraint constraint : set) {
359 // Attempt to add the public key algorithm to the set
364 Set<Constraint> set = getConstraints(algorithm);
365 if (set == null) {
368 for (Constraint constraint : set) {
/libcore/luni/src/test/java/libcore/java/lang/ref/
H A DFinalizeTest.java56 finalized.set(true);
139 keepGoing.set(false);
/libcore/luni/src/test/java/libcore/java/util/
H A DOldGregorianCalendarTest.java44 g1.set(2006, -9, 29, 02, 50, 00); // transition from DST
78 g1.set(2008, Calendar.SEPTEMBER, 23, 18, 0, 0);
H A DAbstractCollectionTest.java51 finished.set(true);
/libcore/ojluni/src/main/java/java/util/concurrent/
H A DCopyOnWriteArraySet.java57 * <li>It is best suited for applications in which set sizes generally
62 * <li>Mutative operations ({@code add}, {@code set}, {@code remove}, etc.)
73 * copy-on-write set to maintain a set of Handler objects that
97 * @param <E> the type of elements held in this set
106 * Creates an empty set.
113 * Creates a set containing all of the elements of the specified
132 * Returns the number of elements in this set.
134 * @return the number of elements in this set
141 * Returns {@code true} if this set contain
290 compareSets(Object[] snapshot, Set<?> set) argument
[all...]
/libcore/ojluni/src/main/java/sun/nio/ch/
H A DAsynchronousSocketChannelImpl.java83 // set true when exclusive binding is on and SO_REUSEADDR is emulated
506 HashSet<SocketOption<?>> set = new HashSet<SocketOption<?>>(5);
507 set.add(StandardSocketOptions.SO_SNDBUF);
508 set.add(StandardSocketOptions.SO_RCVBUF);
509 set.add(StandardSocketOptions.SO_KEEPALIVE);
510 set.add(StandardSocketOptions.SO_REUSEADDR);
511 set.add(StandardSocketOptions.TCP_NODELAY);
513 set.add(jdk.net.ExtendedSocketOptions.SO_FLOW_SLA);
515 return Collections.unmodifiableSet(set);
H A DSocketChannelImpl.java77 // even after the value in the file descriptor object has been set to -1
96 // set true when exclusive binding is on and SO_REUSEADDR is emulated
135 // Net#socket will set |fd| if it succeeds.
273 HashSet<SocketOption<?>> set = new HashSet<SocketOption<?>>(8);
274 set.add(StandardSocketOptions.SO_SNDBUF);
275 set.add(StandardSocketOptions.SO_RCVBUF);
276 set.add(StandardSocketOptions.SO_KEEPALIVE);
277 set.add(StandardSocketOptions.SO_REUSEADDR);
278 set.add(StandardSocketOptions.SO_LINGER);
279 set
[all...]
H A DAsynchronousServerSocketChannelImpl.java56 // need this lock to set local address
63 // set true when accept operation is cancelled
66 // set true when exclusive binding is on and SO_REUSEADDR is emulated
231 HashSet<SocketOption<?>> set = new HashSet<SocketOption<?>>(2);
232 set.add(StandardSocketOptions.SO_RCVBUF);
233 set.add(StandardSocketOptions.SO_REUSEADDR);
234 return Collections.unmodifiableSet(set);
/libcore/dalvik/src/main/java/dalvik/system/
H A DBlockGuard.java27 * Mechanism to let threads set restrictions on what code is allowed
142 * Will return the LAX_POLICY instance if nothing else is set.
151 * @param policy policy to set. May not be null. Use the public LAX_POLICY
158 threadPolicy.set(policy);
H A DSocketTagger.java80 public static synchronized void set(SocketTagger tagger) { method in class:SocketTagger
/libcore/jsr166-tests/src/test/java/jsr166/
H A DAtomicIntegerFieldUpdaterTest.java142 * get returns the last value set or assigned
149 a.set(this, 2);
151 a.set(this, -3);
296 a.set(this, -2);
338 a.set(this, -2);
H A DAtomicLongFieldUpdaterTest.java142 * get returns the last value set or assigned
149 a.set(this, 2);
151 a.set(this, -3);
296 a.set(this, -2);
338 a.set(this, -2);
H A DForkJoinPool8Test.java751 HashSet set = new HashSet();
752 set.add(f);
753 set.add(g);
754 set.add(h);
755 invokeAll(set);
849 HashSet set = new HashSet();
850 set.add(f);
851 set.add(g);
852 set.add(h);
854 invokeAll(set);
[all...]
/libcore/luni/src/test/java/libcore/java/nio/file/
H A DDefaultFileSystemProviderTest.java291 Set<OpenOption> set = new HashSet<OpenOption>();
294 try (SeekableByteChannel sbc = provider.newByteChannel(filesSetup.getTestPath(), set)) {
303 try (SeekableByteChannel sbc = provider.newByteChannel(filesSetup.getDataFilePath(), set)) {
310 try (SeekableByteChannel sbc = provider.newByteChannel(filesSetup.getDataFilePath(), set)) {
326 Set<OpenOption> set = new HashSet<OpenOption>();
327 set.add(WRITE);
330 try (SeekableByteChannel sbc = provider.newByteChannel(filesSetup.getTestPath(), set)) {
338 try (SeekableByteChannel sbc = provider.newByteChannel(filesSetup.getDataFilePath(), set)) {
345 try (SeekableByteChannel sbc = provider.newByteChannel(filesSetup.getDataFilePath(), set)) {
362 Set<OpenOption> set
[all...]
/libcore/ojluni/src/main/java/java/io/
H A DFileDescriptor.java185 public void set(FileDescriptor obj, int fd) {

Completed in 792 milliseconds

1234567891011>>