Home
last modified time | relevance | path

Searched refs:strdup (Results 1 – 25 of 80) sorted by relevance

1234

/hardware/google/gfxstream/guest/mesa/src/util/
Du_process.c80 program_name = strdup(name + 1); in __getProgramName()
86 program_name = strdup(arg+1); in __getProgramName()
96 return strdup(arg+1); in __getProgramName()
98 return strdup(program_invocation_name); in __getProgramName()
104 return strdup(program_invocation_short_name); in __getProgramName()
118 return strdup(program_name); in __getProgramName()
136 char *n = strdup(e); in __getProgramName()
138 progname = strdup(basename(n)); in __getProgramName()
156 return strdup(progname); in __getProgramName()
166 return strdup(info.name); in __getProgramName()
[all …]
Du_string.h117 #define strdup _strdup macro
Du_debug_stack_android.cpp48 entry = _mesa_hash_table_insert_pre_hashed(symbol_table, hash, symbol, strdup(symbol)); in intern_symbol()
/hardware/qcom/audio/legacy/alsa_sound/
Dalsa_default.cpp1325 return strdup(SND_USE_CASE_DEV_TTY_HEADSET_RX); in getUCMDevice()
1327 return strdup(SND_USE_CASE_DEV_TTY_FULL_RX); in getUCMDevice()
1329 return strdup(SND_USE_CASE_DEV_TTY_HANDSET_RX); /* HANDSET RX */ in getUCMDevice()
1333 return strdup(SND_USE_CASE_DEV_PROXY_RX); /* PROXY RX */ in getUCMDevice()
1338 … return strdup(SND_USE_CASE_DEV_SPEAKER_ANC_HEADSET); /* COMBO SPEAKER+ANC HEADSET RX */ in getUCMDevice()
1340 return strdup(SND_USE_CASE_DEV_SPEAKER_HEADSET); /* COMBO SPEAKER+HEADSET RX */ in getUCMDevice()
1344 return strdup(SND_USE_CASE_DEV_HDMI_SPEAKER); in getUCMDevice()
1349 return strdup(SND_USE_CASE_DEV_SPEAKER_ANC_HEADSET); /* COMBO SPEAKER+ANC HEADSET RX */ in getUCMDevice()
1352 return strdup(SND_USE_CASE_DEV_SPEAKER_FM_TX); /* COMBO SPEAKER+FM_TX RX */ in getUCMDevice()
1357 … return strdup(SND_USE_CASE_DEV_VOC_EARPIECE_TMUS); /* Voice HANDSET RX for TMUS */ in getUCMDevice()
[all …]
/hardware/qcom/audio/hal/msm8974/
Dplatform.c1350 backend_tag_table[SND_DEVICE_IN_BT_SCO_MIC] = strdup("bt-sco"); in set_platform_defaults()
1351 backend_tag_table[SND_DEVICE_IN_BT_SCO_MIC_NREC] = strdup("bt-sco"); in set_platform_defaults()
1352 backend_tag_table[SND_DEVICE_OUT_BT_SCO] = strdup("bt-sco"); in set_platform_defaults()
1353 backend_tag_table[SND_DEVICE_OUT_HDMI] = strdup("hdmi"); in set_platform_defaults()
1354 backend_tag_table[SND_DEVICE_OUT_SPEAKER_AND_HDMI] = strdup("speaker-and-hdmi"); in set_platform_defaults()
1355 backend_tag_table[SND_DEVICE_OUT_BT_SCO_WB] = strdup("bt-sco-wb"); in set_platform_defaults()
1356 backend_tag_table[SND_DEVICE_IN_BT_SCO_MIC_WB] = strdup("bt-sco-wb"); in set_platform_defaults()
1357 backend_tag_table[SND_DEVICE_IN_BT_SCO_MIC_WB_NREC] = strdup("bt-sco-wb"); in set_platform_defaults()
1358 backend_tag_table[SND_DEVICE_OUT_VOICE_TX] = strdup("afe-proxy"); in set_platform_defaults()
1359 backend_tag_table[SND_DEVICE_IN_VOICE_RX] = strdup("afe-proxy"); in set_platform_defaults()
[all …]
/hardware/google/gfxstream/guest/mesa/src/util/tests/hash_table/
Dcollision.c44 const char *str1 = strdup("test1"); in main()
45 const char *str2 = strdup("test2"); in main()
46 const char *str3 = strdup("test3"); in main()
Dreplacement.c39 char *str1 = strdup("test1"); in main()
40 char *str2 = strdup("test1"); in main()
/hardware/interfaces/sensors/common/utils/
DconvertV2_1.h81 dst->name = strdup(src.name.c_str()); in convertToSensor()
82 dst->vendor = strdup(src.vendor.c_str()); in convertToSensor()
92 dst->stringType = strdup(src.typeAsString.c_str()); in convertToSensor()
93 dst->requiredPermission = strdup(src.requiredPermission.c_str()); in convertToSensor()
/hardware/google/gchips/gralloc4/src/hidl_common/
DMapperMetadata.h74 meta.name = strdup(name.c_str()); in AIMapper_MetadataType()
115 description = strdup(desc.description); in MetadataTypeDescription()
124 desc.description = strdup(description); in AIMapper_MetadataTypeDescription()
131 description = strdup(desc); in MetadataTypeDescription()
/hardware/google/gfxstream/host/gl/gl-host-common/opengl/
Demugl_config.cpp79 res.props[i].make = strdup(infos[i].make.c_str()); in emuglConfig_get_host_gpu_props()
80 res.props[i].model = strdup(infos[i].model.c_str()); in emuglConfig_get_host_gpu_props()
81 res.props[i].device_id = strdup(infos[i].device_id.c_str()); in emuglConfig_get_host_gpu_props()
82 res.props[i].revision_id = strdup(infos[i].revision_id.c_str()); in emuglConfig_get_host_gpu_props()
83 res.props[i].version = strdup(infos[i].version.c_str()); in emuglConfig_get_host_gpu_props()
84 res.props[i].renderer = strdup(infos[i].renderer.c_str()); in emuglConfig_get_host_gpu_props()
/hardware/google/gfxstream/host/gl/gl-host-common/
Dopengles.cpp295 return strdup(src); in strdupBaseString()
300 return strdup(src); in strdupBaseString()
342 *vendor = strdup(strings.vendor.c_str()); in android_getOpenglesHardwareStrings()
343 *renderer = strdup(strings.renderer.c_str()); in android_getOpenglesHardwareStrings()
344 *version = strdup(strings.version.c_str()); in android_getOpenglesHardwareStrings()
/hardware/qcom/audio/hal/msm8916/
Dplatform.c749 backend_table[SND_DEVICE_IN_BT_SCO_MIC] = strdup("bt-sco"); in set_platform_defaults()
750 backend_table[SND_DEVICE_IN_BT_SCO_MIC_WB] = strdup("bt-sco-wb"); in set_platform_defaults()
751 backend_table[SND_DEVICE_IN_BT_SCO_MIC_NREC] = strdup("bt-sco"); in set_platform_defaults()
752 backend_table[SND_DEVICE_IN_BT_SCO_MIC_WB_NREC] = strdup("bt-sco-wb"); in set_platform_defaults()
753 backend_table[SND_DEVICE_OUT_BT_SCO] = strdup("bt-sco"); in set_platform_defaults()
754 backend_table[SND_DEVICE_OUT_BT_SCO_WB] = strdup("bt-sco-wb"); in set_platform_defaults()
755 backend_table[SND_DEVICE_OUT_BT_A2DP] = strdup("bt-a2dp"); in set_platform_defaults()
756 backend_table[SND_DEVICE_OUT_SPEAKER_AND_BT_A2DP] = strdup("speaker-and-bt-a2dp"); in set_platform_defaults()
758 strdup("speaker-safe-and-bt-a2dp"); in set_platform_defaults()
759 backend_table[SND_DEVICE_OUT_HDMI] = strdup("hdmi"); in set_platform_defaults()
[all …]
/hardware/qcom/audio/hal/
Dacdb.c118 snd_card_name = strdup(mixer_get_name(mixer)); in acdb_init()
171 my_data->snd_card_name = strdup(value); in acdb_set_parameters()
/hardware/google/aemu/base/include/aemu/base/testing/
DUtils.h46 auto oldLocaleCopy = android::base::ScopedCPtr<char>(strdup(oldLocale));
/hardware/google/gfxstream/guest/mesa/src/util/tests/
Dprocess_test.c97 build_path = strdup(build_path); in test_util_get_process_exec_path()
/hardware/interfaces/sensors/1.0/default/
Dconvert.cpp48 dst->name = strdup(src.name.c_str()); in convertToSensor()
49 dst->vendor = strdup(src.vendor.c_str()); in convertToSensor()
59 dst->stringType = strdup(src.typeAsString.c_str()); in convertToSensor()
60 dst->requiredPermission = strdup(src.requiredPermission.c_str()); in convertToSensor()
/hardware/google/gfxstream/guest/fuchsia/
Dport.cc32 char *dup = strdup(file); in linux_log_prefix()
/hardware/qcom/gps/msm8998/android/
DAGnss.cpp125 config.assistanceServer.hostName = strdup(hostname.c_str()); in setServer()
/hardware/qcom/audio/hal/audio_extn/
Daudio_extn.c49 char *snd_card_name = strdup(in_snd_card_name); in audio_extn_set_snd_card_split()
/hardware/qcom/gps/msm8909w_3100/android/
DAGnss.cpp126 config.assistanceServer.hostName = strdup(hostname.c_str()); in setServer()
/hardware/ril/reference-ril/
Datchannel.c127 p_new->line = strdup(line); in addIntermediate()
222 sp_response->finalResponse = strdup(line); in handleFinalResponse()
448 line1 = strdup(line); in readerLoop()
/hardware/libhardware/modules/audio/
Daudio_hw.c140 return strdup(""); in out_get_parameters()
289 return strdup(""); in in_get_parameters()
422 return strdup(""); in adev_get_parameters()
/hardware/interfaces/sensors/aidl/convert/
Dconvert.cpp68 dst->name = strdup(src.name.c_str()); in convertToSensor()
69 dst->vendor = strdup(src.vendor.c_str()); in convertToSensor()
79 dst->stringType = strdup(src.typeAsString.c_str()); in convertToSensor()
80 dst->requiredPermission = strdup(src.requiredPermission.c_str()); in convertToSensor()
/hardware/qcom/sm7250/gps/android/1.0/
DAGnss.cpp194 config.assistanceServer.hostName = strdup(hostname.c_str()); in setServer()
/hardware/qcom/sm7150/gps/android/1.1/
DAGnss.cpp194 config.assistanceServer.hostName = strdup(hostname.c_str()); in setServer()

1234