/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/chromium_org/third_party/WebKit/Source/core/editing/ |
D | VisibleSelectionTest.cpp | 81 RefPtrWillBeRawPtr<Range> range = selection().firstRange(); in TEST_F() local 82 EXPECT_EQ(0, range->startOffset()); in TEST_F() 83 EXPECT_EQ(0, range->endOffset()); in TEST_F() 84 EXPECT_EQ("", range->text()); in TEST_F() 94 RefPtrWillBeRawPtr<Range> range = selection().firstRange(); in TEST_F() local 95 EXPECT_EQ(0, range->startOffset()); in TEST_F() 96 EXPECT_EQ(5, range->endOffset()); in TEST_F() 97 EXPECT_EQ("Lorem", range->text()); in TEST_F() 105 RefPtrWillBeRawPtr<Range> range = selection().firstRange(); in TEST_F() local 106 EXPECT_EQ(6, range->startOffset()); in TEST_F() [all …]
|
/external/iptables/extensions/ |
D | libip6t_SNAT.c | 47 parse_to(const char *orig_arg, int portok, struct nf_nat_range *range) in parse_to() argument 82 range->flags |= NF_NAT_RANGE_PROTO_SPECIFIED; in parse_to() 96 range->min_proto.tcp.port in parse_to() 97 = range->max_proto.tcp.port in parse_to() 110 range->min_proto.tcp.port = htons(port); in parse_to() 111 range->max_proto.tcp.port = htons(maxport); in parse_to() 121 range->flags |= NF_NAT_RANGE_MAP_IPS; in parse_to() 133 range->min_addr.in6 = *ip; in parse_to() 139 range->max_addr.in6 = *ip; in parse_to() 141 range->max_addr = range->min_addr; in parse_to() [all …]
|
D | libip6t_DNAT.c | 47 parse_to(const char *orig_arg, int portok, struct nf_nat_range *range) in parse_to() argument 82 range->flags |= NF_NAT_RANGE_PROTO_SPECIFIED; in parse_to() 96 range->min_proto.tcp.port in parse_to() 97 = range->max_proto.tcp.port in parse_to() 110 range->min_proto.tcp.port = htons(port); in parse_to() 111 range->max_proto.tcp.port = htons(maxport); in parse_to() 121 range->flags |= NF_NAT_RANGE_MAP_IPS; in parse_to() 133 range->min_addr.in6 = *ip; in parse_to() 139 range->max_addr.in6 = *ip; in parse_to() 141 range->max_addr = range->min_addr; in parse_to() [all …]
|
D | libip6t_REDIRECT.c | 40 parse_ports(const char *arg, struct nf_nat_range *range) in parse_ports() argument 45 range->flags |= NF_NAT_RANGE_PROTO_SPECIFIED; in parse_ports() 53 range->min_proto.tcp.port in parse_ports() 54 = range->max_proto.tcp.port in parse_ports() 65 range->min_proto.tcp.port = htons(port); in parse_ports() 66 range->max_proto.tcp.port = htons(maxport); in parse_ports() 77 struct nf_nat_range *range = (void *)(*cb->target)->data; in REDIRECT_parse() local 95 parse_ports(cb->arg, range); in REDIRECT_parse() 97 range->flags |= NF_NAT_RANGE_PROTO_RANDOM; in REDIRECT_parse() 101 range->flags |= NF_NAT_RANGE_PROTO_RANDOM; in REDIRECT_parse() [all …]
|
D | libipt_SNAT.c | 47 append_range(struct ipt_natinfo *info, const struct nf_nat_ipv4_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_ipv4_range range; in parse_to() local 76 memset(&range, 0, sizeof(range)); in parse_to() 86 range.flags |= NF_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_DNAT.c | 47 append_range(struct ipt_natinfo *info, const struct nf_nat_ipv4_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_ipv4_range range; in parse_to() local 76 memset(&range, 0, sizeof(range)); in parse_to() 86 range.flags |= NF_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/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/chromium_org/tools/gn/ |
D | c_include_iterator_unittest.cc | 12 bool RangeIs(const LocationRange& range, in RangeIs() argument 14 return range.begin().line_number() == line && in RangeIs() 15 range.end().line_number() == line && in RangeIs() 16 range.begin().char_offset() == begin_char && in RangeIs() 17 range.end().char_offset() == end_char; in RangeIs() 42 LocationRange range; in TEST() local 43 EXPECT_TRUE(iter.GetNextIncludeString(&contents, &range)); in TEST() 45 EXPECT_TRUE(RangeIs(range, 3, 11, 20)) << range.begin().Describe(true); in TEST() 47 EXPECT_TRUE(iter.GetNextIncludeString(&contents, &range)); in TEST() 49 EXPECT_TRUE(RangeIs(range, 7, 12, 21)) << range.begin().Describe(true); in TEST() [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/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_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/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/clang/lib/ARCMigrate/ |
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 …]
|
D | Internals.h | 32 bool clearDiagnostic(ArrayRef<unsigned> IDs, SourceRange range); 33 bool hasDiagnostic(ArrayRef<unsigned> IDs, SourceRange range) const; 64 void remove(SourceRange range); 66 void replace(SourceRange range, StringRef text); 67 void replace(SourceRange range, SourceRange replacementRange); 71 void increaseIndentation(SourceRange range, 74 bool clearDiagnostic(ArrayRef<unsigned> IDs, SourceRange range); 75 bool clearAllDiagnostics(SourceRange range) { in clearAllDiagnostics() argument 76 return clearDiagnostic(ArrayRef<unsigned>(), range); in clearAllDiagnostics() 78 bool clearDiagnostic(unsigned ID1, unsigned ID2, SourceRange range) { in clearDiagnostic() argument [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/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/chromium_org/third_party/tlslite/tlslite/utils/ |
D | rijndael.py | 58 for i in range(255): 65 for i in range(1, 255): 75 box = [[0] * 8 for i in range(256)] 77 for i in range(2, 256): 79 for t in range(8): 85 cox = [[0] * 8 for i in range(256)] 86 for i in range(256): 87 for t in range(8): 89 for j in range(8): 95 for i in range(256): [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 …]
|