Home
last modified time | relevance | path

Searched refs:strlen (Results 1 - 25 of 882) sorted by relevance

12345678910>>...36

/foundation/communication/wifi/wifi/test/wifi_standard/wifi_hal/unittest/
H A Dwifi_hal_crpc_server_add_test.cpp94 mContext->nPos = strlen("N\tP2pSetRandomMac\t"); in HWTEST_F()
95 mContext->nSize = strlen(buff); in HWTEST_F()
99 mContext->nPos = strlen("N\tP2pSetRandomMac\t"); in HWTEST_F()
100 mContext->nSize = strlen(buff1); in HWTEST_F()
110 mContext->nPos = strlen("N\tP2pSetDeviceName\t"); in HWTEST_F()
111 mContext->nSize = strlen(buff); in HWTEST_F()
115 mContext->nPos = strlen("N\tP2pSetDeviceName\t"); in HWTEST_F()
116 mContext->nSize = strlen(buff1); in HWTEST_F()
126 mContext->nPos = strlen("N\tP2pSetSsidPostfixName\t"); in HWTEST_F()
127 mContext->nSize = strlen(buf in HWTEST_F()
[all...]
H A Dwifi_hal_crpc_server_test.cpp43 return strncmp(left, right, strlen(right)); in StrcmpMathRight()
103 mContext->nSize = strlen(buff); in HWTEST_F()
108 mContext->nSize = strlen(buff2); in HWTEST_F()
114 mContext->nSize = strlen(buff3); in HWTEST_F()
384 mContext->nPos = strlen("N\tGetName\t"); in HWTEST_F()
385 mContext->nSize = strlen(buff); in HWTEST_F()
389 mContext->nPos = strlen("N\tGetName\t"); in HWTEST_F()
390 mContext->nSize = strlen(buff2); in HWTEST_F()
407 mContext->nPos = strlen("N\tRegisterEventCallback\t"); in HWTEST_F()
408 mContext->nSize = strlen(buf in HWTEST_F()
[all...]
H A Dwifi_hal_ap_interface_test.cpp62 config.ssidLen = strlen(config.ssid); in HWTEST_F()
64 config.preSharedKeyLen = strlen(config.preSharedKey); in HWTEST_F()
73 EXPECT_TRUE(SetMacFilter(tmpMac, strlen((const char *)tmpMac), 0) == WIFI_HAL_FAILED); in HWTEST_F()
75 EXPECT_TRUE(SetMacFilter(tmpMac2, strlen((const char *)tmpMac2), 0) == WIFI_HAL_INPUT_MAC_INVALID); in HWTEST_F()
77 EXPECT_TRUE(SetMacFilter(mac, strlen((const char *)mac), 0) == WIFI_HAL_SUCCESS); in HWTEST_F()
84 EXPECT_TRUE(DelMacFilter(tmpMac, strlen((const char *)tmpMac), 0) == WIFI_HAL_FAILED); in HWTEST_F()
86 EXPECT_TRUE(DelMacFilter(tmpMac2, strlen((const char *)tmpMac2), 0) == WIFI_HAL_INPUT_MAC_INVALID); in HWTEST_F()
88 EXPECT_TRUE(DelMacFilter(mac, strlen((const char *)mac), 0) == WIFI_HAL_SUCCESS); in HWTEST_F()
95 EXPECT_TRUE(DisassociateSta(tmpMac, strlen((const char *)tmpMac), 0) == WIFI_HAL_FAILED); in HWTEST_F()
97 EXPECT_TRUE(DisassociateSta(tmpMac2, strlen((cons in HWTEST_F()
[all...]
/foundation/graphic/graphic_2d/rosen/modules/graphics_effect/test/fuzztest/
H A Dget_object.h59 std::string GetStringFromData(int strlen) in GetStringFromData() argument
61 if (strlen <= 0) { in GetStringFromData()
64 if (strlen > STR_MAX_LEN) { in GetStringFromData()
65 strlen = STR_MAX_LEN; in GetStringFromData()
67 char cstr[strlen]; in GetStringFromData()
68 cstr[strlen - 1] = '\0'; in GetStringFromData()
69 for (int i = 0; i < strlen - 1; i++) { in GetStringFromData()
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/idl_client/unittest/
H A Di_wifi_test.cpp356 mTestContext->nSize = strlen(test) + 1; in HWTEST_F()
367 mTestContext->nSize = strlen(test) + 1; in HWTEST_F()
372 mTestContext->nSize = strlen(test1) + 1; in HWTEST_F()
377 mTestContext->nSize = strlen(test2) + 1; in HWTEST_F()
382 mTestContext->nSize = strlen(test3) + 1; in HWTEST_F()
394 mTestContext->nSize = strlen(test) + 1; in HWTEST_F()
399 mTestContext->nSize = strlen(test1) + 1; in HWTEST_F()
409 mTestContext->nSize = strlen(test) + 1; in HWTEST_F()
414 mTestContext->nSize = strlen(test1) + 1; in HWTEST_F()
419 mTestContext->nSize = strlen(test in HWTEST_F()
[all...]
/foundation/arkui/ace_engine_lite/frameworks/src/core/modules/presets/test/unittest/common/
H A Dconsole_module_test.cpp119 const size_t targetLogLength = strlen(targetLog); in HWTEST_F()
121 const size_t evalCodeLen = strlen(codeToEval); in HWTEST_F()
141 const size_t targetLogLength = strlen(targetLog); in HWTEST_F()
143 const size_t evalCodeLen = strlen(codeToEval); in HWTEST_F()
163 const size_t targetLogLength = strlen(targetLog); in HWTEST_F()
165 const size_t evalCodeLen = strlen(codeToEval); in HWTEST_F()
185 const size_t targetLogLength = strlen(targetLog); in HWTEST_F()
187 const size_t evalCodeLen = strlen(codeToEval); in HWTEST_F()
207 const size_t targetLogLength = strlen(targetLog); in HWTEST_F()
209 const size_t evalCodeLen = strlen(codeToEva in HWTEST_F()
[all...]
/foundation/communication/dhcp/services/dhcp_server/src/
H A Dcommon_util.cpp88 int i = strlen(buf) - 1; in RightTrim()
109 int flen = strlen(fileName); in GetFilePath()
114 if (memcpy_s(currName, sizeof(currName), fileName, strlen(fileName)) != EOK) { in GetFilePath()
124 if (memcpy_s(currFilePath, sizeof(currFilePath), currName, strlen(currName)) != EOK) { in GetFilePath()
136 if (strlen(fileName) == 0 || strlen(ifname) == 0) { in GetLeaseFile()
151 int len = strlen(fileName); in CreatePath()
176 if ((buf == nullptr) || (strlen(buf) == 0) || (bufSize == 0)) { in RemoveSpaceCharacters()
182 int nEnd = strlen(buf) - 1; in RemoveSpaceCharacters()
H A Ddhcp_config.cpp110 if (((pTok == nullptr) || (strlen(pTok) == 0)) || ((pSave == nullptr) || (strlen(pSave) == 0))) { in SetIpAddressPool()
140 if ((pTok == nullptr) || (strlen(pTok) == 0)) { in SetDnsInfo()
171 if (strlen(pValue) >= IFACE_NAME_SIZE) { in SetIfnameInfo()
176 strncpy_s(dhcpConfig->ifname, IFACE_NAME_SIZE, pValue, strlen(pValue)) != EOK) { in SetIfnameInfo()
184 if ((strLine == nullptr) || (strlen(strLine) == 0)) { in SetDhcpConfig()
218 if ((configFile == nullptr) || (strlen(configFile) == 0) || (dhcpConfig == nullptr)) { in ParseConfigFile()
241 if (memcmp(strLine, "interface", strlen("interface")) == 0) { in ParseConfigFile()
244 if ((ifname == nullptr) || (strlen(ifname) == 0) || (strstr(strLine, ifname) != nullptr)) { in ParseConfigFile()
272 if ((strlen(confi in CheckDhcpConfig()
[all...]
/foundation/graphic/graphic_2d/frameworks/opengl_wrapper/test/fuzztest/eglwrapperentry_fuzzer/
H A Deglwrapperentry_fuzzer.cpp54 std::string GetStringFromData(int strlen) in GetStringFromData() argument
56 if (strlen <= 0) { in GetStringFromData()
59 char cstr[strlen]; in GetStringFromData()
60 cstr[strlen - 1] = '\0'; in GetStringFromData()
61 for (int i = 0; i < strlen - 1; i++) { in GetStringFromData()
/foundation/resourceschedule/resource_schedule_service/ressched_executor/test/fuzztest/resschedexecutor_fuzzer/
H A Dresschedexecutor_fuzzer.cpp62 std::string GetStringFromData(int strlen) in GetStringFromData() argument
64 if (strlen <= 0) { in GetStringFromData()
67 char cstr[strlen]; in GetStringFromData()
68 cstr[strlen - 1] = '\0'; in GetStringFromData()
69 for (int i = 0; i < strlen - 1; i++) { in GetStringFromData()
/foundation/communication/netmanager_base/test/fuzztest/netbasebranch_fuzzer/
H A Dnet_base_branch_fuzzer.cpp52 std::string GetStringFromData(int strlen) in GetStringFromData() argument
54 char cstr[strlen]; in GetStringFromData()
55 cstr[strlen - 1] = '\0'; in GetStringFromData()
56 for (int i = 0; i < strlen - 1; i++) { in GetStringFromData()
63 SecureData GetSecureDataFromData(int8_t strlen) in GetSecureDataFromData() argument
66 char cstr[strlen]; in GetSecureDataFromData()
67 cstr[strlen - 1] = '\0'; in GetSecureDataFromData()
68 for (int i = 0; i < strlen - 1; i++) { in GetSecureDataFromData()
71 secureData.append(cstr, strlen - 1); in GetSecureDataFromData()
/foundation/communication/dsoftbus/components/nstackx/nstackx_util/core/
H A Dnstackx_util.c45 if (strlen(path) > 0 && path[strlen(path) - 1] == PATH_SEPARATOR) { in CheckPathSeprator()
53 if (strlen(fileName) > 0 && fileName[0] == PATH_SEPARATOR) { in CheckFilenameSeprator()
67 if (dir == NULL || strlen(dir) < 1 || dir[strlen(dir) - 1] == PATH_SEPARATOR) { in GetFileNameLen()
72 int32_t dirLen = (int32_t)strlen(dir); in GetFileNameLen()
99 startIdx = (uint32_t)(strlen(dir) + 1 - fileNameLen); in GetFileName()
147 if (path == NULL || strlen(path) == 0) { in TestAndCreateDirectory()
151 len = (uint32_t)strlen(path); in TestAndCreateDirectory()
/foundation/communication/dsoftbus/components/nstackx/nstackx_util/platform/liteos/
H A Dsys_dev.c27 uint32_t p2pNameLen = (uint32_t)strlen(P2P_DEV_NAME_PRE); in GetConnectionTypeByDevName()
28 uint32_t wlanNameLen = (uint32_t)strlen(WLAN_DEV_NAME_PRE); in GetConnectionTypeByDevName()
95 uint32_t ethNameLen = (uint32_t)strlen(ETH_DEV_NAME_PRE); in GetConnectionTypeByDev()
96 uint32_t wlanNameLen = (uint32_t)strlen(WLAN_DEV_NAME_PRE); in GetConnectionTypeByDev()
107 uint32_t ifrNameLen = (uint32_t)strlen(buf[i].ifr_name); in GetConnectionTypeByDev()
183 if (strncpy_s(ifr.ifr_ifrn.ifrn_name, IFNAMSIZ, ifBinding->ifr_name, strlen(ifBinding->ifr_name)) != EOK) { in BindToDeviceInner()
204 uint32_t ethNameLen = (uint32_t)strlen(ETH_DEV_NAME_PRE); in BindToDevice()
205 uint32_t wlanNameLen = (uint32_t)strlen(WLAN_DEV_NAME_PRE); in BindToDevice()
214 if (strlen(buf[i].ifr_name) < ethNameLen && strlen(bu in BindToDevice()
[all...]
H A Dsys_util.c34 if (fileName == NULL || strlen(fileName) == 0) { in IsFileNameLegal()
39 if (g_illegalPathHeadString[idx] == NULL || strlen(fileName) < strlen(g_illegalPathHeadString[idx])) { in IsFileNameLegal()
42 if (memcmp(fileName, g_illegalPathHeadString[idx], strlen(g_illegalPathHeadString[idx])) == 0) { in IsFileNameLegal()
49 if (g_illegalPathString[idx] == NULL || strlen(fileName) < strlen(g_illegalPathString[idx])) { in IsFileNameLegal()
/foundation/communication/dsoftbus/components/nstackx/nstackx_util/platform/unix/
H A Dsys_dev.c27 uint32_t p2pNameLen = (uint32_t)strlen(P2P_DEV_NAME_PRE); in GetConnectionTypeByDevName()
28 uint32_t wlanNameLen = (uint32_t)strlen(WLAN_DEV_NAME_PRE); in GetConnectionTypeByDevName()
95 uint32_t ethNameLen = (uint32_t)strlen(ETH_DEV_NAME_PRE); in GetConnectionTypeByDev()
96 uint32_t wlanNameLen = (uint32_t)strlen(WLAN_DEV_NAME_PRE); in GetConnectionTypeByDev()
107 uint32_t ifrNameLen = (uint32_t)strlen(buf[i].ifr_name); in GetConnectionTypeByDev()
183 if (strncpy_s(ifr.ifr_ifrn.ifrn_name, IFNAMSIZ, ifBinding->ifr_name, strlen(ifBinding->ifr_name)) != EOK) { in BindToDeviceInner()
206 uint32_t ethNameLen = (uint32_t)strlen(ETH_DEV_NAME_PRE); in BindToDevice()
207 uint32_t wlanNameLen = (uint32_t)strlen(WLAN_DEV_NAME_PRE); in BindToDevice()
218 if (strlen(buf[i].ifr_name) < ethNameLen && strlen(bu in BindToDevice()
[all...]
H A Dsys_util.c33 if (fileName == NULL || strlen(fileName) == 0) { in IsFileNameLegal()
39 if (g_illegalPathHeadString[idx] == NULL || strlen(fileName) < strlen(g_illegalPathHeadString[idx])) { in IsFileNameLegal()
42 if (memcmp(fileName, g_illegalPathHeadString[idx], strlen(g_illegalPathHeadString[idx])) == 0) { in IsFileNameLegal()
49 if (g_illegalPathString[idx] == NULL || strlen(fileName) < strlen(g_illegalPathString[idx])) { in IsFileNameLegal()
124 if (name == NULL || strlen(name) == 0 || strlen(name) >= MAX_THREAD_NAME_LEN) { in SetThreadName()
/foundation/arkui/ace_engine_lite/frameworks/src/core/stylemgr/
H A Dapp_style_list.cpp56 if (name == nullptr || strlen(name) == 0) { in GetExistStyle()
66 if (styleName == nullptr || strlen(styleName) == 0) { in GetExistStyle()
69 if ((strlen(styleName) == strlen(name)) && strcmp(styleName, name) == 0) { in GetExistStyle()
/foundation/graphic/graphic_surface/surface/test/fuzztest/common/
H A Ddata_generate.h53 [[maybe_unused]] std::string GetStringFromData(int strlen) in GetStringFromData() argument
55 char cstr[strlen]; in GetStringFromData()
56 cstr[strlen - 1] = '\0'; in GetStringFromData()
57 for (int i = 0; i < strlen - 1; i++) { in GetStringFromData()
/foundation/multimedia/audio_framework/services/audio_policy/server/src/service/manager/pnp_server/
H A Daudio_socket_thread.cpp141 if (strncmp(audioPnpUevent->subSystem, UEVENT_PLATFORM, strlen(UEVENT_PLATFORM)) == 0) { in SetAudioAnahsEventValue()
142 if (strncmp(audioPnpUevent->anahsName, UEVENT_INSERT, strlen(UEVENT_INSERT)) == 0) { in SetAudioAnahsEventValue()
146 } else if (strncmp(audioPnpUevent->anahsName, UEVENT_REMOVE, strlen(UEVENT_REMOVE)) == 0) { in SetAudioAnahsEventValue()
192 if (strncmp(audioPnpUevent->subSystem, UEVENT_SUBSYSTEM_SWITCH, strlen(UEVENT_SUBSYSTEM_SWITCH)) == 0) { in SetAudioPnpServerEventValue()
194 if (strncmp(audioPnpUevent->switchName, UEVENT_SWITCH_NAME_H2W, strlen(UEVENT_SWITCH_NAME_H2W)) != 0) { in SetAudioPnpServerEventValue()
203 if (strncmp(audioPnpUevent->action, UEVENT_ACTION_CHANGE, strlen(UEVENT_ACTION_CHANGE)) != 0) { in SetAudioPnpServerEventValue()
209 if (strncmp(audioPnpUevent->devType, UEVENT_TYPE_EXTCON, strlen(UEVENT_TYPE_EXTCON)) != 0) { in SetAudioPnpServerEventValue()
323 if (realpath(devPath, realpathRes) != NULL || (strlen(devPath) > PATH_MAX)) { in ReadAndScanUsbDev()
359 if (strlen(devName) > USB_DEV_NAME_LEN_MAX - 1) { in FindAudioUsbDevice()
366 (strncmp((char *)g_audioUsbDeviceList[count].devName, devName, strlen(devNam in FindAudioUsbDevice()
[all...]
/foundation/ability/ability_runtime/interfaces/inner_api/app_manager/src/appmgr/
H A Dapp_scheduler_proxy.cpp640 result.append(MSG_DUMP_IPC_START_STAT, strlen(MSG_DUMP_IPC_START_STAT)) in ScheduleDumpIpcStart()
641 .append(MSG_DUMP_FAIL, strlen(MSG_DUMP_FAIL)) in ScheduleDumpIpcStart()
642 .append(MSG_DUMP_FAIL_REASON_INTERNAL, strlen(MSG_DUMP_FAIL_REASON_INTERNAL)); in ScheduleDumpIpcStart()
648 result.append(MSG_DUMP_IPC_START_STAT, strlen(MSG_DUMP_IPC_START_STAT)) in ScheduleDumpIpcStart()
649 .append(MSG_DUMP_FAIL, strlen(MSG_DUMP_FAIL)) in ScheduleDumpIpcStart()
650 .append(MSG_DUMP_FAIL_REASON_INTERNAL, strlen(MSG_DUMP_FAIL_REASON_INTERNAL)); in ScheduleDumpIpcStart()
655 result.append(MSG_DUMP_IPC_START_STAT, strlen(MSG_DUMP_IPC_START_STAT)) in ScheduleDumpIpcStart()
656 .append(MSG_DUMP_FAIL, strlen(MSG_DUMP_FAIL)) in ScheduleDumpIpcStart()
657 .append(MSG_DUMP_FAIL_REASON_INTERNAL, strlen(MSG_DUMP_FAIL_REASON_INTERNAL)); in ScheduleDumpIpcStart()
672 result.append(MSG_DUMP_IPC_STOP_STAT, strlen(MSG_DUMP_IPC_STOP_STA in ScheduleDumpIpcStop()
[all...]
/foundation/distributeddatamgr/kv_store/kvstoremock/interfaces/mock/base/
H A Dsecurectype.h176 (SECUREC_TWO_MIN(count, strlen(src)) + 1) <= (size_t)destMax ) ? \
177 ((count < strlen(src))? (memcpy(dest, src, count), *((char *)dest + count) = '\0', EOK): \
178 (memcpy(dest, src, strlen(src) + 1), EOK)) : (strncpy_error(dest, destMax, src, count)))
183 (strlen(src) + 1) <= (size_t)destMax) ? (memcpy(dest, src, strlen(src) + 1), EOK): \
201 } else if ((strlen(src) + 1) <= catRestSize) { \
202 memcpy(catTmpDst, (src), strlen(src) + 1); \
235 } else if ((SECUREC_TWO_MIN((count), strlen(src)) + 1) <= ncatRestSize ) { \
236 if ((count) < strlen(src)) { \
240 memcpy(ncatTmpDest, (src), strlen(sr
[all...]
/foundation/resourceschedule/resource_schedule_service/ressched/plugins/device_standby_plugin/test/fuzztest/devicestandbyplugin_fuzzer/
H A Ddevicestandbyplugin_fuzzer.cpp64 std::string GetStringFromData(int strlen) in GetStringFromData() argument
66 if (strlen <= 0) { in GetStringFromData()
69 char cstr[strlen]; in GetStringFromData()
70 cstr[strlen - 1] = '\0'; in GetStringFromData()
71 for (int i = 0; i < strlen - 1; i++) { in GetStringFromData()
/foundation/communication/dsoftbus/core/bus_center/utils/src/
H A Dlnn_file_utils.c54 strlen(DEFAULT_STORAGE_PATH)) != EOK) { in InitStorageConfigPath()
69 if (strlen(g_storagePath) == 0) { in LnnGetFullStoragePath()
75 if (strncpy_s(path, len, g_storagePath, strlen(g_storagePath)) != EOK || in LnnGetFullStoragePath()
76 strncat_s(path, len, g_filePath[id].filePath, strlen(g_filePath[id].filePath)) != EOK) { in LnnGetFullStoragePath()
/foundation/bundlemanager/bundle_framework_lite/frameworks/bundle_lite/src/
H A Delement_name.cpp91 if (element->deviceId == nullptr || strlen(element->deviceId) == 0) { in SerializeElement()
93 } else if (strlen(element->deviceId) > MAX_DEVICE_ID) { in SerializeElement()
99 if (element->bundleName == nullptr || strlen(element->bundleName) == 0) { in SerializeElement()
101 } else if (strlen(element->bundleName) > MAX_BUNDLE_NAME) { in SerializeElement()
107 if (element->abilityName == nullptr || strlen(element->abilityName) == 0) { in SerializeElement()
109 } else if (strlen(element->abilityName) > MAX_ABILITY_NAME) { in SerializeElement()
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/skia_adapter/
H A Dskia_text_blob_test.cpp54 auto textblob = SkiaTextBlob::MakeFromText(str, strlen(str), font, TextEncoding::UTF8); in HWTEST_F()
70 auto textblob = SkiaTextBlob::MakeFromRSXform(str, strlen(str), xform, font, TextEncoding::UTF8); in HWTEST_F()
88 auto textblob = SkiaTextBlob::MakeFromPosText(str, strlen(str), pos, font, TextEncoding::UTF8); in HWTEST_F()
103 auto textblob = SkiaTextBlob::MakeFromText(str, strlen(str), font, TextEncoding::UTF8); in HWTEST_F()
122 auto blob = SkiaTextBlob::MakeFromRSXform(str, strlen(str), xform, font, TextEncoding::UTF8); in HWTEST_F()
142 auto blob = SkiaTextBlob::MakeFromPosText(str, strlen(str), pos, font, TextEncoding::UTF8); in HWTEST_F()

Completed in 13 milliseconds

12345678910>>...36