Lines Matching defs:optional
1051 int32_t optional = -1;
1064 } else if (!strcmp(attrs[i], "optional") || !strcmp(attrs[i], "required")) {
1066 if (!strcmp(attrs[i], "optional")) {
1067 optional = value;
1085 if (optional == required && optional != -1) {
1086 ALOGE("feature '%s' is both/neither optional and required", name);
1090 if ((optional != -1 || required != -1) && (value != NULL)) {
1091 ALOGE("feature '%s' has both a value and optional/required attribute", name);
1098 mCurrentInfo->addFeature(name, (required == 1) || (optional == 0));