/libcore/luni/src/test/java/libcore/java/util/ |
D | TreeSetTest.java | 30 TreeSet<String> set = new TreeSet<String>(); in testEmptySetSerialization() local 31 new SerializationTester<TreeSet<String>>(set, s).test(); in testEmptySetSerialization() 39 TreeSet<String> set = new TreeSet<String>(String.CASE_INSENSITIVE_ORDER); in testSerializationWithComparator() local 40 set.add("a"); in testSerializationWithComparator() 41 set.add("b"); in testSerializationWithComparator() 42 new SerializationTester<NavigableSet<String>>(set, s) { in testSerializationWithComparator() argument 54 TreeSet<String> set = new TreeSet<String>(String.CASE_INSENSITIVE_ORDER); in testSubSetSerialization() local 55 set.add("a"); in testSubSetSerialization() 56 set.add("b"); in testSubSetSerialization() 57 set.add("c"); in testSubSetSerialization() [all …]
|
D | GregorianCalendarTest.java | 32 greg.set(Calendar.WEEK_OF_YEAR, 1); in test_computeFields_dayOfWeekAndWeekOfYearSet() 34 greg.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY); in test_computeFields_dayOfWeekAndWeekOfYearSet() 40 greg.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY); in test_computeFields_dayOfWeekAndWeekOfYearSet() 41 greg.set(Calendar.WEEK_OF_YEAR, 1); in test_computeFields_dayOfWeekAndWeekOfYearSet() 51 greg.set(Calendar.WEEK_OF_YEAR, 1); in test_computeFields_dayOfWeekAndWeekOfYearSet() 52 greg.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY); in test_computeFields_dayOfWeekAndWeekOfYearSet()
|
D | BitSetTest.java | 29 bs.set(2); in test_toString() 31 bs.set(4); in test_toString() 32 bs.set(10); in test_toString() 146 bs.set(0); in test_toLongArray() 147 bs.set(64, 66); in test_toLongArray() 167 bs.set(32); in test_previousSetBit() 174 bs.set(0); in test_previousSetBit() 175 bs.set(1); in test_previousSetBit() 176 bs.set(32); in test_previousSetBit() 177 bs.set(192); in test_previousSetBit() [all …]
|
D | CalendarTest.java | 55 calendar.set(2011, 9, 15, 1, 0); // 01:00 GMT-3 in testAddOneDayOverDstForwardAdds23HoursAt0100() 71 calendar.set(2011, 9, 15, 0, 0); // 00:00 GMT-3 in testAddOneDayOverDstForwardAdds24HoursAt0000() 80 calendar.set(2011, 1, 19, 0, 0); // 00:00 GMT-2 in testAddOneDayOverDstBackAdds25HoursAt0000() 89 calendar.set(2011, 1, 19, 1, 0); // 00:00 GMT-2 in testAddOneDayOverDstBackAdds25HoursAt0100() 98 calendar.set(2011, 9, 15, 1, 0); // 01:00 GMT-3 in testAddTwoHalfDaysOverDstForwardAdds23HoursAt0100() 107 calendar.set(2011, 9, 15, 1, 0); // 01:00 GMT-3 in testAdd24HoursOverDstForwardAdds24Hours() 116 calendar.set(2011, 9, 1, 2, 10); // 02:10 GMT+10:30 in testAddOneDayAndOneDayOver30MinuteDstForwardAdds48Hours() 127 calendar.set(2011, 9, 1, 2, 10); // 02:10 GMT+10:30 in testAddTwoDaysOver30MinuteDstForwardAdds47AndAHalfHours() 152 calendar.set(year, month, day, hour, minute); in testSetSelfConsistent() 215 cal.set(Calendar.YEAR, 1970); in test_clear_45877() [all …]
|
/libcore/luni/src/main/java/java/util/ |
D | EnumSet.java | 66 EnumSet<E> set = noneOf(elementType); in allOf() local 67 set.complement(); in allOf() 68 return set; in allOf() 83 EnumSet<E> set = EnumSet.noneOf(s.elementClass); in copyOf() local 84 set.addAll(s); in copyOf() 85 return set; in copyOf() 111 EnumSet<E> set = EnumSet.noneOf(element.getDeclaringClass()); in copyOf() local 112 set.add(element); in copyOf() 114 set.add(iterator.next()); in copyOf() 116 return set; in copyOf() [all …]
|
D | MiniEnumSet.java | 126 EnumSet<?> set = (EnumSet) collection; // raw type due to javac bug 6548436 in addAll() local 127 set.elementClass.asSubclass(elementClass); // Called to throw ClassCastException. in addAll() 129 MiniEnumSet<?> miniSet = (MiniEnumSet<?>) set; in addAll() 157 MiniEnumSet<?> set = (MiniEnumSet<?>) collection; in containsAll() local 158 long setBits = set.bits; in containsAll() 159 return isValidType(set.elementClass) && ((bits & setBits) == setBits); in containsAll() 170 EnumSet<?> set = (EnumSet<?>) collection; in removeAll() local 171 if (!isValidType(set.elementClass)) { in removeAll() 175 MiniEnumSet<E> miniSet = (MiniEnumSet<E>) set; in removeAll() 191 EnumSet<?> set = (EnumSet<?>) collection; in retainAll() local [all …]
|
D | HugeEnumSet.java | 143 EnumSet<?> set = (EnumSet) collection; // raw type due to javac bug 6548436 in addAll() local 144 set.elementClass.asSubclass(elementClass); // Called to throw ClassCastException. in addAll() 146 HugeEnumSet<E> hugeSet = (HugeEnumSet<E>) set; in addAll() 204 HugeEnumSet<E> set = (HugeEnumSet<E>) super.clone(); in clone() local 205 set.bits = bits.clone(); in clone() 206 return set; in clone() 215 HugeEnumSet<?> set = (HugeEnumSet<?>) collection; in containsAll() local 216 if (isValidType(set.elementClass)) { in containsAll() 218 long setBits = set.bits[i]; in containsAll() 272 EnumSet<?> set = (EnumSet<?>) collection; in removeAll() local [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | CalendarTest.java | 44 cal.set(Calendar.YEAR, 2002); in test_setII() 49 cal.set(Calendar.YEAR, 2002); in test_setII() 50 cal.set(Calendar.MONTH, Calendar.MARCH); in test_setII() 55 cal.set(Calendar.YEAR, 2002); in test_setII() 56 cal.set(Calendar.DATE, 24); in test_setII() 60 cal.set(Calendar.MONTH, Calendar.OCTOBER); in test_setII() 61 cal.set(Calendar.DATE, 31); in test_setII() 62 cal.set(Calendar.MONTH, Calendar.NOVEMBER); in test_setII() 63 cal.set(Calendar.DATE, 26); in test_setII() 68 cal.set(Calendar.DATE, 27); in test_setII() [all …]
|
D | BitSetTest.java | 71 bs.set(128); in test_equalsLjava_lang_Object() 85 bs.set(10); in test_hashCode() 98 bs.set(0, bs.size() - 1); // ensure all bits are 1's in test_clear() 99 bs.set(bs.size() - 1); in test_clear() 141 bs.set(25); in test_clearI() 166 bitset.set(i); in test_clearII() 174 bs.set(0, initialSize); in test_clearII() 204 bs.set(0, initialSize); in test_clearII() 219 bs.set(0, initialSize); in test_clearII() 230 bs.set(0, initialSize); in test_clearII() [all …]
|
D | EnumMapTest.java | 332 Set set = enumSizeMap.entrySet(); in test_entrySet() local 335 assertSame("Should be same", set1, set); in test_entrySet() 337 set.add(mockEntry); in test_entrySet() 343 assertTrue("Returned false for contained object", set in test_entrySet() 346 assertFalse("Returned true for uncontained object", set in test_entrySet() 348 assertFalse("Returned true for uncontained object", set in test_entrySet() 351 assertFalse("Returned true for uncontained object", set in test_entrySet() 353 assertFalse("Returned true for uncontained object", set in test_entrySet() 357 assertTrue("Returned false for contained object", set in test_entrySet() 359 assertTrue("Returned false when the object can be removed", set in test_entrySet() [all …]
|
D | EnumSetTest.java | 120 EnumSet<HugeEnumCount> set; in test_iterator_HugeEnumSet() local 125 set = EnumSet.range(HugeEnumCount.NO1, HugeEnumCount.NO65); in test_iterator_HugeEnumSet() 126 array = set.toArray(); in test_iterator_HugeEnumSet() 127 for (HugeEnumCount count : set) { in test_iterator_HugeEnumSet() 133 set = EnumSet.range(HugeEnumCount.NO1, HugeEnumCount.NO130); in test_iterator_HugeEnumSet() 134 array = set.toArray(); in test_iterator_HugeEnumSet() 135 for (HugeEnumCount count : set) { in test_iterator_HugeEnumSet() 141 EnumSet<HugeEnumCount> set = EnumSet.noneOf(HugeEnumCount.class); in testRemoveIteratorRemoveFromHugeEnumSet() local 142 set.add(HugeEnumCount.NO64); in testRemoveIteratorRemoveFromHugeEnumSet() 143 set.add(HugeEnumCount.NO65); in testRemoveIteratorRemoveFromHugeEnumSet() [all …]
|
D | GregorianCalendarTest.java | 151 c1.set(Calendar.YEAR, 1999); in test_ConstructorLjava_util_TimeZone() 152 c1.set(Calendar.MONTH, Calendar.JUNE); in test_ConstructorLjava_util_TimeZone() 153 c1.set(Calendar.DAY_OF_MONTH, 2); in test_ConstructorLjava_util_TimeZone() 154 c1.set(Calendar.HOUR, 15); in test_ConstructorLjava_util_TimeZone() 155 c1.set(Calendar.MINUTE, 34); in test_ConstructorLjava_util_TimeZone() 156 c1.set(Calendar.SECOND, 16); in test_ConstructorLjava_util_TimeZone() 208 gc1.set(1999, Calendar.APRIL, 3, 16, 0); // day before DST change in test_addII() 212 gc1.set(1999, Calendar.APRIL, 3, 16, 0); // day before DST change in test_addII() 216 gc1.set(1999, Calendar.APRIL, 3, 16, 0); // day before DST change in test_addII() 220 gc1.set(1999, Calendar.APRIL, 3, 16, 0); // day before DST change in test_addII() [all …]
|
D | AbstractSequentialListTest.java | 102 public void set(Object o) { in set() method in AbstractSequentialListTest.Mock_unsupportedListIterator 141 public void set(E o) { in set() method in AbstractSequentialListTest.Mock_ListIterator 344 public void set(Object o) { in test_getI() 460 public void set(Object o) { in test_removeI() 533 public void set(Object o) { in test_setILjava_lang_Object() 543 asl.set(asl.size() + 1, "new element"); in test_setILjava_lang_Object() 550 asl.set(-1, "new element"); in test_setILjava_lang_Object() 558 asl.set(i, "new element"); in test_setILjava_lang_Object() 563 asl.set(1, new Double(1)); in test_setILjava_lang_Object() 570 asl.set(1, "Illegal element"); in test_setILjava_lang_Object() [all …]
|
/libcore/support/src/test/java/tests/support/ |
D | Support_SetTest.java | 24 Set<Integer> set; // must contain only the Integers 0 to 99 field in Support_SetTest 32 set = s; in Support_SetTest() 39 !set.add(new Integer(50))); in runTest() 40 assertTrue("Set Test - Removing an element did not change the set", set in runTest() 44 !set.contains(new Integer(50))); in runTest() 45 set.add(new Integer(50)); in runTest() 46 new Support_CollectionTest("", set).runTest(); in runTest()
|
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/ |
D | ASN1Time.java | 45 c.set(Calendar.YEAR, in.times[0]); in getDecodedObject() 46 c.set(Calendar.MONTH, in.times[1]-1); in getDecodedObject() 47 c.set(Calendar.DAY_OF_MONTH, in.times[2]); in getDecodedObject() 48 c.set(Calendar.HOUR_OF_DAY, in.times[3]); in getDecodedObject() 49 c.set(Calendar.MINUTE, in.times[4]); in getDecodedObject() 50 c.set(Calendar.SECOND, in.times[5]); in getDecodedObject() 51 c.set(Calendar.MILLISECOND, in.times[6]); in getDecodedObject()
|
/libcore/luni/src/test/java/libcore/java/sql/ |
D | OldResultSetGetterTests.java | 928 cal.set(Calendar.HOUR_OF_DAY, 12); in testGetTimeInt() 929 cal.set(Calendar.MINUTE, 35); in testGetTimeInt() 930 cal.set(Calendar.SECOND, 45); in testGetTimeInt() 931 cal.set(Calendar.MILLISECOND, 0); in testGetTimeInt() 939 cal2.set(Calendar.YEAR, 2007); in testGetTimeInt() 940 cal2.set(Calendar.MONTH, Calendar.OCTOBER); in testGetTimeInt() 941 cal2.set(Calendar.DATE, 9); in testGetTimeInt() 942 cal2.set(Calendar.HOUR_OF_DAY, 14); in testGetTimeInt() 943 cal2.set(Calendar.MINUTE, 28); in testGetTimeInt() 944 cal2.set(Calendar.SECOND, 02); in testGetTimeInt() [all …]
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | TreeSetTest.java | 550 TreeSet set = set5(); in testSubSetContents() local 551 SortedSet sm = set.subSet(two, four); in testSubSetContents() 570 assertFalse(set.contains(two)); in testSubSetContents() 571 assertEquals(4, set.size()); in testSubSetContents() 577 assertEquals(3, set.size()); in testSubSetContents() 581 TreeSet set = set5(); in testSubSetContents2() local 582 SortedSet sm = set.subSet(two, three); in testSubSetContents2() 599 assertFalse(set.contains(two)); in testSubSetContents2() 600 assertEquals(4, set.size()); in testSubSetContents2() 604 assertEquals(4, set.size()); in testSubSetContents2() [all …]
|
D | ConcurrentSkipListSetTest.java | 545 ConcurrentSkipListSet set = set5(); in testSubSetContents() local 546 SortedSet sm = set.subSet(two, four); in testSubSetContents() 565 assertFalse(set.contains(two)); in testSubSetContents() 566 assertEquals(4, set.size()); in testSubSetContents() 572 assertEquals(3, set.size()); in testSubSetContents() 576 ConcurrentSkipListSet set = set5(); in testSubSetContents2() local 577 SortedSet sm = set.subSet(two, three); in testSubSetContents2() 594 assertFalse(set.contains(two)); in testSubSetContents2() 595 assertEquals(4, set.size()); in testSubSetContents2() 599 assertEquals(4, set.size()); in testSubSetContents2() [all …]
|
D | AtomicLongArrayTest.java | 59 aa.set(index, 1); in testIndexing() 91 aa.set(i, 1); in testGetSet() 93 aa.set(i, 2); in testGetSet() 95 aa.set(i, -3); in testGetSet() 121 aa.set(i, 1); in testCompareAndSet() 138 a.set(0, 1); in testCompareAndSetInMultipleThreads() 159 aa.set(i, 1); in testWeakCompareAndSet() 174 aa.set(i, 1); in testGetAndSet() 187 aa.set(i, 1); in testGetAndAdd() 201 aa.set(i, 1); in testGetAndDecrement() [all …]
|
D | AtomicIntegerArrayTest.java | 59 aa.set(index, 1); in testIndexing() 91 aa.set(i, 1); in testGetSet() 93 aa.set(i, 2); in testGetSet() 95 aa.set(i, -3); in testGetSet() 121 aa.set(i, 1); in testCompareAndSet() 138 a.set(0, 1); in testCompareAndSetInMultipleThreads() 159 aa.set(i, 1); in testWeakCompareAndSet() 174 aa.set(i, 1); in testGetAndSet() 187 aa.set(i, 1); in testGetAndAdd() 201 aa.set(i, 1); in testGetAndDecrement() [all …]
|
D | AtomicLongTest.java | 44 ai.set(2); in testGetSet() 46 ai.set(-3); in testGetSet() 146 ai.set(-2); in testGetAndIncrement() 182 ai.set(-2); in testIncrementAndGet() 196 x.set(-22); in testSerialization() 211 ai.set(x); in testToString() 223 ai.set(x); in testIntValue() 235 ai.set(x); in testLongValue() 247 ai.set(x); in testFloatValue() 259 ai.set(x); in testDoubleValue()
|
D | AtomicIntegerTest.java | 42 ai.set(2); in testGetSet() 44 ai.set(-3); in testGetSet() 144 ai.set(-2); in testGetAndIncrement() 180 ai.set(-2); in testIncrementAndGet() 194 x.set(22); in testSerialization() 208 ai.set(x); in testToString() 220 ai.set(x); in testIntValue() 232 ai.set(x); in testLongValue() 244 ai.set(x); in testFloatValue() 256 ai.set(x); in testDoubleValue()
|
/libcore/luni/src/main/java/java/nio/ |
D | SelectorImpl.java | 336 private final Set<E> set; field in SelectorImpl.UnaddableSet 338 UnaddableSet(Set<E> set) { in UnaddableSet() argument 339 this.set = set; in UnaddableSet() 344 return set.equals(object); in equals() 349 return set.hashCode(); in hashCode() 361 set.clear(); in clear() 365 return set.contains(object); in contains() 369 return set.containsAll(c); in containsAll() 373 return set.isEmpty(); in isEmpty() 377 return set.iterator(); in iterator() [all …]
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | BitSetBenchmark.java | 40 bs.set(bs.size() - 1); in timeIsEmptyFalse() 60 bs.set(i % size); in timeSet() 66 bs.set(i % size, true); in timeSetOn() 72 bs.set(i % size, false); in timeSetOff()
|
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/ |
D | DOMConfigurationImpl.java | 64 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) { 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(DOMConfigurationImpl config, Object value) { 244 public void set(DOMConfigurationImpl config, Object value) { [all …]
|