/external/guava/guava-tests/test/com/google/common/collect/ |
RangesTest.java | 37 assertEquals(Ranges.closed(0, 0), Ranges.singleton(0)); 38 assertEquals(Ranges.closed(9, 9), Ranges.singleton(9)); 42 assertEquals(Ranges.closed(0, 0), Ranges.encloseAll(Arrays.asList(0))); 43 assertEquals(Ranges.closed(-3, 5), Ranges.encloseAll(Arrays.asList(5, -3))); 44 assertEquals(Ranges.closed(-3, 5), Ranges.encloseAll(Arrays.asList(1, 2, 2, 2, 5, -3, 0, -1))) [all...] |
RangeTest.java | 42 Range<Integer> range = Ranges.open(4, 8); 57 Ranges.open(4, 3); 62 Ranges.open(3, 3); 69 Range<Integer> range = Ranges.closed(5, 7); 84 Ranges.closed(4, 3); 91 Range<Integer> range = Ranges.openClosed(4, 7); 105 Range<Integer> range = Ranges.closedOpen(5, 8); 119 assertTrue(Ranges.closed(3, 5).isConnected(Ranges.open(5, 6))); 120 assertTrue(Ranges.closed(3, 5).isConnected(Ranges.openClosed(5, 5))) [all...] |
ContiguousSetTest.java | 64 Ranges.closed(1, 3).asSet(integers()), 65 Ranges.closedOpen(1, 4).asSet(integers()), 66 Ranges.openClosed(0, 3).asSet(integers()), 67 Ranges.open(0, 4).asSet(integers()), 68 Ranges.closed(1, 3).asSet(NOT_EQUAL_TO_INTEGERS), 69 Ranges.closedOpen(1, 4).asSet(NOT_EQUAL_TO_INTEGERS), 70 Ranges.openClosed(0, 3).asSet(NOT_EQUAL_TO_INTEGERS), 71 Ranges.open(0, 4).asSet(NOT_EQUAL_TO_INTEGERS), 75 assertEquals(Ranges.closed(Integer.MIN_VALUE, Integer.MAX_VALUE).asSet(integers()), 76 Ranges.<Integer>all().asSet(integers())) [all...] |
RangeNonGwtTest.java | 37 tester.testAllPublicStaticMethods(Ranges.class); 39 tester.testAllPublicInstanceMethods(Ranges.all()); 40 tester.testAllPublicInstanceMethods(Ranges.open(1, 3));
|
/external/chromium_org/media/base/ |
ranges.cc | 5 #include "media/base/ranges.h" 10 void Ranges<base::TimeDelta>::DCheckLT(const base::TimeDelta& lhs,
|
ranges.h | 19 // Ranges allows holding an ordered list of ranges of [start,end) intervals. 20 // The canonical example use-case is holding the list of ranges of buffered 23 class Ranges { 28 // Returns the number of stored ranges, post coallescing. 31 // Return the number of disjoint ranges. 38 // Clear all ranges. 42 Ranges<T> IntersectionWith(const Ranges<T>& other) const; 57 size_t Ranges<T>::Add(T start, T end) [all...] |
ranges_unittest.cc | 5 #include "media/base/ranges.h" 16 std::ostream& operator<<(std::ostream& os, const Ranges<T>& r) { 26 static void ExpectRanges(const Ranges<T>& r, 33 #define ASSERT_RANGES(ranges, expectation) \ 34 ASSERT_NO_FATAL_FAILURE(ExpectRanges(ranges, expectation)); 37 Ranges<int> r; 56 Ranges<double> r; 82 Ranges<double> r; 103 Ranges<int> a; 104 Ranges<int> b [all...] |
/external/llvm/unittests/Support/ |
IntegersSubsetTest.cpp | 39 std::vector<Range> Ranges; 40 Ranges.reserve(3); 45 Ranges.push_back(Range(Int(i*10), Int(i*10 + 8))); 47 Subset TheSubset(Ranges); 63 Ranges.clear(); 64 Ranges.push_back(Range(Int(10), Int(10))); 66 Subset TheSingleNumber(Ranges); 70 Ranges.push_back(Range(Int(12), Int(15))); 72 Subset NotASingleNumber(Ranges); 76 // Test when subset contains items that are not a ranges bu [all...] |
/external/llvm/lib/MC/MCParser/ |
MCAsmParser.cpp | 36 bool MCAsmParser::TokError(const Twine &Msg, ArrayRef<SMRange> Ranges) { 37 Error(getLexer().getLoc(), Msg, Ranges);
|
/external/chromium_org/content/renderer/media/ |
webmediaplayer_util.h | 10 #include "media/base/ranges.h" 23 const media::Ranges<base::TimeDelta>& ranges);
|
/external/clang/include/clang/Frontend/ |
TextDiagnostic.h | 82 ArrayRef<CharSourceRange> Ranges, 88 ArrayRef<CharSourceRange> Ranges, 93 SmallVectorImpl<CharSourceRange>& Ranges, 96 emitSnippetAndCaret(Loc, Level, Ranges, Hints, SM); 114 SmallVectorImpl<CharSourceRange>& Ranges,
|
DiagnosticRenderer.h | 78 ArrayRef<CharSourceRange> Ranges, 84 ArrayRef<CharSourceRange> Ranges, 91 SmallVectorImpl<CharSourceRange>& Ranges, 119 ArrayRef<CharSourceRange> Ranges, ArrayRef<FixItHint> Hints, 123 ArrayRef<CharSourceRange> Ranges, 139 /// \param Ranges The underlined ranges for this code snippet. 144 StringRef Message, ArrayRef<CharSourceRange> Ranges,
|
/external/chromium_org/base/metrics/ |
bucket_ranges.h | 5 // BucketRanges stores the vector of ranges that delimit what samples are 7 // same ranges for all their corresponding buckets should share the same 11 // value will need a BucketRanges with 6 ranges: 31 typedef std::vector<HistogramBase::Sample> Ranges; 42 // A bucket is defined by a consecutive pair of entries in |ranges|, so there 43 // is one fewer bucket than there are ranges. For example, if |ranges| is 48 // Checksum methods to verify whether the ranges are corrupted (e.g. bad 61 Ranges ranges_;
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
DereferenceChecker.cpp | 44 SmallVectorImpl<SourceRange> &Ranges, 53 SmallVectorImpl<SourceRange> &Ranges, 67 Ranges.push_back(DR->getSourceRange()); 76 Ranges.push_back(SourceRange(L, L)); 84 Ranges.push_back(SourceRange(L, L)); 105 SmallVector<SourceRange, 2> Ranges; 128 AddDerefSource(os, Ranges, AE->getBase()->IgnoreParenCasts(), 136 AddDerefSource(os, Ranges, U->getSubExpr()->IgnoreParens(), 145 AddDerefSource(os, Ranges, M->getBase()->IgnoreParenCasts(), 154 AddDerefSource(os, Ranges, IV->getBase()->IgnoreParenCasts() [all...] |
MallocSizeofChecker.cpp | 229 SmallVector<SourceRange, 4> Ranges; 230 Ranges.push_back(i->AllocCall->getCallee()->getSourceRange()); 231 Ranges.push_back(SFinder.Sizeofs[0]->getSourceRange()); 233 Ranges.push_back(TSI->getTypeLoc().getSourceRange()); 242 L, Ranges.data(), Ranges.size());
|
/external/compiler-rt/lib/ubsan/ |
ubsan_diag.cc | 144 /// Find the earliest-starting range in Ranges which ends after Loc. 145 static Range *upperBound(MemoryLocation Loc, Range *Ranges, 149 if (Ranges[I].getEnd().getMemoryLocation() > Loc && 152 Ranges[I].getStart().getMemoryLocation())) 153 Best = &Ranges[I]; 160 Range *Ranges, unsigned NumRanges, 168 Min = __sanitizer::Min(Ranges[I].getStart().getMemoryLocation(), Min); 169 Max = __sanitizer::Max(Ranges[I].getEnd().getMemoryLocation(), Max); 187 Range *InRange = upperBound(Min, Ranges, NumRanges); 191 InRange = upperBound(P, Ranges, NumRanges) [all...] |
/external/llvm/include/llvm/CodeGen/ |
MachineMemOperand.h | 87 const MDNode *Ranges; 113 const MDNode *Ranges = 0); 152 const MDNode *getRanges() const { return Ranges; }
|
LiveInterval.h | 83 /// These ranges are rendered as [start,end). 133 /// LiveInterval - This class represents some number of live ranges for a 139 typedef SmallVector<LiveRange,4> Ranges; 144 Ranges ranges; // the ranges in which this register is live 161 typedef Ranges::iterator iterator; 162 iterator begin() { return ranges.begin(); } 163 iterator end() { return ranges.end(); } 165 typedef Ranges::const_iterator const_iterator [all...] |
/external/chromium_org/sandbox/linux/seccomp-bpf/ |
sandbox_bpf.h | 203 typedef std::vector<Range> Ranges; 234 // Finds all the ranges of system calls that need to be handled. Ranges are 236 // ranges. System calls with identical ErrorCodes are coalesced into a single 238 void FindRanges(Ranges *ranges); 243 Ranges::const_iterator start, 244 Ranges::const_iterator stop);
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
RegularContiguousSet.java | 44 return range.intersection(Ranges.upTo(toElement, BoundType.forBoolean(inclusive))) 56 return range.intersection(Ranges.range(fromElement, BoundType.forBoolean(fromInclusive), 62 return range.intersection(Ranges.downTo(fromElement, BoundType.forBoolean(inclusive))) 137 ? Ranges.closed(lowerEndpoint, upperEndpoint).asSet(domain) 147 return Ranges.create(range.lowerBound.withLowerBoundType(lowerBoundType, domain),
|
/external/clang/lib/Frontend/ |
DiagnosticRenderer.cpp | 126 ArrayRef<CharSourceRange> Ranges, 136 emitDiagnosticMessage(Loc, PresumedLoc(), Level, Message, Ranges, SM, D); 138 // Get the ranges into a local array we can hack on. 139 SmallVector<CharSourceRange, 20> MutableRanges(Ranges.begin(), 140 Ranges.end()); 166 emitDiagnosticMessage(Loc, PLoc, Level, Message, Ranges, SM, D); 307 // Helper function to fix up source ranges. It takes in an array of ranges, 308 // and outputs an array of ranges where we want to draw the range highlighting 319 ArrayRef<CharSourceRange> Ranges, [all...] |
/external/llvm/include/llvm/MC/MCParser/ |
MCAsmParser.h | 125 ArrayRef<SMRange> Ranges = None) = 0; 132 ArrayRef<SMRange> Ranges = None) = 0; 142 bool TokError(const Twine &Msg, ArrayRef<SMRange> Ranges = None);
|
/external/clang/tools/libclang/ |
CXLoadedDiagnostic.h | 49 /// \brief Return the number of source ranges for the diagnostic. 52 /// \brief Return the source ranges for the diagnostic. 84 std::vector<CXSourceRange> Ranges;
|
/external/llvm/lib/Support/ |
SourceMgr.cpp | 153 ArrayRef<SMRange> Ranges, 184 // Convert any ranges to column ranges that only intersect the line of the 186 for (unsigned i = 0, e = Ranges.size(); i != e; ++i) { 187 SMRange R = Ranges[i]; 200 // Translate from SMLoc ranges to column ranges. 215 const Twine &Msg, ArrayRef<SMRange> Ranges, 217 SMDiagnostic Diagnostic = GetMessage(Loc, Kind, Msg, Ranges, FixIts); 243 ArrayRef<std::pair<unsigned,unsigned> > Ranges, [all...] |
/external/guava/guava/src/com/google/common/collect/ |
RegularContiguousSet.java | 46 return range.intersection(Ranges.upTo(toElement, BoundType.forBoolean(inclusive))) 58 return range.intersection(Ranges.range(fromElement, BoundType.forBoolean(fromInclusive), 64 return range.intersection(Ranges.downTo(fromElement, BoundType.forBoolean(inclusive))) 139 ? Ranges.closed(lowerEndpoint, upperEndpoint).asSet(domain) 149 return Ranges.create(range.lowerBound.withLowerBoundType(lowerBoundType, domain),
|