Home
last modified time | relevance | path

Searched refs:range (Results 1 – 25 of 2161) sorted by relevance

12345678910>>...87

/external/guava/guava-tests/test/com/google/common/collect/
DRangeTest.java45 Range<Integer> range = Range.open(4, 8); in testOpen() local
46 checkContains(range); in testOpen()
47 assertTrue(range.hasLowerBound()); in testOpen()
48 assertEquals(4, (int) range.lowerEndpoint()); in testOpen()
49 assertEquals(OPEN, range.lowerBoundType()); in testOpen()
50 assertTrue(range.hasUpperBound()); in testOpen()
51 assertEquals(8, (int) range.upperEndpoint()); in testOpen()
52 assertEquals(OPEN, range.upperBoundType()); in testOpen()
53 assertFalse(range.isEmpty()); in testOpen()
54 assertEquals("(4\u20258)", range.toString()); in testOpen()
[all …]
DGeneralRangeTest.java45 GeneralRange.range(ORDERING, 4, lboundType, 2, uboundType); in testCreateEmptyRangeFails()
55 GeneralRange.range(ORDERING, i, OPEN, i, OPEN); in testCreateEmptyRangeOpenOpenFails()
63 GeneralRange<Integer> range = GeneralRange.range(ORDERING, i, CLOSED, i, OPEN); in testCreateEmptyRangeClosedOpenSucceeds() local
65 assertFalse(range.contains(j)); in testCreateEmptyRangeClosedOpenSucceeds()
72 GeneralRange<Integer> range = GeneralRange.range(ORDERING, i, OPEN, i, CLOSED); in testCreateEmptyRangeOpenClosedSucceeds() local
74 assertFalse(range.contains(j)); in testCreateEmptyRangeOpenClosedSucceeds()
81 GeneralRange<Integer> range = GeneralRange.range(ORDERING, i, CLOSED, i, CLOSED); in testCreateSingletonRangeSucceeds() local
83 assertEquals(Objects.equal(i, j), range.contains(j)); in testCreateSingletonRangeSucceeds()
89 GeneralRange<Integer> range = GeneralRange.range(ORDERING, 3, CLOSED, 3, CLOSED); in testSingletonRange() local
91 assertEquals(ORDERING.compare(i, 3) == 0, range.contains(i)); in testSingletonRange()
[all …]
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DGeneralRangeTest.java43 GeneralRange.range(ORDERING, 4, lboundType, 2, uboundType); in testCreateEmptyRangeFails()
53 GeneralRange.range(ORDERING, i, OPEN, i, OPEN); in testCreateEmptyRangeOpenOpenFails()
61 GeneralRange<Integer> range = GeneralRange.range(ORDERING, i, CLOSED, i, OPEN); in testCreateEmptyRangeClosedOpenSucceeds() local
63 assertFalse(range.contains(j)); in testCreateEmptyRangeClosedOpenSucceeds()
70 GeneralRange<Integer> range = GeneralRange.range(ORDERING, i, OPEN, i, CLOSED); in testCreateEmptyRangeOpenClosedSucceeds() local
72 assertFalse(range.contains(j)); in testCreateEmptyRangeOpenClosedSucceeds()
79 GeneralRange<Integer> range = GeneralRange.range(ORDERING, i, CLOSED, i, CLOSED); in testCreateSingletonRangeSucceeds() local
81 assertEquals(Objects.equal(i, j), range.contains(j)); in testCreateSingletonRangeSucceeds()
87 GeneralRange<Integer> range = GeneralRange.range(ORDERING, 3, CLOSED, 3, CLOSED); in testSingletonRange() local
89 assertEquals(ORDERING.compare(i, 3) == 0, range.contains(i)); in testSingletonRange()
[all …]
/external/google-breakpad/src/common/
Dmemory_range_unittest.cc95 MemoryRange range; in TEST() local
96 EXPECT_EQ(NULL, range.data()); in TEST()
97 EXPECT_EQ(0U, range.length()); in TEST()
101 MemoryRange range(kBuffer, kBufferSize); in TEST() local
102 EXPECT_EQ(kBufferPointer, range.data()); in TEST()
103 EXPECT_EQ(kBufferSize, range.length()); in TEST()
107 MemoryRange range; in TEST() local
108 range.Reset(); in TEST()
109 EXPECT_EQ(NULL, range.data()); in TEST()
110 EXPECT_EQ(0U, range.length()); in TEST()
[all …]
/external/google-breakpad/src/tools/linux/md2core/
Dminidump_memory_range_unittest.cc96 MinidumpMemoryRange range; in TEST() local
97 EXPECT_EQ(NULL, range.data()); in TEST()
98 EXPECT_EQ(0U, range.length()); in TEST()
102 MinidumpMemoryRange range(kBuffer, kBufferSize); in TEST() local
103 EXPECT_EQ(kBufferPointer, range.data()); in TEST()
104 EXPECT_EQ(kBufferSize, range.length()); in TEST()
108 MinidumpMemoryRange range; in TEST() local
109 range.Reset(); in TEST()
110 EXPECT_EQ(NULL, range.data()); in TEST()
111 EXPECT_EQ(0U, range.length()); in TEST()
[all …]
/external/iptables/extensions/
Dlibip6t_SNAT.c47 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 …]
Dlibip6t_DNAT.c47 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 …]
Dlibip6t_REDIRECT.c40 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 …]
Dlibipt_DNAT.c47 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/elfutils/src/tests/
Drun-get-aranges.sh24 0x804842b: not in range
28 0x804845a: not in range
29 0x804845b: not in range
33 0x8048466: not in range
34 0x8048467: not in range
38 0x8048472: not in range
45 0x804842b: not in range
46 0x804842c: not in range
47 0x804843c: not in range
48 0x8048459: not in range
[all …]
/external/skia/src/core/
DSkAdvancedTypefaceMetrics.cpp40 … 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/selinux/libsepol/src/
Dmls.c113 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/clang/lib/ARCMigrate/
DTransformActions.cpp68 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 …]
DInternals.h32 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(None, range); in clearAllDiagnostics()
78 bool clearDiagnostic(unsigned ID1, unsigned ID2, SourceRange range) { in clearDiagnostic() argument
[all …]
/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/
Dutil.rb151 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/v8/src/compiler/
Dregister-allocator.cc571 LiveRange* range = LiveRangeFor(operand_index); in AddInitialIntervals() local
572 range->AddUseInterval(start, end, zone()); in AddInitialIntervals()
677 LiveRange* range = LiveRangeFor(operand); in Define() local
678 if (range == NULL) return; in Define()
680 if (range->IsEmpty() || range->Start().Value() > position.Value()) { in Define()
682 range->AddUseInterval(position, position.NextInstruction(), zone()); in Define()
683 range->AddUsePosition(position.NextInstruction(), NULL, NULL, zone()); in Define()
685 range->ShortenTo(position); in Define()
690 range->AddUsePosition(position, unalloc_operand, hint, zone()); in Define()
699 LiveRange* range = LiveRangeFor(operand); in Use() local
[all …]
/external/llvm/test/Transforms/GVN/
Drange.ll5 ; CHECK: %a = load i32, i32* %p, !range !0
7 %a = load i32, i32* %p, !range !0
8 %b = load i32, i32* %p, !range !0
16 ; CHECK-NOT: range
18 %a = load i32, i32* %p, !range !0
26 ; CHECK: %a = load i32, i32* %p, !range ![[DISJOINT_RANGE:[0-9]+]]
28 %a = load i32, i32* %p, !range !0
29 %b = load i32, i32* %p, !range !1
36 ; CHECK: %a = load i32, i32* %p, !range ![[MERGED_RANGE:[0-9]+]]
38 %a = load i32, i32* %p, !range !0
[all …]
/external/boringssl/src/crypto/bn/
Drandom.c184 int BN_rand_range(BIGNUM *r, const BIGNUM *range) { in BN_rand_range() argument
188 if (range->neg || BN_is_zero(range)) { in BN_rand_range()
193 n = BN_num_bits(range); /* n > 0 */ in BN_rand_range()
198 } else if (!BN_is_bit_set(range, n - 2) && !BN_is_bit_set(range, n - 3)) { in BN_rand_range()
210 if (BN_cmp(r, range) >= 0) { in BN_rand_range()
211 if (!BN_sub(r, r, range)) { in BN_rand_range()
214 if (BN_cmp(r, range) >= 0) { in BN_rand_range()
215 if (!BN_sub(r, r, range)) { in BN_rand_range()
225 } while (BN_cmp(r, range) >= 0); in BN_rand_range()
237 } while (BN_cmp(r, range) >= 0); in BN_rand_range()
[all …]
/external/libxml2/result/XPath/xptr/
Dstrrange3 Expression: xpointer(string-range(//p, 'simple'))
5 1 : Object is a range :
15 Expression: xpointer(string-range(//p, 'test'))
17 1 : Object is a range :
25 2 : Object is a range :
33 3 : Object is a range :
43 Expression: xpointer(string-range(//p, 'difficult'))
45 1 : Object is a range :
55 Expression: xpointer(string-range(//p, 'spanning'))
57 1 : Object is a range :
[all …]
/external/google-breakpad/src/processor/
Dstatic_range_map-inl.h58 const Range *range = iterator.GetValuePtr(); in RetrieveRange() local
62 if (address < range->base()) in RetrieveRange()
65 entry = range->entryptr(); in RetrieveRange()
67 *entry_base = range->base(); in RetrieveRange()
69 *entry_size = iterator.GetKey() - range->base() + 1; in RetrieveRange()
94 const Range *range = iterator.GetValuePtr(); in RetrieveNearestRange() local
95 entry = range->entryptr(); in RetrieveNearestRange()
97 *entry_base = range->base(); in RetrieveNearestRange()
99 *entry_size = iterator.GetKey() - range->base() + 1; in RetrieveNearestRange()
116 const Range *range = iterator.GetValuePtr(); in RetrieveRangeAtIndex() local
[all …]
/external/llvm/test/MC/Mips/
Dmicromips-bad-branches.s5 # CHECK: error: branch target out of range
9 # CHECK: error: branch target out of range
14 # CHECK: error: branch target out of range
18 # CHECK: error: branch target out of range
23 # CHECK: error: branch target out of range
27 # CHECK: error: branch target out of range
32 # CHECK: error: branch target out of range
36 # CHECK: error: branch target out of range
41 # CHECK: error: branch target out of range
45 # CHECK: error: branch target out of range
[all …]
/external/clang/lib/Edit/
DCommit.cpp60 CharSourceRange range, in insertFromRange() argument
64 if (!canRemoveRange(range, RangeOffs, RangeLen)) { in insertFromRange()
77 PPRec->areInDifferentConditionalDirectiveRegion(loc, range.getBegin())) { in insertFromRange()
86 bool Commit::remove(CharSourceRange range) { in remove() argument
89 if (!canRemoveRange(range, Offs, Len)) { in remove()
94 addRemove(range.getBegin(), Offs, Len); in remove()
98 bool Commit::insertWrap(StringRef before, CharSourceRange range, in insertWrap() argument
100 bool commitableBefore = insert(range.getBegin(), before, /*afterToken=*/false, in insertWrap()
103 if (range.isTokenRange()) in insertWrap()
104 commitableAfter = insertAfterToken(range.getEnd(), after); in insertWrap()
[all …]
/external/clang/test/CodeGen/
Dstruct.c71 } range; typedef
72 extern range f6();
74 range r = f6(); in f7()
79 range range1;
80 range range2;
86 range r = p.range1; in f8()
89 void f9(range *p) { in f9()
90 range r = *p; in f9()
93 void f10(range *p) { in f10()
94 range r = p[0]; in f10()
[all …]
/external/guava/guava/src/com/google/common/collect/
DRegularContiguousSet.java37 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()
45 return (range.isConnected(other)) in intersectionInCurrentDomain()
46 ? ContiguousSet.create(range.intersection(other), domain) in intersectionInCurrentDomain()
60 return intersectionInCurrentDomain(Range.range( in subSetImpl()
106 return range.lowerBound.leastValueAbove(domain);
110 return range.upperBound.greatestValueBelow(domain);
123 return range.contains((C) object);
151 @Override public Range<C> range() {
[all …]
/external/llvm/test/Verifier/
Drange-2.ll5 %y = load i8, i8* %x, align 1, !range !0
12 %y = load i8, i8* %x, align 1, !range !1
19 %y = load i8, i8* %x, align 1, !range !2
26 %y = load i8, i8* %x, align 1, !range !3
33 %y = load i8, i8* %x, align 1, !range !4
38 ; We can annotate the range of the return value of a CALL.
41 %v1 = call i8 @f1(i8* %x), !range !0
42 %v2 = call i8 @f2(i8* %x), !range !1
43 %v3 = call i8 @f3(i8* %x), !range !2
44 %v4 = call i8 @f4(i8* %x), !range !3
[all …]

12345678910>>...87