Lines Matching defs:attrs

256         void *me, const char *name, const char **attrs) {
257 static_cast<MediaCodecList *>(me)->startElementHandler(name, attrs);
265 status_t MediaCodecList::includeXMLFile(const char **attrs) {
268 while (attrs[i] != NULL) {
269 if (!strcmp(attrs[i], "href")) {
270 if (attrs[i + 1] == NULL) {
273 href = attrs[i + 1];
307 const char *name, const char **attrs) {
315 mInitCheck = includeXMLFile(attrs);
339 addMediaCodecFromAttributes(false /* encoder */, attrs);
350 addMediaCodecFromAttributes(true /* encoder */, attrs);
361 mInitCheck = addQuirk(attrs);
363 mInitCheck = addTypeFromAttributes(attrs);
380 mInitCheck = addLimit(attrs);
382 mInitCheck = addFeature(attrs);
466 bool encoder, const char **attrs) {
471 while (attrs[i] != NULL) {
472 if (!strcmp(attrs[i], "name")) {
473 if (attrs[i + 1] == NULL) {
476 name = attrs[i + 1];
478 } else if (!strcmp(attrs[i], "type")) {
479 if (attrs[i + 1] == NULL) {
482 type = attrs[i + 1];
528 status_t MediaCodecList::addQuirk(const char **attrs) {
532 while (attrs[i] != NULL) {
533 if (!strcmp(attrs[i], "name")) {
534 if (attrs[i + 1] == NULL) {
537 name = attrs[i + 1];
554 status_t MediaCodecList::addTypeFromAttributes(const char **attrs) {
558 while (attrs[i] != NULL) {
559 if (!strcmp(attrs[i], "name")) {
560 if (attrs[i + 1] == NULL) {
563 name = attrs[i + 1];
645 status_t MediaCodecList::addLimit(const char **attrs) {
649 while (attrs[i] != NULL) {
650 if (attrs[i + 1] == NULL) {
655 if (!strcmp(attrs[i], "name")
656 || !strcmp(attrs[i], "default")
657 || !strcmp(attrs[i], "in")
658 || !strcmp(attrs[i], "max")
659 || !strcmp(attrs[i], "min")
660 || !strcmp(attrs[i], "range")
661 || !strcmp(attrs[i], "ranges")
662 || !strcmp(attrs[i], "scale")
663 || !strcmp(attrs[i], "value")) {
664 msg->setString(attrs[i], attrs[i + 1]);
792 status_t MediaCodecList::addFeature(const char **attrs) {
799 while (attrs[i] != NULL) {
800 if (attrs[i + 1] == NULL) {
805 if (!strcmp(attrs[i], "name")) {
806 name = attrs[i + 1];
808 } else if (!strcmp(attrs[i], "optional") || !strcmp(attrs[i], "required")) {
809 int value = (int)parseBoolean(attrs[i + 1]);
810 if (!strcmp(attrs[i], "optional")) {
816 } else if (!strcmp(attrs[i], "value")) {
817 value = attrs[i + 1];