Home
last modified time | relevance | path

Searched refs:Range (Results 1 – 25 of 782) sorted by relevance

12345678910>>...32

/external/guava/guava-tests/test/com/google/common/collect/
DRangeTest.java45 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 …]
DTreeRangeMapTest.java47 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 …]
DImmutableRangeSetTest.java42 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 …]
DTreeRangeSetTest.java18 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 …]
DContiguousSetTest.java78 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 …]
DImmutableRangeMapTest.java34 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/
DContiguousSetTest.java61 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/guava/guava/src/com/google/common/collect/
DTreeRangeSet.java48 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 …]
DImmutableRangeMap.java46 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 …]
DTreeRangeMap.java69 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 …]
DRange.java115 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 …]
DImmutableRangeSet.java47 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/lzma/CS/7zip/Compress/RangeCoder/
DRangeCoder.cs12 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/lzma/CPP/7zip/Compress/
DRangeCoder.h22 UInt32 Range; variable
31 Range = 0xFFFFFFFF; in Init()
47 Low += start * (Range /= total); in Encode()
48 Range *= size; in Encode()
49 while (Range < kTopValue) in Encode()
51 Range <<= 8; in Encode()
77 Range >>= 1; in EncodeDirectBits()
78 Low += Range & (0 - ((value >> numBits) & 1)); in EncodeDirectBits()
79 if (Range < kTopValue) in EncodeDirectBits()
81 Range <<= 8; in EncodeDirectBits()
[all …]
DRangeCoderBit.h52 UInt32 newBound = (encoder->Range >> kNumBitModelTotalBits) * this->Prob; in Encode()
55 encoder->Range = newBound; in Encode()
61 encoder->Range -= newBound; in Encode()
64 if (encoder->Range < kTopValue) in Encode()
66 encoder->Range <<= 8; in Encode()
85 UInt32 newBound = (decoder->Range >> kNumBitModelTotalBits) * this->Prob; in Decode()
88 decoder->Range = newBound; in Decode()
90 if (decoder->Range < kTopValue) in Decode()
93 decoder->Range <<= 8; in Decode()
99 decoder->Range -= newBound; in Decode()
[all …]
/external/opencv3/modules/core/misc/java/src/java/
Dcore+Range.java4 public class Range { class
8 public Range(int s, int e) { in Range() method in Range
13 public Range() { in Range() method in Range
17 public Range(double[] vals) { in Range() method in Range
40 public static Range all() { in all()
41 return new Range(Integer.MIN_VALUE, Integer.MAX_VALUE); in all()
44 public Range intersection(Range r1) { in intersection()
45 Range r = new Range(Math.max(r1.start, this.start), Math.min(r1.end, this.end)); in intersection()
50 public Range shift(int delta) { in shift()
51 return new Range(start + delta, end + delta); in shift()
[all …]
/external/pdfium/core/src/fpdfapi/fpdf_cmaps/CNS1/
Dcmaps_cns1.cpp16 {"B5pc-H", FXCMAP_CMap::Range, g_FXCMAP_B5pc_H_0, 247, FXCMAP_CMap::None,
18 {"B5pc-V", FXCMAP_CMap::Range, g_FXCMAP_B5pc_V_0, 12, FXCMAP_CMap::None,
20 {"HKscs-B5-H", FXCMAP_CMap::Range, g_FXCMAP_HKscs_B5_H_5, 1210,
22 {"HKscs-B5-V", FXCMAP_CMap::Range, g_FXCMAP_HKscs_B5_V_5, 13,
24 {"ETen-B5-H", FXCMAP_CMap::Range, g_FXCMAP_ETen_B5_H_0, 254,
26 {"ETen-B5-V", FXCMAP_CMap::Range, g_FXCMAP_ETen_B5_V_0, 13,
28 {"ETenms-B5-H", FXCMAP_CMap::Range, g_FXCMAP_ETenms_B5_H_0, 1,
30 {"ETenms-B5-V", FXCMAP_CMap::Range, g_FXCMAP_ETenms_B5_V_0, 18,
32 {"CNS-EUC-H", FXCMAP_CMap::Range, g_FXCMAP_CNS_EUC_H_0, 157,
33 FXCMAP_CMap::Range, g_FXCMAP_CNS_EUC_H_0_DWord, 238, 0},
[all …]
/external/v8/test/mjsunit/
Dcyrillic.js59 function Range(from, to, flags) { class
76 assertTrue(Range(first, last).test(first), 1);
77 assertTrue(Range(first, last).test(middle), 2);
78 assertTrue(Range(first, last).test(last), 3);
80 assertFalse(Range(first, last).test(first_other_case), 4);
81 assertFalse(Range(first, last).test(middle_other_case), 5);
82 assertFalse(Range(first, last).test(last_other_case), 6);
84 assertTrue(Range(first, last, "i").test(first), 7);
85 assertTrue(Range(first, last, "i").test(middle), 8);
86 assertTrue(Range(first, last, "i").test(last), 9);
[all …]
/external/pdfium/core/src/fpdfapi/fpdf_cmaps/Japan1/
Dcmaps_japan1.cpp16 {"83pv-RKSJ-H", FXCMAP_CMap::Range, g_FXCMAP_83pv_RKSJ_H_1, 222,
18 {"90ms-RKSJ-H", FXCMAP_CMap::Range, g_FXCMAP_90ms_RKSJ_H_2, 171,
20 {"90ms-RKSJ-V", FXCMAP_CMap::Range, g_FXCMAP_90ms_RKSJ_V_2, 78,
22 {"90msp-RKSJ-H", FXCMAP_CMap::Range, g_FXCMAP_90msp_RKSJ_H_2, 170,
24 {"90msp-RKSJ-V", FXCMAP_CMap::Range, g_FXCMAP_90msp_RKSJ_V_2, 78,
26 {"90pv-RKSJ-H", FXCMAP_CMap::Range, g_FXCMAP_90pv_RKSJ_H_1, 263,
28 {"Add-RKSJ-H", FXCMAP_CMap::Range, g_FXCMAP_Add_RKSJ_H_1, 635,
30 {"Add-RKSJ-V", FXCMAP_CMap::Range, g_FXCMAP_Add_RKSJ_V_1, 57,
32 {"EUC-H", FXCMAP_CMap::Range, g_FXCMAP_EUC_H_1, 120, FXCMAP_CMap::None,
34 {"EUC-V", FXCMAP_CMap::Range, g_FXCMAP_EUC_V_1, 27, FXCMAP_CMap::None, NULL,
[all …]
/external/lzma/Java/SevenZip/Compression/RangeCoder/
DDecoder.java12 int Range; field in Decoder
30 Range = -1; in Init()
40 Range >>>= 1; in DecodeDirectBits()
41 int t = ((Code - Range) >>> 31); in DecodeDirectBits()
42 Code -= Range & (t - 1); in DecodeDirectBits()
45 if ((Range & kTopMask) == 0) in DecodeDirectBits()
48 Range <<= 8; in DecodeDirectBits()
57 int newBound = (Range >>> kNumBitModelTotalBits) * prob; in DecodeBit()
60 Range = newBound; in DecodeBit()
62 if ((Range & kTopMask) == 0) in DecodeBit()
[all …]
/external/pdfium/core/src/fpdfapi/fpdf_cmaps/GB1/
Dcmaps_gb1.cpp16 {"GB-EUC-H", FXCMAP_CMap::Range, g_FXCMAP_GB_EUC_H_0, 90, FXCMAP_CMap::None,
18 {"GB-EUC-V", FXCMAP_CMap::Range, g_FXCMAP_GB_EUC_V_0, 20, FXCMAP_CMap::None,
20 {"GBpc-EUC-H", FXCMAP_CMap::Range, g_FXCMAP_GBpc_EUC_H_0, 91,
22 {"GBpc-EUC-V", FXCMAP_CMap::Range, g_FXCMAP_GBpc_EUC_V_0, 20,
24 {"GBK-EUC-H", FXCMAP_CMap::Range, g_FXCMAP_GBK_EUC_H_2, 4071,
26 {"GBK-EUC-V", FXCMAP_CMap::Range, g_FXCMAP_GBK_EUC_V_2, 20,
28 {"GBKp-EUC-H", FXCMAP_CMap::Range, g_FXCMAP_GBKp_EUC_H_2, 4070,
30 {"GBKp-EUC-V", FXCMAP_CMap::Range, g_FXCMAP_GBKp_EUC_V_2, 20,
32 {"GBK2K-H", FXCMAP_CMap::Range, g_FXCMAP_GBK2K_H_5, 4071,
34 {"GBK2K-V", FXCMAP_CMap::Range, g_FXCMAP_GBK2K_V_5, 41, FXCMAP_CMap::None,
[all …]
/external/opencv3/modules/core/misc/java/test/
DRangeTest.java3 import org.opencv.core.Range;
8 Range r1;
9 Range r2;
10 Range range;
16 range = new Range(); in setUp()
17 r1 = new Range(1, 11); in setUp()
18 r2 = new Range(1, 1); in setUp()
22 range = Range.all(); in testAll()
28 Range dstRange = new Range(); in testClone()
60 range = new Range(); in testRange()
[all …]
/external/valgrind/coregrind/
Dm_rangemap.c47 Range; typedef
77 rm->ranges = VG_(newXA)( alloc_fn, cc, free_fn, sizeof(Range) ); in VG_()
79 Range r; in VG_()
110 Range* rng = VG_(indexXA)(rm->ranges, i); in VG_()
120 Range* rng = (Range*)VG_(indexXA)(rm->ranges, i); in VG_()
138 Range* rng = (Range*)VG_(indexXA)(rm->ranges, ix); in VG_()
151 Range* rng0 = VG_(indexXA)(ranges, i+0); in preen()
152 Range* rng1 = VG_(indexXA)(ranges, i+1); in preen()
177 Range* mid_rng = (Range*)VG_(indexXA)(ranges, mid); in find()
190 Range rng_i0 = *(Range*)VG_(indexXA)( ranges, i+0 ); in split_at()
[all …]
/external/clang/lib/Lex/
DPreprocessingRecord.cpp30 SourceRange Range) in InclusionDirective() argument
31 : PreprocessingDirective(InclusionDirectiveKind, Range), in InclusionDirective()
49 PreprocessingRecord::getPreprocessedEntitiesInRange(SourceRange Range) { in getPreprocessedEntitiesInRange() argument
50 if (Range.isInvalid()) in getPreprocessedEntitiesInRange()
53 if (CachedRangeQuery.Range == Range) { in getPreprocessedEntitiesInRange()
58 std::pair<int, int> Res = getPreprocessedEntitiesInRangeSlow(Range); in getPreprocessedEntitiesInRange()
60 CachedRangeQuery.Range = Range; in getPreprocessedEntitiesInRange()
127 PreprocessingRecord::getPreprocessedEntitiesInRangeSlow(SourceRange Range) { in getPreprocessedEntitiesInRangeSlow() argument
128 assert(Range.isValid()); in getPreprocessedEntitiesInRangeSlow()
129 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in getPreprocessedEntitiesInRangeSlow()
[all …]
/external/pdfium/core/src/fpdfapi/fpdf_cmaps/Korea1/
Dcmaps_korea1.cpp16 {"KSC-EUC-H", FXCMAP_CMap::Range, g_FXCMAP_KSC_EUC_H_0, 467,
18 {"KSC-EUC-V", FXCMAP_CMap::Range, g_FXCMAP_KSC_EUC_V_0, 16,
20 {"KSCms-UHC-H", FXCMAP_CMap::Range, g_FXCMAP_KSCms_UHC_H_1, 675,
22 {"KSCms-UHC-V", FXCMAP_CMap::Range, g_FXCMAP_KSCms_UHC_V_1, 16,
24 {"KSCms-UHC-HW-H", FXCMAP_CMap::Range, g_FXCMAP_KSCms_UHC_HW_H_1, 675,
26 {"KSCms-UHC-HW-V", FXCMAP_CMap::Range, g_FXCMAP_KSCms_UHC_HW_V_1, 16,
28 {"KSCpc-EUC-H", FXCMAP_CMap::Range, g_FXCMAP_KSCpc_EUC_H_0, 509,
30 {"UniKS-UCS2-H", FXCMAP_CMap::Range, g_FXCMAP_UniKS_UCS2_H_1, 8394,
32 {"UniKS-UCS2-V", FXCMAP_CMap::Range, g_FXCMAP_UniKS_UCS2_V_1, 18,
36 {"UniKS-UTF16-V", FXCMAP_CMap::Range, g_FXCMAP_UniKS_UCS2_V_1, 18,

12345678910>>...32