/external/guava/guava-tests/test/com/google/common/collect/ |
D | RangeTest.java | 42 Range<Integer> range = Ranges.open(4, 8); in testOpen() local 43 checkContains(range); in testOpen() 44 assertTrue(range.hasLowerBound()); in testOpen() 45 assertEquals(4, (int) range.lowerEndpoint()); in testOpen() 46 assertEquals(OPEN, range.lowerBoundType()); in testOpen() 47 assertTrue(range.hasUpperBound()); in testOpen() 48 assertEquals(8, (int) range.upperEndpoint()); in testOpen() 49 assertEquals(OPEN, range.upperBoundType()); in testOpen() 50 assertFalse(range.isEmpty()); in testOpen() 51 assertEquals("(4\u20258)", range.toString()); in testOpen() [all …]
|
D | GeneralRangeTest.java | 46 GeneralRange<Integer> range = GeneralRange.range(ORDERING, 4, lboundType, 2, uboundType); in testCreateEmptyRangeFails() local 56 GeneralRange.range(ORDERING, i, OPEN, i, OPEN); in testCreateEmptyRangeOpenOpenFails() 64 GeneralRange<Integer> range = GeneralRange.range(ORDERING, i, CLOSED, i, OPEN); in testCreateEmptyRangeClosedOpenSucceeds() local 66 assertFalse(range.contains(j)); in testCreateEmptyRangeClosedOpenSucceeds() 73 GeneralRange<Integer> range = GeneralRange.range(ORDERING, i, OPEN, i, CLOSED); in testCreateEmptyRangeOpenClosedSucceeds() local 75 assertFalse(range.contains(j)); in testCreateEmptyRangeOpenClosedSucceeds() 82 GeneralRange<Integer> range = GeneralRange.range(ORDERING, i, CLOSED, i, CLOSED); in testCreateSingletonRangeSucceeds() local 84 assertEquals(Objects.equal(i, j), range.contains(j)); in testCreateSingletonRangeSucceeds() 90 GeneralRange<Integer> range = GeneralRange.range(ORDERING, 3, CLOSED, 3, CLOSED); in testSingletonRange() local 92 assertEquals(ORDERING.compare(i, 3) == 0, range.contains(i)); in testSingletonRange() [all …]
|
/external/libppp/src/ |
D | ncpaddr.c | 413 struct ncprange range; in ncpaddr_aton() local 415 if (!ncprange_aton(&range, ncp, data)) in ncpaddr_aton() 418 if (range.ncprange_family == AF_INET && range.ncprange_ip4width != 32 && in ncpaddr_aton() 419 range.ncprange_ip4addr.s_addr != INADDR_ANY) { in ncpaddr_aton() 425 if (range.ncprange_family == AF_INET6 && range.ncprange_ip6width != 128 && in ncpaddr_aton() 426 !IN6_IS_ADDR_UNSPECIFIED(&range.ncprange_ip6addr)) { in ncpaddr_aton() 432 switch (range.ncprange_family) { in ncpaddr_aton() 434 addr->ncpaddr_family = range.ncprange_family; in ncpaddr_aton() 435 addr->ncpaddr_ip4addr = range.ncprange_ip4addr; in ncpaddr_aton() 440 addr->ncpaddr_family = range.ncprange_family; in ncpaddr_aton() [all …]
|
/external/elfutils/tests/ |
D | run-get-aranges.sh | 32 0x804842b: not in range 36 0x804845a: not in range 37 0x804845b: not in range 41 0x8048466: not in range 42 0x8048467: not in range 46 0x8048472: not in range 53 0x804842b: not in range 54 0x804842c: not in range 55 0x804843c: not in range 56 0x8048459: not in range [all …]
|
/external/stlport/test/unit/ |
D | ctype_facets_test.cpp | 75 char range[] = "abAc123 ."; in _ctype_facet() local 76 const char *rbeg = range; in _ctype_facet() 77 const char *rend = range + sizeof(range); in _ctype_facet() 95 char range[] = "abAc123 ."; in _ctype_facet() local 96 const char *rbeg = range; in _ctype_facet() 97 const char *rend = range + sizeof(range); in _ctype_facet() 122 char range[] = "abAc1"; in _ctype_facet() local 124 ct.toupper(range, range + sizeof(range)); in _ctype_facet() 125 CPPUNIT_ASSERT( equal(range, range + sizeof(range), expected_range) ); in _ctype_facet() 137 char range[] = "ABaC1"; in _ctype_facet() local [all …]
|
D | equal_test.cpp | 44 pair<int*, int*> range = equal_range((int*)numbers, (int*)numbers + 10, 2); in equal_range0() local 45 CPPUNIT_ASSERT( (range.first - numbers) == 4 ); in equal_range0() 46 CPPUNIT_ASSERT( (range.second - numbers) == 8 ); in equal_range0() 56 pair<IntVec::iterator, IntVec::iterator> range = equal_range(v.begin(), v.end(), 2); in equal_range1() local 57 CPPUNIT_ASSERT( (range.first - v.begin()) == 6 ); in equal_range1() 58 CPPUNIT_ASSERT( (range.second - v.begin()) == 9 ); in equal_range1() 59 for (; range.first != range.second; ++range.first) in equal_range1() 60 CPPUNIT_ASSERT( *range.first == 2 ); in equal_range1() 62 range = equal_range(v.begin(), v.end(), 4); in equal_range1() 63 CPPUNIT_ASSERT( range.first == range.second ); in equal_range1() [all …]
|
/external/guava/guava/src/com/google/common/collect/ |
D | BstRangeOps.java | 38 BstAggregate<? super N> aggregate, GeneralRange<K> range, @Nullable N root) { in totalInRange() argument 40 checkNotNull(range); in totalInRange() 41 if (root == null || range.isEmpty()) { in totalInRange() 45 if (range.hasLowerBound()) { in totalInRange() 46 total -= totalBeyondRangeToSide(aggregate, range, LEFT, root); in totalInRange() 48 if (range.hasUpperBound()) { in totalInRange() 49 total -= totalBeyondRangeToSide(aggregate, range, RIGHT, root); in totalInRange() 56 BstAggregate<? super N> aggregate, GeneralRange<K> range, BstSide side, @Nullable N root) { in totalBeyondRangeToSide() argument 59 if (beyond(range, root.getKey(), side)) { in totalBeyondRangeToSide() 76 public static <K, N extends BstNode<K, N>> N minusRange(GeneralRange<K> range, in minusRange() argument [all …]
|
D | RegularContiguousSet.java | 37 private final Range<C> range; field in RegularContiguousSet 39 RegularContiguousSet(Range<C> range, DiscreteDomain<C> domain) { in RegularContiguousSet() argument 41 this.range = range; in RegularContiguousSet() 46 return range.intersection(Ranges.upTo(toElement, BoundType.forBoolean(inclusive))) in headSetImpl() 58 return range.intersection(Ranges.range(fromElement, BoundType.forBoolean(fromInclusive), in subSetImpl() 64 return range.intersection(Ranges.downTo(fromElement, BoundType.forBoolean(inclusive))) in tailSetImpl() 88 return range.lowerBound.leastValueAbove(domain); in first() 92 return range.upperBound.greatestValueBelow(domain); in last() 102 return range.contains((C) object); in contains() 110 return range.containsAll((Iterable<? extends C>) targets); in containsAll() [all …]
|
/external/skia/src/core/ |
D | SkAdvancedTypefaceMetrics.cpp | 40 … SkAdvancedTypefaceMetrics::AdvanceMetric<Data>* range) { in stripUninterestingTrailingAdvancesFromRange() argument 46 … SkAdvancedTypefaceMetrics::AdvanceMetric<int16_t>* range) { in stripUninterestingTrailingAdvancesFromRange() argument 47 SkASSERT(range); in stripUninterestingTrailingAdvancesFromRange() 49 int expectedAdvanceCount = range->fEndId - range->fStartId + 1; in stripUninterestingTrailingAdvancesFromRange() 50 if (range->fAdvance.count() < expectedAdvanceCount) { in stripUninterestingTrailingAdvancesFromRange() 55 if (range->fAdvance[i] != kDontCareAdvance && in stripUninterestingTrailingAdvancesFromRange() 56 range->fAdvance[i] != kInvalidAdvance && in stripUninterestingTrailingAdvancesFromRange() 57 range->fAdvance[i] != 0) { in stripUninterestingTrailingAdvancesFromRange() 58 range->fEndId = range->fStartId + i; in stripUninterestingTrailingAdvancesFromRange() 65 void resetRange(SkAdvancedTypefaceMetrics::AdvanceMetric<Data>* range, in resetRange() argument [all …]
|
/external/chromium_org/third_party/skia/src/core/ |
D | SkAdvancedTypefaceMetrics.cpp | 40 … SkAdvancedTypefaceMetrics::AdvanceMetric<Data>* range) { in stripUninterestingTrailingAdvancesFromRange() argument 46 … SkAdvancedTypefaceMetrics::AdvanceMetric<int16_t>* range) { in stripUninterestingTrailingAdvancesFromRange() argument 47 SkASSERT(range); in stripUninterestingTrailingAdvancesFromRange() 49 int expectedAdvanceCount = range->fEndId - range->fStartId + 1; in stripUninterestingTrailingAdvancesFromRange() 50 if (range->fAdvance.count() < expectedAdvanceCount) { in stripUninterestingTrailingAdvancesFromRange() 55 if (range->fAdvance[i] != kDontCareAdvance && in stripUninterestingTrailingAdvancesFromRange() 56 range->fAdvance[i] != kInvalidAdvance && in stripUninterestingTrailingAdvancesFromRange() 57 range->fAdvance[i] != 0) { in stripUninterestingTrailingAdvancesFromRange() 58 range->fEndId = range->fStartId + i; in stripUninterestingTrailingAdvancesFromRange() 65 void resetRange(SkAdvancedTypefaceMetrics::AdvanceMetric<Data>* range, in resetRange() argument [all …]
|
/external/chromium_org/net/http/ |
D | http_byte_range_unittest.cc | 27 net::HttpByteRange range; in TEST() local 28 range.set_first_byte_position(tests[i].first_byte_position); in TEST() 29 range.set_last_byte_position(tests[i].last_byte_position); in TEST() 30 range.set_suffix_length(tests[i].suffix_length); in TEST() 31 EXPECT_EQ(tests[i].valid, range.IsValid()); in TEST() 59 net::HttpByteRange range; in TEST() local 60 range.set_first_byte_position(tests[i].first_byte_position); in TEST() 61 range.set_last_byte_position(tests[i].last_byte_position); in TEST() 62 range.set_suffix_length(tests[i].suffix_length); in TEST() 64 bool return_value = range.ComputeBounds(tests[i].instance_size); in TEST() [all …]
|
/external/chromium_org/base/metrics/ |
D | histogram_unittest.cc | 94 EXPECT_EQ(0, ranges.range(0)); in TEST_F() 97 EXPECT_EQ(power_of_2, ranges.range(i)); in TEST_F() 100 EXPECT_EQ(HistogramBase::kSampleType_MAX, ranges.range(8)); in TEST_F() 112 EXPECT_EQ(0, ranges2.range(0)); in TEST_F() 113 EXPECT_EQ(1, ranges2.range(1)); in TEST_F() 114 EXPECT_EQ(2, ranges2.range(2)); in TEST_F() 115 EXPECT_EQ(3, ranges2.range(3)); in TEST_F() 116 EXPECT_EQ(4, ranges2.range(4)); in TEST_F() 117 EXPECT_EQ(5, ranges2.range(5)); in TEST_F() 118 EXPECT_EQ(6, ranges2.range(6)); in TEST_F() [all …]
|
/external/libsepol/src/ |
D | mls.c | 113 unsigned int i, l, len, range; in mls_compute_context_len() local 121 range = 0; in mls_compute_context_len() 124 p_sens_val_to_name[context->range.level[l].sens - in mls_compute_context_len() 127 ebitmap_for_each_bit(&context->range.level[l].cat, cnode, i) { in mls_compute_context_len() 129 if (range) { in mls_compute_context_len() 130 range++; in mls_compute_context_len() 136 range++; in mls_compute_context_len() 138 if (range > 1) in mls_compute_context_len() 143 range = 0; in mls_compute_context_len() 147 if (range > 1) in mls_compute_context_len() [all …]
|
/external/chromium/net/http/ |
D | http_byte_range_unittest.cc | 27 net::HttpByteRange range; in TEST() local 28 range.set_first_byte_position(tests[i].first_byte_position); in TEST() 29 range.set_last_byte_position(tests[i].last_byte_position); in TEST() 30 range.set_suffix_length(tests[i].suffix_length); in TEST() 31 EXPECT_EQ(tests[i].valid, range.IsValid()); in TEST() 59 net::HttpByteRange range; in TEST() local 60 range.set_first_byte_position(tests[i].first_byte_position); in TEST() 61 range.set_last_byte_position(tests[i].last_byte_position); in TEST() 62 range.set_suffix_length(tests[i].suffix_length); in TEST() 64 bool return_value = range.ComputeBounds(tests[i].instance_size); in TEST() [all …]
|
/external/chromium_org/printing/ |
D | page_range_unittest.cc | 10 printing::PageRange range; in TEST() local 11 range.from = 1; in TEST() 12 range.to = 3; in TEST() 13 ranges.push_back(range); in TEST() 14 range.from = 10; in TEST() 15 range.to = 12; in TEST() 16 ranges.push_back(range); in TEST() 17 range.from = 2; in TEST() 18 range.to = 5; in TEST() 19 ranges.push_back(range); in TEST() [all …]
|
/external/chromium_org/third_party/WebKit/Source/core/html/shadow/ |
D | DateTimeFieldElements.cpp | 81 …dElement(Document& document, FieldOwner& fieldOwner, const String& placeholder, const Range& range) in DateTimeDayFieldElement() argument 82 : DateTimeNumericFieldElement(document, fieldOwner, range, Range(1, 31), placeholder) in DateTimeDayFieldElement() 86 …::create(Document& document, FieldOwner& fieldOwner, const String& placeholder, const Range& range) in create() argument 89 … DateTimeDayFieldElement(document, fieldOwner, placeholder.isEmpty() ? "--" : placeholder, range)); in create() 112 if (range().isInRange(static_cast<int>(value))) { in setValueAsDateTimeFieldsState() 122 …FieldElementBase(Document& document, FieldOwner& fieldOwner, const Range& range, const Range& hard… in DateTimeHourFieldElementBase() argument 123 : DateTimeNumericFieldElement(document, fieldOwner, range, hardLimits, "--", step) in DateTimeHourFieldElementBase() 157 …our11FieldElement(Document& document, FieldOwner& fieldOwner, const Range& range, const Step& step) in DateTimeHour11FieldElement() argument 158 : DateTimeHourFieldElementBase(document, fieldOwner, range, Range(0, 11), step) in DateTimeHour11FieldElement() 167 Range range(0, 11); in create() local [all …]
|
/external/skia/tests/ |
D | ClampRangeTest.cpp | 50 static void slow_check(const SkClampRange& range, in slow_check() argument 52 SkASSERT(range.fCount0 + range.fCount1 + range.fCount2 == count); in slow_check() 55 if (range.fOverflowed) { in slow_check() 56 fx = range.fFx1; in slow_check() 57 for (i = 0; i < range.fCount1; i++) { in slow_check() 62 for (i = 0; i < range.fCount0; i++) { in slow_check() 64 R_ASSERT(v == range.fV0); in slow_check() 67 if (range.fCount1 > 0 && fx != range.fFx1) { in slow_check() 68 SkDebugf("%x %x\n", fx, range.fFx1); in slow_check() 72 for (i = 0; i < range.fCount1; i++) { in slow_check() [all …]
|
/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/ |
D | util.rb | 151 def covers?( range ) argument 152 range.first >= first or return false 154 range.exclude_end? ? last >= range.last : last > range.last 156 range.exclude_end? ? last.succ >= range.last : last >= range.last 160 def covered_by?( range ) argument 161 range.covers?( self ) 164 def overlaps?( range ) argument 165 range.include?( first ) or include?( range.first ) 168 def disjoint?( range ) argument 169 not overlaps?( range )
|
/external/iptables/extensions/ |
D | libipt_DNAT.c | 47 append_range(struct ipt_natinfo *info, const struct nf_nat_range *range) in append_range() argument 52 size = XT_ALIGN(sizeof(*info) + info->mr.rangesize * sizeof(*range)); in append_range() 59 info->mr.range[info->mr.rangesize] = *range; in append_range() 69 struct nf_nat_range range; in parse_to() local 76 memset(&range, 0, sizeof(range)); in parse_to() 86 range.flags |= IP_NAT_RANGE_PROTO_SPECIFIED; in parse_to() 100 range.min.tcp.port in parse_to() 101 = range.max.tcp.port in parse_to() 114 range.min.tcp.port = htons(port); in parse_to() 115 range.max.tcp.port = htons(maxport); in parse_to() [all …]
|
D | libipt_SNAT.c | 47 append_range(struct ipt_natinfo *info, const struct nf_nat_range *range) in append_range() argument 52 size = XT_ALIGN(sizeof(*info) + info->mr.rangesize * sizeof(*range)); in append_range() 59 info->mr.range[info->mr.rangesize] = *range; in append_range() 69 struct nf_nat_range range; in parse_to() local 76 memset(&range, 0, sizeof(range)); in parse_to() 86 range.flags |= IP_NAT_RANGE_PROTO_SPECIFIED; in parse_to() 100 range.min.tcp.port in parse_to() 101 = range.max.tcp.port in parse_to() 114 range.min.tcp.port = htons(port); in parse_to() 115 range.max.tcp.port = htons(maxport); in parse_to() [all …]
|
/external/clang/lib/ARCMigrate/ |
D | Internals.h | 32 bool clearDiagnostic(ArrayRef<unsigned> IDs, SourceRange range); 33 bool hasDiagnostic(ArrayRef<unsigned> IDs, SourceRange range) const; 65 void remove(SourceRange range); 67 void replace(SourceRange range, StringRef text); 68 void replace(SourceRange range, SourceRange replacementRange); 72 void increaseIndentation(SourceRange range, 75 bool clearDiagnostic(ArrayRef<unsigned> IDs, SourceRange range); 76 bool clearAllDiagnostics(SourceRange range) { in clearAllDiagnostics() argument 77 return clearDiagnostic(ArrayRef<unsigned>(), range); in clearAllDiagnostics() 79 bool clearDiagnostic(unsigned ID1, unsigned ID2, SourceRange range) { in clearDiagnostic() argument [all …]
|
D | TransformActions.cpp | 68 CharRange(CharSourceRange range, SourceManager &srcMgr, Preprocessor &PP) { in CharRange() 69 SourceLocation beginLoc = range.getBegin(), endLoc = range.getEnd(); in CharRange() 71 if (range.isTokenRange()) { in CharRange() 136 void remove(SourceRange range); 138 void replace(SourceRange range, StringRef text); 139 void replace(SourceRange range, SourceRange replacementRange); 143 void increaseIndentation(SourceRange range, 146 bool clearDiagnostic(ArrayRef<unsigned> IDs, SourceRange range); 153 bool canRemoveRange(SourceRange range); 154 bool canReplaceRange(SourceRange range, SourceRange replacementRange); [all …]
|
/external/llvm/test/Transforms/GVN/ |
D | range.ll | 5 ; CHECK: %a = load i32* %p, !range !0 7 %a = load i32* %p, !range !0 8 %b = load i32* %p, !range !0 16 ; CHECK-NOT: range 18 %a = load i32* %p, !range !0 26 ; CHECK: %a = load i32* %p, !range ![[DISJOINT_RANGE:[0-9]+]] 28 %a = load i32* %p, !range !0 29 %b = load i32* %p, !range !1 36 ; CHECK: %a = load i32* %p, !range ![[MERGED_RANGE:[0-9]+]] 38 %a = load i32* %p, !range !0 [all …]
|
/external/chromium_org/ui/gfx/range/ |
D | range.cc | 60 bool Range::Intersects(const Range& range) const { in Intersects() 61 return IsValid() && range.IsValid() && in Intersects() 62 !(range.GetMax() < GetMin() || range.GetMin() >= GetMax()); in Intersects() 65 bool Range::Contains(const Range& range) const { in Contains() 66 return IsValid() && range.IsValid() && in Contains() 67 GetMin() <= range.GetMin() && range.GetMax() <= GetMax(); in Contains() 70 Range Range::Intersect(const Range& range) const { in Intersect() 71 size_t min = std::max(GetMin(), range.GetMin()); in Intersect() 72 size_t max = std::min(GetMax(), range.GetMax()); in Intersect() 84 std::ostream& operator<<(std::ostream& os, const Range& range) { in operator <<() argument [all …]
|
/external/chromium_org/third_party/openssl/openssl/crypto/bn/ |
D | bn_rand.c | 230 static int bn_rand_range(int pseudo, BIGNUM *r, const BIGNUM *range) in bn_rand_range() argument 236 if (range->neg || BN_is_zero(range)) in bn_rand_range() 242 n = BN_num_bits(range); /* n > 0 */ in bn_rand_range() 248 else if (!BN_is_bit_set(range, n - 2) && !BN_is_bit_set(range, n - 3)) in bn_rand_range() 260 if (BN_cmp(r ,range) >= 0) in bn_rand_range() 262 if (!BN_sub(r, r, range)) return 0; in bn_rand_range() 263 if (BN_cmp(r, range) >= 0) in bn_rand_range() 264 if (!BN_sub(r, r, range)) return 0; in bn_rand_range() 274 while (BN_cmp(r, range) >= 0); in bn_rand_range() 289 while (BN_cmp(r, range) >= 0); in bn_rand_range() [all …]
|