Home
last modified time | relevance | path

Searched refs:snprintf_s (Results 1 - 25 of 79) sorted by relevance

1234

/foundation/multimedia/av_codec/test/nativedemo/avmuxer/
H A Dnative_avmuxer_demo.c356 (void)snprintf_s(g_muxerParam.outputFormatType, TYPE_BUFFER_SIZE, TYPE_BUFFER_SIZE - 1, "%s", "mp4"); in NativeSelectMuxerType()
360 (void)snprintf_s(g_muxerParam.outputFormatType, TYPE_BUFFER_SIZE, TYPE_BUFFER_SIZE - 1, "%s", "m4a"); in NativeSelectMuxerType()
364 (void)snprintf_s(g_muxerParam.outputFormatType, TYPE_BUFFER_SIZE, TYPE_BUFFER_SIZE - 1, "%s", "amr"); in NativeSelectMuxerType()
368 (void)snprintf_s(g_muxerParam.outputFormatType, TYPE_BUFFER_SIZE, TYPE_BUFFER_SIZE - 1, "%s", "mp3"); in NativeSelectMuxerType()
372 (void)snprintf_s(g_muxerParam.outputFormatType, TYPE_BUFFER_SIZE, TYPE_BUFFER_SIZE - 1, "%s", "wav"); in NativeSelectMuxerType()
376 (void)snprintf_s(g_muxerParam.outputFormatType, TYPE_BUFFER_SIZE, TYPE_BUFFER_SIZE - 1, "%s", "mp4"); in NativeSelectMuxerType()
391 (void)snprintf_s(g_muxerParam.runModeType, TYPE_BUFFER_SIZE, TYPE_BUFFER_SIZE - 1, "%s", RUN_NORMAL); in NativeSelectRunMode()
395 (void)snprintf_s(g_muxerParam.runModeType, TYPE_BUFFER_SIZE, TYPE_BUFFER_SIZE - 1, "%s", RUN_MUL_THREAD); in NativeSelectRunMode()
399 (void)snprintf_s(g_muxerParam.runModeType, TYPE_BUFFER_SIZE, TYPE_BUFFER_SIZE - 1, "%s", RUN_NORMAL); in NativeSelectRunMode()
412 (void)snprintf_s(g_muxerPara in NativeSelectAudio()
[all...]
/foundation/communication/wifi/wifi/relation_services/wifi_hal_service/wifi_hal_module/wpa_supplicant_hal/wpa_sta_hal/
H A Dwifi_supplicant_hal.c113 if (snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s STATUS", this->ifname) < 0) { in WpaCliCmdStatus()
165 if (snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s ADD_NETWORK", this->ifname) < 0) { in WpaCliCmdAddNetworks()
182 if (snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s RECONNECT", this->ifname) < 0) { in WpaCliCmdReconnect()
196 if (snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s REASSOCIATE", this->ifname) < 0) { in WpaCliCmdReassociate()
210 if (snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s DISCONNECT", this->ifname) < 0) { in WpaCliCmdDisconnect()
224 if (snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s SAVE_CONFIG", this->ifname) < 0) { in WpaCliCmdSaveConfig()
275 res = snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s SET_NETWORK %d %s \"%s\"", this->ifname, in WpaCliCmdSetNetwork()
278 res = snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s SET_NETWORK %d %s %s", this->ifname, in WpaCliCmdSetNetwork()
295 if (snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s ENABLE_NETWORK %d", this->ifname, networkId) < 0) { in WpaCliCmdEnableNetwork()
309 if (snprintf_s(cm in WpaCliCmdSelectNetwork()
[all...]
H A Dwifi_common_hal.c42 int ret = snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "%s", sendcmd); in SendComCmd()
/foundation/communication/wifi/wifi/relation_services/wifi_hal_service/wifi_hal_module/wpa_supplicant_hal/wpa_p2p_hal/
H A Dwifi_p2p_hal.c68 if (snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s WPS_PBC", this->groupIfname) < 0) { in WpaP2pCliCmdWpsPbc()
74 if (snprintf_s(cmd + pos, sizeof(cmd) - pos, sizeof(cmd) - pos - 1, " %s", bssid) < 0) { in WpaP2pCliCmdWpsPbc()
103 res = snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s WPS_PIN any %s", this->groupIfname, in WpaP2pCliCmdWpsPin()
106 res = snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s WPS_PIN any", this->groupIfname); in WpaP2pCliCmdWpsPin()
108 res = snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s WPS_PIN %s", this->groupIfname, argv->bssid); in WpaP2pCliCmdWpsPin()
134 if (snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s P2P_SET ps %d", this->groupIfname, enable) < 0) { in WpaP2pCliCmdSetPowerSave()
152 if (snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s SET p2p_group_idle %d", this->groupIfname, in WpaP2pCliCmdSetGroupIdle()
171 if (snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s SET device_name %s", this->ifName, name) < 0) { in WpaP2pCliCmdSetWpsName()
189 if (snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s SET device_type %s", this->ifName, type) < 0) { in WpaP2pCliCmdSetWpsDeviceType()
208 if (snprintf_s(cm in WpaP2pCliCmdSetWpsSecDeviceType()
[all...]
/foundation/communication/wifi/wifi/base/cRPC/src/
H A Dserial.c35 if (snprintf_s(szTmp, sizeof(szTmp), sizeof(szTmp) - 1, "%s%c", ((type == 0) ? "N" : "C"), context->cSplit) < 0) { in WriteBegin()
56 if (snprintf_s(buf, len + 1, len, "%s%c", funcName, context->cSplit) < 0) { in WriteFunc()
74 if (snprintf_s(szTmp, sizeof(szTmp), sizeof(szTmp) - 1, "%d%c", iData, context->cSplit) < 0) { in WriteInt()
87 if (snprintf_s(szTmp, sizeof(szTmp), sizeof(szTmp) - 1, "%ld%c", lData, context->cSplit) < 0) { in WriteLong()
100 if (snprintf_s(szTmp, sizeof(szTmp), sizeof(szTmp) - 1, "%" PRId64 "%c", iData, context->cSplit) < 0) { in WriteInt64()
113 if (snprintf_s(szTmp, sizeof(szTmp), sizeof(szTmp) - 1, "%.6lf%c", dData, context->cSplit) < 0) { in WriteDouble()
126 if (snprintf_s(szTmp, sizeof(szTmp), sizeof(szTmp) - 1, "%c%c", cData, context->cSplit) < 0) { in WriteChar()
146 if (snprintf_s(buf, len + 1, len, "%s%c", pStr, context->cSplit) < 0) { in WriteStr()
171 if (snprintf_s(buf + pos, inLen - pos, inLen - pos - 1, "%02x", uStr[i]) < 0) { in WriteUStr()
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_common/app_network_speed_limit/
H A Dspeed_limit_configs_writer.cpp42 int ret = snprintf_s(awareCtrlStr, sizeof(awareCtrlStr), MAX_ARRAY_LENGTH - 1, "1:%d", mode); in SetBgLimitMode()
44 WIFI_LOGE("SetBgLimitMode snprintf_s failed."); in SetBgLimitMode()
85 ret = snprintf_s(tempStr, sizeof(tempStr), MAX_ARRAY_LENGTH - 1, "%d", idArray[i]); in SetUidPids()
87 ret = snprintf_s(tempStr, sizeof(tempStr), MAX_ARRAY_LENGTH - 1, "%s;%d", idStr, idArray[i]); in SetUidPids()
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_p2p/
H A Dwifi_p2p_upnp_service_request.cpp44 if (snprintf_s(version, sizeof(version), sizeof(version) - 1, "%02x ", WifiP2pUpnpServiceInfo::VERSION_1_0) < 0) { in Create()
45 WIFI_LOGE("ifiP2pUpnpServiceRequest::Create snprintf_s failed."); in Create()
H A Dwifi_p2p_upnp_service_info.cpp46 if (snprintf_s(version, sizeof(version), sizeof(version) - 1, "%02x ", VERSION_1_0) < 0) { in BuildWpaQuery()
/foundation/graphic/graphic_2d/rosen/modules/utils/
H A Dstring_utils.h35 int len = ::snprintf_s(buf, sizeof(buf), sizeof(buf)-1, fmt, args...); in AppendFormat()
/foundation/communication/dsoftbus/components/nstackx/fillp/src/fillp_lib/src/fillp/
H A Dfillp_mgt_msg_log.c91 return snprintf_s(buf, len, len - 1, " init rtt: %llu", conn->calcRttDuringConnect); in FillpExtParaRttFormat()
96 return snprintf_s(buf, len, len - 1, " peer pkt size: %u", conn->peerPktSize); in FillpExtParaPktSizeFormat()
109 FILLP_INT ret = snprintf_s(buf + formatLen, len - formatLen, (len - formatLen) - 1, " %s", bitmapStr[i]); in FillpBitmapFormat()
111 FILLP_LOGERR("snprintf_s failed"); in FillpBitmapFormat()
122 FILLP_INT ret = snprintf_s(buf, len, len - 1, " characters: 0x%08X", conn->peerCharacters); in FillpExtParaCharacterFormat()
124 FILLP_LOGERR("snprintf_s failed"); in FillpExtParaCharacterFormat()
143 FILLP_INT ret = snprintf_s(buf, len, len - 1, " FC ALG: 0x%02X", conn->peerFcAlgs); in FillpExtParaFcAlgFormat()
145 FILLP_LOGERR("snprintf_s failed"); in FillpExtParaFcAlgFormat()
/foundation/multimedia/media_foundation/engine/plugin/plugins/source/http_source/download/
H A Dhttp_curl_client.cpp126 snprintf_s(requestRange, sizeof(requestRange), sizeof(requestRange) - 1, "%ld-%ld", in RequestData()
129 snprintf_s(requestRange, sizeof(requestRange), sizeof(requestRange) - 1, "%ld-", startPos); in RequestData()
/foundation/resourceschedule/ffrt/src/dfx/dump/
H A Ddump.cpp129 return snprintf_s(buf, len, len - 1, "%s", dumpInfo.c_str()); in dump_info_all()
131 return snprintf_s(buf, len, len - 1, "|-> FFRT has done all tasks, pid: %u \n", GetPid()); in dump_info_all()
/foundation/communication/wifi/wifi/relation_services/wifi_hal_service/
H A Dwifi_hal_adapter.c179 if (snprintf_s(buf, sizeof(buf), sizeof(buf) - 1, "%s/wpa_supplicant/%s", CONFIG_ROOR_DIR, configName) < 0) { in CopyConfigFile()
180 LOGE("snprintf_s dest dir failed."); in CopyConfigFile()
209 if (snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, in CopyConfigFile()
211 LOGE("snprintf_s cp cmd failed."); in CopyConfigFile()
H A Dwifi_hal_ap_interface.c68 onceMove = snprintf_s(p, WIFI_MULTI_CMD_MAX_LEN - sumMove, in StartHostapd()
84 onceMove = snprintf_s(p, WIFI_MULTI_CMD_MAX_LEN - sumMove, in StartHostapd()
H A Dmain.c76 int n = snprintf_s(pidFile, DIR_MAX_LENGTH, DIR_MAX_LENGTH - 1, "%s/%s.pid", in StopProcess()
/foundation/communication/dsoftbus/components/nstackx/nstackx_util/core/
H A Dnstackx_util.c188 ret = snprintf_s(buf, len, len - 1, "%hhu.%hhu.%hhu.*", in IpAddrAnonymousFormat()
192 ret = snprintf_s(buf, len, len - 1, "%x:%x:%x*:*:*:*:*:*", in IpAddrAnonymousFormat()
/foundation/multimodalinput/input/util/common/src/
H A Dklog.cpp81 if (snprintf_s(logInfo, MAX_LOG_SIZE, MAX_LOG_SIZE - 1, in kMsgLog()
/foundation/multimodalinput/input/util/common/include/
H A Dutil_ex.h46 int32_t ret = snprintf_s(buf, bufSize, bufSize - 1, fmt, args...); in mprintf()
/foundation/multimedia/audio_framework/services/audio_policy/server/src/service/manager/pnp_server/
H A Daudio_pnp_server.cpp47 ret = snprintf_s(event, AUDIO_PNP_INFO_LEN_MAX, AUDIO_PNP_INFO_LEN_MAX - 1, in GetAudioEventInfo()
51 AUDIO_ERR_LOG("snprintf_s failed"); in GetAudioEventInfo()
202 ret = snprintf_s(pnpInfo, AUDIO_EVENT_INFO_LEN_MAX, AUDIO_EVENT_INFO_LEN_MAX - 1, "EVENT_TYPE=%u;DEVICE_TYPE=%u", in UpdateUsbHeadset()
205 AUDIO_ERR_LOG("snprintf_s fail!"); in UpdateUsbHeadset()
H A Daudio_socket_thread.cpp410 len = snprintf_s(subDir, USB_DEV_NAME_LEN_MAX, USB_DEV_NAME_LEN_MAX - 1, "/dev/" "%s", devName); in CheckAudioUsbDevice()
637 ret = snprintf_s(pnpInfo, AUDIO_EVENT_INFO_LEN_MAX, AUDIO_EVENT_INFO_LEN_MAX - 1, "EVENT_TYPE=%u;DEVICE_TYPE=%u", in UpdateDeviceState()
640 AUDIO_ERR_LOG("snprintf_s fail!"); in UpdateDeviceState()
684 len = snprintf_s(devName, USB_DEV_NAME_LEN_MAX, USB_DEV_NAME_LEN_MAX - 1, "%s/%s", subDir, in ScanUsbBusSubDir()
728 len = snprintf_s(subDir, USB_DEV_NAME_LEN_MAX, USB_DEV_NAME_LEN_MAX - 1, DEV_BUS_USB_DIR "/%s", in DetectUsbHeadsetState()
/foundation/filemanagement/app_file_service/frameworks/native/backup_ext/src/
H A Dtar_file.cpp471 auto ret = snprintf_s(hdr.uname, sizeof(hdr.uname), sizeof(hdr.uname) - 1, "%s", pw->pw_name); in FillOwnerName()
476 auto ret = snprintf_s(hdr.uname, sizeof(hdr.uname), sizeof(hdr.uname) - 1, "%u", st.st_uid); in FillOwnerName()
484 auto ret = snprintf_s(hdr.gname, sizeof(hdr.gname), sizeof(hdr.gname) - 1, "%s", gr->gr_name); in FillOwnerName()
489 auto ret = snprintf_s(hdr.gname, sizeof(hdr.gname), sizeof(hdr.gname) - 1, "%u", st.st_gid); in FillOwnerName()
/foundation/communication/dsoftbus/core/common/utils/
H A Dsoftbus_utils.c334 ret = snprintf_s(strMac, strMacLen, strMacLen - 1, "%02x%02x%02x%02x%02x%02x", in ConvertBtMacToStrNoColon()
338 COMM_LOGE(COMM_UTILS, "snprintf_s fail"); in ConvertBtMacToStrNoColon()
353 ret = snprintf_s(strMac, strMacLen, strMacLen - 1, "%02x:%02x:%02x:%02x:%02x:%02x", in ConvertBtMacToStr()
357 COMM_LOGE(COMM_UTILS, "snprintf_s fail"); in ConvertBtMacToStr()
369 ret = snprintf_s(strMac, strMacLen, strMacLen - 1, "%02x:%02x:%02x:%02x:%02x:%02x", in ConvertReverseBtMacToStr()
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/text/utils/
H A Dnapi_async_work.h37 int res = snprintf_s(buffer, MAX_LOG_SIZE, MAX_LOG_SIZE - 1, fmt, ##__VA_ARGS__); \
/foundation/multimedia/media_foundation/engine/foundation/utils/
H A Ddump_buffer.cpp110 len = snprintf_s(dstPtr, 3, 2, "%02x", p[i]); // max write 3 bytes, string len 2 in DumpBufferToLog()
111 FALSE_RETURN_MSG(len > 0 && len <= 2, "snprintf_s returned unexpected value " PUBLIC_LOG_D32, len); // max len 2 in DumpBufferToLog()
/foundation/communication/dhcp/services/dhcp_server/src/
H A Dcommon_util.cpp139 if (snprintf_s(leaseFileName, sizeof(leaseFileName), sizeof(leaseFileName) - 1, "%s.%s", fileName, ifname) < 0) { in GetLeaseFile()

Completed in 16 milliseconds

1234