HomeSort by relevance Sort by last modified time
    Searched refs:Range (Results 26 - 50 of 800) sorted by null

12 3 4 5 6 7 8 91011>>

  /external/guava/guava/src/com/google/common/collect/
ImmutableRangeMap.java 46 ImmutableList.<Range<Comparable<?>>>of(), ImmutableList.of());
49 * Returns an empty immutable range map.
57 * Returns an immutable range map mapping a single range to a single value.
60 Range<K> range, V value) {
61 return new ImmutableRangeMap<K, V>(ImmutableList.of(range), ImmutableList.of(value));
70 Map<Range<K>, ? extends V> map = rangeMap.asMapOfRanges();
71 ImmutableList.Builder<Range<K>> rangesBuilder = new ImmutableList.Builder<Range<K>>(map.size())
170 Range<K> range = ranges.get(index); local
183 Range<K> range = ranges.get(index); local
    [all...]
RangeSet.java 25 * A set comprising zero or more {@linkplain Range#isEmpty nonempty},
26 * {@linkplain Range#isConnected(Range) disconnected} ranges of type {@code C}.
28 * <p>Implementations that choose to support the {@link #add(Range)} operation are required to
32 * rangeSet.add(Range.closed(1, 10)); // {[1, 10]}
33 * rangeSet.add(Range.closedOpen(11, 15)); // disconnected range; {[1, 10], [11, 15)}
34 * rangeSet.add(Range.closedOpen(15, 20)); // connected range; {[1, 10], [11, 20)}
35 * rangeSet.add(Range.openClosed(0, 0)); // empty range; {[1, 10], [11, 20)
    [all...]
Range.java 35 * A range (or "interval") defines the <i>boundaries</i> around a contiguous span of values of some
37 * possible to <i>iterate</i> over these contained values. To do so, pass this range instance and
42 * <p>Each end of the range may be bounded or unbounded. If bounded, there is an associated
43 * <i>endpoint</i> value, and the range is considered to be either <i>open</i> (does not include the
46 * ({@code [ ]}) indicates that the range is closed on that side; a parenthesis ({@code ( )}) means
52 * <tr><td>{@code (a..b)} <td>{@code {x | a < x < b}} <td>{@link Range#open open}
53 * <tr><td>{@code [a..b]} <td>{@code {x | a <= x <= b}}<td>{@link Range#closed closed}
54 * <tr><td>{@code (a..b]} <td>{@code {x | a < x <= b}} <td>{@link Range#openClosed openClosed}
55 * <tr><td>{@code [a..b)} <td>{@code {x | a <= x < b}} <td>{@link Range#closedOpen closedOpen}
56 * <tr><td>{@code (a..+?)} <td>{@code {x | x > a}} <td>{@link Range#greaterThan greaterThan
215 public static <C extends Comparable<?>> Range<C> range( method in class:Range
    [all...]
TreeRangeMap.java 69 extends AbstractMapEntry<Range<K>, V> {
70 private final Range<K> range; field in class:TreeRangeMap.RangeMapEntry
74 this(Range.create(lowerBound, upperBound), value);
77 RangeMapEntry(Range<K> range, V value) {
78 this.range = range;
83 public Range<K> getKey() {
84 return range;
221 Range<?> range = (Range<?>) key; local
    [all...]
ImmutableRangeSet.java 47 new ImmutableRangeSet<Comparable<?>>(ImmutableList.<Range<Comparable<?>>>of());
50 new ImmutableRangeSet<Comparable<?>>(ImmutableList.of(Range.<Comparable<?>>all()));
53 * Returns an empty immutable range set.
61 * Returns an immutable range set containing the single range {@link Range#all()}.
69 * Returns an immutable range set containing the specified single range. If {@link Range#isEmpty()
70 * range.isEmpty()}, this is equivalent to {@link ImmutableRangeSet#of()}
134 Range<C> range = ranges.get(index); local
    [all...]
  /frameworks/base/core/java/android/util/
Range.java 24 * Immutable class for describing the range of two numeric values.
26 * A range (or "interval") defines the inclusive boundaries around a contiguous span of
31 * All ranges are bounded, and the left side of the range is always {@code >=}
32 * the right side of the range.
36 * stored must also be immutable. If mutable objects are stored here, then the range
39 public final class Range<T extends Comparable<? super T>> {
41 * Create a new immutable range.
45 * is the range is bounded. {@code lower} must be {@link Comparable#compareTo lesser or equal}
54 public Range(final T lower, final T upper) {
64 * Create a new immutable range, with the argument types inferred
    [all...]
  /external/guava/guava-tests/test/com/google/common/collect/
AbstractRangeSetTest.java 41 List<Range<C>> asRanges = ImmutableList.copyOf(rangeSet.asRanges());
45 Range<C> range1 = asRanges.get(i);
46 Range<C> range2 = asRanges.get(i + 1);
51 for (Range<C> range : asRanges) {
52 assertFalse(range.isEmpty());
55 Iterator<Range<C>> itr = rangeSet.asRanges().iterator();
56 Range<C> expectedSpan = null;
65 Range<C> span = rangeSet.span();
ImmutableRangeMapTest.java 34 private static final ImmutableList<Range<Integer>> RANGES;
38 ImmutableList.Builder<Range<Integer>> builder = ImmutableList.builder();
40 builder.add(Range.<Integer>all());
45 builder.add(Range.upTo(i, type));
46 builder.add(Range.downTo(i, type));
58 builder.add(Range.range(i, lowerType, j, upperType));
70 builder.put(Range.closedOpen(i, i), 1);
76 builder.put(Range.openClosed(i, i), 1);
84 for (Range<Integer> range1 : RANGES)
    [all...]
  /external/clang/test/SemaCXX/
for-range-no-std.cpp 12 struct Range {};
13 int begin(Range); // expected-note {{not viable}}
14 int end(Range);
34 for (auto b : T()) {} // expected-error {{invalid range expression of type 'T'}}
37 for (int b : NS::NoADL()) {} // expected-error {{invalid range expression of type 'NS::NoADL'}}
  /external/icu/android_icu4j/src/main/java/android/icu/util/
RangeDateRule.java 19 * Implementation of DateRule that takes a range.
30 // Range is a package-private class so this should be package-private too, probably
31 // public RangeDateRule(Range[] ranges)
51 ranges.add(new Range(start, rule));
60 // Find the range that I should look at
67 Range r = rangeAt(index);
68 Range e = rangeAt(index+1);
89 // Find the range that I should look at
93 Range next = rangeAt(index);
97 Range r = next
    [all...]
  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
RangeDateRule.java 18 * Implementation of DateRule that takes a range.
30 // Range is a package-private class so this should be package-private too, probably
31 // public RangeDateRule(Range[] ranges)
53 ranges.add(new Range(start, rule));
63 // Find the range that I should look at
70 Range r = rangeAt(index);
71 Range e = rangeAt(index+1);
93 // Find the range that I should look at
97 Range next = rangeAt(index);
101 Range r = next
    [all...]
  /system/netd/server/
UidRanges.h 31 typedef std::pair<uid_t, uid_t> Range;
37 const std::vector<Range>& getRanges() const;
46 std::vector<Range> mRanges;
  /external/lzma/Java/SevenZip/Compression/RangeCoder/
Encoder.java 15 int Range;
35 Range = -1;
74 Range >>>= 1;
76 Low += Range;
77 if ((Range & Encoder.kTopMask) == 0)
79 Range <<= 8;
105 int newBound = (Range >>> kNumBitModelTotalBits) * prob;
108 Range = newBound;
114 Range -= newBound;
117 if ((Range & kTopMask) == 0)
    [all...]
  /frameworks/base/core/java/android/hardware/camera2/marshal/impl/
MarshalQueryableRange.java 22 import android.util.Range;
31 * Marshal {@link Range} to/from any native type
34 implements MarshalQueryable<Range<T>> {
37 private class MarshalerRange extends Marshaler<Range<T>> {
38 private final Class<? super Range<T>> mClass;
39 private final Constructor<Range<T>> mConstructor;
40 /** Marshal the {@code T} inside of {@code Range<T>} */
44 protected MarshalerRange(TypeReference<Range<T>> typeReference,
51 * Lookup the actual type argument, e.g. Range<Integer> --> Integer
58 throw new AssertionError("Raw use of Range is not supported", e)
    [all...]
  /external/valgrind/coregrind/
m_rangemap.c 47 Range;
77 rm->ranges = VG_(newXA)( alloc_fn, cc, free_fn, sizeof(Range) );
78 /* Add the initial range */
79 Range r;
110 Range* rng = VG_(indexXA)(rm->ranges, i);
120 Range* rng = (Range*)VG_(indexXA)(rm->ranges, i);
138 Range* rng = (Range*)VG_(indexXA)(rm->ranges, ix);
151 Range* rng0 = VG_(indexXA)(ranges, i+0)
    [all...]
  /ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/range/
iterator_range_core.hpp 1 // Boost.Range library
8 // For more information, see http://www.boost.org/libs/range/
26 #include <boost/range/functions.hpp>
27 #include <boost/range/iterator.hpp>
28 #include <boost/range/difference_type.hpp>
29 #include <boost/range/algorithm/equal.hpp>
30 #include <boost/range/detail/safe_bool.hpp>
105 // iterator range template class -----------------------------------------//
109 An \c iterator_range delimits a range in a sequence by beginning and ending iterators.
119 delimiting a working range, as an arguments. The \c iterator_range class is a
    [all...]
as_literal.hpp 1 // Boost.Range library
8 // For more information, see http://www.boost.org/libs/range/
19 #include <boost/range/detail/as_literal.hpp>
22 #include <boost/range/iterator_range.hpp>
23 #include <boost/range/detail/str_types.hpp>
98 template< class Range >
99 inline iterator_range<BOOST_DEDUCED_TYPENAME range_iterator<Range>::type>
100 as_literal( Range& r )
105 template< class Range >
106 inline iterator_range<BOOST_DEDUCED_TYPENAME range_iterator<const Range>::type
    [all...]
  /external/clang/include/clang/Rewrite/Core/
HTMLRewrite.h 29 /// HighlightRange - Highlight a range in the source code with the specified
31 /// start/end tags are placed at the start/end of each line if the range is
36 /// HighlightRange - Highlight a range in the source code with the specified
37 /// start/end tags. The Start/end of the range must be in the same file.
39 /// if the range is multiline.
40 inline void HighlightRange(Rewriter &R, SourceRange Range,
42 HighlightRange(R, Range.getBegin(), Range.getEnd(), StartTag, EndTag);
  /external/easymock/src/org/easymock/internal/
Range.java 20 public class Range implements Serializable {
28 public Range(int count) {
32 public Range(int minimum, int maximum) {
  /system/core/libmemunreachable/
HeapWalker.cpp 35 Range range{begin, end};
36 auto inserted = allocations_.insert(std::pair<Range, AllocationInfo>(range, AllocationInfo{}));
40 allocation_bytes_ += range.size();
43 Range overlap = inserted.first->first;
44 if (overlap != range) {
45 ALOGE("range %p-%p overlaps with existing range %p-%p",
55 bool HeapWalker::WordContainsAllocationPtr(uintptr_t word_ptr, Range* range, AllocationInfo** info)
76 Range range = to_do.back(); local
    [all...]
  /external/lzma/CS/7zip/Compress/RangeCoder/
RangeCoderBit.cs 29 uint newBound = (encoder.Range >> kNumBitModelTotalBits) * Prob;
32 encoder.Range = newBound;
38 encoder.Range -= newBound;
41 if (encoder.Range < Encoder.kTopValue)
43 encoder.Range <<= 8;
91 uint newBound = (uint)(rangeDecoder.Range >> kNumBitModelTotalBits) * (uint)Prob;
94 rangeDecoder.Range = newBound;
96 if (rangeDecoder.Range < Decoder.kTopValue)
99 rangeDecoder.Range <<= 8;
105 rangeDecoder.Range -= newBound;
    [all...]
  /external/clang/lib/Lex/
PreprocessingRecord.cpp 30 SourceRange Range)
31 : PreprocessingDirective(InclusionDirectiveKind, Range),
47 /// that source range \p Range encompasses.
49 PreprocessingRecord::getPreprocessedEntitiesInRange(SourceRange Range) {
50 if (Range.isInvalid())
53 if (CachedRangeQuery.Range == Range) {
58 std::pair<int, int> Res = getPreprocessedEntitiesInRangeSlow(Range);
60 CachedRangeQuery.Range = Range
    [all...]
  /external/clang/include/clang/Tooling/Core/
Replacement.h 35 /// \brief A source range independent of the \c SourceManager.
36 class Range {
38 Range() : Offset(0), Length(0) {}
39 Range(unsigned Offset, unsigned Length) : Offset(Offset), Length(Length) {}
47 /// \name Range Predicates
49 /// \brief Whether this range overlaps with \p RHS or not.
50 bool overlapsWith(Range RHS) const {
54 /// \brief Whether this range contains \p RHS or not.
55 bool contains(Range RHS) const {
68 /// Represents a SourceManager independent replacement of a range of text in
    [all...]
  /external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
RegularContiguousSet.java 35 private final Range<C> range; field in class:RegularContiguousSet
37 RegularContiguousSet(Range<C> range, DiscreteDomain<C> domain) {
39 this.range = range;
42 private ContiguousSet<C> intersectionInCurrentDomain(Range<C> other) {
43 return (range.isConnected(other))
44 ? ContiguousSet.create(range.intersection(other), domain)
49 return intersectionInCurrentDomain(Range.upTo(toElement, BoundType.forBoolean(inclusive)))
132 @Override public Range<C> range() { method
136 @Override public Range<C> range(BoundType lowerBoundType, BoundType upperBoundType) { method
    [all...]
  /external/clang/include/clang/Lex/
PreprocessingRecord.h 78 /// \brief The source range that covers this preprocessed entity.
79 SourceRange Range;
82 PreprocessedEntity(EntityKind Kind, SourceRange Range)
83 : Kind(Kind), Range(Range) { }
91 /// \brief Retrieve the source range that covers this entire preprocessed
93 SourceRange getSourceRange() const LLVM_READONLY { return Range; }
125 PreprocessingDirective(EntityKind Kind, SourceRange Range)
126 : PreprocessedEntity(Kind, Range) { }
142 SourceRange Range)
    [all...]

Completed in 2443 milliseconds

12 3 4 5 6 7 8 91011>>