Home
last modified time | relevance | path

Searched refs:sprintf_s (Results 1 - 25 of 52) sorted by relevance

123

/applications/sample/camera/communication/wpa_cli/src/
H A Dwpa_cli_sample.c155 temp = sprintf_s(cmd, sizeof(cmd), "SET_NETWORK %.*s ssid \"example\"", networkIdLen, networkId); in TestNetworkConfig()
161 temp = sprintf_s(cmd, sizeof(cmd), "SET_NETWORK %.*s psk \"012345678\"", networkIdLen, networkId); in TestNetworkConfig()
167 temp = sprintf_s(cmd, sizeof(cmd), "ENABLE_NETWORK %.*s", networkIdLen, networkId); in TestNetworkConfig()
179 temp = sprintf_s(cmd, sizeof(cmd), "REMOVE_NETWORK %.*s", networkIdLen, networkId); in TestNetworkConfig()
/applications/sample/camera/cameraApp/cameraApp/src/main/cpp/
H A Dcamera_manager.cpp150 if (sprintf_s(jpegSrcPath, sizeof(jpegSrcPath), "%s", srcJpgPath) < 0) { in SampleGetdcfinfo()
153 if (sprintf_s(jpegDesPath, sizeof(jpegDesPath), "%s", dstThmPath) < 0) { in SampleGetdcfinfo()
196 if (sprintf_s(tmpFile, sizeof(tmpFile), "%s/photo%s.jpg", PHOTO_PATH, timeStamp) < 0) { in SampleSaveCapture()
208 if (sprintf_s(acFile, sizeof(acFile), "%s/tmp.jpg", PHOTO_PATH) < 0) { in SampleSaveCapture()
223 if (sprintf_s(acFileDcf, sizeof(acFileDcf), "%s/photo%s.jpg", THUMB_PATH, timeStamp) < 0) { in SampleSaveCapture()
227 if (sprintf_s(acFileDcf, sizeof(acFileDcf), "%s/video%s.jpg", THUMB_PATH, timeStamp) < 0) { in SampleSaveCapture()
382 if (sprintf_s(timeStamp_, sizeof(timeStamp_), "%02d-%02d-%02d-%lld", in InitTimeStamp()
391 if (sprintf_s(videoName_, sizeof(videoName_), "%s/video%s.jpg", THUMB_PATH, timeStamp_) < 0) { in InitVideoName()
H A Dcamera_ability_slice.h94 temp = sprintf_s(buff, sizeof(buff), "%02d : %02d", ss / 60, ss % 60); /* 60=1s */ in UpdateTimeLabel()
/third_party/bounds_checking_function/src/
H A Dsprintf_s.c11 * Description: sprintf_s function
19 * The sprintf_s function is equivalent to the sprintf function
21 * The sprintf_s function formats and stores a series of characters and values
43 int sprintf_s(char *strDest, size_t destMax, const char *format, ...) in sprintf_s() function
56 EXPORT_SYMBOL(sprintf_s); variable
/applications/sample/camera/gallery/src/
H A Dplayer_ability_slice.cpp146 if (sprintf_s(backIconAbsolutePath, MAX_PATH_LENGTH, "%s%s", pathHeader, BACK_ICON_PATH) < 0) { in SetUpBackArea()
173 int8_t ret = sprintf_s(videoPlayer_->filePath, videoPathLen + 1, "%s/%s", VIDEO_SOURCE_DIRECTORY, in SetUpVideoPlayer()
179 ret = sprintf_s(&videoPlayer_->filePath[videoPathLen - strlen(AVAILABEL_SOURCE_TYPE)], in SetUpVideoPlayer()
281 if (sprintf_s(timer, sizeof(timer), "%02lld:%02lld", second / 60, second % 60) < 0) { // 60: 1minute = 60s in SetUpAnimatorGroup()
315 if (sprintf_s(videoPlayAbsolutePath, MAX_PATH_LENGTH, "%s%s", pathHeader, VIDEO_PALY_PATH) < 0) { in SetUpToggleButton()
320 if (sprintf_s(videoPauseAbsolutePath, MAX_PATH_LENGTH, "%s%s", pathHeader, VIDEO_PAUSE_PATH) < 0) { in SetUpToggleButton()
422 sprintf_s(time, sizeof(time), "%02lld:%02lld", currentSecond / 60, currentSecond % 60); // 60: 1minute = 60s in Callback()
H A Dpicture_ability_slice.cpp135 if (sprintf_s(imagePath, imagePathLen + 1, "%s/%s", PHOTO_DIRECTORY, reinterpret_cast<char*>(want.data)) < 0) { in OnStart()
143 if (sprintf_s(backIconAbsolutePath, MAX_PATH_LENGTH, "%s%s", pathHeader, BACK_ICON_PATH) < 0) { in OnStart()
H A Dgallery_ability_slice.cpp223 if (sprintf_s(imagePath, pathLen + 1, "%s/%s", THUMBNAIL_DIRECTORY, info->d_name) < 0) { in AddAllPictures()
224 printf("GalleryAbilitySlice::AddAllPictures | sprintf_s error\n"); in AddAllPictures()
335 if (sprintf_s(filePath, pathLen + 1, "%s/%s", path, info->d_name) < 0) { in DeleteAllFilesInDir()
336 printf("GalleryAbilitySlice::AddAllPictures | sprintf_s error\n"); in DeleteAllFilesInDir()
360 if (sprintf_s(backIconAbsolutePath, MAX_PATH_LENGTH, "%s%s", pathHeader, BACK_ICON_PATH) < 0) { in OnStart()
364 if (sprintf_s(videoTagIconAbsolutePath, MAX_PATH_LENGTH, "%s%s", pathHeader, VIDEO_TAG_ICON_PATH) < 0) { in OnStart()
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant_lib/
H A Ddriver_nl80211_hisi.c292 ret_s = sprintf_s(pbuf, MAX_DRV_CMD_SIZE, "%s", _cmd); in wpa_driver_set_p2p_noa()
323 ret_s = sprintf_s(pbuf, MAX_DRV_CMD_SIZE, "%s", _cmd); in wpa_driver_set_p2p_ps()
366 ret_s = sprintf_s(pbuf, MAX_WPSP2PIE_CMD_SIZE, "%s", _cmd); in wpa_driver_set_ap_wps_p2p_ie()
441 ret_s = sprintf_s(pbuf, MAX_PRIV_CMD_SIZE, "%s %d", _cmd, on); in wpa_driver_set_power_on()
459 ret_s = sprintf_s(pbuf, MAX_PRIV_CMD_SIZE, "%s %d", _cmd, powermgmt_on); in wpa_driver_set_powermgmt_on()
487 ret_s = sprintf_s(pbuf, MAX_DRV_CMD_SIZE, "%s", _cmd); in wpa_driver_set_qos_map()
563 ret_s = sprintf_s(pbuf, MAX_WPSP2PIE_CMD_SIZE, "%s", _cmd); in wpa_driver_nl80211_sta_assoc()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant_lib/
H A Ddriver_nl80211_hisi.c279 ret_s = sprintf_s(pbuf, MAX_DRV_CMD_SIZE, "%s", _cmd); in wpa_driver_set_p2p_noa()
309 ret_s = sprintf_s(pbuf, MAX_DRV_CMD_SIZE, "%s", _cmd); in wpa_driver_set_p2p_ps()
352 ret_s = sprintf_s(pbuf, MAX_WPSP2PIE_CMD_SIZE, "%s", _cmd); in wpa_driver_set_ap_wps_p2p_ie()
422 ret_s = sprintf_s(pbuf, MAX_PRIV_CMD_SIZE, "%s %d", _cmd, on); in wpa_driver_set_power_on()
440 ret_s = sprintf_s(pbuf, MAX_PRIV_CMD_SIZE, "%s %d", _cmd, powermgmt_on); in wpa_driver_set_powermgmt_on()
467 ret_s = sprintf_s(pbuf, MAX_DRV_CMD_SIZE, "%s", _cmd); in wpa_driver_set_qos_map()
537 ret_s = sprintf_s(pbuf, MAX_WPSP2PIE_CMD_SIZE, "%s", _cmd); in wpa_driver_nl80211_sta_assoc()
/applications/sample/camera/launcher/launcher/src/main/cpp/
H A Dswipe_view.h59 if (sprintf_s(buf, sizeof(buf), ".%d.", swipe_->GetCurrentPage() + 1) < 0) {
89 int ret = sprintf_s(tmp, sizeof(tmp), "%02d : %02d", st->tm_hour, st->tm_min);
H A Dmain_ability_slice.cpp58 sprintf_s(tmp, sizeof(tmp), "%02d : %02d", st->tm_hour, st->tm_min); in SetHead()
78 sprintf_s(buf, sizeof(buf), ".%d.", 1); in SetTail()
H A Dtime_weather_view.cpp67 int ret = sprintf_s(hour_min, sizeof(hour_min), "%02d : %02d", st->tm_hour, st->tm_min); in SetUpTimeView()
69 ret = sprintf_s(mont_day, sizeof(mont_day), "%02d月%02d日", st->tm_mon + january, st->tm_mday); in SetUpTimeView()
72 ret = sprintf_s(date, sizeof(date), "%s %s", mont_day, week_day); in SetUpTimeView()
/applications/sample/camera/setting/setting/src/main/cpp/
H A Dwpa_work.c381 int err = sprintf_s(cmd, sizeof(cmd), "SET_NETWORK %.*s ssid \"%s\"", networkIdLen, networkId, gSsid); in TestNetworkConfig()
383 printf("[ERROR]sprintf_s failed, err = %d\n", err); in TestNetworkConfig()
388 err = sprintf_s(cmd, sizeof(cmd), "SET_NETWORK %.*s psk \"%s\"", networkIdLen, networkId, gPassWord); in TestNetworkConfig()
390 printf("[ERROR]sprintf_s failed, err = %d\n", err); in TestNetworkConfig()
395 err = sprintf_s(cmd, sizeof(cmd), "ENABLE_NETWORK %.*s", networkIdLen, networkId); in TestNetworkConfig()
397 printf("[ERROR]sprintf_s failed, err = %d\n", err); in TestNetworkConfig()
408 err = sprintf_s(cmd, sizeof(cmd), "REMOVE_NETWORK %.*s", networkIdLen, networkId); in TestNetworkConfig()
410 printf("[ERROR]sprintf_s failed, err = %d\n", err); in TestNetworkConfig()
H A Dmain_ability_slice.cpp274 int err = sprintf_s(buff, sizeof(buff), "系统版本: %s", gDV); in SetAboutButtonView()
276 printf("[ERROR]sprintf_s failed, err = %d\n", err); in SetAboutButtonView()
288 err = sprintf_s(buff, sizeof(buff), "设备名称: %s", gPT); in SetAboutButtonView()
290 printf("[ERROR]sprintf_s failed, err = %d\n", err); in SetAboutButtonView()
H A Dsetting_wifi_input_password_ability_slice.cpp179 sprintf_s(buf, sizeof(buf), "%d", inputNum); in AddInputKeyBoardZero()
212 int err = sprintf_s(buf, sizeof(buf), "%d", inputNum); in SetScrollView()
214 printf("[ERROR]sprintf_s failed, err = %d\n", err); in SetScrollView()
/device/soc/hisilicon/hi3861v100/sdk_liteos/app/demo/src/
H A Dapp_demo_upg_verify.c31 if (sprintf_s(file_chip, HI_APP_CHIP_PRODUCT_LEN, "%s", CONFIG_CHIP_PRODUCT_NAME) < 0) { in app_demo_upg_check_chip_product()
32 printf("[app upg demo verify]sprintf_s error \r\n"); in app_demo_upg_check_chip_product()
/device/soc/hisilicon/hi3861v100/sdk_liteos/app/wifiiot_app/src/
H A Dapp_demo_upg_verify.c31 if (sprintf_s(file_chip, HI_APP_CHIP_PRODUCT_LEN, "%s", CONFIG_CHIP_PRODUCT_NAME) < 0) { in app_demo_upg_check_chip_product()
32 printf("[app upg demo verify]sprintf_s error \r\n"); in app_demo_upg_check_chip_product()
/device/board/hisilicon/hispark_aries/liteos_a/board/include/hisoc/
H A Dspinor.h106 (VOID)sprintf_s(buffer, sizeof(buffer), "%dM", clk_reg); in hisfc350_get_clock_str()
/device/board/hisilicon/hispark_taurus/liteos_a/board/include/hisoc/
H A Dspinor.h106 (VOID)sprintf_s(buffer, sizeof(buffer), "%dM", clk_reg); in hisfc350_get_clock_str()
/device/qemu/riscv32_virt/liteos_m/board/driver/video/
H A Dfb.c427 (void)sprintf_s(devname, 16, "/dev/fb%d", display); in fb_register()
429 (void)sprintf_s(devname, 16, "/dev/fb%d.%d", display, plane); in fb_register()
454 (void)sprintf_s(devname, 16, "/dev/fb%d", display); in fb_unregister()
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/include/
H A Dhi_stdlib.h263 extern int sprintf_s(char *dest, size_t dest_max, const char *format, ...);
/device/soc/hisilicon/hi3861v100/sdk_liteos/include/
H A Dhi_stdlib.h256 extern int sprintf_s(char *dest, size_t dest_max, const char *format, ...);
/third_party/gptfdisk/
H A Dsupport.h39 #define sprintf sprintf_s
/third_party/lz4/programs/
H A Dplatform.h36 # define snprintf sprintf_s /* snprintf unsupported by Visual <= 2013 */
/third_party/lz4/examples/
H A DHCStreaming_ringBuffer.c10 # define snprintf sprintf_s

Completed in 13 milliseconds

123