Home
last modified time | relevance | path

Searched refs:cfg (Results 1 – 25 of 180) sorted by relevance

12345678

/foundation/communication/netmanager_ext/services/ethernetmanager/src/stub/
Dethernet_service_stub.cpp219 OHOS::nmd::InterfaceConfigurationParcel cfg; in OnGetInterfaceConfig() local
220 int32_t result = GetInterfaceConfig(iface, cfg); in OnGetInterfaceConfig()
225 reply.WriteString(cfg.ifName); in OnGetInterfaceConfig()
226 reply.WriteString(cfg.hwAddr); in OnGetInterfaceConfig()
227 reply.WriteString(cfg.ipv4Addr); in OnGetInterfaceConfig()
228 reply.WriteInt32(cfg.prefixLength); in OnGetInterfaceConfig()
229 if (cfg.flags.size() > MAX_SIZE) { in OnGetInterfaceConfig()
233 reply.WriteInt32(static_cast<int32_t>(cfg.flags.size())); in OnGetInterfaceConfig()
234 for (auto flag : cfg.flags) { in OnGetInterfaceConfig()
245 OHOS::nmd::InterfaceConfigurationParcel cfg; in OnSetInterfaceConfig() local
[all …]
/foundation/communication/netmanager_ext/services/ethernetmanager/src/
Dethernet_configuration.cpp157 sptr<InterfaceConfiguration> cfg = new (std::nothrow) InterfaceConfiguration(); in ReadUserConfiguration() local
158 if (cfg == nullptr) { in ReadUserConfiguration()
162 ParserFileConfig(fileContent, iface, cfg); in ReadUserConfiguration()
166 devCfgs[iface] = cfg; in ReadUserConfiguration()
174 …tConfiguration::WriteUserConfiguration(const std::string &iface, sptr<InterfaceConfiguration> &cfg) in WriteUserConfiguration() argument
176 if (cfg == nullptr) { in WriteUserConfiguration()
185 if (cfg->mode_ == STATIC) { in WriteUserConfiguration()
186 ParserIfaceIpAndRoute(cfg, std::string()); in WriteUserConfiguration()
190 GenCfgContent(iface, cfg, fileContent); in WriteUserConfiguration()
259 sptr<InterfaceConfiguration> cfg = new (std::nothrow) InterfaceConfiguration(); in MakeInterfaceConfiguration() local
[all …]
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/idl_client/unittest/
Dwifi_sta_hal_interface_test.cpp252 WifiIdlDeviceConfig cfg; variable
253 cfg.psk = "1234567";
254 WifiErrorNo ret = WifiStaHalInterface::GetInstance().SetDeviceConfig(1, cfg);
256 cfg.psk = "01234567890123456789012345678901234567890123456789012345678901234";
257 ret = WifiStaHalInterface::GetInstance().SetDeviceConfig(1, cfg);
259 cfg.psk = "12345678";
260 ret = WifiStaHalInterface::GetInstance().SetDeviceConfig(1, cfg);
262 cfg.authAlgorithms = 8;
263 ret = WifiStaHalInterface::GetInstance().SetDeviceConfig(1, cfg);
265 cfg.authAlgorithms = 7;
[all …]
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/unittest/common/componentloader/src/
Dcomponent_loader_test.cpp461 CompConfig cfg; variable
465 from_json(json, cfg);
466 EXPECT_EQ(true, cfg.name.empty());
477 CompConfig cfg; variable
482 from_json(json, cfg);
483 EXPECT_NE(DHType::AUDIO, cfg.type);
494 CompConfig cfg; variable
500 from_json(json, cfg);
501 EXPECT_EQ(true, cfg.compHandlerLoc.empty());
512 CompConfig cfg; variable
[all …]
/foundation/communication/netmanager_ext/services/ethernetmanager/include/
Dethernet_configuration.h42 bool WriteUserConfiguration(const std::string &iface, sptr<InterfaceConfiguration> &cfg);
50 void ParseBootProto(const std::string &fileContent, sptr<InterfaceConfiguration> cfg);
51 void ParseStaticConfig(const std::string &fileContent, sptr<InterfaceConfiguration> cfg);
61 …erFileConfig(const std::string &fileContent, std::string &iface, sptr<InterfaceConfiguration> cfg);
62 … void ParserFileHttpProxy(const std::string &fileContent, const sptr<InterfaceConfiguration> &cfg);
63 void ParserIfaceIpAndRoute(sptr<InterfaceConfiguration> &cfg, const std::string &rootNetMask);
64 …void GenCfgContent(const std::string &iface, sptr<InterfaceConfiguration> cfg, std::string &fileCo…
65 void GenHttpProxyContent(const sptr<InterfaceConfiguration> &cfg, std::string &fileContent);
/foundation/communication/netstack/interfaces/innerkits/rust/ylong_http_client/src/
Dlib.rs19 #[cfg(feature = "reqwest_impl")]
22 #[cfg(feature = "reqwest_impl")]
25 #[cfg(feature = "ylong_impl")]
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/avctp/
Davctp_br_l2cap.c148 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.flushTimeout = 0xFFFF; in AvctBrRecvConnectionRspCBack()
[all …]
Davctp_ctrl_l2cap.c145 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()
233 void AvctRecvConfigReqCallback(uint16_t lcid, uint8_t id, const L2capConfigInfo *cfg, void *ctx) in AvctRecvConfigReqCallback() argument
235 LOG_INFO("[AVCT] %{public}s: lcid(0x%x), mtu(%x)", __func__, lcid, cfg->mtu); in AvctRecvConfigReqCallback()
[all …]
Davctp_br_l2cap.h41 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 *…
106 void AvctBrRecvConfigRspCBack(uint16_t lcid, const L2capConfigInfo *cfg, uint16_t result, void *ctx…
Davctp_ctrl_l2cap.h42 L2capConfigInfo cfg; member
48 L2capConfigInfo cfg; member
101 void AvctRecvConfigRspCallback(uint16_t lcid, const L2capConfigInfo *cfg, uint16_t result, void *ct…
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/communication/bluetooth_service/services/bluetooth/stack/src/l2cap/
Dl2cap.c116 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->rfc.rxWindowSize; in L2CAP_ConfigReq()
154 if (cfg->rfc.maxTransmit != 0) { in L2CAP_ConfigReq()
[all …]
Dl2cap_inst.c205 static void L2capSetDefaultConfigOptions(L2capConfigInfo *cfg) in L2capSetDefaultConfigOptions() argument
207 cfg->mtu = L2CAP_DEFAULT_MTU; in L2capSetDefaultConfigOptions()
208 cfg->flushTimeout = L2CAP_NONE_FLUSH_PACKET; in L2capSetDefaultConfigOptions()
209 cfg->rfc.mode = L2CAP_BASIC_MODE; in L2capSetDefaultConfigOptions()
210 cfg->rfc.maxTransmit = L2CAP_DEFAULT_MAX_TRANSMIT; in L2capSetDefaultConfigOptions()
211 cfg->rfc.txWindowSize = L2CAP_DEFAULT_TX_WINDOW; in L2capSetDefaultConfigOptions()
212 cfg->rfc.rxWindowSize = L2CAP_DEFAULT_TX_WINDOW; in L2capSetDefaultConfigOptions()
213 cfg->rfc.retransmissionTimeout = 0; in L2capSetDefaultConfigOptions()
214 cfg->rfc.monitorTimeout = 0; in L2capSetDefaultConfigOptions()
215 cfg->rfc.mps = L2capGetRxBufferSize() - L2CAP_SIZE_10; in L2capSetDefaultConfigOptions()
[all …]
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/avdtp/
Davdtp_l2cap.c197 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()
345 void AVDT_L2capConfigIndCallback(uint16_t lcid, uint8_t id, const L2capConfigInfo *cfg, void *ctx) in AVDT_L2capConfigIndCallback() argument
356 (void)memcpy_s(&param->cfg, sizeof(L2capConfigInfo), cfg, sizeof(L2capConfigInfo)); in AVDT_L2capConfigIndCallback()
[all …]
Davdtp_l2cap.h42 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 *…
97 void AvdtL2capConfigCfmCallback(uint16_t lcid, const L2capConfigInfo *cfg, uint16_t result, void *c…
119 void AvdtConfigureIndication(uint16_t lcid, uint8_t id, const L2capConfigInfo *cfg, AvdtTransChanne…
/foundation/communication/netmanager_ext/frameworks/native/ethernetclient/src/proxy/
Dethernet_service_proxy.cpp300 …ceProxy::GetInterfaceConfig(const std::string &iface, OHOS::nmd::InterfaceConfigurationParcel &cfg) in GetInterfaceConfig() argument
322 reply.ReadString(cfg.ifName); in GetInterfaceConfig()
323 reply.ReadString(cfg.hwAddr); in GetInterfaceConfig()
324 reply.ReadString(cfg.ipv4Addr); in GetInterfaceConfig()
325 reply.ReadInt32(cfg.prefixLength); in GetInterfaceConfig()
336 cfg.flags.assign(vecString.begin(), vecString.end()); in GetInterfaceConfig()
341 …ceProxy::SetInterfaceConfig(const std::string &iface, OHOS::nmd::InterfaceConfigurationParcel &cfg) in SetInterfaceConfig() argument
355 if (!data.WriteString(cfg.ifName)) { in SetInterfaceConfig()
358 if (!data.WriteString(cfg.hwAddr)) { in SetInterfaceConfig()
361 if (!data.WriteString(cfg.ipv4Addr)) { in SetInterfaceConfig()
[all …]
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/rfcomm/
Drfcomm_l2cap_if.c22 static void RfcommRecvConfigReqCallback(uint16_t lcid, uint8_t id, const L2capConfigInfo *cfg, void…
23 static void RfcommRecvConfigRspCallback(uint16_t lcid, const L2capConfigInfo *cfg, uint16_t result,…
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 *conte… 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_t result, void *… in RfcommRecvConfigRspCallback() argument
232 (void)memcpy_s(&ctx->cfg, sizeof(L2capConfigInfo), cfg, sizeof(L2capConfigInfo)); in RfcommRecvConfigRspCallback()
[all …]
Drfcomm_l2cap.c93 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()
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()
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gavdp/
Da2dp_profile.cpp425 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.codecInfo); in CreateSEPConfigureInfo()
450 cfg[number].cfg.numCodec = A2DP_CODEC_AAC_INFO_LEN; in CreateSEPConfigureInfo()
452 cfg[number].codecIndex = i; in CreateSEPConfigureInfo()
453 cfg[number].sinkDataCback = ProcessSinkStream; in CreateSEPConfigureInfo()
454cfg[number].cfg.pscMask = (AVDT_PSC_MSK_TRANS | AVDT_PSC_MSK_DELAY_RPT | AVDT_PSC_MSK_CODEC); in CreateSEPConfigureInfo()
[all …]
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/
Dwifi_hotspot_service_impl.h213 ErrCode CfgCheckSsid(const HotspotConfig &cfg);
221 ErrCode CfgCheckPsk(const HotspotConfig &cfg);
230 ErrCode CfgCheckBand(const HotspotConfig &cfg, std::vector<BandType> &bandsFromCenter);
239 ErrCode CfgCheckChannel(const HotspotConfig &cfg, ChannelsTable &channInfoFromCenter);
258 ErrCode IsValidHotspotConfig(const HotspotConfig &cfg, const HotspotConfig &cfgFromCenter,
Dwifi_hotspot_service_impl.cpp785 ErrCode WifiHotspotServiceImpl::CfgCheckSsid(const HotspotConfig &cfg) in CfgCheckSsid() argument
787 if (cfg.GetSsid().length() < MIN_SSID_LEN || cfg.GetSsid().length() > MAX_SSID_LEN) { in CfgCheckSsid()
794 ErrCode WifiHotspotServiceImpl::CfgCheckPsk(const HotspotConfig &cfg) in CfgCheckPsk() argument
796 size_t len = cfg.GetPreSharedKey().length(); in CfgCheckPsk()
804 ErrCode WifiHotspotServiceImpl::CfgCheckBand(const HotspotConfig &cfg, std::vector<BandType> &bands… in CfgCheckBand() argument
807 if (cfg.GetBand() == *it) { in CfgCheckBand()
815 ErrCode WifiHotspotServiceImpl::CfgCheckChannel(const HotspotConfig &cfg, ChannelsTable &channInfoF… in CfgCheckChannel() argument
817 std::vector<int32_t> channels = channInfoFromCenter[static_cast<BandType>(cfg.GetBand())]; in CfgCheckChannel()
818 auto it = find(channels.begin(), channels.end(), cfg.GetChannel()); in CfgCheckChannel()
857 ErrCode WifiHotspotServiceImpl::IsValidHotspotConfig(const HotspotConfig &cfg, const HotspotConfig … in IsValidHotspotConfig() argument
[all …]
/foundation/communication/netmanager_ext/test/ethernetmanager/unittest/ethernet_manager_test/
Dethernet_configuration_test.cpp63 sptr<InterfaceConfiguration> cfg = (std::make_unique<InterfaceConfiguration>()).release(); variable
64 ret = ethernetConfiguration.WriteUserConfiguration(IFACE, cfg);
82 ethernetConfiguration.ParserFileConfig(FILE_CONTENT, IFACE_NAME, cfg);
83 ethernetConfiguration.GenCfgContent(IFACE, cfg, FILE_CONTENT);
Dethernet_manager_test.cpp470 OHOS::nmd::InterfaceConfigurationParcel cfg; variable
471 … int32_t ret = DelayedSingleton<EthernetClient>::GetInstance()->GetInterfaceConfig(DEV_NAME, cfg);
473 ASSERT_FALSE(cfg.ifName.empty());
474 ASSERT_FALSE(cfg.hwAddr.empty());
581 OHOS::nmd::InterfaceConfigurationParcel cfg; variable
582 std::vector<std::string>().swap(cfg.flags);
583 … int32_t ret = DelayedSingleton<EthernetClient>::GetInstance()->GetInterfaceConfig(DEV_NAME, cfg);
585 ASSERT_EQ(cfg.ifName, DEV_NAME);
586 std::find(cfg.flags.begin(), cfg.flags.end(), DEV_DOWN);
587 auto fit = std::find(cfg.flags.begin(), cfg.flags.end(), DEV_DOWN);
[all …]
/foundation/resourceschedule/resource_schedule_service/ressched/etc/init/
DBUILD.gn19 deps = [ ":resource_schedule_service.cfg" ]
22 ohos_prebuilt_etc("resource_schedule_service.cfg") {
23 source = "resource_schedule_service.cfg"
/foundation/communication/wifi/wifi/services/wifi_standard/etc/init/
DBUILD.gn17 deps = [ ":wifi_standard.cfg" ]
20 ohos_prebuilt_etc("wifi_standard.cfg") {
21 source = "wifi_standard.cfg"
/foundation/resourceschedule/qos_manager/etc/init/
DBUILD.gn19 deps = [ ":concurrent_task_service.cfg" ]
22 ohos_prebuilt_etc("concurrent_task_service.cfg") {
23 source = "concurrent_task_service.cfg"

12345678