Home | History | Annotate | Download | only in 1.0

Lines Matching refs:attrs

186         void *me, const char *name, const char **attrs) {
187 static_cast<MediaCodecsXmlParser *>(me)->startElementHandler(name, attrs);
195 status_t MediaCodecsXmlParser::includeXMLFile(const char **attrs) {
198 while (attrs[i] != NULL) {
199 if (!strcmp(attrs[i], "href")) {
200 if (attrs[i + 1] == NULL) {
203 href = attrs[i + 1];
206 ALOGE("includeXMLFile: unrecognized attribute: %s", attrs[i]);
238 const char *name, const char **attrs) {
246 mInitCheck = includeXMLFile(attrs);
271 mInitCheck = addSettingFromAttributes(attrs);
280 addMediaCodecFromAttributes(false /* encoder */, attrs);
291 addMediaCodecFromAttributes(true /* encoder */, attrs);
302 mInitCheck = addQuirk(attrs);
304 mInitCheck = addTypeFromAttributes(attrs, (mCurrentSection == SECTION_ENCODER));
321 mInitCheck = addLimit(attrs);
323 mInitCheck = addFeature(attrs);
412 status_t MediaCodecsXmlParser::addSettingFromAttributes(const char **attrs) {
418 while (attrs[i] != NULL) {
419 if (!strcmp(attrs[i], "name")) {
420 if (attrs[i + 1] == NULL) {
424 name = attrs[i + 1];
426 } else if (!strcmp(attrs[i], "value")) {
427 if (attrs[i + 1] == NULL) {
431 value = attrs[i + 1];
433 } else if (!strcmp(attrs[i], "update")) {
434 if (attrs[i + 1] == NULL) {
438 update = attrs[i + 1];
441 ALOGE("addSettingFromAttributes: unrecognized attribute: %s", attrs[i]);
464 bool encoder, const char **attrs) {
470 while (attrs[i] != NULL) {
471 if (!strcmp(attrs[i], "name")) {
472 if (attrs[i + 1] == NULL) {
476 name = attrs[i + 1];
478 } else if (!strcmp(attrs[i], "type")) {
479 if (attrs[i + 1] == NULL) {
483 type = attrs[i + 1];
485 } else if (!strcmp(attrs[i], "update")) {
486 if (attrs[i + 1] == NULL) {
490 update = attrs[i + 1];
493 ALOGE("addMediaCodecFromAttributes: unrecognized attribute: %s", attrs[i]);
538 status_t MediaCodecsXmlParser::addQuirk(const char **attrs) {
542 while (attrs[i] != NULL) {
543 if (!strcmp(attrs[i], "name")) {
544 if (attrs[i + 1] == NULL) {
548 name = attrs[i + 1];
551 ALOGE("addQuirk: unrecognized attribute: %s", attrs[i]);
567 status_t MediaCodecsXmlParser::addTypeFromAttributes(const char **attrs, bool encoder) {
572 while (attrs[i] != NULL) {
573 attrs[i], "name")) {
574 if (attrs[i + 1] == NULL) {
578 name = attrs[i + 1];
580 } else if (!strcmp(attrs[i], "update")) {
581 if (attrs[i + 1] == NULL) {
585 update = attrs[i + 1];
588 ALOGE("addTypeFromAttributes: unrecognized attribute: %s", attrs[i]);
634 status_t MediaCodecsXmlParser::addLimit(const char **attrs) {
638 while (attrs[i] != NULL) {
639 if (attrs[i + 1] == NULL) {
645 if (!strcmp(attrs[i], "name")
646 || !strcmp(attrs[i], "default")
647 || !strcmp(attrs[i], "in")
648 || !strcmp(attrs[i], "max")
649 || !strcmp(attrs[i], "min")
650 || !strcmp(attrs[i], "range")
651 || !strcmp(attrs[i], "ranges")
652 || !strcmp(attrs[i], "scale")
653 || !strcmp(attrs[i], "value")) {
654 msg->setString(attrs[i], attrs[i + 1]);
657 ALOGE("addLimit: unrecognized limit: %s", attrs[i]);
781 status_t MediaCodecsXmlParser::addFeature(const char **attrs) {
788 while (attrs[i] != NULL) {
789 if (attrs[i + 1] == NULL) {
795 if (!strcmp(attrs[i], "name")) {
796 name = attrs[i + 1];
798 } else if (!strcmp(attrs[i], "optional") || !strcmp(attrs[i], "required")) {
799 int value = (int)ParseBoolean(attrs[i + 1]);
800 if (!strcmp(attrs[i], "optional")) {
806 } else if (!strcmp(attrs[i], "value")) {
807 value = attrs[i + 1];
810 ALOGE("addFeature: unrecognized attribute: %s", attrs[i]);