Lines Matching defs:optional
795 int32_t optional = -1;
808 } else if (!strcmp(attrs[i], "optional") || !strcmp(attrs[i], "required")) {
810 if (!strcmp(attrs[i], "optional")) {
811 optional = value;
829 if (optional == required && optional != -1) {
830 ALOGE("feature '%s' is both/neither optional and required", name);
834 if ((optional != -1 || required != -1) && (value != NULL)) {
835 ALOGE("feature '%s' has both a value and optional/required attribute", name);
842 mCurrentInfo->addFeature(name, (required == 1) || (optional == 0));