Home
last modified time | relevance | path

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

1234567

/foundation/multimedia/media_foundation/tests/unittest/common/include/
H A Dunittest_log.h28 (void)sprintf_s(ch, LOG_MAX_SIZE, fmt, ##__VA_ARGS__); \
39 (void)sprintf_s(ch, LOG_MAX_SIZE, fmt, ##__VA_ARGS__); \
49 (void)sprintf_s(ch, LOG_MAX_SIZE, fmt, ##__VA_ARGS__); \
58 (void)sprintf_s(ch, LOG_MAX_SIZE, fmt, ##__VA_ARGS__); \
67 (void)sprintf_s(ch, LOG_MAX_SIZE, fmt, ##__VA_ARGS__); \
/foundation/multimedia/av_codec/test/unittest/common/
H A Dunittest_log.h51 (void)sprintf_s(ch, LOG_MAX_SIZE, fmt, ##__VA_ARGS__); \
62 (void)sprintf_s(ch, LOG_MAX_SIZE, fmt, ##__VA_ARGS__); \
73 (void)sprintf_s(ch, LOG_MAX_SIZE, fmt, ##__VA_ARGS__); \
82 (void)sprintf_s(ch, LOG_MAX_SIZE, fmt, ##__VA_ARGS__); \
91 (void)sprintf_s(ch, LOG_MAX_SIZE, fmt, ##__VA_ARGS__); \
100 (void)sprintf_s(ch, LOG_MAX_SIZE, fmt, ##__VA_ARGS__); \
/foundation/communication/dsoftbus/components/nstackx/nstackx_core/dfile/core/
H A Dnstackx_dfile_dfx.c30 ret = sprintf_s(message, DUMP_INFO_MAX, in HidumpHelp()
57 retTemp = sprintf_s(message + ret, DUMP_INFO_MAX - ret, "\nsession id list:\n"); in HidumpList()
62 retTemp = sprintf_s(message + ret, DUMP_INFO_MAX - ret, "index %u sessionId: %u \n", count, node->sessionId); in HidumpList()
88 retTemp = sprintf_s(message + ret, DUMP_INFO_MAX - ret, "\ncapability: %x\n", session->capability); in HidumpInfoClient()
90 retTemp = sprintf_s(message + ret, DUMP_INFO_MAX - ret, "amendSendRate: "); in HidumpInfoClient()
95 retTemp = sprintf_s(message + ret, DUMP_INFO_MAX - ret, "%d ", peerInfoTemp->amendSendRate); in HidumpInfoClient()
98 retTemp = sprintf_s(message + ret, DUMP_INFO_MAX - ret, "\nIO read rate: %u KB/s\n", session->fileManager->iorRate); in HidumpInfoClient()
100 retTemp = sprintf_s(message + ret, DUMP_INFO_MAX - ret, "total send block num: %llu\n", in HidumpInfoClient()
120 retTemp = sprintf_s(message + ret, DUMP_INFO_MAX - ret, "\ncapability: %x\n", session->capability); in HidumpInfoServer()
122 retTemp = sprintf_s(messag in HidumpInfoServer()
[all...]
/foundation/multimedia/av_codec/test/nativedemo/include/
H A Ddemo_log.h27 (void)sprintf_s(ch, LOG_MAX_SIZE, fmt, ##__VA_ARGS__); \
37 (void)sprintf_s(ch, LOG_MAX_SIZE, fmt, ##__VA_ARGS__); \
46 (void)sprintf_s(ch, LOG_MAX_SIZE, fmt, ##__VA_ARGS__); \
54 (void)sprintf_s(ch, LOG_MAX_SIZE, fmt, ##__VA_ARGS__); \
/foundation/arkui/ui_lite/frameworks/components/
H A Dui_digital_clock.cpp139 if (sprintf_s(buf[HOUR_ELEMENT], BUFFER_SIZE, format, currentHour_) < 0) { in UpdateClock()
142 if (sprintf_s(buf[MINUTE_ELEMENT], BUFFER_SIZE, "%02d", currentMinute_) < 0) { in UpdateClock()
148 if (sprintf_s(buf[HOUR_ELEMENT], BUFFER_SIZE, format, currentHour_ % HALF_DAY_IN_HOUR) < 0) { in UpdateClock()
151 if (sprintf_s(buf[MINUTE_ELEMENT], BUFFER_SIZE, "%02d", currentMinute_) < 0) { in UpdateClock()
157 if (sprintf_s(buf[HOUR_ELEMENT], BUFFER_SIZE, format, currentHour_ % HALF_DAY_IN_HOUR) < 0) { in UpdateClock()
160 if (sprintf_s(buf[MINUTE_ELEMENT], BUFFER_SIZE, formatForMinute, currentMinute_) < 0) { in UpdateClock()
163 if (sprintf_s(buf[SECOND_ELEMENT], BUFFER_SIZE, "%02d", currentSecond_) < 0) { in UpdateClock()
169 if (sprintf_s(buf[HOUR_ELEMENT], BUFFER_SIZE, format, currentHour_) < 0) { in UpdateClock()
172 if (sprintf_s(buf[MINUTE_ELEMENT], BUFFER_SIZE, formatForMinute, currentMinute_) < 0) { in UpdateClock()
175 if (sprintf_s(bu in UpdateClock()
[all...]
/foundation/arkui/ace_engine_lite/frameworks/common/memory/
H A Dmem_proc.cpp57 if (sprintf_s(markdata, MSG_LENGTH, "%ti.txt", seconds) < 0) { in ClearUp()
92 if (sprintf_s(markdata, MSG_LENGTH, "Phy:%d(KB)\n", uint32_t(pmc.WorkingSetSize / UNIT)) < 0) { in SysMemTracing()
101 if (sprintf_s(markdata, MSG_LENGTH, "Vir:%d(KB)\n", uint32_t(pmc.PagefileUsage / UNIT)) < 0) { in SysMemTracing()
136 if (sprintf_s(markdata, MSG_LENGTH, "jerry heap total:%d(KB)\n", uint32_t(total / UNIT)) < 0) { in JerryMemTracing()
145 if (sprintf_s(markdata, MSG_LENGTH, "jerry heap current:%d(KB)\n", uint32_t(current / UNIT)) < 0) { in JerryMemTracing()
154 if (sprintf_s(markdata, MSG_LENGTH, "jerry heap peak:%d(KB)\n", uint32_t(peak / UNIT)) < 0) { in JerryMemTracing()
/foundation/communication/wifi/wifi/relation_services/wifi_hal_service/wifi_hal_module/hostapd_hal/
H A Dwifi_hostapd_hal.c392 if (sprintf_s(cmd, sizeof(cmd), "SET ssid %s", name) < 0) { in SetApName()
407 if (sprintf_s(cmd, sizeof(cmd), "SET rsn_pairwise %s", type) < 0) { in SetApRsnPairwise()
421 if (sprintf_s(cmd, sizeof(cmd), "SET wpa_pairwise %s", type) < 0) { in SetApWpaPairwise()
435 if (sprintf_s(cmd, sizeof(cmd), "SET wpa_key_mgmt %s", type) < 0) { in SetApWpaKeyMgmt()
449 retval = sprintf_s(cmd, sizeof(cmd), "SET wpa 0"); /* The authentication mode is NONE. */ in SetApWpaValue()
452 retval = sprintf_s(cmd, sizeof(cmd), "SET wpa 1"); /* The authentication mode is WPA-PSK. */ in SetApWpaValue()
455 retval = sprintf_s(cmd, sizeof(cmd), "SET wpa 2"); /* The authentication mode is WPA2-PSK. */ in SetApWpaValue()
491 if (sprintf_s(cmd, sizeof(cmd), "SET wpa_passphrase %s", pass) < 0) { in SetApPasswd()
502 if (sprintf_s(cmd, sizeof(cmd), "SET channel %d", channel) < 0) { in SetApChannel()
513 if (sprintf_s(cm in SetApWmm()
[all...]
/foundation/multimedia/av_codec/test/unittest/hcodec_test/unittest/
H A Dhcodec_list_unit_test.cpp50 (void)sprintf_s(info, sizeof(info), "[%d,%d]", obj.minVal, obj.maxVal); in GetPrintInfo()
57 (void)sprintf_s(info, sizeof(info), "[w:%d,h:%d]", obj.width, obj.height); in GetPrintInfo()
66 (void)sprintf_s(tmp, sizeof(tmp), "%d,", one); in GetPrintInfo()
77 (void)sprintf_s(tmp, sizeof(tmp), "%d", iter->first); in GetPrintInfo()
/foundation/ability/ability_runtime/cj_environment/frameworks/cj_environment/src/
H A Ddynamic_loader_ohos.cpp43 auto ends = sprintf_s(g_dlError, sizeof(g_dlError), "%s", errMsg); in ReadDlError()
111 if (sprintf_s(g_sharedLibsSonames + cursor, sharedLibsSonamesLength - cursor, "%s:", allowList[i]) == -1) { in InitSharedLibsSonames()
149 if (sprintf_s(g_dlError, sizeof(g_dlError), errMsg.c_str()) == -1) { in DynamicInitNamespace()
/foundation/graphic/graphic_3d/lume/LumeRender/src/gles/
H A Dspirv_cross_helpers_gles.cpp82 const int len = sprintf_s(buf, sizeof(buf), "%u %uu\n", c.id, value); in DefineForSpec()
89 const int len = sprintf_s(buf, sizeof(buf), "%u %d\n", c.id, value); in DefineForSpec()
97 const int len = sprintf_s(buf, sizeof(buf), "%u %f\n", c.id, value); in DefineForSpec()
/foundation/distributeddatamgr/kv_store/frameworks/native/kv_store/src/kvstore_impl_posix/
H A Dkv_store.c46 if (sprintf_s(keyPath, MAX_KEY_PATH + 1, "%s/%s/%s", dataPath, KVSTORE_PATH, key) < 0) { in GetResolvedPath()
127 if (sprintf_s(keyPath, MAX_KEY_PATH + 1, "%s/%s/%s", dataPath, KVSTORE_PATH, key) < 0) { in DeleteValueFromFile()
145 if (sprintf_s(kvPath, MAX_KEY_PATH + 1, "%s/%s", dataPath, KVSTORE_PATH) < 0) { in InitKv()
164 if (sprintf_s(kvPath, MAX_KEY_PATH + 1, "%s/%s", dataPath, KVSTORE_PATH) < 0) { in GetCurrentItem()
176 if (sprintf_s(fullPath, MAX_KEY_PATH + 1, "%s/%s", kvPath, dir->d_name) < 0) { in GetCurrentItem()
199 if (sprintf_s(keyPath, MAX_KEY_PATH + 1, "%s/%s/%s", dataPath, KVSTORE_PATH, key) < 0) { in NewItem()
/foundation/communication/bluetooth/frameworks/inner/c_adapter/
H A Dohos_bt_adapter_utils.cpp36 int ret = sprintf_s(temp, sizeof(temp), "%02X:%02X:%02X:%02X:%02X:%02X", in ConvertAddr()
39 HILOGE("ConvertAddr sprintf_s return error, ret -1"); in ConvertAddr()
64 (void)sprintf_s(temp, sizeof(temp), "%02X:%02X:%02X:%02X:%02X:%02X", in GetAddrFromByte()
/foundation/communication/wifi/wifi/relation_services/wifi_hal_service/
H A Dwifi_hal_chba_interface.c140 if (sprintf_s(eventStr, sizeof(eventStr), "P2P-CONNECTED status =%d", startchba) < 0) { in ChbaStart()
141 LOGE("ChbaStop sprintf_s failed! "); in ChbaStart()
157 if (sprintf_s(eventStr, sizeof(eventStr), "P2P-CONNECTED status =%d", stopchba) < 0) { in ChbaStop()
158 LOGE("ChbaStop sprintf_s failed! "); in ChbaStop()
/foundation/arkui/napi/module_manager/
H A Dnative_module_manager.cpp429 if (sprintf_s(sharedLibsSonames_ + cursor, sharedLibsSonamesLength - cursor, "%s:", allowList[i]) == -1) { in CreateSharedLibsSonames()
753 if (sprintf_s(nativeModulePath[0], pathLength, "%s/%s", prefix, dupModuleName) == -1) { in GetNativeModulePath()
763 if (sprintf_s(nativeModulePath[0], pathLength, "lib%s%s", dupModuleName, soPostfix) == -1) { in GetNativeModulePath()
767 if (sprintf_s(nativeModulePath[0], pathLength, "%s/lib%s%s%s", in GetNativeModulePath()
772 if (sprintf_s(nativeModulePath[1], pathLength, "%s/lib%s_napi%s%s", in GetNativeModulePath()
777 if (sprintf_s(nativeModulePath[2], pathLength, "%s/%s%s", // 2 : Element index value in GetNativeModulePath()
784 if (sprintf_s(nativeModulePath[0], pathLength, "lib%s%s", dupModuleName, soPostfix) == -1) { in GetNativeModulePath()
793 sprintfResult = sprintf_s(nativeModulePath[0], pathLength, "%s/lib%s%s", in GetNativeModulePath()
797 sprintfResult = sprintf_s(nativeModulePath[0], pathLength, "lib%s%s", dupModuleName, soPostfix); in GetNativeModulePath()
804 if (sprintf_s(nativeModulePat in GetNativeModulePath()
[all...]
/foundation/distributeddatamgr/kv_store/frameworks/native/dbm_kv_store/src/kv_store_impl_hal/
H A Ddbm_kv_store.c275 if (sprintf_s(sumFilePath, len, ItemPathFormat(db), db->dirPath, KV_SUM_FILE) < 0) { in GetSumFilePath()
348 if (sprintf_s(keyPath, MAX_KEY_PATH + 1, ItemPathFormat(db), db->dirPath, key) < 0) { in DeleteValueFromFile()
362 if (sprintf_s(keyPath, MAX_KEY_PATH + 1, ItemPathFormat(db), db->dirPath, key) < 0) { in IsNewItem()
390 if (sprintf_s(bakKey, MAX_KEY_LEN + 8, "%s_dbm_kv", item->key) < 0) { in DelItem()
411 if (sprintf_s(srcPath, MAX_KEY_PATH + 1, ItemPathFormat(db), db->dirPath, src) < 0) { in CopyValueToFile()
416 if (sprintf_s(destPath, MAX_KEY_PATH + 1, ItemPathFormat(db), db->dirPath, dest) < 0) { in CopyValueToFile()
436 if (sprintf_s(bakFile, MAX_KEY_PATH + 1, "%s_dbm_kv", item->key) < 0) { in RecoverItem()
464 if (sprintf_s(bakFile, MAX_KEY_PATH + 1, "%s_dbm_kv", item->key) < 0) { in CheckPointItem()
541 if (sprintf_s(value, KV_SUM_INDEX, "%d", sumIndex) < 0) { in SetSumIndexToFile()
758 if (sprintf_s(keyPat in GetValueByFile()
[all...]
/foundation/multimedia/media_library/frameworks/services/media_mtp/src/
H A Dmtp_packet_tools.cpp787 if (sprintf_s(buffer, sizeof(buffer), "%04d%02d%02dT%02d%02d%02d", tm.tm_year + BEGIN_YEAR, tm.tm_mon + 1, in FormatDateTime()
845 if (sprintf_s(tmpbuf, sizeof(tmpbuf), "hex=%02x, dec=%d", value, value) == -1) { in Int8ToString()
855 if (sprintf_s(tmpbuf, sizeof(tmpbuf), "hex=%02x, dec=%u", value, value) == -1) { in UInt8ToString()
865 if (sprintf_s(tmpbuf, sizeof(tmpbuf), "hex=%04x, dec=%d", value, value) == -1) { in Int16ToString()
875 if (sprintf_s(tmpbuf, sizeof(tmpbuf), "hex=%04x, dec=%u", value, value) == -1) { in UInt16ToString()
885 if (sprintf_s(tmpbuf, sizeof(tmpbuf), "hex=%08x, dec=%d", value, value) == -1) { in Int32ToString()
895 if (sprintf_s(tmpbuf, sizeof(tmpbuf), "hex=%08x, dec=%u", value, value) == -1) { in UInt32ToString()
905 if (sprintf_s(tmpbuf, sizeof(tmpbuf), "hex=%016" PRIx64 ", dec=%" PRIi64 "", value, value) == -1) { in Int64ToString()
915 if (sprintf_s(tmpbuf, sizeof(tmpbuf), "hex=%016" PRIx64 ", dec=%" PRIu64 "", value, value) == -1) { in UInt64ToString()
925 if (sprintf_s(tmpbu in Int128ToString()
[all...]
/foundation/ability/ability_runtime/frameworks/native/ability/native/
H A Ddata_uri_utils.cpp71 int ret = sprintf_s(longBuffer, sizeof(longBuffer), "%lld", id); in AttachId()
131 int ret = sprintf_s(longBuffer, sizeof(longBuffer), "%lld", id); in UpdateId()
/foundation/multimedia/camera_framework/interfaces/inner_api/native/test/
H A Dtest_common.cpp65 retVal = sprintf_s(path, sizeof(path) / sizeof(path[0]), "/data/media/preview/%s_%lld.yuv", "preview", in SaveYUV()
73 retVal = sprintf_s(path, sizeof(path) / sizeof(path[0]), "/data/media/photo/%s_%lld.jpg", "photo", in SaveYUV()
81 retVal = sprintf_s(path, sizeof(path) / sizeof(path[0]), "/data/media/preview2/%s_%lld.yuv", "preview2", in SaveYUV()
126 retVal = sprintf_s(path, sizeof(path) / sizeof(path[0]), in SaveVideoFile()
/foundation/multimedia/image_framework/mock/native/include/secure/
H A Dsecurec.h74 SECUREC_API int sprintf_s(char *strDest, size_t destMax, const char *format, ...) SECUREC_ATTRIBUTE(3, 4);
/foundation/multimedia/player_framework/test/unittest/common/include/
H A Dunittest_log.h56 (void)sprintf_s(ch, LOG_MAX_SIZE, fmt, ##__VA_ARGS__); \
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/gaussdb_rd/src/interface/src/
H A Ddocument_key.cpp41 if (sprintf_s(idTemp, GRD_DOC_OID_HEX_SIZE + 1, "%08x%04x", now, iv) < 0) { in InitDocIdFromOid()
/foundation/communication/bluetooth_service/test/fuzztest/host/pairdevice_fuzzer/
H A Dpairdevice_fuzzer.cpp35 int ret = sprintf_s(temp, sizeof(temp), "%02X:%02X:%02X:%02X:%02X:%02X", in DoSomethingInterestingWithMyAPI()
/foundation/communication/bluetooth_service/test/fuzztest/host/cancelpaireddevice_fuzzer/
H A Dcancelpaireddevice_fuzzer.cpp36 int ret = sprintf_s(temp, sizeof(temp), "%02X:%02X:%02X:%02X:%02X:%02X", in DoSomethingInterestingWithMyAPI()
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/include/
H A Dnstackx_dfinder_hidump.h27 ret = sprintf_s(data + index, size - index, fmt, ##__VA_ARGS__); \
/foundation/multimedia/audio_framework/frameworks/native/audioutils/include/
H A Daudio_utils_c.h39 int AUTO_NAME(ret) = sprintf_s(AUTO_NAME(str), SPRINTF_STRING_LEN, fmt, ##args); \

Completed in 15 milliseconds

1234567