• Home
  • Raw
  • Download

Lines Matching refs:index

35 sp<Rule> RuleGenerator::generateDensity(const Vector<int>& allDensities, size_t index) {  in generateDensity()  argument
36 if (allDensities[index] != ResTable_config::DENSITY_ANY) { in generateDensity()
51 if (index > 0) { 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()
76 sp<Rule> RuleGenerator::generateAbi(const Vector<abi::Variant>& splitAbis, size_t index) { in generateAbi() argument
77 const abi::Variant thisAbi = splitAbis[index]; in generateAbi()
84 if (index + 1 < splitAbis.size()) { in generateAbi()
85 end = std::find(start, familyVariants.end(), splitAbis[index + 1]); in generateAbi()
98 sp<Rule> RuleGenerator::generate(const SortedVector<SplitDescription>& group, size_t index) { in generate() argument
102 if (group[index].config.locale != 0) { in generate()
107 group[index].config.getBcp47Locale(str); in generate()
112 if (group[index].config.sdkVersion != 0) { in generate()
116 sdk->longArgs.add(group[index].config.sdkVersion - 1); in generate()
120 if (group[index].config.density != 0) { in generate()
123 allDensities.add(group[index].config.density); in generate()
127 if (group[i].config.density != group[index].config.density) { in generate()
133 densityIndex = index; in generate()
140 if (group[index].abi != abi::Variant_none) { in generate()
143 allVariants.add(group[index].abi); in generate()
147 if (group[i].abi != group[index].abi) { in generate()
153 abiIndex = index; in generate()