Home
last modified time | relevance | path

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

/frameworks/base/tools/aapt2/split/
DTableSplitter.cpp96 ResourceConfigValue* best_value = nullptr; in SelectValues() local
98 if (!best_value || this_value->config.isBetterThan(best_value->config, &target_density)) { in SelectValues()
99 best_value = this_value; in SelectValues()
102 CHECK(best_value != nullptr); in SelectValues()
106 (*claimed_values)[best_value] = true; in SelectValues()
107 selected.push_back(best_value); in SelectValues()
139 ResourceConfigValue* best_value = nullptr; in MarkNonPreferredDensitiesAsClaimed() local
141 if (!best_value || this_value->config.isBetterThan(best_value->config, &target_density)) { in MarkNonPreferredDensitiesAsClaimed()
142 best_value = this_value; in MarkNonPreferredDensitiesAsClaimed()
145 CHECK(best_value != nullptr); in MarkNonPreferredDensitiesAsClaimed()
[all …]
/frameworks/base/tools/aapt2/dump/
DDumpManifest.cpp281 ResourceConfigValue* best_value = nullptr; in BestConfigValue() local
287 if (best_value != nullptr) { in BestConfigValue()
288 if (!value->config.isBetterThan(best_value->config, &match)) { in BestConfigValue()
289 if (value->config.compare(best_value->config) != 0) { in BestConfigValue()
295 best_value = value.get(); in BestConfigValue()
299 if (!best_value) { in BestConfigValue()
303 return best_value->value.get(); in BestConfigValue()