Lines Matching defs:optional
1046 int32_t optional = -1;
1059 } else if (!strcmp(attrs[i], "optional") || !strcmp(attrs[i], "required")) {
1061 if (!strcmp(attrs[i], "optional")) {
1062 optional = value;
1080 if (optional == required && optional != -1) {
1081 ALOGE("feature '%s' is both/neither optional and required", name);
1085 if ((optional != -1 || required != -1) && (value != NULL)) {
1086 ALOGE("feature '%s' has both a value and optional/required attribute", name);
1093 mCurrentInfo->addFeature(name, (required == 1) || (optional == 0));