Home | History | Annotate | Download | only in audiopolicy

Lines Matching defs:node

5586     cnode *node = root->first_child;
5590 while (node) {
5591 if (strcmp(node->name, SAMPLING_RATES_TAG) == 0) {
5592 profile->loadSamplingRates((char *)node->value);
5593 } else if (strcmp(node->name, FORMATS_TAG) == 0) {
5594 profile->loadFormats((char *)node->value);
5595 } else if (strcmp(node->name, CHANNELS_TAG) == 0) {
5596 profile->loadInChannels((char *)node->value);
5597 } else if (strcmp(node->name, DEVICES_TAG) == 0) {
5598 profile->mSupportedDevices.loadDevicesFromName((char *)node->value,
5600 } else if (strcmp(node->name, FLAGS_TAG) == 0) {
5601 profile->mFlags = parseInputFlagNames((char *)node->value);
5602 } else if (strcmp(node->name, GAINS_TAG) == 0) {
5603 profile->loadGains(node);
5605 node = node->next;
5632 cnode *node = root->first_child;
5636 while (node) {
5637 if (strcmp(node->name, SAMPLING_RATES_TAG) == 0) {
5638 profile->loadSamplingRates((char *)node->value);
5639 } else if (strcmp(node->name, FORMATS_TAG) == 0) {
5640 profile->loadFormats((char *)node->value);
5641 } else if (strcmp(node->name, CHANNELS_TAG) == 0) {
5642 profile->loadOutChannels((char *)node->value);
5643 } else if (strcmp(node->name, DEVICES_TAG) == 0) {
5644 profile->mSupportedDevices.loadDevicesFromName((char *)node->value,
5646 } else if (strcmp(node->name, FLAGS_TAG) == 0) {
5647 profile->mFlags = parseOutputFlagNames((char *)node->value);
5648 } else if (strcmp(node->name, GAINS_TAG) == 0) {
5649 profile->loadGains(node);
5651 node = node->next;
5678 cnode *node = root->first_child;
5681 while (node) {
5682 if (strcmp(node->name, DEVICE_TYPE) == 0) {
5683 type = parseDeviceNames((char *)node->value);
5686 node = node->next;
5696 node = root->first_child;
5697 while (node) {
5698 if (strcmp(node->name, DEVICE_ADDRESS) == 0) {
5699 deviceDesc->mAddress = String8((char *)node->value);
5700 } else if (strcmp(node->name, CHANNELS_TAG) == 0) {
5702 deviceDesc->loadInChannels((char *)node->value);
5704 deviceDesc->loadOutChannels((char *)node->value);
5706 } else if (strcmp(node->name, GAINS_TAG) == 0) {
5707 deviceDesc->loadGains(node);
5709 node = node->next;
5964 cnode *node = root->first_child;
5968 while (node) {
5969 if (strcmp(node->name, GAIN_MODE) == 0) {
5970 gain->mGain.mode = loadGainMode((char *)node->value);
5971 } else if (strcmp(node->name, GAIN_CHANNELS) == 0) {
5976 (char *)node->value);
5981 (char *)node->value);
5983 } else if (strcmp(node->name, GAIN_MIN_VALUE) == 0) {
5984 gain->mGain.min_value = atoi((char *)node->value);
5985 } else if (strcmp(node->name, GAIN_MAX_VALUE) == 0) {
5986 gain->mGain.max_value = atoi((char *)node->value);
5987 } else if (strcmp(node->name, GAIN_DEFAULT_VALUE) == 0) {
5988 gain->mGain.default_value = atoi((char *)node->value);
5989 } else if (strcmp(node->name, GAIN_STEP_VALUE) == 0) {
5990 gain->mGain.step_value = atoi((char *)node->value);
5991 } else if (strcmp(node->name, GAIN_MIN_RAMP_MS) == 0) {
5992 gain->mGain.min_ramp_ms = atoi((char *)node->value);
5993 } else if (strcmp(node->name, GAIN_MAX_RAMP_MS) == 0) {
5994 gain->mGain.max_ramp_ms = atoi((char *)node->value);
5996 node = node->next;
6010 cnode *node = root->first_child;
6012 while (node) {
6013 ALOGV("loadGains() loading gain %s", node->name);
6014 loadGain(node, index++);
6015 node = node->next;
7054 cnode *node;
7057 node = config_find(root, DEVICES_TAG);
7058 if (node != NULL) {
7059 node = node->first_child;
7060 while (node) {
7061 ALOGV("loadHwModule() loading device %s", node->name);
7062 status_t tmpStatus = module->loadDevice(node);
7066 node = node->next;
7069 node = config_find(root, OUTPUTS_TAG);
7070 if (node != NULL) {
7071 node = node->first_child;
7072 while (node) {
7073 ALOGV("loadHwModule() loading output %s", node->name);
7074 status_t tmpStatus = module->loadOutput(node);
7078 node = node->next;
7081 node = config_find(root, INPUTS_TAG);
7082 if (node != NULL) {
7083 node = node->first_child;
7084 while (node) {
7085 ALOGV("loadHwModule() loading input %s", node->name);
7086 status_t tmpStatus = module->loadInput(node);
7090 node = node->next;
7102 cnode *node = config_find(root, AUDIO_HW_MODULE_TAG);
7103 if (node == NULL) {
7107 node = node->first_child;
7108 while (node) {
7109 ALOGV("loadHwModules() loading module %s", node->name);
7110 loadHwModule(node);
7111 node = node->next;
7117 cnode *node = config_find(root, GLOBAL_CONFIG_TAG);
7119 if (node == NULL) {
7127 node = node->first_child;
7128 while (node) {
7129 if (strcmp(ATTACHED_OUTPUT_DEVICES_TAG, node->name) == 0) {
7130 mAvailableOutputDevices.loadDevicesFromName((char *)node->value,
7134 } else if (strcmp(DEFAULT_OUTPUT_DEVICE_TAG, node->name) == 0) {
7137 (char *)node->value);
7144 } else if (strcmp(ATTACHED_INPUT_DEVICES_TAG, node->name) == 0) {
7145 mAvailableInputDevices.loadDevicesFromName((char *)node->value,
7148 } else if (strcmp(SPEAKER_DRC_ENABLED_TAG, node->name) == 0) {
7149 mSpeakerDrcEnabled = stringToBool((char *)node->value);
7151 } else if (strcmp(AUDIO_HAL_VERSION_TAG, node->name) == 0) {
7153 sscanf((char *)node->value, "%u.%u", &major, &minor);
7158 node = node->next;