/external/guava/guava-tests/test/com/google/common/collect/ |
RangeNonGwtTest.java | 24 * Test cases for {@link Range} which cannot run as GWT tests. 34 tester.testAllPublicStaticMethods(Range.class); 35 tester.testAllPublicStaticMethods(Range.class); 37 tester.testAllPublicInstanceMethods(Range.all()); 38 tester.testAllPublicInstanceMethods(Range.open(1, 3));
|
RangeTest.java | 38 * Unit test for {@link Range}. 45 Range<Integer> range = Range.open(4, 8); local 46 checkContains(range); 47 assertTrue(range.hasLowerBound()); 48 assertEquals(4, (int) range.lowerEndpoint()); 49 assertEquals(OPEN, range.lowerBoundType()); 50 assertTrue(range.hasUpperBound()); 51 assertEquals(8, (int) range.upperEndpoint()) 72 Range<Integer> range = Range.closed(5, 7); local 94 Range<Integer> range = Range.openClosed(4, 7); local 108 Range<Integer> range = Range.closedOpen(5, 8); local 139 Range<Integer> range = Range.closed(4, 4); local 155 Range<Integer> range = Range.closedOpen(4, 4); local 171 Range<Integer> range = Range.openClosed(4, 4); local 187 Range<Integer> range = Range.lessThan(5); local 201 Range<Integer> range = Range.greaterThan(5); local 215 Range<Integer> range = Range.atLeast(6); local 229 Range<Integer> range = Range.atMost(4); local 243 Range<Integer> range = Range.all(); local 294 Range<Integer> range = Range.closed(3, 5); local 310 Range<Integer> range = Range.open(2, 5); local 328 Range<Integer> range = Range.closed(2, 5); local 345 Range<Integer> range = Range.closedOpen(3, 3); local 361 Range<Integer> range = Range.open(3, 4); local 386 Range<Integer> range = Range.closed(3, 3); local 412 Range<Integer> range = Range.closed(4, 8); local 465 Range<Integer> range = Range.closed(4, 8); local 535 Range<LegacyComparable> range local [all...] |
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...] |
TreeRangeMapTest.java | 47 suite.addTest(MapTestSuiteBuilder.using(new TestMapGenerator<Range<Integer>, String>() { 49 public SampleElements<Entry<Range<Integer>, String>> samples() { 50 return new SampleElements<Entry<Range<Integer>, String>>( 51 mapEntry(Range.singleton(0), "banana"), 52 mapEntry(Range.closedOpen(3, 5), "frisbee"), 53 mapEntry(Range.atMost(-1), "fruitcake"), 54 mapEntry(Range.open(10, 15), "elephant"), 55 mapEntry(Range.closed(20, 22), "umbrella")); 59 public Map<Range<Integer>, String> create(Object... elements) { 63 Entry<Range<Integer>, String> entry = (Entry<Range<Integer>, String>) o [all...] |
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()); 48 queryBuilder.add(Range.upTo(i, boundType)); 49 queryBuilder.add(Range.downTo(i, boundType)); 51 queryBuilder.add(Range.singleton(i)); 52 queryBuilder.add(Range.openClosed(i, i)); 53 queryBuilder.add(Range.closedOpen(i, i)) 422 doPairTest(range(aLow, aLowType, aHigh, aHighType), method 423 range(bLow, bLowType, bHigh, bHighType)); method [all...] |
ContiguousSetTest.java | 78 ContiguousSet.create(Range.closed(1, 3), integers()), 79 ContiguousSet.create(Range.closedOpen(1, 4), integers()), 80 ContiguousSet.create(Range.openClosed(0, 3), integers()), 81 ContiguousSet.create(Range.open(0, 4), integers()), 82 ContiguousSet.create(Range.closed(1, 3), NOT_EQUAL_TO_INTEGERS), 83 ContiguousSet.create(Range.closedOpen(1, 4), NOT_EQUAL_TO_INTEGERS), 84 ContiguousSet.create(Range.openClosed(0, 3), NOT_EQUAL_TO_INTEGERS), 85 ContiguousSet.create(Range.open(0, 4), NOT_EQUAL_TO_INTEGERS), 90 ContiguousSet.create(Range.closed(Integer.MIN_VALUE, Integer.MAX_VALUE), integers()), 91 ContiguousSet.create(Range.<Integer>all(), integers())) 122 Range<Integer> range = Range.lessThan(0); local 130 Range<Integer> range = Range.greaterThan(0); local [all...] |
/external/pdfium/core/fpdfapi/cmaps/CNS1/ |
cmaps_cns1.cpp | 16 {"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/lzma/Java/SevenZip/Compression/RangeCoder/ |
Decoder.java | 12 int Range;
30 Range = -1;
40 Range >>>= 1;
41 int t = ((Code - Range) >>> 31);
42 Code -= Range & (t - 1);
45 if ((Range & kTopMask) == 0)
48 Range <<= 8;
57 int newBound = (Range >>> kNumBitModelTotalBits) * prob;
60 Range = newBound;
62 if ((Range & kTopMask) == 0) [all...] |
/external/pdfium/core/fpdfapi/cmaps/GB1/ |
cmaps_gb1.cpp | 16 {"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/clang/lib/Tooling/ |
FixIt.cpp | 22 StringRef getText(SourceRange Range, const ASTContext &Context) { 23 return Lexer::getSourceText(CharSourceRange::getTokenRange(Range),
|
/external/pdfium/core/fpdfapi/cmaps/Japan1/ |
cmaps_japan1.cpp | 16 {"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 [all...] |
/external/lzma/CPP/7zip/Compress/ |
RangeCoder.h | 22 UInt32 Range;
31 Range = 0xFFFFFFFF;
47 Low += start * (Range /= total);
48 Range *= size;
49 while (Range < kTopValue)
51 Range <<= 8;
77 Range >>= 1;
78 Low += Range & (0 - ((value >> numBits) & 1));
79 if (Range < kTopValue)
81 Range <<= 8; 148 UInt32 range = Range; local [all...] |
RangeCoderBit.h | 52 UInt32 newBound = (encoder->Range >> kNumBitModelTotalBits) * this->Prob;
55 encoder->Range = newBound;
61 encoder->Range -= newBound;
64 if (encoder->Range < kTopValue)
66 encoder->Range <<= 8;
85 UInt32 newBound = (decoder->Range >> kNumBitModelTotalBits) * this->Prob;
88 decoder->Range = newBound;
90 if (decoder->Range < kTopValue)
93 decoder->Range <<= 8;
99 decoder->Range -= newBound; [all...] |
/external/pdfium/core/fpdfapi/cmaps/Korea1/ |
cmaps_korea1.cpp | 16 {"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 [all...] |
/external/guava/guava/src/com/google/common/collect/ |
RangeMap.java | 27 * associated with the range (if any) that contains a specified key. 30 * Range#isConnected(Range) connected} ranges, even if they are mapped to the same value. 41 * <p>Specifically, if any range in this range map contains the specified key, the value 42 * associated with that range is returned. 48 * Returns the range containing this key and its associated value, if such a range is present 49 * in the range map, or {@code null} otherwise. 52 Map.Entry<Range<K>, V> getEntry(K key) [all...] |
TreeRangeSet.java | 48 final NavigableMap<Cut<C>, Range<C>> rangesByLowerBound; 54 return new TreeRangeSet<C>(new TreeMap<Cut<C>, Range<C>>()); 58 * Returns a {@code TreeRangeSet} initialized with the ranges in the specified range set. 66 private TreeRangeSet(NavigableMap<Cut<C>, Range<C>> rangesByLowerCut) { 70 private transient Set<Range<C>> asRanges; 73 public Set<Range<C>> asRanges() { 74 Set<Range<C>> result = asRanges; 78 final class AsRanges extends ForwardingCollection<Range<C>> implements Set<Range<C>> { 80 protected Collection<Range<C>> delegate() 345 Range<C> range = backingItr.next(); field in class:TreeRangeSet.RangesByUpperBound [all...] |
AbstractRangeSet.java | 33 public abstract Range<C> rangeContaining(C value); 41 public void add(Range<C> range) { 46 public void remove(Range<C> range) { 52 remove(Range.<C>all()); 57 for (Range<C> range : other.asRanges()) { 58 if (!encloses(range)) { 67 for (Range<C> range : other.asRanges()) [all...] |
/external/llvm/lib/CodeGen/ |
SafeStackLayout.h | 25 StackColoring::LiveRange Range; 27 const StackColoring::LiveRange &Range) 28 : Start(Start), End(End), Range(Range) {} 36 StackColoring::LiveRange Range; 49 const StackColoring::LiveRange &Range);
|
/cts/tests/tests/util/src/android/util/cts/ |
RangeTest.java | 23 import android.util.Range; 35 // Trivial, same range 36 Range<Integer> intRange = new Range<>(1, 1); 41 // Different values in range 42 Range<Integer> intRange2 = new Range<>(100, 200); 46 Range<Float> floatRange = new Range<>(Float.NEGATIVE_INFINITY, 54 new Range<Integer>(null, null) [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
RangeTest.java | 20 import android.util.Range; 34 // Trivial, same range 35 Range<Integer> intRange = new Range<Integer>(1, 1); 40 // Different values in range 41 Range<Integer> intRange2 = new Range<Integer>(100, 200); 45 Range<Float> floatRange = new Range<Float>(Float.NEGATIVE_INFINITY, 55 new Range<Integer>(null, null) [all...] |
/system/core/libmemunreachable/ |
HeapWalker.h | 28 // A range [begin, end) 29 struct Range { 34 bool operator==(const Range& other) const { 37 bool operator!=(const Range& other) const { 44 bool operator()(const Range& a, const Range& b) const { 71 bool Leaked(allocator::vector<Range>&, size_t limit, size_t* num_leaks, 77 void ForEachPtrInRange(const Range& range, F&& f); 88 void RecurseRoot(const Range& root) 124 const Range& range = it.first; local [all...] |
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
ContiguousSetTest.java | 61 ContiguousSet.create(Range.closed(1, 3), integers()), 62 ContiguousSet.create(Range.closedOpen(1, 4), integers()), 63 ContiguousSet.create(Range.openClosed(0, 3), integers()), 64 ContiguousSet.create(Range.open(0, 4), integers()), 65 ContiguousSet.create(Range.closed(1, 3), NOT_EQUAL_TO_INTEGERS), 66 ContiguousSet.create(Range.closedOpen(1, 4), NOT_EQUAL_TO_INTEGERS), 67 ContiguousSet.create(Range.openClosed(0, 3), NOT_EQUAL_TO_INTEGERS), 68 ContiguousSet.create(Range.open(0, 4), NOT_EQUAL_TO_INTEGERS), 73 ContiguousSet.create(Range.closed(Integer.MIN_VALUE, Integer.MAX_VALUE), integers()), 74 ContiguousSet.create(Range.<Integer>all(), integers())) 84 Range<Integer> range = Range.lessThan(0); local 92 Range<Integer> range = Range.greaterThan(0); local [all...] |
/external/lzma/CS/7zip/Compress/RangeCoder/ |
RangeCoder.cs | 12 public uint Range;
33 Range = 0xFFFFFFFF;
56 Low += start * (Range /= total);
57 Range *= size;
58 while (Range < kTopValue)
60 Range <<= 8;
86 Range >>= 1;
88 Low += Range;
89 if (Range < kTopValue)
91 Range <<= 8; [all...] |
/external/easymock/src/org/easymock/internal/ |
Results.java | 29 private final LinkedList<Range> ranges = new LinkedList<Range>();
33 public void add(Result result, Range range) {
35 Range lastRange = ranges.getLast();
41 ranges.add(range);
48 Range interval = ranges.get(i);
71 private Range getMainInterval() {
74 for (Range interval : ranges) {
83 return new Range(min, max); [all...] |
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/ |
range.h | 11 // Container of two points that define a 2D range. 13 struct Range { 14 // Construct an uninitialized Range. 15 Range() {} 16 Range(Eigen::Vector<T, d> p1, Eigen::Vector<T, d> p2) : p1(p1), p2(p2) {} 18 static Range<T, d> FromSize(Eigen::Vector<T, d> p1, 20 return Range<T, d>(p1, p1 + size); 23 bool operator==(const Range<T, d>& rhs) const { 37 typedef Range<int, 2> Range2i; 38 typedef Range<float, 2> Range2f [all...] |