Home
last modified time | relevance | path

Searched refs:stretch_regions (Results 1 – 1 of 1) sorted by relevance

/frameworks/base/tools/aapt2/compile/
DNinePatch.cpp221 const std::vector<Range>& stretch_regions, in PopulateBounds() argument
239 } else if (!stretch_regions.empty()) { in PopulateBounds()
242 *padding_start = stretch_regions.front().start; in PopulateBounds()
243 *padding_end = length - stretch_regions.back().end; in PopulateBounds()
285 static int32_t CalculateSegmentCount(const std::vector<Range>& stretch_regions, in CalculateSegmentCount() argument
287 if (stretch_regions.size() == 0) { in CalculateSegmentCount()
291 const bool start_is_fixed = stretch_regions.front().start != 0; in CalculateSegmentCount()
292 const bool end_is_fixed = stretch_regions.back().end != length; in CalculateSegmentCount()
299 return static_cast<int32_t>(stretch_regions.size()) * 2 + modifier; in CalculateSegmentCount()