am fbba9b57: Merge "AAPT: Dump status of required flag for uses-feature" into lmp-mr1-dev
* commit 'fbba9b57a35da49e592756ef86f98535280c0d09': AAPT: Dump status of required flag for uses-feature
This commit is contained in:
@@ -516,12 +516,10 @@ static void printFeatureGroup(const FeatureGroup& grp,
|
|||||||
|
|
||||||
const size_t numFeatures = grp.features.size();
|
const size_t numFeatures = grp.features.size();
|
||||||
for (size_t i = 0; i < numFeatures; i++) {
|
for (size_t i = 0; i < numFeatures; i++) {
|
||||||
if (!grp.features[i]) {
|
const bool required = grp.features[i];
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
const String8& featureName = grp.features.keyAt(i);
|
const String8& featureName = grp.features.keyAt(i);
|
||||||
printf(" uses-feature: name='%s'\n",
|
printf(" uses-feature%s: name='%s'\n", (required ? "" : "-not-required"),
|
||||||
ResTable::normalizeForOutput(featureName.string()).string());
|
ResTable::normalizeForOutput(featureName.string()).string());
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1844,7 +1842,7 @@ int doDump(Bundle* bundle)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!grp.features.isEmpty()) {
|
if (!grp.features.isEmpty()) {
|
||||||
printFeatureGroup(grp);
|
printFeatureGroup(grp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user