Searched refs:set (Results 26 - 50 of 308) sorted by relevance

1234567891011>>

/libcore/jsr166-tests/src/test/java/jsr166/
H A DAtomicLongArrayTest.java60 * get and set for out of bound indices throw IndexOutOfBoundsException
70 aa.set(index, 1);
97 * get returns the last value set at index
102 aa.set(i, 1);
104 aa.set(i, 2);
106 aa.set(i, -3);
132 aa.set(i, 1);
149 a.set(0, 1);
170 aa.set(i, 1);
185 aa.set(
[all...]
H A DAtomicIntegerTest.java48 * get returns the last value set
53 ai.set(2);
55 ai.set(-3);
155 ai.set(-2);
191 ai.set(-2);
205 x.set(22);
219 ai.set(x);
231 ai.set(x);
243 ai.set(x);
255 ai.set(
[all...]
H A DAtomicLongTest.java50 * get returns the last value set
55 ai.set(2);
57 ai.set(-3);
157 ai.set(-2);
193 ai.set(-2);
207 x.set(-22);
222 ai.set(x);
234 ai.set(x);
246 ai.set(x);
258 ai.set(
[all...]
H A DAtomicReferenceArrayTest.java70 aa.set(i, x);
76 * get and set for out of bound indices throw IndexOutOfBoundsException
86 aa.set(index, null);
105 * get returns the last value set at index
110 aa.set(i, one);
112 aa.set(i, two);
114 aa.set(i, m3);
140 aa.set(i, one);
157 a.set(0, one);
178 aa.set(
[all...]
H A DAtomic8Test.java205 a.set(0, 1);
217 a.set(0, 1);
229 a.set(0, 1);
241 a.set(0, 1);
253 a.set(0, 1);
265 a.set(0, 1);
277 a.set(0, 1);
289 a.set(0, 1);
300 a.set(0, one);
312 a.set(
[all...]
H A DAtomicBooleanTest.java44 * get returns the last value set
49 ai.set(false);
51 ai.set(true);
130 x.set(true);
143 ai.set(true);
/libcore/luni/src/test/java/libcore/java/util/
H A DCollectionsTest.java217 * Runs the given runnable on this thread with the targetSdkVersion temporarily set
227 * Runs the given runnable on this thread with the targetSdkVersion temporarily set
407 NavigableSet set = Collections.checkedNavigableSet(new TreeSet<>(), String.class);
408 check_navigableSet(set, Arrays.asList(), "absent element");
410 set.add("element 1");
411 set.add("element 2");
413 check_navigableSet(set, elementsInOrder, "absent element");
415 assertEquals(set, new HashSet<>(elementsInOrder));
416 assertEquals(new HashSet<>(elementsInOrder), set);
417 assertEquals(2, set
1087 check_unmodifiableNavigableSet(NavigableSet<K> set, List<K> expectedElementsInOrder, K absentElement) argument
1099 check_navigableSet(NavigableSet<K> set, List<K> expectedElementsInOrder, K absentElement) argument
1150 check_orderedSet( Set<K> set, List<K> expectedElementsInOrder) argument
1171 check_unmodifiableSet(Set<K> set, K absentElement) argument
1189 check_set(Set<K> set, K absentElement) argument
[all...]
H A DCalendarBuilderTest.java89 expected.set(2000, Calendar.FEBRUARY, 3);
99 expected.set(1970, Calendar.JANUARY, 1, 10, 11, 12);
102 expected.set(Calendar.MILLISECOND, 13);
119 builder.set(Calendar.HOUR_OF_DAY, 25);
129 expected.set(Calendar.HOUR_OF_DAY, 25);
156 builder.set(Calendar.YEAR, 2000);
159 expected.set(Calendar.YEAR, 2000);
165 new Calendar.Builder().set(-1, 1);
170 new Calendar.Builder().set(Calendar.FIELD_COUNT, 1);
178 builder.set(Calenda
[all...]
H A DOldListIteratorTest.java92 public void set(Object o) { method in class:OldListIteratorTest.Mock_ListIterator
175 l.set(new Integer(1));
183 l.set((Integer)objArray[objArray.length - i - 1]);
188 l.set(new Integer(1));
197 ml.set("Wrong element");
204 ml.set(new Double("3.14"));
211 ml.set("");
H A DBitSetTest.java30 bs.set(2);
32 bs.set(4);
33 bs.set(10);
46 bitSet.set(Integer.MAX_VALUE);
76 // Surround 'longs' with junk set bits but exclude them from the LongBuffer.
124 // Surround 'bytes' with junk set bits but exclude them from the ByteBuffer.
163 bs.set(0);
164 bs.set(64, 66);
184 bs.set(32);
191 bs.set(
[all...]
H A DGregorianCalendarTest.java75 greg.set(Calendar.WEEK_OF_YEAR, differentWeekOfYear);
77 greg.set(Calendar.DAY_OF_WEEK, differentDayOfWeek);
83 greg.set(Calendar.DAY_OF_WEEK, differentDayOfWeek);
84 greg.set(Calendar.WEEK_OF_YEAR, differentWeekOfYear);
91 greg.set(Calendar.WEEK_OF_YEAR, differentWeekOfYear);
92 greg.set(Calendar.DAY_OF_WEEK, differentDayOfWeek);
258 cal.set(2016, Calendar.MARCH, 29);
261 // With minimal days in first week is set to 4
263 cal.set(2016, Calendar.JANUARY, 1);
265 cal.set(201
[all...]
H A DEnumSetTest.java36 EnumSet<Roshambo> set = EnumSet.of(Roshambo.ROCK, Roshambo.SCISSORS);
37 new SerializationTester<EnumSet<Roshambo>>(set, s).test();
51 EnumSet<Element> set = EnumSet.of(Element.H, Element.TB, Element.DY, Element.UUO);
52 new SerializationTester<EnumSet<Element>>(set, s).test();
60 * EnumSet<Roshambo> set = EnumSet.of(Roshambo.SPOCK);
82 * EnumSet<Roshambo> set = EnumSet.of(Roshambo.SCISSORS, Roshambo.ROCK)
H A DCalendarTest.java58 calendar.set(2011, 9, 15, 1, 0); // 01:00 GMT-3
74 calendar.set(2011, 9, 15, 0, 0); // 00:00 GMT-3
83 calendar.set(2011, 1, 19, 0, 0); // 00:00 GMT-2
92 calendar.set(2011, 1, 19, 1, 0); // 00:00 GMT-2
101 calendar.set(2011, 9, 15, 1, 0); // 01:00 GMT-3
110 calendar.set(2011, 9, 15, 1, 0); // 01:00 GMT-3
119 calendar.set(2011, 9, 1, 2, 10); // 02:10 GMT+10:30
130 calendar.set(2011, 9, 1, 2, 10); // 02:10 GMT+10:30
155 calendar.set(year, month, day, hour, minute);
167 calendar.set(200
[all...]
/libcore/ojluni/src/main/java/java/net/
H A DURLEncoder.java96 * and lower case letters, decimal digits, and a limited set of
128 dontNeedEncoding.set(i);
131 dontNeedEncoding.set(i);
134 dontNeedEncoding.set(i);
136 dontNeedEncoding.set(' '); /* encoding a space to a + is done
138 dontNeedEncoding.set('-');
139 dontNeedEncoding.set('_');
140 dontNeedEncoding.set('.');
141 dontNeedEncoding.set('*');
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DAbstractSequentialListTest.java102 public void set(Object o) { method in class:AbstractSequentialListTest.Mock_unsupportedListIterator
141 public void set(E o) { method in class:AbstractSequentialListTest.Mock_ListIterator
344 public void set(Object o) {
460 public void set(Object o) {
533 public void set(Object o) {
543 asl.set(asl.size() + 1, "new element");
550 asl.set(-1, "new element");
558 asl.set(i, "new element");
563 asl.set(1, new Double(1));
570 asl.set(
[all...]
H A DGregorianCalendarTest.java167 c1.set(Calendar.YEAR, 1999);
168 c1.set(Calendar.MONTH, Calendar.JUNE);
169 c1.set(Calendar.DAY_OF_MONTH, 2);
170 c1.set(Calendar.HOUR, 15);
171 c1.set(Calendar.MINUTE, 34);
172 c1.set(Calendar.SECOND, 16);
224 gc1.set(1999, Calendar.APRIL, 3, 16, 0); // day before DST change
228 gc1.set(1999, Calendar.APRIL, 3, 16, 0); // day before DST change
232 gc1.set(1999, Calendar.APRIL, 3, 16, 0); // day before DST change
236 gc1.set(199
[all...]
/libcore/ojluni/src/main/java/java/util/
H A DList.java182 * immediately following the end of the list is set to <tt>null</tt>.
390 * li.set(operator.apply(li.next()));
394 * If the list's list-iterator does not support the {@code set} operation
413 li.set(operator.apply(li.next()));
449 * iterator.set((E) element);
490 * not support the {@code set} operation
504 i.set((E) e);
575 * @throws UnsupportedOperationException if the <tt>set</tt> operation
586 E set(int index, E element); method in interface:List
/libcore/annotations/
H A Dgenerate_annotated_java_files.py18 srcs_list = set()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
H A DThreadLocalTest.java44 tl.set("fixture");
111 * java.lang.ThreadLocal#set(java.lang.Object)
114 // Test for method void java.lang.ThreadLocal.set(java.lang.Object)
118 l.set(OBJ);
164 l1.set(OTHER_VALUE);
175 threadValue.set(l1.get());
/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/
H A DExecutableParameterTest.java37 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.set;
57 assertEquals(set(), annotationsToTypes(noParameterAnnotations[0]));
58 assertEquals(set(), annotationsToTypes(noParameterAnnotations[1]));
64 assertEquals(set(AnnotationB.class, AnnotationD.class),
66 assertEquals(set(AnnotationC.class, AnnotationD.class),
160 assertEquals(set(), annotationsToTypes(noParameterAnnotations[0]));
161 assertEquals(set(), annotationsToTypes(noParameterAnnotations[1]));
167 assertEquals(set(AnnotationB.class, AnnotationD.class),
169 assertEquals(set(AnnotationC.class, AnnotationD.class),
/libcore/luni/src/test/java/libcore/java/util/function/
H A DBiPredicateTest.java37 (x, y) -> { alwaysTrueInvoked.set(true); assertSame(arg1, x); assertSame(arg2, y); return true; };
39 (x, y) -> { alwaysTrue2Invoked.set(true); assertSame(arg1, x); assertSame(arg2, y); return true; };
41 (x, y) -> { alwaysFalseInvoked.set(true); assertSame(arg1, x); assertSame(arg2, y); return false; };
43 (x, y) -> { alwaysFalse2Invoked.set(true); assertSame(arg1, x); assertSame(arg2, y); return false; };
97 (x, y) -> { alwaysTrueInvoked.set(true); assertSame(arg1, x); assertSame(arg2, y); return true; };
99 (x, y) -> { alwaysTrue2Invoked.set(true); assertSame(arg1, x); assertSame(arg2, y); return true; };
101 (x, y) -> { alwaysFalseInvoked.set(true); assertSame(arg1, x); assertSame(arg2, y); return false; };
103 (x, y) -> { alwaysFalse2Invoked.set(true); assertSame(arg1, x); assertSame(arg2, y); return false; };
136 toReset.set(false);
/libcore/ojluni/src/main/java/java/security/
H A DUnresolvedPermissionCollection.java168 Set<Map.Entry<String, List<UnresolvedPermission>>> set = perms.entrySet();
169 for (Map.Entry<String, List<UnresolvedPermission>> e : set) {
209 Set<Map.Entry<String, Vector<UnresolvedPermission>>> set = permissions.entrySet();
210 for (Map.Entry<String, Vector<UnresolvedPermission>> e : set) {
/libcore/ojluni/src/main/java/sun/security/x509/
H A DCertAttrSet.java78 void set(String name, Object obj) method in interface:CertAttrSet
H A DReasonFlags.java97 * Check if bit is set.
109 private void set(int position, boolean val) { method in class:ReasonFlags
122 * @param reasons the bits to be set for the ReasonFlags.
131 * @param reasons the bits to be set for the ReasonFlags.
140 * @param reasons the bits to be set for the ReasonFlags.
177 public void set(String name, Object obj) throws IOException { method in class:ReasonFlags
182 set(name2Index(name), val);
196 set(name, Boolean.FALSE);
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
H A DDOMConfigurationImpl.java64 public void set(DOMConfigurationImpl config, Object value) {
81 public void set(DOMConfigurationImpl config, Object value) {
94 public void set(DOMConfigurationImpl config, Object value) {
117 public void set(DOMConfigurationImpl config, Object value) {
129 public void set(DOMConfigurationImpl config, Object value) {
138 * Bulk alias to set the following parameter values:
163 public void set(DOMConfigurationImpl config, Object value) {
185 public void set(DOMConfigurationImpl config, Object value) {
212 public void set(DOMConfigurationImpl config, Object value) {
228 public void set(DOMConfigurationImp
301 void set(DOMConfigurationImpl config, Object value); method in interface:DOMConfigurationImpl.Parameter
313 public void set(DOMConfigurationImpl config, Object value) { method in class:DOMConfigurationImpl.FixedParameter
[all...]

Completed in 529 milliseconds

1234567891011>>