/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 | EnumSetTest.java | 121 EnumSet<HugeEnumCount> set; in test_iterator_HugeEnumSet() local 126 set = EnumSet.range(HugeEnumCount.NO1, HugeEnumCount.NO65); in test_iterator_HugeEnumSet() 127 array = set.toArray(); in test_iterator_HugeEnumSet() 128 for (HugeEnumCount count : set) { in test_iterator_HugeEnumSet() 134 set = EnumSet.range(HugeEnumCount.NO1, HugeEnumCount.NO130); in test_iterator_HugeEnumSet() 135 array = set.toArray(); in test_iterator_HugeEnumSet() 136 for (HugeEnumCount count : set) { in test_iterator_HugeEnumSet() 142 EnumSet<HugeEnumCount> set = EnumSet.noneOf(HugeEnumCount.class); in testRemoveIteratorRemoveFromHugeEnumSet() local 143 set.add(HugeEnumCount.NO64); in testRemoveIteratorRemoveFromHugeEnumSet() 144 set.add(HugeEnumCount.NO65); in testRemoveIteratorRemoveFromHugeEnumSet() [all …]
|
D | EnumMapTest.java | 341 Set set = enumSizeMap.entrySet(); in test_entrySet() local 344 assertSame("Should be same", set1, set); in test_entrySet() 346 set.add(mockEntry); in test_entrySet() 352 assertTrue("Returned false for contained object", set in test_entrySet() 355 assertFalse("Returned true for uncontained object", set in test_entrySet() 357 assertFalse("Returned true for uncontained object", set in test_entrySet() 360 assertFalse("Returned true for uncontained object", set in test_entrySet() 362 assertFalse("Returned true for uncontained object", set in test_entrySet() 366 assertTrue("Returned false for contained object", set in test_entrySet() 368 assertTrue("Returned false when the object can be removed", set in test_entrySet() [all …]
|
/libcore/ojluni/src/main/java/jdk/net/ |
D | Sockets.java | 339 Set<SocketOption<?>> set = options.get(socketType); in supportedOptions() local 340 if (set == null) { in supportedOptions() 343 return set; in supportedOptions() 356 Set<SocketOption<?>> set = new HashSet<>(); in initOptionSets() local 357 set.add(StandardSocketOptions.SO_KEEPALIVE); in initOptionSets() 358 set.add(StandardSocketOptions.SO_SNDBUF); in initOptionSets() 359 set.add(StandardSocketOptions.SO_RCVBUF); in initOptionSets() 360 set.add(StandardSocketOptions.SO_REUSEADDR); in initOptionSets() 361 set.add(StandardSocketOptions.SO_LINGER); in initOptionSets() 362 set.add(StandardSocketOptions.IP_TOS); in initOptionSets() [all …]
|
/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 | CollectionsTest.java | 382 NavigableSet set = Collections.checkedNavigableSet(new TreeSet<>(), String.class); in test_checkedNavigableSet() local 383 check_navigableSet(set, Arrays.asList(), "absent element"); in test_checkedNavigableSet() 385 set.add("element 1"); in test_checkedNavigableSet() 386 set.add("element 2"); in test_checkedNavigableSet() 388 check_navigableSet(set, elementsInOrder, "absent element"); in test_checkedNavigableSet() 390 assertEquals(set, new HashSet<>(elementsInOrder)); in test_checkedNavigableSet() 391 assertEquals(new HashSet<>(elementsInOrder), set); in test_checkedNavigableSet() 392 assertEquals(2, set.size()); in test_checkedNavigableSet() 393 assertTrue(set.contains("element 1")); in test_checkedNavigableSet() 394 assertTrue(set.contains("element 2")); in test_checkedNavigableSet() [all …]
|
D | GregorianCalendarTest.java | 75 greg.set(Calendar.WEEK_OF_YEAR, differentWeekOfYear); in test_computeFields_dayOfWeekAndWeekOfYearSet() 77 greg.set(Calendar.DAY_OF_WEEK, differentDayOfWeek); in test_computeFields_dayOfWeekAndWeekOfYearSet() 83 greg.set(Calendar.DAY_OF_WEEK, differentDayOfWeek); in test_computeFields_dayOfWeekAndWeekOfYearSet() 84 greg.set(Calendar.WEEK_OF_YEAR, differentWeekOfYear); in test_computeFields_dayOfWeekAndWeekOfYearSet() 91 greg.set(Calendar.WEEK_OF_YEAR, differentWeekOfYear); in test_computeFields_dayOfWeekAndWeekOfYearSet() 92 greg.set(Calendar.DAY_OF_WEEK, differentDayOfWeek); in test_computeFields_dayOfWeekAndWeekOfYearSet() 258 cal.set(2016, Calendar.MARCH, 29); in test_getWeekYear() 263 cal.set(2016, Calendar.JANUARY, 1); in test_getWeekYear() 265 cal.set(2015, Calendar.DECEMBER, 31); in test_getWeekYear() 270 cal.set(2016, Calendar.JANUARY, 1); in test_getWeekYear() [all …]
|
D | CalendarBuilderTest.java | 89 expected.set(2000, Calendar.FEBRUARY, 3); in test_setDate() 99 expected.set(1970, Calendar.JANUARY, 1, 10, 11, 12); in test_setTimeOfDay() 102 expected.set(Calendar.MILLISECOND, 13); in test_setTimeOfDay() 119 builder.set(Calendar.HOUR_OF_DAY, 25); in test_setLenient() 129 expected.set(Calendar.HOUR_OF_DAY, 25); in test_setLenient() 156 builder.set(Calendar.YEAR, 2000); in test_set() 159 expected.set(Calendar.YEAR, 2000); in test_set() 165 new Calendar.Builder().set(-1, 1); in test_set_negative_field() 170 new Calendar.Builder().set(Calendar.FIELD_COUNT, 1); in test_set_field_too_high() 178 builder.set(Calendar.YEAR, 2000); in test_set_after_setInstant() [all …]
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | StreamOpFlag.java | 250 set(Type.SPLITERATOR).set(Type.STREAM).setAndClear(Type.OP)), 271 set(Type.SPLITERATOR).set(Type.STREAM).setAndClear(Type.OP)), 284 set(Type.SPLITERATOR).set(Type.STREAM).setAndClear(Type.OP).clear(Type.TERMINAL_OP) 299 set(Type.SPLITERATOR).set(Type.STREAM).clear(Type.OP)), 330 set(Type.OP).set(Type.TERMINAL_OP)); 385 private static MaskBuilder set(Type t) { in set() method in StreamOpFlag 386 return new MaskBuilder(new EnumMap<>(Type.class)).set(t); in set() 401 MaskBuilder set(Type t) { in set() method in StreamOpFlag.MaskBuilder 435 private final int set; field in StreamOpFlag 452 this.set = SET_BITS << position; in StreamOpFlag() [all …]
|
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/ |
D | StreamOpFlagsTest.java | 59 sourceFlags |= flags.get(f).set(); in testInitialOpFlagsFromSourceFlags() 70 int sourceFlags = f.set(); in testSameCombine() 74 opsFlags = combineOpFlags(f.set(), opsFlags); in testSameCombine() 90 sourceFlags = f.set(); in testOpClear() 105 opsFlags = combineOpFlags(f.set(), opsFlags); in testOpInject() 106 assertEquals(f.set(), toStreamFlags(opsFlags)); in testOpInject() 109 sourceFlags = f.set(); in testOpInject() 112 opsFlags = combineOpFlags(f.set(), opsFlags); in testOpInject() 119 … = StreamOpFlagTestHelper.allStreamFlags().stream().map(StreamOpFlag::set).collect(toList()); in testPairSet() 128 opsFlags = combineOpFlags(f1.set(), opsFlags); in testPairSet() [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/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/ojluni/src/main/java/sun/security/x509/ |
D | KeyUsageExtension.java | 93 private void set(int position, boolean val) { in set() method in KeyUsageExtension 188 public void set(String name, Object obj) throws IOException { in set() method in KeyUsageExtension 194 set(0,val); in set() 196 set(1,val); in set() 198 set(2,val); in set() 200 set(3,val); in set() 202 set(4,val); in set() 204 set(5,val); in set() 206 set(6,val); in set() 208 set(7,val); in set() [all …]
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | TreeSetTest.java | 551 TreeSet set = set5(); in testSubSetContents() local 552 SortedSet sm = set.subSet(two, four); in testSubSetContents() 571 assertFalse(set.contains(two)); in testSubSetContents() 572 assertEquals(4, set.size()); in testSubSetContents() 578 assertEquals(3, set.size()); in testSubSetContents() 582 TreeSet set = set5(); in testSubSetContents2() local 583 SortedSet sm = set.subSet(two, three); in testSubSetContents2() 600 assertFalse(set.contains(two)); in testSubSetContents2() 601 assertEquals(4, set.size()); in testSubSetContents2() 605 assertEquals(4, set.size()); in testSubSetContents2() [all …]
|
D | ConcurrentSkipListSetTest.java | 548 ConcurrentSkipListSet set = set5(); in testSubSetContents() local 549 SortedSet sm = set.subSet(two, four); in testSubSetContents() 568 assertFalse(set.contains(two)); in testSubSetContents() 569 assertEquals(4, set.size()); in testSubSetContents() 575 assertEquals(3, set.size()); in testSubSetContents() 579 ConcurrentSkipListSet set = set5(); in testSubSetContents2() local 580 SortedSet sm = set.subSet(two, three); in testSubSetContents2() 597 assertFalse(set.contains(two)); in testSubSetContents2() 598 assertEquals(4, set.size()); in testSubSetContents2() 602 assertEquals(4, set.size()); in testSubSetContents2() [all …]
|
D | AtomicIntegerArrayTest.java | 71 aa.set(index, 1); in testIndexing() 103 aa.set(i, 1); in testGetSet() 105 aa.set(i, 2); in testGetSet() 107 aa.set(i, -3); in testGetSet() 133 aa.set(i, 1); in testCompareAndSet() 150 a.set(0, 1); in testCompareAndSetInMultipleThreads() 171 aa.set(i, 1); in testWeakCompareAndSet() 186 aa.set(i, 1); in testGetAndSet() 199 aa.set(i, 1); in testGetAndAdd() 213 aa.set(i, 1); in testGetAndDecrement() [all …]
|
D | AtomicLongArrayTest.java | 70 aa.set(index, 1); in testIndexing() 102 aa.set(i, 1); in testGetSet() 104 aa.set(i, 2); in testGetSet() 106 aa.set(i, -3); in testGetSet() 132 aa.set(i, 1); in testCompareAndSet() 149 a.set(0, 1); in testCompareAndSetInMultipleThreads() 170 aa.set(i, 1); in testWeakCompareAndSet() 185 aa.set(i, 1); in testGetAndSet() 198 aa.set(i, 1); in testGetAndAdd() 212 aa.set(i, 1); in testGetAndDecrement() [all …]
|
/libcore/ojluni/src/main/java/java/util/ |
D | BitSet.java | 442 public void set(int bitIndex) { in set() method in BitSet 462 public void set(int bitIndex, boolean value) { in set() method in BitSet 464 set(bitIndex); in set() 480 public void set(int fromIndex, int toIndex) { in set() method in BitSet 524 public void set(int fromIndex, int toIndex, boolean value) { in set() method in BitSet 526 set(fromIndex, toIndex); in set() 883 public boolean intersects(BitSet set) { in intersects() argument 884 for (int i = Math.min(wordsInUse, set.wordsInUse) - 1; i >= 0; i--) in intersects() 885 if ((words[i] & set.words[i]) != 0) in intersects() 912 public void and(BitSet set) { in and() argument [all …]
|
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
D | PolicyNodeImpl.java | 303 Set<PolicyNodeImpl> set = new HashSet<>(); in getPolicyNodes() local 304 getPolicyNodes(depth, set); in getPolicyNodes() 305 return set; in getPolicyNodes() 312 private void getPolicyNodes(int depth, Set<PolicyNodeImpl> set) { in getPolicyNodes() argument 315 set.add(this); in getPolicyNodes() 318 node.getPolicyNodes(depth, set); in getPolicyNodes() 347 HashSet<PolicyNodeImpl> set = new HashSet<>(); in getPolicyNodesExpectedHelper() local 351 set.addAll(node.getPolicyNodesExpectedHelper(depth, in getPolicyNodesExpectedHelper() 358 set.add(this); in getPolicyNodesExpectedHelper() 361 set.add(this); in getPolicyNodesExpectedHelper() [all …]
|
/libcore/ojluni/src/main/java/sun/util/ |
D | ResourceBundleEnumeration.java | 39 Set<String> set; field in ResourceBundleEnumeration 49 public ResourceBundleEnumeration(Set<String> set, Enumeration<String> enumeration) { in ResourceBundleEnumeration() argument 50 this.set = set; in ResourceBundleEnumeration() 51 this.iterator = set.iterator(); in ResourceBundleEnumeration() 64 if (set.contains(next)) { in hasMoreElements()
|
/libcore/luni/src/test/java/libcore/java/util/function/ |
D | LongPredicateTest.java | 34 LongPredicate alwaysTrue = x -> { alwaysTrueInvoked.set(true); return true; }; in testAnd() 35 LongPredicate alwaysTrue2 = x -> { alwaysTrue2Invoked.set(true); return true; }; in testAnd() 36 LongPredicate alwaysFalse = x -> { alwaysFalseInvoked.set(true); return false; }; in testAnd() 37 LongPredicate alwaysFalse2 = x -> { alwaysFalse2Invoked.set(true); return false; }; in testAnd() 85 LongPredicate alwaysTrue = x -> { alwaysTrueInvoked.set(true); return true; }; in testOr() 86 LongPredicate alwaysTrue2 = x -> { alwaysTrue2Invoked.set(true); return true; }; in testOr() 87 LongPredicate alwaysFalse = x -> { alwaysFalseInvoked.set(true); return false; }; in testOr() 88 LongPredicate alwaysFalse2 = x -> { alwaysFalse2Invoked.set(true); return false; }; in testOr() 121 toReset.set(false); in resetToFalse()
|
D | DoublePredicateTest.java | 37 x -> { alwaysTrueInvoked.set(true); assertEquals(x, arg); return true; }; in testAnd() 39 x -> { alwaysTrue2Invoked.set(true); assertEquals(x, arg); return true; }; in testAnd() 41 x -> { alwaysFalseInvoked.set(true); assertEquals(x, arg); return false; }; in testAnd() 43 x -> { alwaysFalse2Invoked.set(true); assertEquals(x, arg); return false; }; in testAnd() 94 x -> { alwaysTrueInvoked.set(true); assertEquals(x, arg); return true; }; in testOr() 96 x -> { alwaysTrue2Invoked.set(true); assertEquals(x, arg); return true; }; in testOr() 98 x -> { alwaysFalseInvoked.set(true); assertEquals(x, arg); return false; }; in testOr() 100 x -> { alwaysFalse2Invoked.set(true); assertEquals(x, arg); return false; }; in testOr() 133 toReset.set(false); in resetToFalse()
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | Util.java | 100 HashSet<E> set = new HashSet<>(); in newSet() local 102 set.add(e); in newSet() 104 return set; in newSet() 113 HashSet<E> set = new HashSet<>(other); in newSet() local 115 set.add(e); in newSet() 117 return set; in newSet()
|
/libcore/ojluni/src/main/java/java/net/ |
D | URLEncoder.java | 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('*');
|