/foundation/multimedia/av_codec/test/nativedemo/avmuxer/ |
H A D | native_avmuxer_demo.c | 356 (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 D | wifi_supplicant_hal.c | 113 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 D | wifi_common_hal.c | 42 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 D | wifi_p2p_hal.c | 68 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 D | serial.c | 35 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 D | speed_limit_configs_writer.cpp | 42 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 D | wifi_p2p_upnp_service_request.cpp | 44 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 D | wifi_p2p_upnp_service_info.cpp | 46 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 D | string_utils.h | 35 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 D | fillp_mgt_msg_log.c | 91 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 D | http_curl_client.cpp | 126 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 D | dump.cpp | 129 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 D | wifi_hal_adapter.c | 179 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 D | wifi_hal_ap_interface.c | 68 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 D | main.c | 76 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 D | nstackx_util.c | 188 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 D | klog.cpp | 81 if (snprintf_s(logInfo, MAX_LOG_SIZE, MAX_LOG_SIZE - 1, in kMsgLog()
|
/foundation/multimodalinput/input/util/common/include/ |
H A D | util_ex.h | 46 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 D | audio_pnp_server.cpp | 47 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 D | audio_socket_thread.cpp | 410 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 D | tar_file.cpp | 471 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 D | softbus_utils.c | 334 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 D | napi_async_work.h | 37 int res = snprintf_s(buffer, MAX_LOG_SIZE, MAX_LOG_SIZE - 1, fmt, ##__VA_ARGS__); \
|
/foundation/multimedia/media_foundation/engine/foundation/utils/ |
H A D | dump_buffer.cpp | 110 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 D | common_util.cpp | 139 if (snprintf_s(leaseFileName, sizeof(leaseFileName), sizeof(leaseFileName) - 1, "%s.%s", fileName, ifname) < 0) { in GetLeaseFile()
|