Lines Matching refs:ranges
153 static void add_block_to_ranges(std::vector<int>& ranges, int new_block) { in add_block_to_ranges() argument
154 if (!ranges.empty() && new_block == ranges.back()) { in add_block_to_ranges()
157 ++ranges.back(); in add_block_to_ranges()
160 ranges.push_back(new_block); in add_block_to_ranges()
161 ranges.push_back(new_block + 1); in add_block_to_ranges()
263 std::vector<int> ranges; in produce_block_map() local
311 add_block_to_ranges(ranges, block); in produce_block_map()
347 add_block_to_ranges(ranges, block); in produce_block_map()
359 android::base::StringPrintf("%zu\n", ranges.size() / 2), mapfd.get())) { in produce_block_map()
363 for (size_t i = 0; i < ranges.size(); i += 2) { in produce_block_map()
365 android::base::StringPrintf("%d %d\n", ranges[i], ranges[i+1]), mapfd.get())) { in produce_block_map()