/external/guava/guava-tests/test/com/google/common/collect/ |
D | RangeTest.java | 45 Range<Integer> range = Range.open(4, 8); in testOpen() 60 Range.open(4, 3); in testOpen_invalid() 65 Range.open(3, 3); in testOpen_invalid() 72 Range<Integer> range = Range.closed(5, 7); in testClosed() 87 Range.closed(4, 3); in testClosed_invalid() 94 Range<Integer> range = Range.openClosed(4, 7); in testOpenClosed() 108 Range<Integer> range = Range.closedOpen(5, 8); in testClosedOpen() 122 assertTrue(Range.closed(3, 5).isConnected(Range.open(5, 6))); in testIsConnected() 123 assertTrue(Range.closed(3, 5).isConnected(Range.openClosed(5, 5))); in testIsConnected() 124 assertTrue(Range.open(3, 5).isConnected(Range.closed(5, 6))); in testIsConnected() [all …]
|
D | TreeRangeMapTest.java | 47 suite.addTest(MapTestSuiteBuilder.using(new TestMapGenerator<Range<Integer>, String>() { in suite() 49 public SampleElements<Entry<Range<Integer>, String>> samples() { in suite() 50 return new SampleElements<Entry<Range<Integer>, String>>( in suite() 51 mapEntry(Range.singleton(0), "banana"), in suite() 52 mapEntry(Range.closedOpen(3, 5), "frisbee"), in suite() 53 mapEntry(Range.atMost(-1), "fruitcake"), in suite() 54 mapEntry(Range.open(10, 15), "elephant"), in suite() 55 mapEntry(Range.closed(20, 22), "umbrella")); in suite() 59 public Map<Range<Integer>, String> create(Object... elements) { in suite() 63 Entry<Range<Integer>, String> entry = (Entry<Range<Integer>, String>) o; in suite() [all …]
|
D | ImmutableRangeSetTest.java | 42 private static final ImmutableSet<Range<Integer>> RANGES = ImmutableSet.of( 43 Range.<Integer>all(), 44 Range.closedOpen(3, 5), 45 Range.singleton(1), 46 Range.lessThan(2), 47 Range.greaterThan(10), 48 Range.atMost(4), 49 Range.atLeast(3), 50 Range.closed(4, 6), 51 Range.closedOpen(1, 3), [all …]
|
D | TreeRangeSetTest.java | 18 import static com.google.common.collect.Range.range; 36 private static final ImmutableList<Range<Integer>> QUERY_RANGES; 42 ImmutableList.Builder<Range<Integer>> queryBuilder = ImmutableList.builder(); 44 queryBuilder.add(Range.<Integer>all()); in all() 48 queryBuilder.add(Range.upTo(i, boundType)); in Range.upTo() 49 queryBuilder.add(Range.downTo(i, boundType)); in Range.downTo() 51 queryBuilder.add(Range.singleton(i)); in Range.singleton() 52 queryBuilder.add(Range.openClosed(i, i)); in Range.openClosed() 53 queryBuilder.add(Range.closedOpen(i, i)); in Range.closedOpen() 58 queryBuilder.add(Range.range(i, lowerBoundType, j, upperBoundType)); in Range.range() [all …]
|
D | ContiguousSetTest.java | 78 ContiguousSet.create(Range.closed(1, 3), integers()), in testEquals() 79 ContiguousSet.create(Range.closedOpen(1, 4), integers()), in testEquals() 80 ContiguousSet.create(Range.openClosed(0, 3), integers()), in testEquals() 81 ContiguousSet.create(Range.open(0, 4), integers()), in testEquals() 82 ContiguousSet.create(Range.closed(1, 3), NOT_EQUAL_TO_INTEGERS), in testEquals() 83 ContiguousSet.create(Range.closedOpen(1, 4), NOT_EQUAL_TO_INTEGERS), in testEquals() 84 ContiguousSet.create(Range.openClosed(0, 3), NOT_EQUAL_TO_INTEGERS), in testEquals() 85 ContiguousSet.create(Range.open(0, 4), NOT_EQUAL_TO_INTEGERS), in testEquals() 90 ContiguousSet.create(Range.closed(Integer.MIN_VALUE, Integer.MAX_VALUE), integers()), in testEquals() 91 ContiguousSet.create(Range.<Integer>all(), integers())); in testEquals() [all …]
|
D | ImmutableRangeMapTest.java | 34 private static final ImmutableList<Range<Integer>> RANGES; 38 ImmutableList.Builder<Range<Integer>> builder = ImmutableList.builder(); 40 builder.add(Range.<Integer>all()); in all() 45 builder.add(Range.upTo(i, type)); in Range.upTo() 46 builder.add(Range.downTo(i, type)); in Range.downTo() 58 builder.add(Range.range(i, lowerType, j, upperType)); in Range.range() 70 builder.put(Range.closedOpen(i, i), 1); in testBuilderRejectsEmptyRanges() 76 builder.put(Range.openClosed(i, i), 1); in testBuilderRejectsEmptyRanges() 84 for (Range<Integer> range1 : RANGES) { in testOverlapRejection() 85 for (Range<Integer> range2 : RANGES) { in testOverlapRejection() [all …]
|
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
D | ContiguousSetTest.java | 61 ContiguousSet.create(Range.closed(1, 3), integers()), in testEquals() 62 ContiguousSet.create(Range.closedOpen(1, 4), integers()), in testEquals() 63 ContiguousSet.create(Range.openClosed(0, 3), integers()), in testEquals() 64 ContiguousSet.create(Range.open(0, 4), integers()), in testEquals() 65 ContiguousSet.create(Range.closed(1, 3), NOT_EQUAL_TO_INTEGERS), in testEquals() 66 ContiguousSet.create(Range.closedOpen(1, 4), NOT_EQUAL_TO_INTEGERS), in testEquals() 67 ContiguousSet.create(Range.openClosed(0, 3), NOT_EQUAL_TO_INTEGERS), in testEquals() 68 ContiguousSet.create(Range.open(0, 4), NOT_EQUAL_TO_INTEGERS), in testEquals() 73 ContiguousSet.create(Range.closed(Integer.MIN_VALUE, Integer.MAX_VALUE), integers()), in testEquals() 74 ContiguousSet.create(Range.<Integer>all(), integers())); in testEquals() [all …]
|
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/ |
D | RangeTest.java | 34 Range r = Range.range(1, 1, 3, 10); in aRangeContainsItself() 40 Range r = Range.range(1, 1, 3, 10); in aRangeDoesNotStrictlyContainsItself() 46 Range r1 = Range.range(1, 1, 3, 10); in overlappingButNotContainedRangesAreNotOnContains() 47 Range r2 = Range.range(2, 1, 7, 10); in overlappingButNotContainedRangesAreNotOnContains() 54 Range r1 = Range.range(1, 1, 3, 10); in overlappingButNotContainedRangesAreNotOnStrictlyContains() 55 Range r2 = Range.range(2, 1, 7, 10); in overlappingButNotContainedRangesAreNotOnStrictlyContains() 62 Range r1 = Range.range(1, 1, 3, 10); in unrelatedRangesAreNotOnContains() 63 Range r2 = Range.range(5, 1, 7, 10); in unrelatedRangesAreNotOnContains() 70 Range r1 = Range.range(1, 1, 3, 10); in unrelatedRangesAreNotOnStrictlyContains() 71 Range r2 = Range.range(5, 1, 7, 10); in unrelatedRangesAreNotOnStrictlyContains() [all …]
|
/external/guava/guava/src/com/google/common/collect/ |
D | TreeRangeSet.java | 48 final NavigableMap<Cut<C>, Range<C>> rangesByLowerBound; 54 return new TreeRangeSet<C>(new TreeMap<Cut<C>, Range<C>>()); in create() 66 private TreeRangeSet(NavigableMap<Cut<C>, Range<C>> rangesByLowerCut) { in TreeRangeSet() 70 private transient Set<Range<C>> asRanges; 73 public Set<Range<C>> asRanges() { in asRanges() 74 Set<Range<C>> result = asRanges; in asRanges() 78 final class AsRanges extends ForwardingCollection<Range<C>> implements Set<Range<C>> { 80 protected Collection<Range<C>> delegate() { in delegate() 97 public Range<C> rangeContaining(C value) { in rangeContaining() 99 Entry<Cut<C>, Range<C>> floorEntry = rangesByLowerBound.floorEntry(Cut.belowValue(value)); in rangeContaining() [all …]
|
D | TreeRangeMap.java | 69 extends AbstractMapEntry<Range<K>, V> { 70 private final Range<K> range; 74 this(Range.create(lowerBound, upperBound), value); in RangeMapEntry() 77 RangeMapEntry(Range<K> range, V value) { in RangeMapEntry() 83 public Range<K> getKey() { in getKey() 108 Entry<Range<K>, V> entry = getEntry(key); in get() 114 public Entry<Range<K>, V> getEntry(K key) { in getEntry() 125 public void put(Range<K> range, V value) { in put() 135 for (Map.Entry<Range<K>, V> entry : rangeMap.asMapOfRanges().entrySet()) { in putAll() 146 public Range<K> span() { in span() [all …]
|
D | ImmutableRangeMap.java | 46 ImmutableList.<Range<Comparable<?>>>of(), ImmutableList.of()); 60 Range<K> range, V value) { in of() 70 Map<Range<K>, ? extends V> map = rangeMap.asMapOfRanges(); in copyOf() 71 ImmutableList.Builder<Range<K>> rangesBuilder = new ImmutableList.Builder<Range<K>>(map.size()); in copyOf() 73 for (Entry<Range<K>, ? extends V> entry : map.entrySet()) { in copyOf() 105 public Builder<K, V> put(Range<K> range, V value) { in put() 111 for (Entry<Range<K>, V> entry : rangeMap.asMapOfRanges().entrySet()) { in put() 112 Range<K> key = entry.getKey(); in put() 131 for (Entry<Range<K>, ? extends V> entry : rangeMap.asMapOfRanges().entrySet()) { in putAll() 142 Map<Range<K>, V> map = rangeMap.asMapOfRanges(); in build() [all …]
|
D | Range.java | 115 public final class Range<C extends Comparable> implements Predicate<C>, Serializable { class 117 private static final Function<Range, Cut> LOWER_BOUND_FN = new Function<Range, Cut>() { 119 public Cut apply(Range range) { 125 static <C extends Comparable<?>> Function<Range<C>, Cut<C>> lowerBoundFn() { in lowerBoundFn() 129 private static final Function<Range, Cut> UPPER_BOUND_FN = new Function<Range, Cut>() { 131 public Cut apply(Range range) { 137 static <C extends Comparable<?>> Function<Range<C>, Cut<C>> upperBoundFn() { in upperBoundFn() 141 static final Ordering<Range<?>> RANGE_LEX_ORDERING = new Ordering<Range<?>>() { 143 public int compare(Range<?> left, Range<?> right) { 151 static <C extends Comparable<?>> Range<C> create( in create() [all …]
|
D | ImmutableRangeSet.java | 47 new ImmutableRangeSet<Comparable<?>>(ImmutableList.<Range<Comparable<?>>>of()); 50 new ImmutableRangeSet<Comparable<?>>(ImmutableList.of(Range.<Comparable<?>>all())); 72 public static <C extends Comparable> ImmutableRangeSet<C> of(Range<C> range) { in of() 76 } else if (range.equals(Range.all())) { in of() 90 } else if (rangeSet.encloses(Range.<C>all())) { in copyOf() 103 ImmutableRangeSet(ImmutableList<Range<C>> ranges) { in ImmutableRangeSet() 107 private ImmutableRangeSet(ImmutableList<Range<C>> ranges, ImmutableRangeSet<C> complement) { in ImmutableRangeSet() 112 private transient final ImmutableList<Range<C>> ranges; 115 public boolean encloses(Range<C> otherRange) { in encloses() 117 Range.<C>lowerBoundFn(), in encloses() [all …]
|
/external/clang/unittests/Tooling/ |
D | RefactoringTest.cpp | 439 TEST(Range, overlaps) { in TEST() argument 440 EXPECT_TRUE(Range(10, 10).overlapsWith(Range(0, 11))); in TEST() 441 EXPECT_TRUE(Range(0, 11).overlapsWith(Range(10, 10))); in TEST() 442 EXPECT_FALSE(Range(10, 10).overlapsWith(Range(0, 10))); in TEST() 443 EXPECT_FALSE(Range(0, 10).overlapsWith(Range(10, 10))); in TEST() 444 EXPECT_TRUE(Range(0, 10).overlapsWith(Range(2, 6))); in TEST() 445 EXPECT_TRUE(Range(2, 6).overlapsWith(Range(0, 10))); in TEST() 448 TEST(Range, contains) { in TEST() argument 449 EXPECT_TRUE(Range(0, 10).contains(Range(0, 10))); in TEST() 450 EXPECT_TRUE(Range(0, 10).contains(Range(2, 6))); in TEST() [all …]
|
/external/lzma/CS/7zip/Compress/RangeCoder/ |
D | RangeCoder.cs | 12 public uint Range; field in SevenZip.Compression.RangeCoder.Encoder 33 Range = 0xFFFFFFFF; in Init() 56 Low += start * (Range /= total); in Encode() 57 Range *= size; in Encode() 58 while (Range < kTopValue) in Encode() 60 Range <<= 8; in Encode() 86 Range >>= 1; in EncodeDirectBits() 88 Low += Range; in EncodeDirectBits() 89 if (Range < kTopValue) in EncodeDirectBits() 91 Range <<= 8; in EncodeDirectBits() [all …]
|
/external/perf_data_converter/src/quipper/ |
D | address_mapper_test.cc | 19 struct Range { struct 25 Range() : addr(0), size(0), id(0), base_offset(0) {} in Range() function 27 Range(uint64_t addr, uint64_t size, uint64_t id, uint64_t base_offset) in Range() function 37 const Range kMapRanges[] = { 38 Range(0xff000000, 0x100000, 0xdeadbeef, 0), 39 Range(0x00a00000, 0x10000, 0xcafebabe, 0), 40 Range(0x0c000000, 0x1000000, 0x900df00d, 0), 41 Range(0x00001000, 0x30000, 0x9000091e, 0), 56 uint64_t GetMappedAddressFromRanges(const Range* ranges, in GetMappedAddressFromRanges() 63 const Range& range = ranges[i]; in GetMappedAddressFromRanges() [all …]
|
/external/pdfium/core/fpdfapi/cmaps/Japan1/ |
D | cmaps_japan1.cpp | 15 {"83pv-RKSJ-H", g_FXCMAP_83pv_RKSJ_H_1, nullptr, 222, 0, FXCMAP_CMap::Range, 17 {"90ms-RKSJ-H", g_FXCMAP_90ms_RKSJ_H_2, nullptr, 171, 0, FXCMAP_CMap::Range, 19 {"90ms-RKSJ-V", g_FXCMAP_90ms_RKSJ_V_2, nullptr, 78, 0, FXCMAP_CMap::Range, 22 FXCMAP_CMap::Range, -2}, 24 FXCMAP_CMap::Range, -1}, 25 {"90pv-RKSJ-H", g_FXCMAP_90pv_RKSJ_H_1, nullptr, 263, 0, FXCMAP_CMap::Range, 27 {"Add-RKSJ-H", g_FXCMAP_Add_RKSJ_H_1, nullptr, 635, 0, FXCMAP_CMap::Range, 29 {"Add-RKSJ-V", g_FXCMAP_Add_RKSJ_V_1, nullptr, 57, 0, FXCMAP_CMap::Range, 31 {"EUC-H", g_FXCMAP_EUC_H_1, nullptr, 120, 0, FXCMAP_CMap::Range, 0}, 32 {"EUC-V", g_FXCMAP_EUC_V_1, nullptr, 27, 0, FXCMAP_CMap::Range, -1}, [all …]
|
/external/libchrome/ui/gfx/range/ |
D | range.h | 37 class GFX_RANGE_EXPORT Range { 40 constexpr Range() : Range(0) {} in Range() function 43 constexpr Range(uint32_t start, uint32_t end) : start_(start), end_(end) {} in Range() function 46 constexpr explicit Range(uint32_t position) : Range(position, position) {} in Range() function 50 explicit Range(const NSRange& range); 54 Range(const CHARRANGE& range, long total_length = -1); 58 static constexpr Range InvalidRange() { in InvalidRange() 59 return Range(std::numeric_limits<uint32_t>::max()); in InvalidRange() 86 constexpr bool operator==(const Range& other) const { 89 constexpr bool operator!=(const Range& other) const { [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ADT/ |
D | StatisticTest.cpp | 24 extractCounters(const std::vector<std::pair<StringRef, unsigned>> &Range, in extractCounters() argument 26 for (const auto &S : Range) { in extractCounters() 91 const auto Range = GetStatistics(); in TEST() local 92 EXPECT_NE(Range.begin(), Range.end()); in TEST() 93 EXPECT_EQ(Range.begin() + 2, Range.end()); in TEST() 97 extractCounters(Range, S1, S2); in TEST() 110 auto &Range = GetStatistics(); in TEST() local 111 EXPECT_EQ(Range.begin(), Range.end()); in TEST() 119 auto &Range = GetStatistics(); in TEST() local 120 EXPECT_EQ(Range.begin(), Range.end()); in TEST() [all …]
|
/external/deqp-deps/SPIRV-Tools/test/val/ |
D | val_layout_test.cpp | 50 struct Range { struct 51 explicit Range(bool inverse = false) : inverse_(inverse) {} in Range() argument 121 pred_type All = Range<0, kRangeEnd>(); 125 ::testing::Combine(::testing::Range((int)0, (int)getInstructions().size()), 132 …(std::make_tuple(std::string("OpCapability") , Equals<0> , Range<0, 2>()) 135 …ke_tuple(std::string("OpMemoryModel") , Equals<3> , Range<1, kRangeEnd>()) 137 … , std::make_tuple(std::string("OpExecutionMode ") , Range<5, 6>() , All) 138 … , std::make_tuple(std::string("OpExecutionModeId") , Range<5, 6>() , All) 139 …, std::make_tuple(std::string("OpSource ") , Range<7, 11>() , Range<8, kRa… 140 … , std::make_tuple(std::string("OpSourceContinued ") , Range<7, 11>() , All) [all …]
|
/external/swiftshader/third_party/SPIRV-Tools/test/val/ |
D | val_layout_test.cpp | 50 struct Range { struct 51 explicit Range(bool inverse = false) : inverse_(inverse) {} in Range() function 121 pred_type All = Range<0, kRangeEnd>(); 125 ::testing::Combine(::testing::Range((int)0, (int)getInstructions().size()), 132 …(std::make_tuple(std::string("OpCapability") , Equals<0> , Range<0, 2>()) 135 …ke_tuple(std::string("OpMemoryModel") , Equals<3> , Range<1, kRangeEnd>()) 137 … , std::make_tuple(std::string("OpExecutionMode ") , Range<5, 6>() , All) 138 … , std::make_tuple(std::string("OpExecutionModeId") , Range<5, 6>() , All) 139 …, std::make_tuple(std::string("OpSource ") , Range<7, 11>() , Range<8, kRa… 140 … , std::make_tuple(std::string("OpSourceContinued ") , Range<7, 11>() , All) [all …]
|
/external/pdfium/core/fpdfapi/cmaps/GB1/ |
D | cmaps_gb1.cpp | 15 {"GB-EUC-H", g_FXCMAP_GB_EUC_H_0, nullptr, 90, 0, FXCMAP_CMap::Range, 0}, 16 {"GB-EUC-V", g_FXCMAP_GB_EUC_V_0, nullptr, 20, 0, FXCMAP_CMap::Range, -1}, 17 {"GBpc-EUC-H", g_FXCMAP_GBpc_EUC_H_0, nullptr, 91, 0, FXCMAP_CMap::Range, 19 {"GBpc-EUC-V", g_FXCMAP_GBpc_EUC_V_0, nullptr, 20, 0, FXCMAP_CMap::Range, 21 {"GBK-EUC-H", g_FXCMAP_GBK_EUC_H_2, nullptr, 4071, 0, FXCMAP_CMap::Range, 23 {"GBK-EUC-V", g_FXCMAP_GBK_EUC_V_2, nullptr, 20, 0, FXCMAP_CMap::Range, -1}, 24 {"GBKp-EUC-H", g_FXCMAP_GBKp_EUC_H_2, nullptr, 4070, 0, FXCMAP_CMap::Range, 26 {"GBKp-EUC-V", g_FXCMAP_GBKp_EUC_V_2, nullptr, 20, 0, FXCMAP_CMap::Range, 29 FXCMAP_CMap::Range, -4}, 30 {"GBK2K-V", g_FXCMAP_GBK2K_V_5, nullptr, 41, 0, FXCMAP_CMap::Range, -1}, [all …]
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ |
D | Range.java | 8 public class Range { class 9 public static final Range UNKNOWN = range(Position.UNKNOWN, Position.UNKNOWN); 14 public Range(Position begin, Position end) { in Range() method in Range 25 public static Range range(Position begin, Position end) { in range() 26 return new Range(begin, end); in range() 29 public static Range range(int beginLine, int beginColumn, int endLine, int endColumn) { in range() 30 return new Range(pos(beginLine, beginColumn), pos(endLine, endColumn)); in range() 33 public Range withBeginColumn(int column) { in withBeginColumn() 37 public Range withBeginLine(int line) { in withBeginLine() 41 public Range withEndColumn(int column) { in withEndColumn() [all …]
|
/external/pdfium/core/fpdfapi/cmaps/CNS1/ |
D | cmaps_cns1.cpp | 15 {"B5pc-H", g_FXCMAP_B5pc_H_0, nullptr, 247, 0, FXCMAP_CMap::Range, 0}, 16 {"B5pc-V", g_FXCMAP_B5pc_V_0, nullptr, 12, 0, FXCMAP_CMap::Range, -1}, 17 {"HKscs-B5-H", g_FXCMAP_HKscs_B5_H_5, nullptr, 1210, 0, FXCMAP_CMap::Range, 19 {"HKscs-B5-V", g_FXCMAP_HKscs_B5_V_5, nullptr, 13, 0, FXCMAP_CMap::Range, 21 {"ETen-B5-H", g_FXCMAP_ETen_B5_H_0, nullptr, 254, 0, FXCMAP_CMap::Range, 0}, 22 {"ETen-B5-V", g_FXCMAP_ETen_B5_V_0, nullptr, 13, 0, FXCMAP_CMap::Range, -1}, 23 {"ETenms-B5-H", g_FXCMAP_ETenms_B5_H_0, nullptr, 1, 0, FXCMAP_CMap::Range, 25 {"ETenms-B5-V", g_FXCMAP_ETenms_B5_V_0, nullptr, 18, 0, FXCMAP_CMap::Range, 28 FXCMAP_CMap::Range, 0}, 30 FXCMAP_CMap::Range, 0}, [all …]
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ |
D | Range.java | 29 public class Range { class 33 public Range(Position begin, Position end) { in Range() method in Range 44 public static Range range(Position begin, Position end) { in range() 45 return new Range(begin, end); in range() 48 public static Range range(int beginLine, int beginColumn, int endLine, int endColumn) { in range() 49 return new Range(pos(beginLine, beginColumn), pos(endLine, endColumn)); in range() 52 public Range withBeginColumn(int column) { in withBeginColumn() 56 public Range withBeginLine(int line) { in withBeginLine() 60 public Range withEndColumn(int column) { in withEndColumn() 64 public Range withEndLine(int line) { in withEndLine() [all …]
|