Lines Matching refs:param
590 size_t AudioPolicyEffects::growParamSize(char **param, in growParamSize() argument
602 char *newParam = (char *)realloc(*param, *totSize); in growParamSize()
607 *param = newParam; in growParamSize()
615 char **param, in readParamValue() argument
623 pos = growParamSize(param, sizeof(short), curSize, totSize); in readParamValue()
627 *(short *)(*param + pos) = (short)atoi(node->value); in readParamValue()
628 ALOGV("readParamValue() reading short %d", *(short *)(*param + pos)); in readParamValue()
631 pos = growParamSize(param, sizeof(int), curSize, totSize); in readParamValue()
635 *(int *)(*param + pos) = atoi(node->value); in readParamValue()
636 ALOGV("readParamValue() reading int %d", *(int *)(*param + pos)); in readParamValue()
639 pos = growParamSize(param, sizeof(float), curSize, totSize); in readParamValue()
643 *(float *)(*param + pos) = (float)atof(node->value); in readParamValue()
644 ALOGV("readParamValue() reading float %f",*(float *)(*param + pos)); in readParamValue()
647 pos = growParamSize(param, sizeof(bool), curSize, totSize); in readParamValue()
652 *(bool *)(*param + pos) = true; in readParamValue()
654 *(bool *)(*param + pos) = false; in readParamValue()
657 *(bool *)(*param + pos) ? "true" : "false"); in readParamValue()
663 char *newParam = (char *)realloc(*param, *totSize); in readParamValue()
669 *param = newParam; in readParamValue()
671 strncpy(*param + *curSize, node->value, len); in readParamValue()
673 (*param)[*curSize] = '\0'; in readParamValue()
674 ALOGV("readParamValue() reading string %s", *param + *curSize - len); in readParamValue()
684 cnode *param; in loadEffectParameter() local
696 param = config_find(root, PARAM_TAG); in loadEffectParameter()
698 if (param == NULL && value == NULL) { in loadEffectParameter()
700 param = root->first_child; in loadEffectParameter()
701 if (param != NULL) { in loadEffectParameter()
705 int *ptr2 = (int *)((char *)param + sizeof(effect_param_t)); in loadEffectParameter()
708 *ptr++ = atoi(param->name); in loadEffectParameter()
709 *ptr = atoi(param->value); in loadEffectParameter()
715 if (param == NULL || value == NULL) { in loadEffectParameter()
722 param = param->first_child; in loadEffectParameter()
723 while (param) { in loadEffectParameter()
724 ALOGV("loadEffectParameter() reading param of type %s", param->name); in loadEffectParameter()
726 readParamValue(param, (char **)&fx_param, &curSize, &totSize); in loadEffectParameter()
731 param = param->next; in loadEffectParameter()
762 effect_param_t *param = loadEffectParameter(node); in loadEffectParameters() local
763 if (param != NULL) { in loadEffectParameters()
764 params.add(param); in loadEffectParameters()