Home
last modified time | relevance | path

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

/frameworks/base/tools/split-select/
DRuleGenerator.cpp35 sp<Rule> RuleGenerator::generateDensity(const Vector<int>& allDensities, size_t index) { in generateDensity() argument
36 if (allDensities[index] != ResTable_config::DENSITY_ANY) { in generateDensity()
40 const bool hasAnyDensity = std::find(allDensities.begin(), in generateDensity()
41 allDensities.end(), (int) ResTable_config::DENSITY_ANY) != allDensities.end(); in generateDensity()
55 gt->longArgs.add(findMid(allDensities[index - 1], allDensities[index]) - 1); in generateDensity()
59 … if (index + 1 < allDensities.size() && allDensities[index + 1] != ResTable_config::DENSITY_ANY) { in generateDensity()
63 lt->longArgs.add(findMid(allDensities[index], allDensities[index + 1])); in generateDensity()
122 Vector<int> allDensities; in generate() local
123 allDensities.add(group[index].config.density); in generate()
129 allDensities.clear(); in generate()
[all …]
DRuleGenerator.h34 … static android::sp<Rule> generateDensity(const android::Vector<int>& allDensities, size_t index);