Home
last modified time | relevance | path

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

123456

/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()
388 strlcpy(pixFormatStr, "RGBA_8888", sizeof(pixFormatStr)); in getHalPixelFormatStr()
391 strlcpy(pixFormatStr, "RGBX_8888", sizeof(pixFormatStr)); in getHalPixelFormatStr()
394 strlcpy(pixFormatStr, "RGB_888", sizeof(pixFormatStr)); in getHalPixelFormatStr()
397 strlcpy(pixFormatStr, "RGB_565", sizeof(pixFormatStr)); in getHalPixelFormatStr()
400 strlcpy(pixFormatStr, "BGRA_8888", sizeof(pixFormatStr)); in getHalPixelFormatStr()
403 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()
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/msm8909/libhwcomposer/
Dhwc_dump_layers.cpp71 strlcpy(mDisplayName, "external", sizeof(mDisplayName)); in HwcDebug()
73 strlcpy(mDisplayName, "primary", sizeof(mDisplayName)); in HwcDebug()
124 strlcpy(mDumpPropStrPng, dumpPropStr, sizeof(mDumpPropStrPng)); in needToDumpLayers()
154 strlcpy(mDumpPropStrRaw, dumpPropStr, sizeof(mDumpPropStrRaw)); in needToDumpLayers()
387 strlcpy(pixFormatStr, "RGBA_8888", arraySize); in getHalPixelFormatStr()
390 strlcpy(pixFormatStr, "RGBX_8888", arraySize); in getHalPixelFormatStr()
393 strlcpy(pixFormatStr, "RGB_888", arraySize); in getHalPixelFormatStr()
396 strlcpy(pixFormatStr, "RGB_565", arraySize); in getHalPixelFormatStr()
399 strlcpy(pixFormatStr, "BGRA_8888", arraySize); in getHalPixelFormatStr()
402 strlcpy(pixFormatStr, "YV12", arraySize); in getHalPixelFormatStr()
[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()
52 strlcpy(hw_info->name, "msm8952", sizeof(hw_info->name)); in update_hardware_info_8x16()
54 strlcpy(hw_info->name, "msm8952", sizeof(hw_info->name)); in update_hardware_info_8x16()
74 strlcpy(hw_info->type, "", sizeof(hw_info->type)); in hw_info_init()
75 strlcpy(hw_info->name, "", sizeof(hw_info->name)); in hw_info_init()
78 strlcpy(hw_info->dev_extn, "", sizeof(hw_info->dev_extn)); in hw_info_init()
/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/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/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/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()
Dloc_eng_agps.h365 strlcpy(mSSID, ssid, SSID_BUF_SIZE); in WIFISubscriber()
367 strlcpy(mPassword, password, SSID_BUF_SIZE); in WIFISubscriber()
378 strlcpy(ssid, mSSID, SSID_BUF_SIZE); in setWifiInfo()
382 strlcpy(password, mPassword, SSID_BUF_SIZE); in setWifiInfo()
/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/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()
Dloc_eng_agps.h372 strlcpy(mSSID, ssid, SSID_BUF_SIZE); in WIFISubscriber()
374 strlcpy(mPassword, password, SSID_BUF_SIZE); in WIFISubscriber()
388 strlcpy(ssid, mSSID, SSID_BUF_SIZE); in setWifiInfo()
392 strlcpy(password, mPassword, SSID_BUF_SIZE); in setWifiInfo()
/hardware/qcom/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()
Dloc_eng_agps.h372 strlcpy(mSSID, ssid, SSID_BUF_SIZE); in WIFISubscriber()
374 strlcpy(mPassword, password, SSID_BUF_SIZE); in WIFISubscriber()
388 strlcpy(ssid, mSSID, SSID_BUF_SIZE); in setWifiInfo()
392 strlcpy(password, mPassword, SSID_BUF_SIZE); in setWifiInfo()
/hardware/qcom/gps/msm8084/loc_api/libloc_api_50001/
Dloc_eng_nmea.cpp560 strlcpy(sentence, "$GPGSA,A,1,,,,,,,,,,,,,,,", sizeof(sentence)); in loc_eng_nmea_generate_pos()
564 strlcpy(sentence, "$GPVTG,,T,,M,,N,,K,N", sizeof(sentence)); in loc_eng_nmea_generate_pos()
568 strlcpy(sentence, "$GPRMC,,V,,,,,,,,,,N", sizeof(sentence)); in loc_eng_nmea_generate_pos()
572 strlcpy(sentence, "$GPGGA,,,,,,0,,,,,,,,", sizeof(sentence)); in loc_eng_nmea_generate_pos()
640 strlcpy(sentence, "$GPGSV,1,1,0,", sizeof(sentence)); in loc_eng_nmea_generate_sv()
718 strlcpy(sentence, "$GLGSV,1,1,0,", sizeof(sentence)); in loc_eng_nmea_generate_sv()
792 strlcpy(sentence, "$GPGSA,A,1,,,,,,,,,,,,,,,", sizeof(sentence)); in loc_eng_nmea_generate_sv()
796 strlcpy(sentence, "$GPVTG,,T,,M,,N,,K,N", sizeof(sentence)); in loc_eng_nmea_generate_sv()
800 strlcpy(sentence, "$GPRMC,,V,,,,,,,,,,N", sizeof(sentence)); in loc_eng_nmea_generate_sv()
804 strlcpy(sentence, "$GPGGA,,,,,,0,,,,,,,,", sizeof(sentence)); in loc_eng_nmea_generate_sv()
Dloc_eng_agps.h373 strlcpy(mSSID, ssid, SSID_BUF_SIZE); in WIFISubscriber()
375 strlcpy(mPassword, password, SSID_BUF_SIZE); in WIFISubscriber()
389 strlcpy(ssid, mSSID, SSID_BUF_SIZE); in setWifiInfo()
393 strlcpy(password, mPassword, SSID_BUF_SIZE); in setWifiInfo()
/hardware/qcom/gps/msm8909/loc_api/libloc_api_50001/
Dloc_eng_agps.h372 strlcpy(mSSID, ssid, SSID_BUF_SIZE); in WIFISubscriber()
374 strlcpy(mPassword, password, SSID_BUF_SIZE); in WIFISubscriber()
388 strlcpy(ssid, mSSID, SSID_BUF_SIZE); in setWifiInfo()
392 strlcpy(password, mPassword, SSID_BUF_SIZE); in setWifiInfo()
/hardware/qcom/gps/msm8998/loc_api/libloc_api_50001/
Dloc_eng_agps.h376 strlcpy(mSSID, ssid, SSID_BUF_SIZE); in WIFISubscriber()
378 strlcpy(mPassword, password, SSID_BUF_SIZE); in WIFISubscriber()
392 strlcpy(ssid, mSSID, SSID_BUF_SIZE); in setWifiInfo()
396 strlcpy(password, mPassword, SSID_BUF_SIZE); in setWifiInfo()
/hardware/qcom/gps/msm8996/loc_api/libloc_api_50001/
Dloc_eng_agps.h372 strlcpy(mSSID, ssid, SSID_BUF_SIZE); in WIFISubscriber()
374 strlcpy(mPassword, password, SSID_BUF_SIZE); in WIFISubscriber()
388 strlcpy(ssid, mSSID, SSID_BUF_SIZE); in setWifiInfo()
392 strlcpy(password, mPassword, SSID_BUF_SIZE); in setWifiInfo()
/hardware/qcom/media/msm8996/mm-core/src/common/
Dqc_omx_core.c418 strlcpy(optComponentName, componentName, OMX_MAX_STRINGNAME_SIZE); in OMX_GetHandle()
457 strlcpy(optComponentName, componentName, OMX_MAX_STRINGNAME_SIZE); in OMX_GetHandle()
711 strlcpy(componentName, core[index].name,nameLen); in OMX_ComponentNameEnum()
789 strlcpy((char *)compNames[*numComps],core[i].name, OMX_MAX_STRINGNAME_SIZE); in OMX_GetComponentsOfRole()
877 strlcpy((char *)roles[*numRoles],core[i].roles[j],OMX_MAX_STRINGNAME_SIZE); in OMX_GetRolesOfComponent()
/hardware/qcom/media/msm8998/mm-core/src/common/
Dqc_omx_core.c418 strlcpy(optComponentName, componentName, OMX_MAX_STRINGNAME_SIZE); in OMX_GetHandle()
457 strlcpy(optComponentName, componentName, OMX_MAX_STRINGNAME_SIZE); in OMX_GetHandle()
713 strlcpy(componentName, core[index].name,nameLen); in OMX_ComponentNameEnum()
791 strlcpy((char *)compNames[*numComps],core[i].name, OMX_MAX_STRINGNAME_SIZE); in OMX_GetComponentsOfRole()
879 strlcpy((char *)roles[*numRoles],core[i].roles[j],OMX_MAX_STRINGNAME_SIZE); in OMX_GetRolesOfComponent()

123456