Searched refs:ranges (Results 1 - 25 of 252) sorted by relevance

1234567891011

/external/chromium/chrome/browser/safe_browsing/
H A Dchunk_range_unittest.cc5 // Test program to convert lists of integers into ranges, and vice versa.
42 // Test no chunk numbers in contiguous ranges.
92 std::vector<ChunkRange> ranges; local
95 EXPECT_TRUE(StringToRanges(input, &ranges));
96 EXPECT_EQ(ranges.size(), static_cast<size_t>(5));
97 EXPECT_EQ(ranges[0].start(), 1);
98 EXPECT_EQ(ranges[0].stop(), 100);
99 EXPECT_EQ(ranges[1].start(), 398);
100 EXPECT_EQ(ranges[1].stop(), 398);
101 EXPECT_EQ(ranges[
134 std::vector<ChunkRange> ranges; local
152 std::vector<ChunkRange> ranges; local
[all...]
H A Dchunk_range.cc55 void RangesToChunks(const std::vector<ChunkRange>& ranges, argument
58 for (size_t i = 0; i < ranges.size(); ++i) {
59 const ChunkRange& range = ranges[i];
67 std::vector<ChunkRange>* ranges) {
68 DCHECK(ranges);
84 ranges->clear();
87 ranges->push_back(ChunkRange(start, stop));
94 bool IsChunkInRange(int chunk_number, const std::vector<ChunkRange>& ranges) { argument
95 if (ranges.empty())
99 int high = ranges
66 StringToRanges(const std::string& input, std::vector<ChunkRange>* ranges) argument
[all...]
/external/chromium_org/chrome/browser/safe_browsing/
H A Dchunk_range_unittest.cc5 // Test program to convert lists of integers into ranges, and vice versa.
42 // Test no chunk numbers in contiguous ranges.
92 std::vector<ChunkRange> ranges; local
95 EXPECT_TRUE(StringToRanges(input, &ranges));
96 EXPECT_EQ(ranges.size(), static_cast<size_t>(5));
97 EXPECT_EQ(ranges[0].start(), 1);
98 EXPECT_EQ(ranges[0].stop(), 100);
99 EXPECT_EQ(ranges[1].start(), 398);
100 EXPECT_EQ(ranges[1].stop(), 398);
101 EXPECT_EQ(ranges[
134 std::vector<ChunkRange> ranges; local
152 std::vector<ChunkRange> ranges; local
[all...]
H A Dchunk_range.cc55 void RangesToChunks(const std::vector<ChunkRange>& ranges, argument
58 for (size_t i = 0; i < ranges.size(); ++i) {
59 const ChunkRange& range = ranges[i];
67 std::vector<ChunkRange>* ranges) {
68 DCHECK(ranges);
84 ranges->clear();
87 ranges->push_back(ChunkRange(start, stop));
94 bool IsChunkInRange(int chunk_number, const std::vector<ChunkRange>& ranges) { argument
95 if (ranges.empty())
99 int high = ranges
66 StringToRanges(const std::string& input, std::vector<ChunkRange>* ranges) argument
[all...]
/external/chromium_org/base/metrics/
H A Dbucket_ranges_unittest.cc13 BucketRanges ranges(5);
14 ASSERT_EQ(5u, ranges.size());
15 ASSERT_EQ(4u, ranges.bucket_count());
18 EXPECT_EQ(0, ranges.range(i));
20 EXPECT_EQ(0u, ranges.checksum());
22 ranges.set_range(3, 100);
23 EXPECT_EQ(100, ranges.range(3));
27 // Compare empty ranges.
36 // Compare full filled ranges.
59 BucketRanges ranges(
[all...]
H A Dsample_vector_unittest.cc20 BucketRanges ranges(3);
21 ranges.set_range(0, 1);
22 ranges.set_range(1, 5);
23 ranges.set_range(2, 10);
24 SampleVector samples(&ranges);
47 BucketRanges ranges(5);
48 ranges.set_range(0, 0);
49 ranges.set_range(1, 1);
50 ranges.set_range(2, 2);
51 ranges
[all...]
/external/harfbuzz/contrib/tables/
H A Dcategory-parse.py46 ranges = unicode_file_parse(infile, category_to_harfbuzz)
47 ranges = sort_and_merge(ranges)
60 for (start, end, value) in ranges:
63 print >>outfile, 'static const unsigned category_properties_count = %d;\n' % len(ranges)
H A Dcombining-class-parse.py11 ranges = unicode_file_parse(infile, IdentityMap(), '0')
12 ranges = sort_and_merge(ranges)
24 for (start, end, value) in ranges:
27 print >>outfile, 'static const unsigned combining_properties_count = %d;\n' % len(ranges)
H A Dgrapheme-break-parse.py21 ranges = unicode_file_parse(infile, property_to_harfbuzz)
22 ranges.sort()
35 for (start, end, value) in ranges:
38 print >>outfile, 'static const unsigned grapheme_break_properties_count = %d;\n' % len(ranges)
H A Dscripts-parse.py49 ranges = unicode_file_parse(infile,
52 ranges = sort_and_merge(ranges)
65 for (start, end, value) in ranges:
68 print >>outfile, 'static const unsigned script_properties_count = %d;\n' % len(ranges)
H A Dunicode_parse_common.py34 ranges = []
46 ranges.append((codepoints[0], codepoints[1], value))
50 return ranges
52 def sort_and_merge(ranges):
53 '''Given a list of (start, end, value), merge elements where the ranges are
56 ranges.sort()
58 for v in ranges:
/external/chromium_org/printing/
H A Dpage_range_unittest.cc9 printing::PageRanges ranges; local
13 ranges.push_back(range);
16 ranges.push_back(range);
19 ranges.push_back(range);
20 std::vector<int> pages(printing::PageRange::GetPages(ranges));
33 printing::PageRanges ranges; local
34 std::vector<int> pages(printing::PageRange::GetPages(ranges));
39 printing::PageRanges ranges; local
43 ranges.push_back(range);
44 std::vector<int> pages(printing::PageRange::GetPages(ranges));
[all...]
H A Dpage_range.cc16 std::vector<int> PageRange::GetPages(const PageRanges& ranges) { argument
19 for (unsigned i = 0; i < ranges.size(); ++i) {
20 const PageRange& range = ranges[i];
/external/chromium_org/third_party/re2/re2/
H A Dmake_perl_groups.pl6 # Generate table entries giving character ranges
36 my @ranges;
48 push @ranges, [$start, $i-1];
53 return @ranges;
57 my ($cname, $name, @ranges) = @_;
59 for (my $i=0; $i<@ranges; $i++) {
60 my @a = @{$ranges[$i]};
64 my $n = @ranges;
82 my @ranges = ComputeClass($cl);
83 push @entries, PrintClass(++$gen, $cl, @ranges);
[all...]
H A Dmake_unicode_groups.py32 ranges = []
36 ranges[-1][1] = c
38 ranges.append([c, c])
40 return ranges
42 def PrintRanges(type, name, ranges):
43 """Print the ranges as an array of type named name."""
45 for lo, hi in ranges:
62 # Split codes into 16-bit ranges and 32-bit ranges.
66 # Pull singleton ranges ou
[all...]
/external/regex-re2/re2/
H A Dmake_perl_groups.pl6 # Generate table entries giving character ranges
36 my @ranges;
48 push @ranges, [$start, $i-1];
53 return @ranges;
57 my ($cname, $name, @ranges) = @_;
59 for (my $i=0; $i<@ranges; $i++) {
60 my @a = @{$ranges[$i]};
64 my $n = @ranges;
82 my @ranges = ComputeClass($cl);
83 push @entries, PrintClass(++$gen, $cl, @ranges);
[all...]
/external/chromium_org/tools/deep_memory_profiler/tests/
H A Drange_dict_tests.py41 ranges = ExclusiveRangeDict(self.TestAttribute)
44 for begin, end, attr in ranges.iter_range(20, 40):
52 ranges = ExclusiveRangeDict(self.TestAttribute)
55 for begin, end, attr in ranges.iter_range(20, 20):
61 ranges = ExclusiveRangeDict(self.TestAttribute)
62 for begin, end, attr in ranges.iter_range(20, 30):
64 for begin, end, attr in ranges.iter_range(30, 40):
68 for begin, end, attr in ranges.iter_range(20, 40):
77 ranges = ExclusiveRangeDict(self.TestAttribute)
78 for begin, end, attr in ranges
[all...]
/external/easymock/src/org/easymock/internal/
H A DResults.java29 private final LinkedList<Range> ranges = new LinkedList<Range>(); field in class:Results
34 if (!ranges.isEmpty()) {
35 Range lastRange = ranges.getLast();
41 ranges.add(range);
47 for (int i = 0; i < ranges.size(); i++) {
48 Range interval = ranges.get(i);
74 for (Range interval : ranges) {
/external/chromium_org/net/disk_cache/
H A Dstats_histogram.cc26 const BucketRanges* ranges,
28 : Histogram(name, minimum, maximum, ranges),
35 BucketRanges* ranges) {
36 for (size_t i = 0; i < ranges->size(); ++i) {
37 ranges->set_range(i, stats->GetBucketRange(i));
39 ranges->ResetChecksum();
52 BucketRanges* ranges = new BucketRanges(bucket_count + 1); local
53 InitializeBucketRanges(stats, ranges);
55 StatisticsRecorder::RegisterOrDeleteDuplicateRanges(ranges);
23 StatsHistogram(const std::string& name, Sample minimum, Sample maximum, const BucketRanges* ranges, const Stats* stats) argument
34 InitializeBucketRanges(const Stats* stats, BucketRanges* ranges) argument
/external/chromium_org/third_party/WebKit/Source/core/html/
H A DTimeRangesTest.cpp41 static std::string ToString(const TimeRanges& ranges) argument
45 for (unsigned i = 0; i < ranges.length(); ++i)
46 ss << " [" << ranges.start(i, IGNORE_EXCEPTION) << "," << ranges.end(i, IGNORE_EXCEPTION) << ")";
95 RefPtr<TimeRanges> ranges = TimeRanges::create(); local
97 ranges->add(0, 2);
98 ranges->add(10, 11);
99 ASSERT_RANGE("{ [0,2) [10,11) }", ranges);
101 ranges->add(0, 2);
102 ASSERT_RANGE("{ [0,2) [10,11) }", ranges);
125 RefPtr<TimeRanges> ranges = TimeRanges::create(0, 2); local
[all...]
/external/icu4c/tools/toolutil/
H A Ddenseranges.h14 * Helper code for finding a small number of dense ranges.
23 * Does it make sense to write 1..capacity ranges?
24 * Returns 0 if not, otherwise the number of ranges.
29 * @param ranges Output ranges array.
30 * @param capacity Maximum number of ranges.
31 * @return Minimum number of ranges (at most capacity) that have the desired density,
37 int32_t ranges[][2], int32_t capacity);
/external/chromium_org/third_party/icu/source/i18n/
H A Ducol_wgt.h35 * what ranges to use for a given number of weights between (excluding)
38 * @param lowerLimit A collation element weight; the ranges will be filled to cover
40 * @param upperLimit A collation element weight; the ranges will be filled to cover
45 * @param ranges An array that is filled in with one or more ranges to cover
47 * @return number of ranges, 0 if it is not possible to fit n elements between the limits
53 WeightRange ranges[7]);
56 * Given a set of ranges calculated by ucol_allocWeights(),
58 * The ranges are modified to keep the current iteration state.
60 * @param ranges Th
[all...]
H A Ducol_wgt.cpp121 /* for uprv_sortArray: sort ranges in weight order */
139 * possible ranges of weights between the two limits, excluding them
140 * for weights with up to 4 bytes there are up to 2*4-1=7 ranges
145 WeightRange ranges[7]) {
185 * With the limit lengths of 1..4, there are up to 7 ranges for allocation:
195 * We are now going to calculate up to 7 ranges.
196 * Some of them will typically overlap, so we will then have to merge and eliminate ranges.
235 /* reduce or remove the lower ranges that go beyond upperLimit */
242 /* lower and upper ranges collide or are directly adjacent: merge these two and remove all shorter ranges */
143 getWeightRanges(uint32_t lowerLimit, uint32_t upperLimit, uint32_t maxByte, uint32_t countBytes, WeightRange ranges[7]) argument
305 ucol_allocWeights(uint32_t lowerLimit, uint32_t upperLimit, uint32_t n, uint32_t maxByte, WeightRange ranges[7]) argument
485 ucol_nextWeight(WeightRange ranges[], int32_t *pRangeCount) argument
[all...]
/external/icu4c/i18n/
H A Ducol_wgt.h35 * what ranges to use for a given number of weights between (excluding)
38 * @param lowerLimit A collation element weight; the ranges will be filled to cover
40 * @param upperLimit A collation element weight; the ranges will be filled to cover
45 * @param ranges An array that is filled in with one or more ranges to cover
47 * @return number of ranges, 0 if it is not possible to fit n elements between the limits
53 WeightRange ranges[7]);
56 * Given a set of ranges calculated by ucol_allocWeights(),
58 * The ranges are modified to keep the current iteration state.
60 * @param ranges Th
[all...]
H A Ducol_wgt.cpp134 /* for uprv_sortArray: sort ranges in weight order */
152 * possible ranges of weights between the two limits, excluding them
153 * for weights with up to 4 bytes there are up to 2*4-1=7 ranges
158 WeightRange ranges[7]) {
198 * With the limit lengths of 1..4, there are up to 7 ranges for allocation:
208 * We are now going to calculate up to 7 ranges.
209 * Some of them will typically overlap, so we will then have to merge and eliminate ranges.
248 /* reduce or remove the lower ranges that go beyond upperLimit */
255 /* lower and upper ranges collide or are directly adjacent: merge these two and remove all shorter ranges */
156 getWeightRanges(uint32_t lowerLimit, uint32_t upperLimit, uint32_t maxByte, uint32_t countBytes, WeightRange ranges[7]) argument
318 ucol_allocWeights(uint32_t lowerLimit, uint32_t upperLimit, uint32_t n, uint32_t maxByte, WeightRange ranges[7]) argument
498 ucol_nextWeight(WeightRange ranges[], int32_t *pRangeCount) argument
[all...]

Completed in 912 milliseconds

1234567891011