Home
last modified time | relevance | path

Searched refs:strlcpy (Results 1 – 25 of 258) sorted by relevance

1234567891011

/hardware/qcom/display/msm8994/libhwcomposer/
Dhwc_dump_layers.cpp70 strlcpy(mDisplayName, "external", sizeof(mDisplayName)); in HwcDebug()
72 strlcpy(mDisplayName, "primary", sizeof(mDisplayName)); in HwcDebug()
123 strlcpy(mDumpPropStrPng, dumpPropStr, sizeof(mDumpPropStrPng)); in needToDumpLayers()
153 strlcpy(mDumpPropStrRaw, dumpPropStr, sizeof(mDumpPropStrRaw)); in needToDumpLayers()
386 strlcpy(pixFormatStr, "RGBA_8888", sizeof(pixFormatStr)); in getHalPixelFormatStr()
389 strlcpy(pixFormatStr, "RGBX_8888", sizeof(pixFormatStr)); in getHalPixelFormatStr()
392 strlcpy(pixFormatStr, "RGB_888", sizeof(pixFormatStr)); in getHalPixelFormatStr()
395 strlcpy(pixFormatStr, "RGB_565", sizeof(pixFormatStr)); in getHalPixelFormatStr()
398 strlcpy(pixFormatStr, "BGRA_8888", sizeof(pixFormatStr)); in getHalPixelFormatStr()
401 strlcpy(pixFormatStr, "RGBA_5551", sizeof(pixFormatStr)); in getHalPixelFormatStr()
[all …]
/hardware/qcom/display/msm8084/libhwcomposer/
Dhwc_dump_layers.cpp66 strlcpy(mDisplayName, "external", sizeof(mDisplayName)); in HwcDebug()
68 strlcpy(mDisplayName, "primary", sizeof(mDisplayName)); in HwcDebug()
119 strlcpy(mDumpPropStrPng, dumpPropStr, sizeof(mDumpPropStrPng)); in needToDumpLayers()
149 strlcpy(mDumpPropStrRaw, dumpPropStr, sizeof(mDumpPropStrRaw)); in needToDumpLayers()
379 strlcpy(pixFormatStr, "RGBA_8888", sizeof(pixFormatStr)); in getHalPixelFormatStr()
382 strlcpy(pixFormatStr, "RGBX_8888", sizeof(pixFormatStr)); in getHalPixelFormatStr()
385 strlcpy(pixFormatStr, "RGB_888", sizeof(pixFormatStr)); in getHalPixelFormatStr()
388 strlcpy(pixFormatStr, "RGB_565", sizeof(pixFormatStr)); in getHalPixelFormatStr()
391 strlcpy(pixFormatStr, "BGRA_8888", sizeof(pixFormatStr)); in getHalPixelFormatStr()
394 strlcpy(pixFormatStr, "YV12", sizeof(pixFormatStr)); in getHalPixelFormatStr()
[all …]
/hardware/qcom/display/msm8226/libhwcomposer/
Dhwc_dump_layers.cpp66 strlcpy(mDisplayName, "external", sizeof(mDisplayName)); in HwcDebug()
68 strlcpy(mDisplayName, "primary", sizeof(mDisplayName)); in HwcDebug()
119 strlcpy(mDumpPropStrPng, dumpPropStr, sizeof(mDumpPropStrPng)); in needToDumpLayers()
149 strlcpy(mDumpPropStrRaw, dumpPropStr, sizeof(mDumpPropStrRaw)); in needToDumpLayers()
378 strlcpy(pixFormatStr, "RGBA_8888", sizeof(pixFormatStr)); in getHalPixelFormatStr()
381 strlcpy(pixFormatStr, "RGBX_8888", sizeof(pixFormatStr)); in getHalPixelFormatStr()
384 strlcpy(pixFormatStr, "RGB_888", sizeof(pixFormatStr)); in getHalPixelFormatStr()
387 strlcpy(pixFormatStr, "RGB_565", sizeof(pixFormatStr)); in getHalPixelFormatStr()
390 strlcpy(pixFormatStr, "BGRA_8888", sizeof(pixFormatStr)); in getHalPixelFormatStr()
393 strlcpy(pixFormatStr, "YV12", sizeof(pixFormatStr)); in getHalPixelFormatStr()
[all …]
/hardware/qcom/sdm845/gps/sdm845/utils/
Dloc_cfg.cpp129 strlcpy((char*) config_entry->param_ptr, in loc_set_config_entry()
817 strlcpy(child_proc[j].name[0], conf.proc_name, sizeof (child_proc[j].name[0])); in loc_read_process_conf()
926 strlcpy (child_proc[j].args[i++], temp_arg, sizeof (child_proc[j].args[i++])); in loc_read_process_conf()
937 strlcpy(child_proc[j].args[i++], arg_gtp_wifi, in loc_read_process_conf()
939 strlcpy(child_proc[j].args[i++], arg_basic, in loc_read_process_conf()
943 strlcpy(child_proc[j].args[i++], arg_gtp_wifi, in loc_read_process_conf()
945 strlcpy(child_proc[j].args[i++], arg_premium, in loc_read_process_conf()
950 strlcpy(child_proc[j].args[i++], arg_gtp_wifi, in loc_read_process_conf()
952 strlcpy(child_proc[j].args[i++], arg_disabled, in loc_read_process_conf()
959 strlcpy(child_proc[j].args[i++], arg_gtp_ap_cell, in loc_read_process_conf()
[all …]
/hardware/qcom/audio/hal/msm8916/
Dhw_info.c46 strlcpy(hw_info->name, "msm8x16", sizeof(hw_info->name)); in update_hardware_info_8x16()
49 strlcpy(hw_info->name, "msm8909", sizeof(hw_info->name)); in update_hardware_info_8x16()
51 strlcpy(hw_info->name, "msm8909", sizeof(hw_info->name)); in update_hardware_info_8x16()
54 strlcpy(hw_info->name, "msm8952", sizeof(hw_info->name)); in update_hardware_info_8x16()
56 strlcpy(hw_info->name, "msm8952", sizeof(hw_info->name)); in update_hardware_info_8x16()
77 strlcpy(hw_info->type, "", sizeof(hw_info->type)); in hw_info_init()
78 strlcpy(hw_info->name, "", sizeof(hw_info->name)); in hw_info_init()
81 strlcpy(hw_info->dev_extn, "", sizeof(hw_info->dev_extn)); in hw_info_init()
/hardware/qcom/sm8150/gps/pla/oe/
Dloc_pla.h66 #define strlcpy g_strlcpy macro
69 #define strlcpy strncpy
91 strlcpy(value, default_value, PROPERTY_VALUE_MAX - 1); in property_get()
/hardware/qcom/sm8150/gps/utils/
Dloc_cfg.cpp162 strlcpy((char*) config_entry->param_ptr, in loc_set_config_entry()
783 strlcpy(child_proc[j].name[0], conf.proc_name, sizeof (child_proc[j].name[0])); in loc_read_process_conf()
890 strlcpy (child_proc[j].args[i++], temp_arg, sizeof (child_proc[j].args[i++])); in loc_read_process_conf()
901 strlcpy(child_proc[j].args[i++], arg_gtp_wifi, in loc_read_process_conf()
903 strlcpy(child_proc[j].args[i++], arg_basic, in loc_read_process_conf()
907 strlcpy(child_proc[j].args[i++], arg_gtp_wifi, in loc_read_process_conf()
909 strlcpy(child_proc[j].args[i++], arg_premium, in loc_read_process_conf()
914 strlcpy(child_proc[j].args[i++], arg_gtp_wifi, in loc_read_process_conf()
916 strlcpy(child_proc[j].args[i++], arg_disabled, in loc_read_process_conf()
923 strlcpy(child_proc[j].args[i++], arg_gtp_modem_cell, in loc_read_process_conf()
[all …]
/hardware/qcom/audio/legacy/alsa_sound/
DAudioStreamInALSA.cpp152 strlcpy(mHandle->useCase, SND_USE_CASE_MOD_CAPTURE_VOICE, in read()
158 strlcpy(mHandle->useCase, SND_USE_CASE_MOD_CAPTURE_VOICE_UL_DL, in read()
165 strlcpy(mHandle->useCase, SND_USE_CASE_MOD_CAPTURE_VOICE, in read()
171 strlcpy(mHandle->useCase, SND_USE_CASE_MOD_CAPTURE_VOICE_DL, in read()
177 strlcpy(mHandle->useCase, SND_USE_CASE_MOD_CAPTURE_FM, sizeof(mHandle->useCase)); in read()
179strlcpy(mHandle->useCase, SND_USE_CASE_MOD_CAPTURE_A2DP_FM, sizeof(mHandle->useCase)); in read()
182 strlcpy(mHandle->useCase, SND_USE_CASE_MOD_PLAY_VOIP, sizeof(mHandle->useCase)); in read()
187strlcpy(mHandle->useCase, SND_USE_CASE_MOD_CAPTURE_LOWLATENCY_MUSIC, sizeof(mHandle->useCase)); in read()
189strlcpy(mHandle->useCase, SND_USE_CASE_MOD_CAPTURE_MUSIC, sizeof(mHandle->useCase)); in read()
201 strlcpy(mHandle->useCase, SND_USE_CASE_VERB_INCALL_REC, in read()
[all …]
DAudioHardwareALSA.cpp791strlcpy(alsa_handle.useCase, SND_USE_CASE_VERB_IP_VOICECALL, sizeof(alsa_handle.useCase)); in openOutputStream()
793 strlcpy(alsa_handle.useCase, SND_USE_CASE_MOD_PLAY_VOIP, sizeof(alsa_handle.useCase)); in openOutputStream()
882 strlcpy(alsa_handle.useCase, SND_USE_CASE_VERB_HIFI2 , sizeof(alsa_handle.useCase)); in openOutputStream()
884 strlcpy(alsa_handle.useCase, SND_USE_CASE_MOD_PLAY_MUSIC2, sizeof(alsa_handle.useCase)); in openOutputStream()
936 strlcpy(alsa_handle.useCase, SND_USE_CASE_VERB_HIFI, sizeof(alsa_handle.useCase)); in openOutputStream()
938strlcpy(alsa_handle.useCase, SND_USE_CASE_MOD_PLAY_MUSIC, sizeof(alsa_handle.useCase)); in openOutputStream()
945strlcpy(alsa_handle.useCase, SND_USE_CASE_VERB_HIFI_LOWLATENCY_MUSIC, sizeof(alsa_handle.useCase)); in openOutputStream()
947strlcpy(alsa_handle.useCase, SND_USE_CASE_MOD_PLAY_LOWLATENCY_MUSIC, sizeof(alsa_handle.useCase)); in openOutputStream()
1031strlcpy(alsa_handle.useCase, SND_USE_CASE_VERB_HIFI_TUNNEL, sizeof(alsa_handle.useCase)); in openOutputSession()
1033 strlcpy(alsa_handle.useCase, SND_USE_CASE_MOD_PLAY_TUNNEL, sizeof(alsa_handle.useCase)); in openOutputSession()
[all …]
DAudioStreamOutALSA.cpp132 strlcpy(mHandle->useCase, SND_USE_CASE_VERB_IP_VOICECALL, in write()
135 strlcpy(mHandle->useCase, SND_USE_CASE_VERB_HIFI2, in write()
138 strlcpy(mHandle->useCase, SND_USE_CASE_VERB_HIFI, in write()
141 strlcpy(mHandle->useCase, SND_USE_CASE_VERB_HIFI_LOWLATENCY_MUSIC, in write()
146 strlcpy(mHandle->useCase, SND_USE_CASE_MOD_PLAY_VOIP, in write()
149 strlcpy(mHandle->useCase, SND_USE_CASE_MOD_PLAY_MUSIC2, in write()
152 strlcpy(mHandle->useCase, SND_USE_CASE_MOD_PLAY_MUSIC, in write()
155 strlcpy(mHandle->useCase, SND_USE_CASE_MOD_PLAY_LOWLATENCY_MUSIC, in write()
/hardware/qcom/sdm845/gps/sdm845/pla/oe/
Dloc_pla.h48 #define strlcpy g_strlcpy macro
51 #define strlcpy strncpy
/hardware/qcom/audio/hal/msm8974/
Dhw_info.c70 strlcpy(hw_info->name, tmp_handle->device, sizeof(hw_info->name)); in update_hardware_info_8996()
112 strlcpy(hw_info->dev_extn, "", sizeof(hw_info->dev_extn)); in hw_info_init()
113 strlcpy(hw_info->type, "", sizeof(hw_info->type)); in hw_info_init()
114 strlcpy(hw_info->name, "", sizeof(hw_info->name)); in hw_info_init()
/hardware/qcom/sdm845/data/ipacfg-mgr/ipacm/src/
DIPACM_Neighbor.cpp199 strlcpy(data->iface_name, neighbor_client[i].iface_name, sizeof(data->iface_name)); in event_callback()
249strlcpy(neighbor_client[i].iface_name, data->iface_name, sizeof(neighbor_client[i].iface_name)); in event_callback()
267 strlcpy(neighbor_client[num_neighbor_client_temp].iface_name, in event_callback()
290 strlcpy(neighbor_client[circular_index].iface_name, in event_callback()
337 strlcpy(neighbor_client[i].iface_name, neighbor_client[i+1].iface_name, in event_callback()
377 strlcpy(data->iface_name, neighbor_client[i].iface_name, sizeof(data->iface_name)); in event_callback()
451strlcpy(neighbor_client[i].iface_name, data->iface_name, sizeof(neighbor_client[i].iface_name)); in event_callback()
478 strlcpy(data_all->iface_name, neighbor_client[i].iface_name, sizeof(data_all->iface_name)); in event_callback()
511 strlcpy(neighbor_client[i].iface_name, neighbor_client[i+1].iface_name, in event_callback()
535 strlcpy(neighbor_client[num_neighbor_client_temp].iface_name, data->iface_name, in event_callback()
[all …]
/hardware/qcom/sm8150/data/ipacfg-mgr/ipacm/src/
DIPACM_Neighbor.cpp199 strlcpy(data->iface_name, neighbor_client[i].iface_name, sizeof(data->iface_name)); in event_callback()
248strlcpy(neighbor_client[i].iface_name, data->iface_name, sizeof(neighbor_client[i].iface_name)); in event_callback()
267 strlcpy(neighbor_client[num_neighbor_client_temp].iface_name, in event_callback()
290 strlcpy(neighbor_client[circular_index].iface_name, in event_callback()
337 strlcpy(neighbor_client[i].iface_name, neighbor_client[i + 1].iface_name, in event_callback()
377 strlcpy(data->iface_name, neighbor_client[i].iface_name, sizeof(data->iface_name)); in event_callback()
453strlcpy(neighbor_client[i].iface_name, data->iface_name, sizeof(neighbor_client[i].iface_name)); in event_callback()
480 strlcpy(data_all->iface_name, neighbor_client[i].iface_name, sizeof(data_all->iface_name)); in event_callback()
513 strlcpy(neighbor_client[i].iface_name, neighbor_client[i + 1].iface_name, in event_callback()
537 strlcpy(neighbor_client[num_neighbor_client_temp].iface_name, data->iface_name, in event_callback()
[all …]
/hardware/qcom/audio/hal/audio_extn/
Daudio_extn.c65 strlcpy(cur_snd_card_split.device, device, HW_INFO_ARRAY_MAX_SIZE); in audio_extn_set_snd_card_split()
72 strlcpy(cur_snd_card_split.snd_card, snd_card, HW_INFO_ARRAY_MAX_SIZE); in audio_extn_set_snd_card_split()
79 strlcpy(cur_snd_card_split.form_factor, form_factor, HW_INFO_ARRAY_MAX_SIZE); in audio_extn_set_snd_card_split()
/hardware/qcom/audio/legacy/libalsa-intf/
Dalsa_ucm.c39 #define strlcpy g_strlcpy macro
300 strlcpy(ident, identifier, sizeof(ident)); in snd_use_case_get()
479 strlcpy(ident, identifier, sizeof(ident)); in snd_use_case_geti()
1011 strlcpy(use_case, ident, sizeof(use_case)); in set_controls_of_usecase_for_all_devices()
1079 strlcpy(use_case, ident, sizeof(use_case)); in set_controls_of_usecase_for_device()
1134 strlcpy(use_case, uc_mgr->card_ctxt_ptr->current_verb, in set_controls_of_device_for_all_usecases()
1176 strlcpy(use_case, uc_mgr->card_ctxt_ptr->current_verb, in set_controls_of_device_for_all_usecases()
1206 strlcpy(use_case, ident_value, sizeof(use_case)); in set_controls_of_device_for_all_usecases()
1248 strlcpy(use_case, ident_value, sizeof(use_case)); in set_controls_of_device_for_all_usecases()
1324 strlcpy(use_case, usecase, sizeof(use_case)); in set_controls_of_device_for_usecase()
[all …]
/hardware/qcom/sdm845/gps/msm8960/loc_api/libloc_api_50001/
Dloc_eng_nmea.cpp556 strlcpy(sentence, "$GPGSA,A,1,,,,,,,,,,,,,,,", sizeof(sentence)); in loc_eng_nmea_generate_pos()
560 strlcpy(sentence, "$GPVTG,,T,,M,,N,,K,N", sizeof(sentence)); in loc_eng_nmea_generate_pos()
564 strlcpy(sentence, "$GPRMC,,V,,,,,,,,,,N", sizeof(sentence)); in loc_eng_nmea_generate_pos()
568 strlcpy(sentence, "$GPGGA,,,,,,0,,,,,,,,", sizeof(sentence)); in loc_eng_nmea_generate_pos()
615 strlcpy(sentence, "$GPGSV,1,1,0,", sizeof(sentence)); in loc_eng_nmea_generate_sv()
684 strlcpy(sentence, "$GPGSA,A,1,,,,,,,,,,,,,,,", sizeof(sentence)); in loc_eng_nmea_generate_sv()
688 strlcpy(sentence, "$GPVTG,,T,,M,,N,,K,N", sizeof(sentence)); in loc_eng_nmea_generate_sv()
692 strlcpy(sentence, "$GPRMC,,V,,,,,,,,,,N", sizeof(sentence)); in loc_eng_nmea_generate_sv()
696 strlcpy(sentence, "$GPGGA,,,,,,0,,,,,,,,", sizeof(sentence)); in loc_eng_nmea_generate_sv()
/hardware/qcom/gps/msm8960/loc_api/libloc_api_50001/
Dloc_eng_nmea.cpp556 strlcpy(sentence, "$GPGSA,A,1,,,,,,,,,,,,,,,", sizeof(sentence)); in loc_eng_nmea_generate_pos()
560 strlcpy(sentence, "$GPVTG,,T,,M,,N,,K,N", sizeof(sentence)); in loc_eng_nmea_generate_pos()
564 strlcpy(sentence, "$GPRMC,,V,,,,,,,,,,N", sizeof(sentence)); in loc_eng_nmea_generate_pos()
568 strlcpy(sentence, "$GPGGA,,,,,,0,,,,,,,,", sizeof(sentence)); in loc_eng_nmea_generate_pos()
615 strlcpy(sentence, "$GPGSV,1,1,0,", sizeof(sentence)); in loc_eng_nmea_generate_sv()
684 strlcpy(sentence, "$GPGSA,A,1,,,,,,,,,,,,,,,", sizeof(sentence)); in loc_eng_nmea_generate_sv()
688 strlcpy(sentence, "$GPVTG,,T,,M,,N,,K,N", sizeof(sentence)); in loc_eng_nmea_generate_sv()
692 strlcpy(sentence, "$GPRMC,,V,,,,,,,,,,N", sizeof(sentence)); in loc_eng_nmea_generate_sv()
696 strlcpy(sentence, "$GPGGA,,,,,,0,,,,,,,,", sizeof(sentence)); in loc_eng_nmea_generate_sv()
/hardware/qcom/sm8150/vr/
Dvr.c245 strlcpy(config->cfg_desc, config_name, max_string_size); in disable_config()
246 strlcpy(config->algo_type, algo_type, max_string_size); in disable_config()
247 strlcpy(config->fields[0].field_name, "disable", max_string_size); in disable_config()
279 strlcpy(config->cfg_desc, config_name, max_string_size); in enable_config()
280 strlcpy(config->algo_type, algo_type, max_string_size); in enable_config()
281 strlcpy(config->fields[0].field_name, "disable", max_string_size); in enable_config()
/hardware/qcom/sdm845/vr/
Dvr.c245 strlcpy(config->cfg_desc, config_name, max_string_size); in disable_config()
246 strlcpy(config->algo_type, algo_type, max_string_size); in disable_config()
247 strlcpy(config->fields[0].field_name, "disable", max_string_size); in disable_config()
279 strlcpy(config->cfg_desc, config_name, max_string_size); in enable_config()
280 strlcpy(config->algo_type, algo_type, max_string_size); in enable_config()
281 strlcpy(config->fields[0].field_name, "disable", max_string_size); in enable_config()
/hardware/qcom/gps/msm8909w_3100/utils/platform_lib_abstractions/loc_pla/include/
Dplatform_lib_macros.h43 #define strlcpy g_strlcpy macro
46 #define strlcpy strncpy
/hardware/qcom/gps/msm8998/utils/platform_lib_abstractions/loc_pla/include/
Dplatform_lib_macros.h43 #define strlcpy g_strlcpy macro
46 #define strlcpy strncpy
/hardware/qcom/sdm845/gps/msm8998/utils/platform_lib_abstractions/loc_pla/include/
Dplatform_lib_macros.h43 #define strlcpy g_strlcpy macro
46 #define strlcpy strncpy
/hardware/qcom/gps/loc_api/libloc_api_50001/
Dloc_eng_nmea.cpp563 strlcpy(sentence, "$GPGSA,A,1,,,,,,,,,,,,,,,", sizeof(sentence)); in loc_eng_nmea_generate_pos()
567 strlcpy(sentence, "$GPVTG,,T,,M,,N,,K,N", sizeof(sentence)); in loc_eng_nmea_generate_pos()
571 strlcpy(sentence, "$GPRMC,,V,,,,,,,,,,N", sizeof(sentence)); in loc_eng_nmea_generate_pos()
575 strlcpy(sentence, "$GPGGA,,,,,,0,,,,,,,,", sizeof(sentence)); in loc_eng_nmea_generate_pos()
643 strlcpy(sentence, "$GPGSV,1,1,0,", sizeof(sentence)); in loc_eng_nmea_generate_sv()
721 strlcpy(sentence, "$GLGSV,1,1,0,", sizeof(sentence)); in loc_eng_nmea_generate_sv()
795 strlcpy(sentence, "$GPGSA,A,1,,,,,,,,,,,,,,,", sizeof(sentence)); in loc_eng_nmea_generate_sv()
799 strlcpy(sentence, "$GPVTG,,T,,M,,N,,K,N", sizeof(sentence)); in loc_eng_nmea_generate_sv()
803 strlcpy(sentence, "$GPRMC,,V,,,,,,,,,,N", sizeof(sentence)); in loc_eng_nmea_generate_sv()
807 strlcpy(sentence, "$GPGGA,,,,,,0,,,,,,,,", sizeof(sentence)); in loc_eng_nmea_generate_sv()
/hardware/qcom/sdm845/gps/msm8994/loc_api/libloc_api_50001/
Dloc_eng_nmea.cpp564 strlcpy(sentence, "$GPGSA,A,1,,,,,,,,,,,,,,,", sizeof(sentence)); in loc_eng_nmea_generate_pos()
568 strlcpy(sentence, "$GPVTG,,T,,M,,N,,K,N", sizeof(sentence)); in loc_eng_nmea_generate_pos()
572 strlcpy(sentence, "$GPRMC,,V,,,,,,,,,,N", sizeof(sentence)); in loc_eng_nmea_generate_pos()
576 strlcpy(sentence, "$GPGGA,,,,,,0,,,,,,,,", sizeof(sentence)); in loc_eng_nmea_generate_pos()
644 strlcpy(sentence, "$GPGSV,1,1,0,", sizeof(sentence)); in loc_eng_nmea_generate_sv()
722 strlcpy(sentence, "$GLGSV,1,1,0,", sizeof(sentence)); in loc_eng_nmea_generate_sv()
796 strlcpy(sentence, "$GPGSA,A,1,,,,,,,,,,,,,,,", sizeof(sentence)); in loc_eng_nmea_generate_sv()
800 strlcpy(sentence, "$GPVTG,,T,,M,,N,,K,N", sizeof(sentence)); in loc_eng_nmea_generate_sv()
804 strlcpy(sentence, "$GPRMC,,V,,,,,,,,,,N", sizeof(sentence)); in loc_eng_nmea_generate_sv()
808 strlcpy(sentence, "$GPGGA,,,,,,0,,,,,,,,", sizeof(sentence)); in loc_eng_nmea_generate_sv()

1234567891011