Lines Matching refs:node
393 size_t AudioPolicyEffects::readParamValue(cnode *node, in readParamValue() argument
398 if (strncmp(node->name, SHORT_TAG, sizeof(SHORT_TAG) + 1) == 0) { in readParamValue()
400 *(short *)((char *)param + pos) = (short)atoi(node->value); in readParamValue()
403 } else if (strncmp(node->name, INT_TAG, sizeof(INT_TAG) + 1) == 0) { in readParamValue()
405 *(int *)((char *)param + pos) = atoi(node->value); in readParamValue()
408 } else if (strncmp(node->name, FLOAT_TAG, sizeof(FLOAT_TAG) + 1) == 0) { in readParamValue()
410 *(float *)((char *)param + pos) = (float)atof(node->value); in readParamValue()
413 } else if (strncmp(node->name, BOOL_TAG, sizeof(BOOL_TAG) + 1) == 0) { in readParamValue()
415 if (strncmp(node->value, "false", strlen("false") + 1) == 0) { in readParamValue()
422 } else if (strncmp(node->name, STRING_TAG, sizeof(STRING_TAG) + 1) == 0) { in readParamValue()
423 size_t len = strnlen(node->value, EFFECT_STRING_LEN_MAX); in readParamValue()
428 strncpy(param + *curSize, node->value, len); in readParamValue()
434 ALOGW("readParamValue() unknown param type %s", node->name); in readParamValue()
504 cnode *node = root->first_child; in loadEffectParameters() local
505 while (node) { in loadEffectParameters()
506 ALOGV("loadEffectParameters() loading param %s", node->name); in loadEffectParameters()
507 effect_param_t *param = loadEffectParameter(node); in loadEffectParameters()
509 node = node->next; in loadEffectParameters()
513 node = node->next; in loadEffectParameters()
522 cnode *node = root->first_child; in loadEffectConfig() local
523 if (node == NULL) { in loadEffectConfig()
528 while (node) { in loadEffectConfig()
531 if (strncmp(effects[i]->mName, node->name, EFFECT_STRING_LEN_MAX) == 0) { in loadEffectConfig()
532 ALOGV("loadEffectConfig() found effect %s in list", node->name); in loadEffectConfig()
537 ALOGV("loadEffectConfig() effect %s not in list", node->name); in loadEffectConfig()
538 node = node->next; in loadEffectConfig()
542 loadEffectParameters(node, effect->mParams); in loadEffectConfig()
546 node = node->next; in loadEffectConfig()
559 cnode *node = config_find(root, PREPROCESSING_TAG); in loadInputEffectConfigurations() local
560 if (node == NULL) { in loadInputEffectConfigurations()
563 node = node->first_child; in loadInputEffectConfigurations()
564 while (node) { in loadInputEffectConfigurations()
565 audio_source_t source = inputSourceNameToEnum(node->name); in loadInputEffectConfigurations()
567 ALOGW("loadInputSources() invalid input source %s", node->name); in loadInputEffectConfigurations()
568 node = node->next; in loadInputEffectConfigurations()
571 ALOGV("loadInputSources() loading input source %s", node->name); in loadInputEffectConfigurations()
572 EffectDescVector *desc = loadEffectConfig(node, effects); in loadInputEffectConfigurations()
574 node = node->next; in loadInputEffectConfigurations()
578 node = node->next; in loadInputEffectConfigurations()
586 cnode *node = config_find(root, OUTPUT_SESSION_PROCESSING_TAG); in loadStreamEffectConfigurations() local
587 if (node == NULL) { in loadStreamEffectConfigurations()
590 node = node->first_child; in loadStreamEffectConfigurations()
591 while (node) { in loadStreamEffectConfigurations()
592 audio_stream_type_t stream = streamNameToEnum(node->name); in loadStreamEffectConfigurations()
594 ALOGW("loadStreamEffectConfigurations() invalid output stream %s", node->name); in loadStreamEffectConfigurations()
595 node = node->next; in loadStreamEffectConfigurations()
598 ALOGV("loadStreamEffectConfigurations() loading output stream %s", node->name); in loadStreamEffectConfigurations()
599 EffectDescVector *desc = loadEffectConfig(node, effects); in loadStreamEffectConfigurations()
601 node = node->next; in loadStreamEffectConfigurations()
605 node = node->next; in loadStreamEffectConfigurations()
612 cnode *node = config_find(root, UUID_TAG); in loadEffect() local
613 if (node == NULL) { in loadEffect()
617 if (AudioEffect::stringToGuid(node->value, &uuid) != NO_ERROR) { in loadEffect()
618 ALOGW("loadEffect() invalid uuid %s", node->value); in loadEffect()
626 cnode *node = config_find(root, EFFECTS_TAG); in loadEffects() local
627 if (node == NULL) { in loadEffects()
630 node = node->first_child; in loadEffects()
631 while (node) { in loadEffects()
632 ALOGV("loadEffects() loading effect %s", node->name); in loadEffects()
633 EffectDesc *effect = loadEffect(node); in loadEffects()
635 node = node->next; in loadEffects()
639 node = node->next; in loadEffects()