/foundation/communication/wifi/wifi/frameworks/cj/src/ |
H A D | wifi_ffi.cpp | 253 static void CjWifiP2PConfig2C(const CWifiP2PConfig &cfg, WifiP2pConfig &config) in CjWifiP2PConfig2C() argument 255 config.SetDeviceAddress(std::string(cfg.deviceAddress)); in CjWifiP2PConfig2C() 256 config.SetDeviceAddressType(cfg.deviceAddressType); in CjWifiP2PConfig2C() 257 config.SetNetId(cfg.netId); in CjWifiP2PConfig2C() 258 config.SetPassphrase(std::string(cfg.passphrase)); in CjWifiP2PConfig2C() 259 config.SetGroupName(std::string(cfg.groupName)); in CjWifiP2PConfig2C() 260 config.SetGoBand(static_cast<GroupOwnerBand>(cfg.goBand)); in CjWifiP2PConfig2C() 338 static void DeviceConfig2C(WifiDeviceConfig &config, CWifiDeviceConfig &cfg) in DeviceConfig2C() argument 341 cfg.ssid = MallocCString(config.ssid); in DeviceConfig2C() 342 cfg in DeviceConfig2C() 506 FfiWifiP2pConnect(CWifiP2PConfig &cfg) FfiWifiP2pConnect() argument 639 FfiWifiCreateGroup(CWifiP2PConfig &cfg) FfiWifiCreateGroup() argument 680 FfiWifiAddCandidateConfig(CWifiDeviceConfig cfg, int32_t &ret) FfiWifiAddCandidateConfig() argument 755 CWifiDeviceConfig cfg; FfiWifiGetCandidateConfigs() local [all...] |
/foundation/communication/netmanager_ext/services/ethernetmanager/src/stub/ |
H A D | ethernet_service_stub.cpp | 250 OHOS::nmd::InterfaceConfigurationParcel cfg; in OnGetInterfaceConfig() local 251 int32_t result = GetInterfaceConfig(iface, cfg); in OnGetInterfaceConfig() 256 reply.WriteString(cfg.ifName); in OnGetInterfaceConfig() 257 reply.WriteString(cfg.hwAddr); in OnGetInterfaceConfig() 258 reply.WriteString(cfg.ipv4Addr); in OnGetInterfaceConfig() 259 reply.WriteInt32(cfg.prefixLength); in OnGetInterfaceConfig() 260 if (cfg.flags.size() > MAX_SIZE) { in OnGetInterfaceConfig() 261 NETMGR_EXT_LOG_E("cfg flags size is too large"); in OnGetInterfaceConfig() 264 reply.WriteInt32(static_cast<int32_t>(cfg.flags.size())); in OnGetInterfaceConfig() 265 for (auto flag : cfg in OnGetInterfaceConfig() 276 OHOS::nmd::InterfaceConfigurationParcel cfg; OnSetInterfaceConfig() local [all...] |
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/idl_client/unittest/ |
H A D | wifi_sta_hal_interface_test.cpp | 260 WifiHalDeviceConfig cfg; in HWTEST_F() local 261 cfg.psk = "1234567"; in HWTEST_F() 263 WifiErrorNo ret = WifiStaHalInterface::GetInstance().SetDeviceConfig(1, cfg); in HWTEST_F() 265 cfg.psk = "01234567890123456789012345678901234567890123456789012345678901234"; in HWTEST_F() 266 ret = WifiStaHalInterface::GetInstance().SetDeviceConfig(1, cfg, ifaceName); in HWTEST_F() 268 cfg.psk = "12345678"; in HWTEST_F() 269 ret = WifiStaHalInterface::GetInstance().SetDeviceConfig(1, cfg, ifaceName); in HWTEST_F() 271 cfg.authAlgorithms = 8; in HWTEST_F() 272 ret = WifiStaHalInterface::GetInstance().SetDeviceConfig(1, cfg, ifaceName); in HWTEST_F() 274 cfg in HWTEST_F() 290 WifiHalGetDeviceConfig cfg; HWTEST_F() local 304 WifiHalWpsConfig cfg; HWTEST_F() local 311 WifiHalWpsConfig cfg; HWTEST_F() local 336 WifiHalRoamConfig cfg; HWTEST_F() local [all...] |
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/unittest/common/componentloader/src/ |
H A D | component_loader_test.cpp | 458 CompConfig cfg; in HWTEST_F() local 465 from_json(json, cfg); in HWTEST_F() 467 EXPECT_EQ(true, cfg.name.empty()); in HWTEST_F() 478 CompConfig cfg; in HWTEST_F() local 486 from_json(json, cfg); in HWTEST_F() 488 EXPECT_NE(DHType::AUDIO, cfg.type); in HWTEST_F() 499 CompConfig cfg; in HWTEST_F() local 508 from_json(json, cfg); in HWTEST_F() 510 EXPECT_EQ(true, cfg.compHandlerLoc.empty()); in HWTEST_F() 521 CompConfig cfg; in HWTEST_F() local 544 CompConfig cfg; HWTEST_F() local 568 CompConfig cfg; HWTEST_F() local 593 CompConfig cfg; HWTEST_F() local 619 CompConfig cfg; HWTEST_F() local 646 CompConfig cfg; HWTEST_F() local 674 CompConfig cfg; HWTEST_F() local 703 CompConfig cfg; HWTEST_F() local 726 CompConfig cfg; HWTEST_F() local 739 CompConfig cfg; HWTEST_F() local 753 CompConfig cfg; HWTEST_F() local 768 CompConfig cfg; HWTEST_F() local 783 CompConfig cfg; HWTEST_F() local 828 CompConfig cfg; HWTEST_F() local 860 CompConfig cfg; HWTEST_F() local 900 CompConfig cfg; HWTEST_F() local 913 CompConfig cfg; HWTEST_F() local 927 CompConfig cfg; HWTEST_F() local 942 CompConfig cfg; HWTEST_F() local 958 CompConfig cfg; HWTEST_F() local 974 CompConfig cfg; HWTEST_F() local 987 CompConfig cfg; HWTEST_F() local 1001 CompConfig cfg; HWTEST_F() local 1016 CompConfig cfg; HWTEST_F() local [all...] |
/foundation/communication/netmanager_ext/services/ethernetmanager/src/ |
H A D | ethernet_configuration.cpp | 206 sptr<InterfaceConfiguration> cfg = new (std::nothrow) InterfaceConfiguration(); in ReadUserConfiguration() local 207 if (cfg == nullptr) { in ReadUserConfiguration() 208 NETMGR_EXT_LOG_E("cfg new failed for devname[%{public}s]", iface.c_str()); in ReadUserConfiguration() 211 ParserFileConfig(fileContent, iface, cfg); in ReadUserConfiguration() 215 devCfgs[iface] = cfg; in ReadUserConfiguration() 223 bool EthernetConfiguration::WriteUserConfiguration(const std::string &iface, sptr<InterfaceConfiguration> &cfg) in WriteUserConfiguration() argument 225 if (cfg == nullptr) { in WriteUserConfiguration() 226 NETMGR_EXT_LOG_E("cfg is nullptr"); in WriteUserConfiguration() 234 if (cfg->mode_ == STATIC || cfg in WriteUserConfiguration() 332 sptr<InterfaceConfiguration> cfg = new (std::nothrow) InterfaceConfiguration(); MakeInterfaceConfiguration() local 473 ParserFileConfig(const std::string &fileContent, std::string &iface, sptr<InterfaceConfiguration> cfg) ParserFileConfig() argument 493 ParseBootProto(const std::string &fileContent, sptr<InterfaceConfiguration> cfg) ParseBootProto() argument 512 ParseStaticConfig(const std::string &fileContent, sptr<InterfaceConfiguration> cfg) ParseStaticConfig() argument 562 ParserFileHttpProxy(const std::string &fileContent, const sptr<InterfaceConfiguration> &cfg) ParserFileHttpProxy() argument 589 ParserIfaceIpAndRoute(sptr<InterfaceConfiguration> &cfg, const std::string &rootNetMask) ParserIfaceIpAndRoute() argument 637 GenCfgContent(const std::string &iface, sptr<InterfaceConfiguration> cfg, std::string &fileContent) GenCfgContent() argument 672 GenHttpProxyContent(const sptr<InterfaceConfiguration> &cfg, std::string &fileContent) GenHttpProxyContent() argument [all...] |
/foundation/ability/ability_runtime/frameworks/cj/ffi/ |
H A D | cj_environment_callback.cpp | 90 CConfiguration cfg; in CreateCConfiguration() local 91 cfg.language = CreateCStringFromString(configuration.GetItem(AAFwk::GlobalConfigurationKey::SYSTEM_LANGUAGE)); in CreateCConfiguration() 92 cfg.colorMode = ConvertColorMode(configuration.GetItem(AAFwk::GlobalConfigurationKey::SYSTEM_COLORMODE)); in CreateCConfiguration() 94 cfg.direction = ConvertDirection(direction); in CreateCConfiguration() 96 cfg.screenDensity = ConvertDensity(density); in CreateCConfiguration() 97 cfg.displayId = ConvertDisplayId(configuration.GetItem(AppExecFwk::ConfigurationInner::APPLICATION_DISPLAYID)); in CreateCConfiguration() 99 cfg.hasPointerDevice = hasPointerDevice == "true" ? true : false; in CreateCConfiguration() 101 cfg.fontSizeScale = fontSizeScale == "" ? 1.0 : std::stod(fontSizeScale); in CreateCConfiguration() 103 cfg.fontWeightScale = fontWeightScale == "" ? 1.0 : std::stod(fontWeightScale); in CreateCConfiguration() 104 cfg in CreateCConfiguration() 118 auto cfg = CreateCConfiguration(config); CallConfigurationUpdatedInner() local [all...] |
/foundation/resourceschedule/ffrt/test/ut/testcase/ |
H A D | ut_flo.cpp | 57 struct FloCfg cfg = { in InitCfg() local 69 cfg.pid, cfg.id, cfg.size, cfg.port, cfg.offset); in InitCfg() 77 if (ioctl(fd, IOCTL_SET_FLO_CONFIG, &cfg) == -1) { in InitCfg() 84 printf("flo cfg finished.\n"); in InitCfg()
|
/foundation/communication/netmanager_ext/services/ethernetmanager/include/ |
H A D | ethernet_configuration.h | 43 bool WriteUserConfiguration(const std::string &iface, sptr<InterfaceConfiguration> &cfg); 51 void ParseBootProto(const std::string &fileContent, sptr<InterfaceConfiguration> cfg); 52 void ParseStaticConfig(const std::string &fileContent, sptr<InterfaceConfiguration> cfg); 65 void ParserFileConfig(const std::string &fileContent, std::string &iface, sptr<InterfaceConfiguration> cfg); 66 void ParserFileHttpProxy(const std::string &fileContent, const sptr<InterfaceConfiguration> &cfg); 67 void ParserIfaceIpAndRoute(sptr<InterfaceConfiguration> &cfg, const std::string &rootNetMask); 68 void GenCfgContent(const std::string &iface, sptr<InterfaceConfiguration> cfg, std::string &fileContent); 69 void GenHttpProxyContent(const sptr<InterfaceConfiguration> &cfg, std::string &fileContent);
|
/foundation/communication/netstack/interfaces/innerkits/rust/ylong_http_client/src/ |
H A D | lib.rs | 19 #[cfg(feature = "reqwest_impl")] 22 #[cfg(feature = "reqwest_impl")] 25 #[cfg(feature = "ylong_impl")]
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/l2cap/ |
H A D | l2cap.c | 116 int L2CAP_ConfigReq(uint16_t lcid, const L2capConfigInfo *cfg) in L2CAP_ConfigReq() argument 127 if (cfg == NULL) { in L2CAP_ConfigReq() 131 if ((cfg->mtu < L2CAP_MIN_MTU) || (cfg->flushTimeout == 0)) { in L2CAP_ConfigReq() 144 chan->lcfg.mtu = cfg->mtu; in L2CAP_ConfigReq() 145 chan->lcfg.flushTimeout = cfg->flushTimeout; in L2CAP_ConfigReq() 146 chan->lcfg.fcs = cfg->fcs; in L2CAP_ConfigReq() 147 chan->lcfg.rfc.mode = cfg->rfc.mode; in L2CAP_ConfigReq() 150 if (cfg->rfc.rxWindowSize != 0) { in L2CAP_ConfigReq() 151 chan->lcfg.rfc.rxWindowSize = cfg in L2CAP_ConfigReq() 181 L2CAP_ConfigRsp(uint16_t lcid, uint8_t id, const L2capConfigInfo *cfg, uint16_t result) L2CAP_ConfigRsp() argument [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/avctp/ |
H A D | avctp_br_l2cap.c | 148 L2capConfigInfo cfg = {0}; in AvctBrRecvConnectionReqAct() local 149 cfg.mtu = g_avctMng.rxMtuBr; in AvctBrRecvConnectionReqAct() 150 cfg.flushTimeout = 0xFFFF; in AvctBrRecvConnectionReqAct() 151 cfg.fcs = 0x01; in AvctBrRecvConnectionReqAct() 152 cfg.rfc.mode = L2CAP_ENHANCED_RETRANSMISSION_MODE; in AvctBrRecvConnectionReqAct() 153 if (L2CIF_ConfigReq(lcid, &cfg, NULL)) { in AvctBrRecvConnectionReqAct() 216 L2capConfigInfo cfg = {0}; in AvctBrRecvConnectionRspCBack() local 217 (void)memset_s(&cfg, sizeof(L2capConfigInfo), 0, sizeof(L2capConfigInfo)); in AvctBrRecvConnectionRspCBack() 218 cfg.mtu = g_avctMng.rxMtuBr; in AvctBrRecvConnectionRspCBack() 219 cfg in AvctBrRecvConnectionRspCBack() 245 AvctBrRecvConfigReqCallback(uint16_t lcid, uint8_t id, const L2capConfigInfo *cfg, void *ctx) AvctBrRecvConfigReqCallback() argument 272 AvctBrRecvConfigReqCBack(uint16_t lcid, uint8_t id, const L2capConfigInfo *cfg, void *ctx) AvctBrRecvConfigReqCBack() argument 313 AvctBrRecvConfigRspCallback(uint16_t lcid, const L2capConfigInfo *cfg, uint16_t result, void *ctx) AvctBrRecvConfigRspCallback() argument 340 AvctBrRecvConfigRspCBack(uint16_t lcid, const L2capConfigInfo *cfg, uint16_t result, void *ctx) AvctBrRecvConfigRspCBack() argument [all...] |
H A D | avctp_ctrl_l2cap.c | 145 L2capConfigInfo cfg = {0}; in AvctRecvConnectionReqAct() local 146 cfg.mtu = g_avctMng.rxMtu; in AvctRecvConnectionReqAct() 147 cfg.flushTimeout = 0xFFFF; in AvctRecvConnectionReqAct() 148 if (L2CIF_ConfigReq(lcid, &cfg, NULL)) { in AvctRecvConnectionReqAct() 209 L2capConfigInfo cfg = {0}; in AvctRecvConnectionRspCBack() local 210 cfg.mtu = g_avctMng.rxMtu; in AvctRecvConnectionRspCBack() 211 cfg.flushTimeout = 0xFFFF; in AvctRecvConnectionRspCBack() 212 if (L2CIF_ConfigReq(lcid, &cfg, NULL)) { in AvctRecvConnectionRspCBack() 230 * Param[in] cfg the point of config 233 void AvctRecvConfigReqCallback(uint16_t lcid, uint8_t id, const L2capConfigInfo *cfg, voi argument 260 AvctRecvConfigReqCBack(uint16_t lcid, uint8_t id, const L2capConfigInfo *cfg, void *ctx) AvctRecvConfigReqCBack() argument 307 AvctRecvConfigRspCallback(uint16_t lcid, const L2capConfigInfo *cfg, uint16_t result, void *ctx) AvctRecvConfigRspCallback() argument 334 AvctRecvConfigRspCBack(uint16_t lcid, const L2capConfigInfo *cfg, uint16_t result, void *ctx) AvctRecvConfigRspCBack() argument [all...] |
H A D | avctp_br_l2cap.h | 41 L2capConfigInfo cfg; member 47 L2capConfigInfo cfg; member 100 void AvctBrRecvConfigReqCallback(uint16_t lcid, uint8_t id, const L2capConfigInfo *cfg, void *ctx); 102 void AvctBrRecvConfigReqCBack(uint16_t lcid, uint8_t id, const L2capConfigInfo *cfg, void *ctx); 104 void AvctBrRecvConfigRspCallback(uint16_t lcid, const L2capConfigInfo *cfg, uint16_t result, void *ctx); 106 void AvctBrRecvConfigRspCBack(uint16_t lcid, const L2capConfigInfo *cfg, uint16_t result, void *ctx);
|
H A D | avctp_ctrl_l2cap.h | 42 L2capConfigInfo cfg; member 48 L2capConfigInfo cfg; member 101 void AvctRecvConfigRspCallback(uint16_t lcid, const L2capConfigInfo *cfg, uint16_t result, void *ctx); 102 void AvctRecvConfigReqCallback(uint16_t lcid, uint8_t id, const L2capConfigInfo *cfg, void *ctx); 104 void AvctRecvConfigReqCBack(uint16_t lcid, uint8_t id, const L2capConfigInfo *cfg, void *ctx); 109 void AvctRecvConfigRspCBack(uint16_t lcid, const L2capConfigInfo *cfg, uint16_t result, void *ctx);
|
/foundation/ai/intelligent_voice_framework/utils/ |
H A D | state_manager.cpp | 99 if (action->cfg.delayUs != 0) { in ToState() 100 action->timerId = SetTimer(action->cfg.type, action->cfg.delayUs, action->cfg.cookie, this); in ToState() 157 if ((action->timerId == INVALID_ID) || (action->cfg.delayUs == 0)) { in ResetTimerDelay() 161 action->timerId = ResetTimer(action->timerId, action->cfg.type, action->cfg.delayUs, action->cfg.cookie, this); in ResetTimerDelay()
|
/foundation/communication/netmanager_ext/frameworks/native/ethernetclient/src/proxy/ |
H A D | ethernet_service_proxy.cpp | 288 int32_t EthernetServiceProxy::GetInterfaceConfig(const std::string &iface, OHOS::nmd::InterfaceConfigurationParcel &cfg) in GetInterfaceConfig() argument 297 reply.ReadString(cfg.ifName); in GetInterfaceConfig() 298 reply.ReadString(cfg.hwAddr); in GetInterfaceConfig() 299 reply.ReadString(cfg.ipv4Addr); in GetInterfaceConfig() 300 reply.ReadInt32(cfg.prefixLength); in GetInterfaceConfig() 311 cfg.flags.assign(vecString.begin(), vecString.end()); in GetInterfaceConfig() 316 int32_t EthernetServiceProxy::SetInterfaceConfig(const std::string &iface, OHOS::nmd::InterfaceConfigurationParcel &cfg) in SetInterfaceConfig() argument 330 if (!data.WriteString(cfg.ifName)) { in SetInterfaceConfig() 333 if (!data.WriteString(cfg.hwAddr)) { in SetInterfaceConfig() 336 if (!data.WriteString(cfg in SetInterfaceConfig() [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/avdtp/ |
H A D | avdtp_l2cap.c | 197 L2capConfigInfo cfg = {0}; in AvdtConnectStreamIndication() local 198 cfg.mtu = AvdtGetMtu(); in AvdtConnectStreamIndication() 199 cfg.flushTimeout = 0xFFFF; in AvdtConnectStreamIndication() 200 L2CIF_ConfigReq(transTable->lcid, &cfg, NULL); in AvdtConnectStreamIndication() 272 L2capConfigInfo cfg = {0}; in AvdtL2capConnectCfmCallback() local 273 cfg.mtu = AvdtGetMtu(); in AvdtL2capConnectCfmCallback() 274 cfg.flushTimeout = 0xFFFF; in AvdtL2capConnectCfmCallback() 275 L2CIF_ConfigReq(lcid, &cfg, NULL); in AvdtL2capConnectCfmCallback() 339 * cfg: L2CAP configure information 345 void AVDT_L2capConfigIndCallback(uint16_t lcid, uint8_t id, const L2capConfigInfo *cfg, voi argument 372 AvdtL2capConfigIndCallback(uint16_t lcid, uint8_t id, const L2capConfigInfo *cfg, void *ctx) AvdtL2capConfigIndCallback() argument 400 AvdtConfigureIndication(uint16_t lcid, uint8_t id, const L2capConfigInfo *cfg, AvdtTransChannel *transTable) AvdtConfigureIndication() argument 497 AVDT_L2capConfigCfmCallback(uint16_t lcid, const L2capConfigInfo *cfg, uint16_t result, void *ctx) AVDT_L2capConfigCfmCallback() argument 524 AvdtL2capConfigCfmCallback(uint16_t lcid, const L2capConfigInfo *cfg, uint16_t result, void *ctx) AvdtL2capConfigCfmCallback() argument 872 L2capConfigInfo cfg = {0}; AvdtRevSecurityCheck() local [all...] |
H A D | avdtp_l2cap.h | 42 L2capConfigInfo cfg; member 48 L2capConfigInfo cfg; member 92 void AVDT_L2capConfigIndCallback(uint16_t lcid, uint8_t id, const L2capConfigInfo *cfg, void *ctx); 94 void AvdtL2capConfigIndCallback(uint16_t lcid, uint8_t id, const L2capConfigInfo *cfg, void *ctx); 95 void AVDT_L2capConfigCfmCallback(uint16_t lcid, const L2capConfigInfo *cfg, uint16_t result, void *ctx); 97 void AvdtL2capConfigCfmCallback(uint16_t lcid, const L2capConfigInfo *cfg, uint16_t result, void *ctx); 119 void AvdtConfigureIndication(uint16_t lcid, uint8_t id, const L2capConfigInfo *cfg, AvdtTransChannel *transTable);
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/rfcomm/ |
H A D | rfcomm_l2cap.c | 91 * @param cfg Config information. 93 void RfcommRecvConfigReqCback(uint16_t lcid, uint8_t id, const L2capConfigInfo *cfg) in RfcommRecvConfigReqCback() argument 102 (void)memcpy_s(&reqInfo.cfg, sizeof(L2capConfigInfo), cfg, sizeof(L2capConfigInfo)); in RfcommRecvConfigReqCback() 115 * @param cfg Config information. 118 void RfcommRecvConfigRspCback(uint16_t lcid, const L2capConfigInfo *cfg, uint16_t result) in RfcommRecvConfigRspCback() argument 130 if (cfg == NULL) { in RfcommRecvConfigRspCback() 135 (void)memcpy_s(&configResult.cfg, sizeof(L2capConfigInfo), cfg, sizeof(L2capConfigInfo)); in RfcommRecvConfigRspCback()
|
H A D | rfcomm_l2cap_if.c | 22 static void RfcommRecvConfigReqCallback(uint16_t lcid, uint8_t id, const L2capConfigInfo *cfg, void *context); 23 static void RfcommRecvConfigRspCallback(uint16_t lcid, const L2capConfigInfo *cfg, uint16_t result, void *context); 157 L2capConfigInfo cfg; member 172 RfcommRecvConfigReqCback(ctx->lcid, ctx->id, &ctx->cfg); in RfcommRecvConfigReqTsk() 176 void RfcommRecvConfigReqCallback(uint16_t lcid, uint8_t id, const L2capConfigInfo *cfg, void *context) in RfcommRecvConfigReqCallback() argument 189 (void)memcpy_s(&ctx->cfg, sizeof(L2capConfigInfo), cfg, sizeof(L2capConfigInfo)); in RfcommRecvConfigReqCallback() 199 L2capConfigInfo cfg; member 215 RfcommRecvConfigRspCback(ctx->lcid, &ctx->cfg, ctx->result); in RfcommRecvConfigRspTsk() 219 void RfcommRecvConfigRspCallback(uint16_t lcid, const L2capConfigInfo *cfg, uint16_ argument 464 RfcommSendConfigReq(uint16_t lcid, const L2capConfigInfo *cfg) RfcommSendConfigReq() argument 485 RfcommSendConfigRsp(uint16_t lcid, uint8_t id, const L2capConfigInfo *cfg, uint16_t result) RfcommSendConfigRsp() argument [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gavdp/ |
H A D | a2dp_profile.cpp | 425 AvdtStreamConfig cfg[AVDT_NUM_SEPS] = {}; in CreateSEPConfigureInfo() local 433 cfg[number].sepType = AVDT_ROLE_SRC; in CreateSEPConfigureInfo() 434 cfg[number].cfg.mediaType = A2DP_MEDIA_TYPE_AUDIO; in CreateSEPConfigureInfo() 441 BuildCodecInfo(A2DP_SOURCE_CODEC_INDEX_SBC, cfg[number].cfg.codecInfo); in CreateSEPConfigureInfo() 442 cfg[number].cfg.numCodec = A2DP_CODEC_SBC_INFO_LEN; in CreateSEPConfigureInfo() 449 BuildCodecInfo(A2DP_SOURCE_CODEC_INDEX_AAC, cfg[number].cfg in CreateSEPConfigureInfo() [all...] |
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/componentloader/ |
H A D | component_loader.cpp | 110 int32_t ParseComponent(const cJSON *json, CompConfig &cfg) in ParseComponent() argument 116 cfg.name = cJSON_GetObjectItem(json, COMP_NAME.c_str())->valuestring; in ParseComponent() 121 cfg.type = g_mapDhTypeName[cJSON_GetObjectItem(json, COMP_TYPE.c_str())->valuestring]; in ParseComponent() 126 cfg.compHandlerLoc = cJSON_GetObjectItem(json, COMP_HANDLER_LOC.c_str())->valuestring; in ParseComponent() 131 cfg.compHandlerVersion = cJSON_GetObjectItem(json, COMP_HANDLER_VERSION.c_str())->valuestring; in ParseComponent() 135 int32_t ParseSource(const cJSON *json, CompConfig &cfg) in ParseSource() argument 141 cfg.compSourceLoc = cJSON_GetObjectItem(json, COMP_SOURCE_LOC.c_str())->valuestring; in ParseSource() 146 cfg.compSourceVersion = cJSON_GetObjectItem(json, COMP_SOURCE_VERSION.c_str())->valuestring; in ParseSource() 151 cfg.compSourceSaId = static_cast<int32_t>(cJSON_GetObjectItem(json, COMP_SOURCE_SA_ID.c_str())->valuedouble); in ParseSource() 155 int32_t ParseSink(const cJSON *json, CompConfig &cfg) in ParseSink() argument 175 ParseResourceDesc(const cJSON *json, CompConfig &cfg) ParseResourceDesc() argument 201 from_json(const cJSON *json, CompConfig &cfg) from_json() argument [all...] |
/foundation/communication/wifi/wifi/test/fuzztest/wifi_sta/wifihotspotimpl_fuzzer/ |
H A D | wifihotspotimpl_fuzzer.cpp | 143 HotspotConfig cfg; in IsValidHotspotConfigFuzzTest() local 147 cfg.SetIpAddress("192.168.8.100"); in IsValidHotspotConfigFuzzTest() 148 cfg.SetMaxConn(MAX_AP_CONN + 1); in IsValidHotspotConfigFuzzTest() 149 cfg.SetSecurityType(KeyMgmt::NONE); in IsValidHotspotConfigFuzzTest() 150 cfg.SetPreSharedKey(std::string(reinterpret_cast<const char*>(data), size)); in IsValidHotspotConfigFuzzTest() 151 pWifiHotspotServiceImpl->IsValidHotspotConfig(cfg, cfgFromCenter, bandsFromCenter, channInfoFromCenter); in IsValidHotspotConfigFuzzTest() 153 cfg.SetSecurityType(KeyMgmt::WPA_PSK); in IsValidHotspotConfigFuzzTest() 154 pWifiHotspotServiceImpl->IsValidHotspotConfig(cfg, cfgFromCenter, bandsFromCenter, channInfoFromCenter); in IsValidHotspotConfigFuzzTest()
|
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap_sa/ |
H A D | wifi_hotspot_service_impl.h | 210 * @param cfg - HotspotConfig 213 ErrCode CfgCheckSsid(const HotspotConfig &cfg); 218 * @param cfg - HotspotConfig 221 ErrCode CfgCheckPsk(const HotspotConfig &cfg); 226 * @param cfg - HotspotConfig 230 ErrCode CfgCheckBand(const HotspotConfig &cfg, std::vector<BandType> &bandsFromCenter); 235 * @param cfg - HotspotConfig 239 ErrCode CfgCheckChannel(const HotspotConfig &cfg, ChannelsTable &channInfoFromCenter); 252 * @param cfg - HotspotConfig 258 ErrCode IsValidHotspotConfig(const HotspotConfig &cfg, cons [all...] |
H A D | wifi_hotspot_service_impl.cpp | 847 ErrCode WifiHotspotServiceImpl::CfgCheckSsid(const HotspotConfig &cfg) in CfgCheckSsid() argument 849 if (cfg.GetSsid().length() < MIN_SSID_LEN || cfg.GetSsid().length() > MAX_SSID_LEN) { in CfgCheckSsid() 856 ErrCode WifiHotspotServiceImpl::CfgCheckPsk(const HotspotConfig &cfg) in CfgCheckPsk() argument 858 size_t len = cfg.GetPreSharedKey().length(); in CfgCheckPsk() 866 ErrCode WifiHotspotServiceImpl::CfgCheckBand(const HotspotConfig &cfg, std::vector<BandType> &bandsFromCenter) in CfgCheckBand() argument 869 if (cfg.GetBand() == *it) { in CfgCheckBand() 877 ErrCode WifiHotspotServiceImpl::CfgCheckChannel(const HotspotConfig &cfg, ChannelsTable &channInfoFromCenter) in CfgCheckChannel() argument 879 std::vector<int32_t> channels = channInfoFromCenter[static_cast<BandType>(cfg.GetBand())]; in CfgCheckChannel() 880 auto it = find(channels.begin(), channels.end(), cfg in CfgCheckChannel() 919 IsValidHotspotConfig(const HotspotConfig &cfg, const HotspotConfig &cfgFromCenter, std::vector<BandType> &bandsFromCenter, ChannelsTable &channInfoFromCenter) IsValidHotspotConfig() argument [all...] |