Lines Matching refs:node
1102 size_t AudioPolicyService::readParamValue(cnode *node, in readParamValue() argument
1107 if (strncmp(node->name, SHORT_TAG, sizeof(SHORT_TAG) + 1) == 0) { in readParamValue()
1109 *(short *)((char *)param + pos) = (short)atoi(node->value); in readParamValue()
1112 } else if (strncmp(node->name, INT_TAG, sizeof(INT_TAG) + 1) == 0) { in readParamValue()
1114 *(int *)((char *)param + pos) = atoi(node->value); in readParamValue()
1117 } else if (strncmp(node->name, FLOAT_TAG, sizeof(FLOAT_TAG) + 1) == 0) { in readParamValue()
1119 *(float *)((char *)param + pos) = (float)atof(node->value); in readParamValue()
1122 } else if (strncmp(node->name, BOOL_TAG, sizeof(BOOL_TAG) + 1) == 0) { in readParamValue()
1124 if (strncmp(node->value, "false", strlen("false") + 1) == 0) { in readParamValue()
1131 } else if (strncmp(node->name, STRING_TAG, sizeof(STRING_TAG) + 1) == 0) { in readParamValue()
1132 size_t len = strnlen(node->value, EFFECT_STRING_LEN_MAX); in readParamValue()
1137 strncpy(param + *curSize, node->value, len); in readParamValue()
1143 ALOGW("readParamValue() unknown param type %s", node->name); in readParamValue()
1213 cnode *node = root->first_child; in loadEffectParameters() local
1214 while (node) { in loadEffectParameters()
1215 ALOGV("loadEffectParameters() loading param %s", node->name); in loadEffectParameters()
1216 effect_param_t *param = loadEffectParameter(node); in loadEffectParameters()
1218 node = node->next; in loadEffectParameters()
1222 node = node->next; in loadEffectParameters()
1230 cnode *node = root->first_child; in loadInputSource() local
1231 if (node == NULL) { in loadInputSource()
1236 while (node) { in loadInputSource()
1239 if (strncmp(effects[i]->mName, node->name, EFFECT_STRING_LEN_MAX) == 0) { in loadInputSource()
1240 ALOGV("loadInputSource() found effect %s in list", node->name); in loadInputSource()
1245 ALOGV("loadInputSource() effect %s not in list", node->name); in loadInputSource()
1246 node = node->next; in loadInputSource()
1250 loadEffectParameters(node, effect->mParams); in loadInputSource()
1253 node = node->next; in loadInputSource()
1265 cnode *node = config_find(root, PREPROCESSING_TAG); in loadInputSources() local
1266 if (node == NULL) { in loadInputSources()
1269 node = node->first_child; in loadInputSources()
1270 while (node) { in loadInputSources()
1271 audio_source_t source = inputSourceNameToEnum(node->name); in loadInputSources()
1273 ALOGW("loadInputSources() invalid input source %s", node->name); in loadInputSources()
1274 node = node->next; in loadInputSources()
1277 ALOGV("loadInputSources() loading input source %s", node->name); in loadInputSources()
1278 InputSourceDesc *desc = loadInputSource(node, effects); in loadInputSources()
1280 node = node->next; in loadInputSources()
1284 node = node->next; in loadInputSources()
1291 cnode *node = config_find(root, UUID_TAG); in loadEffect() local
1292 if (node == NULL) { in loadEffect()
1296 if (AudioEffect::stringToGuid(node->value, &uuid) != NO_ERROR) { in loadEffect()
1297 ALOGW("loadEffect() invalid uuid %s", node->value); in loadEffect()
1305 cnode *node = config_find(root, EFFECTS_TAG); in loadEffects() local
1306 if (node == NULL) { in loadEffects()
1309 node = node->first_child; in loadEffects()
1310 while (node) { in loadEffects()
1311 ALOGV("loadEffects() loading effect %s", node->name); in loadEffects()
1312 EffectDesc *effect = loadEffect(node); in loadEffects()
1314 node = node->next; in loadEffects()
1318 node = node->next; in loadEffects()