Home
last modified time | relevance | path

Searched refs:str_value (Results 1 – 6 of 6) sorted by relevance

/hardware/qcom/audio/msm8909/hal/voice_extn/
Dvoice_extn.c441 char str_value[256] = {0}; in voice_extn_set_parameters() local
470 err = str_parms_get_str(parms, AUDIO_PARAMETER_KEY_DEVICE_MUTE, str_value, in voice_extn_set_parameters()
471 sizeof(str_value)); in voice_extn_set_parameters()
476 if (!strncmp("true", str_value, sizeof("true"))) { in voice_extn_set_parameters()
480 err = str_parms_get_str(parms, AUDIO_PARAMETER_KEY_DIRECTION, str_value, in voice_extn_set_parameters()
481 sizeof(str_value)); in voice_extn_set_parameters()
490 ret = platform_set_device_mute(adev->platform, mute, str_value); in voice_extn_set_parameters()
498 err = str_parms_get_str(parms, AUDIO_PARAMETER_KEY_IN_CALL, str_value, in voice_extn_set_parameters()
499 sizeof(str_value)); in voice_extn_set_parameters()
502 if (!strncmp("true", str_value, sizeof("true"))) { in voice_extn_set_parameters()
/hardware/libhardware/tests/vehicle/
Dvehicle-hal-tool.c95 printf("Value type: STRING\n Size: %d\n", data->value.str_value.len); in print_property()
97 char *ascii_out = (char *) malloc((data->value.str_value.len + 1) * sizeof(char)); in print_property()
98 memcpy(ascii_out, data->value.str_value.data, data->value.str_value.len); in print_property()
99 ascii_out[data->value.str_value.len] = '\0'; in print_property()
256 vehicle_data.value.str_value.len = strlen(data); in set_property()
257 vehicle_data.value.str_value.data = in set_property()
259 memcpy(vehicle_data.value.str_value.data, data, strlen(data) + 1); in set_property()
/hardware/libhardware/modules/vehicle/
Dvehicle.c204 r = alloc_vehicle_str_from_cstr(VEHICLE_MAKE, &(data->value.str_value)); in vdev_get()
253 free(data->value.str_value.data); in vdev_release_memory_from_get()
254 data->value.str_value.data = NULL; in vdev_release_memory_from_get()
291 ALOGD("Value type: STRING\n Size: %d\n", data->value.str_value.len); in vdev_set()
294 char *ascii_out = (char *) malloc ((data->value.str_value.len + 1) * sizeof (char)); in vdev_set()
295 memcpy(ascii_out, data->value.str_value.data, data->value.str_value.len); in vdev_set()
296 ascii_out[data->value.str_value.len] = '\0'; in vdev_set()
/hardware/qcom/audio/hal/voice_extn/
Dvoice_extn.c461 char str_value[256] = {0}; in voice_extn_set_parameters() local
490 err = str_parms_get_str(parms, AUDIO_PARAMETER_KEY_DEVICE_MUTE, str_value, in voice_extn_set_parameters()
491 sizeof(str_value)); in voice_extn_set_parameters()
496 if (!strncmp("true", str_value, sizeof("true"))) { in voice_extn_set_parameters()
500 err = str_parms_get_str(parms, AUDIO_PARAMETER_KEY_DIRECTION, str_value, in voice_extn_set_parameters()
501 sizeof(str_value)); in voice_extn_set_parameters()
510 ret = platform_set_device_mute(adev->platform, mute, str_value); in voice_extn_set_parameters()
/hardware/libhardware/tests/camera2/
DCameraMetadataTests.cpp101 std::string str_value(value); in TEST_F() local
103 if (str_value == "manta") in TEST_F()
/hardware/libhardware/include/hardware/
Dvehicle.h1504 vehicle_str_t str_value; member