/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | Character_UnicodeBlockTest.java | 24 assertEquals(Character.UnicodeBlock.BASIC_LATIN, Character.UnicodeBlock.of((char) 0x0)); in test_ofC() 25 assertEquals(Character.UnicodeBlock.BASIC_LATIN, Character.UnicodeBlock.of((char) 0x7f)); in test_ofC() 26 … assertEquals(Character.UnicodeBlock.LATIN_1_SUPPLEMENT, Character.UnicodeBlock.of((char) 0x80)); in test_ofC() 27 … assertEquals(Character.UnicodeBlock.LATIN_1_SUPPLEMENT, Character.UnicodeBlock.of((char) 0xff)); in test_ofC() 28 … assertEquals(Character.UnicodeBlock.LATIN_EXTENDED_A, Character.UnicodeBlock.of((char) 0x100)); in test_ofC() 29 … assertEquals(Character.UnicodeBlock.LATIN_EXTENDED_A, Character.UnicodeBlock.of((char) 0x17f)); in test_ofC() 30 … assertEquals(Character.UnicodeBlock.LATIN_EXTENDED_B, Character.UnicodeBlock.of((char) 0x180)); in test_ofC() 31 … assertEquals(Character.UnicodeBlock.LATIN_EXTENDED_B, Character.UnicodeBlock.of((char) 0x24f)); in test_ofC() 32 … assertEquals(Character.UnicodeBlock.IPA_EXTENSIONS, Character.UnicodeBlock.of((char) 0x250)); in test_ofC() 33 … assertEquals(Character.UnicodeBlock.IPA_EXTENSIONS, Character.UnicodeBlock.of((char) 0x2af)); in test_ofC() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | OptionalIntTest.java | 35 assertEquals(56, OptionalInt.of(56).getAsInt()); in testGet() 45 assertTrue(OptionalInt.of(56).isPresent()); in testIsPresent() 55 OptionalInt.of(56).ifPresent(recorder); in testIfPresent() 61 assertEquals(56, OptionalInt.of(56).orElse(57)); in testOrElse() 66 assertEquals(56, OptionalInt.of(56).orElseGet(alwaysFails)); in testOrElseGet() 76 assertEquals(57, OptionalInt.of(57).orElseThrow(barSupplier)); in testOrElseThrow() 88 assertEquals(OptionalInt.of(56), OptionalInt.of(56)); in testEquals() 89 assertFalse(OptionalInt.empty().equals(OptionalInt.of(56))); in testEquals() 90 assertFalse(OptionalInt.of(57).equals(OptionalInt.of(56))); in testEquals() 94 assertEquals(Integer.hashCode(57), OptionalInt.of(57).hashCode()); in testHashCode()
|
D | OptionalLongTest.java | 35 assertEquals(56, OptionalLong.of(56).getAsLong()); in testGet() 45 assertTrue(OptionalLong.of(56).isPresent()); in testIsPresent() 55 OptionalLong.of(56).ifPresent(recorder); in testIfPresent() 61 assertEquals(56, OptionalLong.of(56).orElse(57)); in testOrElse() 66 assertEquals(56, OptionalLong.of(56).orElseGet(alwaysFails)); in testOrElseGet() 76 assertEquals(57, OptionalLong.of(57).orElseThrow(barSupplier)); in testOrElseThrow() 88 assertEquals(OptionalLong.of(56), OptionalLong.of(56)); in testEquals() 89 assertFalse(OptionalLong.empty().equals(OptionalLong.of(56))); in testEquals() 90 assertFalse(OptionalLong.of(57).equals(OptionalLong.of(56))); in testEquals() 94 assertEquals(Long.hashCode(57), OptionalLong.of(57).hashCode()); in testHashCode()
|
D | OptionalDoubleTest.java | 37 assertEquals(56.0, OptionalDouble.of(56.0).getAsDouble()); in testGet() 47 assertTrue(OptionalDouble.of(56.0).isPresent()); in testIsPresent() 57 OptionalDouble.of(56.0).ifPresent(recorder); in testIfPresent() 63 assertEquals(56.0, OptionalDouble.of(56.0).orElse(57.0)); in testOrElse() 68 assertEquals(56.0, OptionalDouble.of(56.0).orElseGet(alwaysFails)); in testOrElseGet() 78 assertEquals(57.0, OptionalDouble.of(57.0).orElseThrow(barSupplier)); in testOrElseThrow() 90 assertEquals(OptionalDouble.of(56.0), OptionalDouble.of(56.0)); in testEquals() 91 assertFalse(OptionalDouble.empty().equals(OptionalDouble.of(56.0))); in testEquals() 92 assertFalse(OptionalDouble.of(57.0).equals(OptionalDouble.of(56.0))); in testEquals() 96 assertEquals(Double.hashCode(57.0), OptionalDouble.of(57.0).hashCode()); in testHashCode()
|
D | OptionalTest.java | 53 Optional<String> optionalFoo = Optional.of(foo); in testGet() 61 Optional<String> optionalFoo = Optional.of("foo"); in testIsPresent() 80 Optional.of(foo).ifPresent(s -> reference.set(s)); in testIfPresent() 96 Optional<String> optionalFoo = Optional.of(foo); in testFilter() 119 Optional<String> optionalFoo = Optional.of(foo); in testMap() 139 s -> { reference.set(s); return Optional.of(s); }; in testFlatMap() 142 Optional<String> optionalFoo = Optional.of(foo); in testFlatMap() 171 Optional<String> optionalFoo = Optional.of(foo); in testOrElse() 186 Optional<String> optionalFoo = Optional.of(foo); in testOrElseGet() 211 Optional<String> optionalFoo = Optional.of(foo); in testOrElseThrow() [all …]
|
D | EnumSetTest.java | 36 EnumSet<Roshambo> set = EnumSet.of(Roshambo.ROCK, Roshambo.SCISSORS); in testSmallEnumSetSerialization() 51 EnumSet<Element> set = EnumSet.of(Element.H, Element.TB, Element.DY, Element.UUO); in testLargeEnumSetSerialization() 93 assertEquals(EnumSet.of(Roshambo.ROCK, Roshambo.SCISSORS), in testDeserializeShuffledOrdinals()
|
/libcore/ojluni/src/test/java/util/stream/ |
D | TestDoubleSumAverage.java | 102 testCases.put(() -> DoubleStream.of(MAX_VALUE, MAX_VALUE), POSITIVE_INFINITY); in testNonfiniteSum() 103 testCases.put(() -> DoubleStream.of(-MAX_VALUE, -MAX_VALUE), NEGATIVE_INFINITY); in testNonfiniteSum() 105 testCases.put(() -> DoubleStream.of(1.0d, POSITIVE_INFINITY, 1.0d), POSITIVE_INFINITY); in testNonfiniteSum() 106 testCases.put(() -> DoubleStream.of(POSITIVE_INFINITY), POSITIVE_INFINITY); in testNonfiniteSum() 107 … testCases.put(() -> DoubleStream.of(POSITIVE_INFINITY, POSITIVE_INFINITY), POSITIVE_INFINITY); in testNonfiniteSum() 108 …testCases.put(() -> DoubleStream.of(POSITIVE_INFINITY, POSITIVE_INFINITY, 0.0), POSITIVE_INFINITY); in testNonfiniteSum() 110 testCases.put(() -> DoubleStream.of(1.0d, NEGATIVE_INFINITY, 1.0d), NEGATIVE_INFINITY); in testNonfiniteSum() 111 testCases.put(() -> DoubleStream.of(NEGATIVE_INFINITY), NEGATIVE_INFINITY); in testNonfiniteSum() 112 … testCases.put(() -> DoubleStream.of(NEGATIVE_INFINITY, NEGATIVE_INFINITY), NEGATIVE_INFINITY); in testNonfiniteSum() 113 …testCases.put(() -> DoubleStream.of(NEGATIVE_INFINITY, NEGATIVE_INFINITY, 0.0), NEGATIVE_INFINITY); in testNonfiniteSum() [all …]
|
/libcore/benchmarks/libs/ |
D | caliper.jar.txt | 11 and distribution as defined by Sections 1 through 9 of this document. 16 "Legal Entity" shall mean the union of the acting entity and all 18 control with that entity. For the purposes of this definition, 20 direction or management of such entity, whether by contract or 21 otherwise, or (ii) ownership of fifty percent (50%) or more of the 22 outstanding shares, or (iii) beneficial ownership of such entity. 32 transformation or translation of a Source form, including but 36 "Work" shall mean the work of authorship, whether in Source or 44 represent, as a whole, an original work of authorship. For the purposes 45 of this License, Derivative Works shall not include works that remain [all …]
|
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/ |
D | StreamFlagsTest.java | 68 EnumSet.of(ORDERED, SIZED), in testBaseStreams() 69 EnumSet.of(DISTINCT, SORTED, SHORT_CIRCUIT)); in testBaseStreams() 71 EnumSet.of(ORDERED, SIZED), in testBaseStreams() 72 EnumSet.of(DISTINCT, SORTED, SHORT_CIRCUIT)); in testBaseStreams() 74 EnumSet.of(SIZED, DISTINCT), in testBaseStreams() 75 EnumSet.of(ORDERED, SORTED, SHORT_CIRCUIT)); in testBaseStreams() 77 EnumSet.of(ORDERED, SIZED, DISTINCT, SORTED), in testBaseStreams() 78 EnumSet.of(SHORT_CIRCUIT)); in testBaseStreams() 80 EnumSet.of(ORDERED, DISTINCT, SIZED), in testBaseStreams() 81 EnumSet.of(SORTED, SHORT_CIRCUIT)); in testBaseStreams() [all …]
|
D | FlagOpTest.java | 164 EnumSet<StreamOpFlag> known = EnumSet.of(StreamOpFlag.ORDERED, StreamOpFlag.SIZED); in testFlagsSetSequence() 165 EnumSet<StreamOpFlag> preserve = EnumSet.of(StreamOpFlag.DISTINCT, StreamOpFlag.SORTED); in testFlagsSetSequence() 168 for (StreamOpFlag f : EnumSet.of(StreamOpFlag.DISTINCT, StreamOpFlag.SORTED)) { in testFlagsSetSequence() 198 EnumSet<StreamOpFlag> known = EnumSet.of(StreamOpFlag.ORDERED, StreamOpFlag.SIZED); in testFlagsClearSequence() 199 EnumSet<StreamOpFlag> preserve = EnumSet.of(StreamOpFlag.DISTINCT, StreamOpFlag.SORTED); in testFlagsClearSequence() 203 …for (StreamOpFlag f : EnumSet.of(StreamOpFlag.ORDERED, StreamOpFlag.DISTINCT, StreamOpFlag.SORTED)… in testFlagsClearSequence() 229 EnumSet<StreamOpFlag> parKnown = EnumSet.of(StreamOpFlag.SIZED); in testFlagsSizedOrderedParallelCollect()
|
/libcore/ |
D | LICENSE | 8 Everyone is permitted to copy and distribute verbatim copies of this license 17 most of the Free Software Foundation's software and to any other program whose 22 When we speak of free software, we are referring to freedom, not price. Our 24 distribute copies of free software (and charge for this service if you wish), 26 the software or use pieces of it in new free programs; and that you know you 31 translate to certain responsibilities for you if you distribute copies of the 34 For example, if you distribute copies of such a program, whether gratis or for 50 wish to avoid the danger that redistributors of a free program will 61 placed by the copyright holder saying it may be distributed under the terms of 65 Program or a portion of it, either verbatim or with modifications and/or [all …]
|
D | NOTICE | 2 == NOTICE file corresponding to the section 4 d of == 10 This product includes software developed as part of 14 == NOTICE file corresponding to the section 4 d of == 25 Portions of Harmony were originally developed by 39 Permission is hereby granted, free of charge, to any person obtaining 40 a copy of this software and associated documentation files (the 43 distribute, and/or sell copies of the Software, and to permit persons 45 copyright notice(s) and this permission notice appear in all copies of 59 Except as contained in this notice, the name of a copyright holder 62 of the copyright holder. [all …]
|
D | known_oj_tags.txt | 5 # You may obtain a copy of the License at 15 # List of tags that are "known" to us from the OpenJdk code. We don't treat
|
/libcore/ojluni/ |
D | NOTICE | 16 The original version of this source code and documentation is copyrighted * 17 and owned by IBM, These materials are provided under terms of a License * 28 The original version of this source code and documentation is copyrighted * 29 and owned by IBM, These materials are provided under terms of a License * 40 The original version of this source code and documentation is copyrighted * 41 and owned by IBM, These materials are provided under terms of a License * 55 * Java port of ubidi_props.h/.c. 103 The original version of this source code and documentation is copyrighted * 104 and owned by IBM, These materials are provided under terms of a License * 119 The original version of this source code and documentation is [all …]
|
/libcore/luni/src/main/java/java/util/concurrent/atomic/ |
D | AtomicMarkableReference.java | 30 static <T> Pair<T> of(T reference, boolean mark) { in of() method in AtomicMarkableReference.Pair 45 pair = Pair.of(initialRef, initialMark); in AtomicMarkableReference() 126 casPair(current, Pair.of(newReference, newMark))); in compareAndSet() 138 this.pair = Pair.of(newReference, newMark); in set() 159 casPair(current, Pair.of(expectedReference, newMark))); in attemptMark()
|
D | AtomicStampedReference.java | 30 static <T> Pair<T> of(T reference, int stamp) { in of() method in AtomicStampedReference.Pair 45 pair = Pair.of(initialRef, initialStamp); in AtomicStampedReference() 126 casPair(current, Pair.of(newReference, newStamp))); in compareAndSet() 138 this.pair = Pair.of(newReference, newStamp); in set() 159 casPair(current, Pair.of(expectedReference, newStamp))); in attemptStamp()
|
/libcore/luni/ |
D | bouncycastle-license.txt | 4 Permission is hereby granted, free of charge, to any person obtaining 5 a copy of this software and associated documentation files (the 8 distribute, sublicense, and/or sell copies of the Software, and to 13 included in all copies or substantial portions of the Software.
|
D | unicode-license.txt | 20 the Terms of Use in http://www.unicode.org/copyright.html. 22 Permission is hereby granted, free of charge, to any person obtaining a copy 23 of the Unicode data files and any associated documentation (the "Data Files") or 26 rights to use, copy, modify, merge, publish, distribute, and/or sell copies of 29 and this permission notice appear with all copies of the Data Files or Software, 45 Except as contained in this notice, the name of a copyright holder shall not 47 in these Data Files or Software without prior written authorization of the
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | CharacterTest.java | 120 Character.UnicodeBlock.of(i); in test_UnicodeBlock_all() 125 assertEquals(Character.UnicodeBlock.BASIC_LATIN, Character.UnicodeBlock.of(1)); in test_UnicodeBlock_of() 126 assertEquals(Character.UnicodeBlock.HANGUL_JAMO, Character.UnicodeBlock.of(0x1100)); in test_UnicodeBlock_of() 127 assertEquals(Character.UnicodeBlock.CYPRIOT_SYLLABARY, Character.UnicodeBlock.of(0x10800)); in test_UnicodeBlock_of() 128 …assertEquals(Character.UnicodeBlock.VARIATION_SELECTORS_SUPPLEMENT, Character.UnicodeBlock.of(0xe0… in test_UnicodeBlock_of() 130 …assertEquals(Character.UnicodeBlock.ANCIENT_GREEK_MUSICAL_NOTATION, Character.UnicodeBlock.of(0x1d… in test_UnicodeBlock_of() 132 assertEquals(Character.UnicodeBlock.NKO, Character.UnicodeBlock.of(0x07c0)); in test_UnicodeBlock_of() 134 assertEquals(Character.UnicodeBlock.SUNDANESE, Character.UnicodeBlock.of(0x1b80)); in test_UnicodeBlock_of() 136 assertEquals(Character.UnicodeBlock.SAMARITAN, Character.UnicodeBlock.of(0x0800)); in test_UnicodeBlock_of() 138 assertEquals(Character.UnicodeBlock.MANDAIC, Character.UnicodeBlock.of(0x0840)); in test_UnicodeBlock_of()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | SortedOpTest.java | 154 assertEquals(knownSize.apply(1).findFirst(), Optional.of(1)); in testSequentialShortCircuitTerminal() 155 assertEquals(knownSize.apply(1).findAny(), Optional.of(1)); in testSequentialShortCircuitTerminal() 156 assertEquals(unknownSize.apply(1).findFirst(), Optional.of(1)); in testSequentialShortCircuitTerminal() 157 assertEquals(unknownSize.apply(1).findAny(), Optional.of(1)); in testSequentialShortCircuitTerminal() 231 assertEquals(knownSize.apply(1).findFirst(), OptionalInt.of(1)); in testIntSequentialShortCircuitTerminal() 232 assertEquals(knownSize.apply(1).findAny(), OptionalInt.of(1)); in testIntSequentialShortCircuitTerminal() 233 assertEquals(unknownSize.apply(1).findFirst(), OptionalInt.of(1)); in testIntSequentialShortCircuitTerminal() 234 assertEquals(unknownSize.apply(1).findAny(), OptionalInt.of(1)); in testIntSequentialShortCircuitTerminal() 279 assertEquals(knownSize.apply(1).findFirst(), OptionalLong.of(1)); in testLongSequentialShortCircuitTerminal() 280 assertEquals(knownSize.apply(1).findAny(), OptionalLong.of(1)); in testLongSequentialShortCircuitTerminal() [all …]
|
/libcore/ojluni/src/main/java/java/util/ |
D | EnumSet.java | 168 EnumSet<E> result = EnumSet.of(first); in copyOf() 202 public static <E extends Enum<E>> EnumSet<E> of(E e) { in of() method in EnumSet 222 public static <E extends Enum<E>> EnumSet<E> of(E e1, E e2) { in of() method in EnumSet 244 public static <E extends Enum<E>> EnumSet<E> of(E e1, E e2, E e3) { in of() method in EnumSet 268 public static <E extends Enum<E>> EnumSet<E> of(E e1, E e2, E e3, E e4) { in of() method in EnumSet 294 public static <E extends Enum<E>> EnumSet<E> of(E e1, E e2, E e3, E e4, in of() method in EnumSet 320 public static <E extends Enum<E>> EnumSet<E> of(E first, E... rest) { in of() method in EnumSet
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | Collector.java | 260 public static<T, R> Collector<T, R, R> of(Supplier<R> supplier, in of() method 270 … : Collections.unmodifiableSet(EnumSet.of(Collector.Characteristics.IDENTITY_FINISH, in of() 291 public static<T, A, R> Collector<T, A, R> of(Supplier<A> supplier, in of() method
|
/libcore/luni/src/main/java/java/security/ |
D | security.properties | 6 # the License. You may obtain a copy of the License at 21 # Android's provider of OpenSSL backed implementations 23 # Android's version of the CertPathValidator and CertPathBuilder 27 # Android's provider of OpenSSL backed implementations
|
/libcore/ojluni/src/test/java/util/stream/testlib/ |
D | TEST.properties | 1 # This file identifies root(s) of the test-ng hierarchy.
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | EnumSetTest.java | 154 assertEquals(EnumSet.of(HugeEnumCount.NO65, HugeEnumCount.NO128), set); in testRemoveIteratorRemoveFromHugeEnumSet() 156 assertEquals(EnumSet.of(HugeEnumCount.NO65), set); in testRemoveIteratorRemoveFromHugeEnumSet() 1613 EnumSet<EnumWithInnerClass> enumSet = EnumSet.of(EnumWithInnerClass.a); in test_Of_E() 1620 EnumSet.of((EnumWithInnerClass) null); in test_Of_E() 1627 EnumSet<HugeEnumWithInnerClass> hugeEnumSet = EnumSet.of(HugeEnumWithInnerClass.a); in test_Of_E() 1637 EnumSet<EnumWithInnerClass> enumSet = EnumSet.of(EnumWithInnerClass.a, in test_Of_EE() 1647 EnumSet.of((EnumWithInnerClass) null, EnumWithInnerClass.a); in test_Of_EE() 1654 EnumSet.of( EnumWithInnerClass.a, (EnumWithInnerClass) null); in test_Of_EE() 1661 EnumSet.of( (EnumWithInnerClass) null, (EnumWithInnerClass) null); in test_Of_EE() 1667 enumSet = EnumSet.of(EnumWithInnerClass.a, EnumWithInnerClass.a); in test_Of_EE() [all …]
|