Home
last modified time | relevance | path

Searched refs:IsValidString (Results 1 – 25 of 34) sorted by relevance

12

/ohos5.0/foundation/communication/dsoftbus/core/transmission/session/src/
H A Dtrans_session_service.c92 if (!IsValidString(pkgName, PKG_NAME_SIZE_MAX - 1) || in TransCreateSessionServer()
93 !IsValidString(sessionName, SESSION_NAME_SIZE_MAX - 1)) { in TransCreateSessionServer()
139 if (!IsValidString(pkgName, PKG_NAME_SIZE_MAX - 1) || in TransRemoveSessionServer()
140 !IsValidString(sessionName, SESSION_NAME_SIZE_MAX - 1)) { in TransRemoveSessionServer()
156 if (!IsValidString(param->sessionName, SESSION_NAME_SIZE_MAX) || in TransOpenSession()
157 !IsValidString(param->peerSessionName, SESSION_NAME_SIZE_MAX) || in TransOpenSession()
158 !IsValidString(param->peerDeviceId, DEVICE_ID_SIZE_MAX) || in TransOpenSession()
/ohos5.0/foundation/communication/dsoftbus/sdk/bus_center/service/src/
H A Dclient_bus_center.c158 … if (packageName != NULL && IsValidString(packageName, PKG_NAME_SIZE_MAX - 1) && strncpy_s(pkgName, in DfxRecordSdkJoinLnnEnd()
177 … if (packageName != NULL && IsValidString(packageName, PKG_NAME_SIZE_MAX - 1) && strncpy_s(pkgName, in DfxRecordSdkLeaveLnnEnd()
193 … if (packageName != NULL && IsValidString(packageName, PKG_NAME_SIZE_MAX - 1) && strncpy_s(pkgName, in DfxRecordSdkShiftGearStart()
213 … if (packageName != NULL && IsValidString(packageName, PKG_NAME_SIZE_MAX - 1) && strncpy_s(pkgName, in DfxRecordLnnDiscServerEnd()
225 … if (packageName != NULL && IsValidString(packageName, PKG_NAME_SIZE_MAX - 1) && strncpy_s(pkgName, in DfxRecordRegNodeStart()
273 if (!IsValidString(networkId, NETWORK_ID_BUF_LEN) || info == NULL) { in GetNodeKeyInfo()
291 if (!IsValidString(networkId, NETWORK_ID_BUF_LEN)) { in SetNodeDataChangeFlag()
364 …if (!IsValidString(networkId, NETWORK_ID_BUF_LEN) || cb == NULL || !IsValidString(pkgName, PKG_NAM… in LeaveLNN()
400 if (pkgName == NULL || !IsValidString(targetNetworkId, NETWORK_ID_BUF_LEN) || in StartTimeSync()
414 if (pkgName == NULL || !IsValidString(targetNetworkId, NETWORK_ID_BUF_LEN)) { in StopTimeSync()
/ohos5.0/foundation/communication/dsoftbus/tests/core/frame/unittest/mock/
H A Dsoftbus_server_test_mock.cpp41 bool IsValidString(const char *input, uint32_t maxLen) in IsValidString() function
43 return GetSoftbusServerTestInterface()->IsValidString(input, maxLen); in IsValidString()
H A Dsoftbus_server_test_mock.h27 virtual bool IsValidString(const char *input, uint32_t maxLen) = 0;
33 MOCK_METHOD2(IsValidString, bool (const char *input, uint32_t maxLen));
/ohos5.0/foundation/communication/dsoftbus/sdk/transmission/session/src/
H A Dclient_trans_session_service.c107 …if (!IsValidString(pkgName, PKG_NAME_SIZE_MAX - 1) || !IsValidString(sessionName, SESSION_NAME_SIZ… in CreateSessionServer()
149 …if (!IsValidString(pkgName, PKG_NAME_SIZE_MAX - 1) || !IsValidString(sessionName, SESSION_NAME_SIZ… in RemoveSessionServer()
180 if (!IsValidString(mySessionName, SESSION_NAME_SIZE_MAX - 1)) { in CheckParamIsValid()
187 if (!IsValidString(peerSessionName, SESSION_NAME_SIZE_MAX - 1)) { in CheckParamIsValid()
194 if (!IsValidString(peerNetworkId, DEVICE_ID_SIZE_MAX - 1)) { in CheckParamIsValid()
319 if (IsValidString(addrInfo->info.ip.ip, IP_STR_MAX_LEN) && addrInfo->info.ip.port > 0) { in ConvertAddrStr()
388 if (!IsValidString(sessionName, SESSION_NAME_SIZE_MAX - 1)) { in OpenAuthSession()
623 if (!IsValidString(rootDir, FILE_RECV_ROOT_DIR_SIZE_MAX)) { in IsValidFileReceivePath()
639 …if (!IsValidString(pkgName, PKG_NAME_SIZE_MAX - 1) || !IsValidString(sessionName, SESSION_NAME_SIZ… in SetFileReceiveListener()
657 …if (!IsValidString(pkgName, PKG_NAME_SIZE_MAX - 1) || !IsValidString(sessionName, SESSION_NAME_SIZ… in SetFileSendListener()
[all …]
H A Dclient_trans_socket_service.c36 if (!IsValidString(info->name, SESSION_NAME_SIZE_MAX - 1) || in CheckSocketInfoIsValid()
37 !IsValidString(info->pkgName, PKG_NAME_SIZE_MAX - 1)) { in CheckSocketInfoIsValid()
42 if (info->peerName != NULL && !IsValidString(info->peerName, SESSION_NAME_SIZE_MAX - 1)) { in CheckSocketInfoIsValid()
51 … if (info->peerNetworkId != NULL && !IsValidString(info->peerNetworkId, DEVICE_ID_SIZE_MAX - 1)) { in CheckSocketInfoIsValid()
204 if (!IsValidString(peerNetworkId, DEVICE_ID_SIZE_MAX) || dataType >= DATA_TYPE_BUTT || in EvaluateQos()
H A Dclient_trans_socket_manager.c232 if (!IsValidString(sessionName, SESSION_NAME_SIZE_MAX - 1)) { in CreateNonEncryptSessionInfo()
542 if (!IsValidString(session->info.peerSessionName, SESSION_NAME_SIZE_MAX - 1) || in CheckBindSocketInfo()
543 !IsValidString(session->info.peerDeviceId, DEVICE_ID_SIZE_MAX - 1)) { in CheckBindSocketInfo()
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/base/
H A Dnumber_parser.cpp34 if (!(IsValidString(percentStr, strLength)) || (strLength < minLength)) { in ParsePercentValue()
76 bool NumberParser::IsValidString(const char *str, uint16_t strLength) in IsValidString() function in OHOS::ACELite::NumberParser
H A Dnumber_parser.h50 static bool IsValidString(const char *str, uint16_t strLength);
/ohos5.0/foundation/communication/dsoftbus/tests/core/common/utils/unittest/
H A Dsoftbus_utils_test.cpp267 EXPECT_FALSE(IsValidString(input, maxLen));
271 EXPECT_FALSE(IsValidString(input, maxLen));
275 EXPECT_FALSE(IsValidString(input, maxLen));
279 EXPECT_TRUE(IsValidString(input, maxLen));
/ohos5.0/foundation/communication/dsoftbus/tests/core/frame/unittest/
H A Dsoftbus_server_test.cpp160 EXPECT_CALL(softbusServerMock, IsValidString(_, _))
165 EXPECT_CALL(softbusServerMock, IsValidString(_, _))
/ohos5.0/foundation/communication/dsoftbus/tests/core/common/utils/fuzztest/softbusutils_fuzzer/
H A Dsoftbusutils_fuzzer.cpp66 IsValidString(reinterpret_cast<const char *>(tmp), OHOS::MAX_BUFFER_LEN - 1); in SoftbusUtilsSwitch()
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/distributed_ledger/src/
H A Dlnn_distributed_net_ledger_manager.c1135 if (!IsValidString(networkId, ID_MAX_LEN)) { in LnnGetRemoteStrInfo()
1168 if (!IsValidString(networkId, ID_MAX_LEN)) { in LnnGetRemoteNumInfo()
1202 if (!IsValidString(networkId, ID_MAX_LEN)) { in LnnGetRemoteNumU32Info()
1236 if (!IsValidString(networkId, ID_MAX_LEN)) { in LnnGetRemoteNumU64Info()
1269 if (!IsValidString(networkId, ID_MAX_LEN)) { in LnnGetRemoteNum16Info()
1302 if (!IsValidString(networkId, ID_MAX_LEN)) { in LnnGetRemoteBoolInfoCommon()
1345 if (!IsValidString(networkId, ID_MAX_LEN) || info == NULL) { in LnnGetRemoteByteInfo()
1505 if (!IsValidString(uuid, ID_MAX_LEN)) { in LnnGetNetworkIdByUuid()
1531 if (!IsValidString(udid, ID_MAX_LEN)) { in LnnGetNetworkIdByUdid()
/ohos5.0/foundation/communication/dsoftbus/core/common/include/
H A Dsoftbus_utils.h82 bool IsValidString(const char *input, uint32_t maxLen);
/ohos5.0/base/print/print_fwk/frameworks/ohprint/include/
H A Dprint_converter.h40 inline bool IsValidString(const char *address) in IsValidString() function
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/disc_mgr/src/
H A Dlnn_discovery_interface.c39 … if (packageName != NULL && IsValidString(packageName, PKG_NAME_SIZE_MAX - 1) && strncpy_s(pkgName, in DfxRecordLnnDiscServiceEnd()
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/proxy/src/
H A Dsoftbus_proxychannel_listener.c451 if (!IsValidString(sessionName, SESSION_NAME_SIZE_MAX) || in TransOpenNetWorkingChannel()
452 !IsValidString(peerNetworkId, DEVICE_ID_SIZE_MAX)) { in TransOpenNetWorkingChannel()
H A Dsoftbus_proxychannel_pipeline.c178 if (!IsValidString(networkId, ID_MAX_LEN)) { in TransProxyPipelineOpenChannel()
259 if (!IsValidString(networkId, ID_MAX_LEN)) { in TransProxyPipelineGetChannelIdByNetworkId()
/ohos5.0/foundation/communication/dsoftbus/sdk/frame/common/src/
H A Dsoftbus_client_frame_manager.c211 COMM_CHECK_AND_RETURN_RET_LOGE(IsValidString(pkgName, PKG_NAME_SIZE_MAX - 1), in InitSoftBus()
/ohos5.0/foundation/communication/dsoftbus/core/frame/standard/init/src/
H A Dsoftbus_server.cpp406 if (!IsValidString(peerNetworkId, NETWORK_ID_BUF_LEN - 1) || dataType >= DATA_TYPE_BUTT in EvaluateQos()
/ohos5.0/foundation/communication/dsoftbus/core/common/utils/
H A Dsoftbus_utils.c278 bool IsValidString(const char *input, uint32_t maxLen) in IsValidString() function
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/
H A Dlnn_net_builder.c436 … if (packageName != NULL && IsValidString(packageName, PKG_NAME_SIZE_MAX - 1) && strncpy_s(pkgName, in DfxRecordLnnServerjoinStart()
455 if (para != NULL && IsValidString(para->pkgName, PKG_NAME_SIZE_MAX - 1)) { in DfxRecordLnnAuthStart()
/ohos5.0/foundation/communication/dsoftbus/core/common/dfx/hisysevent_adapter/
H A Dsoftbus_hisysevt_discreporter.c498 …COMM_CHECK_AND_RETURN_RET_LOGE(IsValidString(moduleName, MODULE_NAME_MAX_LEN), SOFTBUS_INVALID_PKG… in SoftbusRecordBleDiscDetails()
H A Dsoftbus_hisysevt_connreporter.c472 …COMM_CHECK_AND_RETURN_RET_LOGE(IsValidString(pkgName, PKG_NAME_SIZE_MAX), SOFTBUS_INVALID_PKGNAME,… in SoftBusRecordPIdAndPkgName()
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/common/src/
H A Dtrans_channel_common.c477 if (!IsValidString(sessionName, SESSION_NAME_SIZE_MAX)) { in TransBuildOpenAuthChannelStartEvent()

12