Home
last modified time | relevance | path

Searched refs:chain (Results 1 - 25 of 42) sorted by relevance

12

/foundation/communication/netmanager_base/services/netmanagernative/src/manager/
H A Dfirewall_manager.cpp101 int32_t FirewallManager::IsFirewallChian(ChainType chain) in IsFirewallChian() argument
103 if (chain != ChainType::CHAIN_OHFW_DOZABLE && chain != ChainType::CHAIN_OHFW_POWERSAVING in IsFirewallChian()
104 && chain != ChainType::CHAIN_OHFW_UNDOZABLE && chain != ChainType::CHAIN_OHFW_ALLOWED_LIST_BOX) { in IsFirewallChian()
110 std::string FirewallManager::FetchChainName(ChainType chain) in FetchChainName() argument
112 NETNATIVE_LOG_D("FirewallManager FetchChainName: chain=%{public}d", chain); in FetchChainName()
114 switch (chain) { in FetchChainName()
143 FirewallType FirewallManager::FetchChainType(ChainType chain) in FetchChainType() argument
248 IptablesNewChain(ChainType chain) IptablesNewChain() argument
255 IptablesDeleteChain(ChainType chain) IptablesDeleteChain() argument
277 SetUidsAllowedListChain(ChainType chain, const std::vector<uint32_t> &uids) SetUidsAllowedListChain() argument
326 SetUidsDeniedListChain(ChainType chain, const std::vector<uint32_t> &uids) SetUidsDeniedListChain() argument
360 EnableChain(ChainType chain, bool enable) EnableChain() argument
400 SetUidRule(ChainType chain, uint32_t uid, FirewallRule firewallRule) SetUidRule() argument
[all...]
H A Dbandwidth_manager.cpp44 std::string BandwidthManager::FetchChainName(ChainType chain) in FetchChainName() argument
46 NETNATIVE_LOG_D("BandwidthManager FetchChainName: chain=%{public}d", chain); in FetchChainName()
48 switch (chain) { in FetchChainName()
205 int32_t BandwidthManager::IptablesNewChain(ChainType chain) in IptablesNewChain() argument
207 NETNATIVE_LOG_D("BandwidthManager NewChain: chain=%{public}d", chain); in IptablesNewChain()
208 std::string command = "-t filter -N " + FetchChainName(chain); in IptablesNewChain()
214 NETNATIVE_LOG_D("BandwidthManager NewChain: chain=%{public}s", chainName.c_str()); in IptablesNewChain()
219 int32_t BandwidthManager::IptablesDeleteChain(ChainType chain) in IptablesDeleteChain() argument
[all...]
/foundation/communication/netmanager_base/services/netmanagernative/include/manager/
H A Dfirewall_manager.h39 * Set uids allowed list chain
41 * @param chain Chain type
46 int32_t SetUidsAllowedListChain(NetManagerStandard::ChainType chain, const std::vector<uint32_t> &uids);
49 * Set uids denied list chain
51 * @param chain Chain type
56 int32_t SetUidsDeniedListChain(NetManagerStandard::ChainType chain, const std::vector<uint32_t> &uids);
59 * Enable chain
61 * @param chain Chain type
66 int32_t EnableChain(NetManagerStandard::ChainType chain, bool enable);
71 * @param chain Chai
[all...]
H A Dbandwidth_manager.h105 std::string FetchChainName(NetManagerStandard::ChainType chain);
112 int32_t IptablesNewChain(NetManagerStandard::ChainType chain);
114 int32_t IptablesDeleteChain(NetManagerStandard::ChainType chain);
/foundation/communication/netmanager_base/services/netpolicymanager/src/common/
H A Dnetsys_policy_wrapper.cpp90 uint32_t chain = ChainType::CHAIN_OHFW_ALLOWED_LIST_BOX; in PowerSaveUpdataAllowedList() local
91 auto netsysReturnValue = NetsysController::GetInstance().FirewallSetUidRule(chain, uids, firewallRule); in PowerSaveUpdataAllowedList()
97 int32_t NetsysPolicyWrapper::FirewallSetUidsAllowedListChain(uint32_t chain, const std::vector<uint32_t> &uids) in FirewallSetUidsAllowedListChain() argument
99 auto netsysReturnValue = NetsysController::GetInstance().FirewallSetUidsAllowedListChain(chain, uids); in FirewallSetUidsAllowedListChain()
100 NETMGR_LOG_D("SetUidsAllowedListChain chain[%{public}u] uids size[%{public}zu] netsys return[%{public}d]", chain, in FirewallSetUidsAllowedListChain()
105 int32_t NetsysPolicyWrapper::FirewallSetUidsDeniedListChain(uint32_t chain, const std::vector<uint32_t> &uids) in FirewallSetUidsDeniedListChain() argument
107 auto netsysReturnValue = NetsysController::GetInstance().FirewallSetUidsDeniedListChain(chain, uids); in FirewallSetUidsDeniedListChain()
108 NETMGR_LOG_D("SetUidsDeniedListChain chain[%{public}u] uids size[%{public}zu] netsys return[%{public}d]", chain, in FirewallSetUidsDeniedListChain()
113 FirewallSetUidRule(uint32_t chain, const std::vector<uint32_t> &uids, uint32_t firewallRule) FirewallSetUidRule() argument
120 FirewallEnableChain(uint32_t chain, bool enable) FirewallEnableChain() argument
[all...]
/foundation/communication/netmanager_base/test/netpolicymanager/unittest/net_policy_manager_test/
H A Dut_netsys_policy_wrapper.cpp113 uint32_t chain = 2; in HWTEST_F() local
115 auto ret = instance_->FirewallSetUidsAllowedListChain(chain, uids); in HWTEST_F()
121 uint32_t chain = 2; in HWTEST_F() local
123 auto ret = instance_->FirewallSetUidsDeniedListChain(chain, uids); in HWTEST_F()
129 uint32_t chain = 2; in HWTEST_F() local
132 auto ret = instance_->FirewallSetUidRule(chain, {uid}, firewallRule); in HWTEST_F()
138 uint32_t chain = 2; in HWTEST_F() local
139 auto ret = instance_->FirewallEnableChain(chain, false); in HWTEST_F()
/foundation/communication/netmanager_base/services/netpolicymanager/include/
H A Dnetsys_policy_wrapper.h42 int32_t FirewallSetUidsAllowedListChain(uint32_t chain, const std::vector<uint32_t> &uids);
43 int32_t FirewallSetUidsDeniedListChain(uint32_t chain, const std::vector<uint32_t> &uids);
44 int32_t FirewallSetUidRule(uint32_t chain, const std::vector<uint32_t> &uids, uint32_t firewallRule);
45 int32_t FirewallEnableChain(uint32_t chain, bool enable);
/foundation/communication/netmanager_base/test/netmanagernative/unittest/bandwidth_manager_test/
H A Dbandwidth_manager_class_test.cpp72 ChainType chain = ChainType::CHAIN_OHBW_INPUT; in HWTEST_F() local
73 std::string resultStr = g_BandwidthManager->FetchChainName(chain); in HWTEST_F()
76 chain = ChainType::CHAIN_OHBW_OUTPUT; in HWTEST_F()
77 resultStr = g_BandwidthManager->FetchChainName(chain); in HWTEST_F()
80 chain = ChainType::CHAIN_OHBW_FORWARD; in HWTEST_F()
81 resultStr = g_BandwidthManager->FetchChainName(chain); in HWTEST_F()
84 chain = ChainType::CHAIN_OHBW_DENIED_LIST_BOX; in HWTEST_F()
85 resultStr = g_BandwidthManager->FetchChainName(chain); in HWTEST_F()
88 chain = ChainType::CHAIN_OHBW_ALLOWED_LIST_BOX; in HWTEST_F()
89 resultStr = g_BandwidthManager->FetchChainName(chain); in HWTEST_F()
[all...]
/foundation/multimedia/media_library/frameworks/services/media_cloud_sync_notify_handle/src/
H A Dcloud_sync_notify_handler.cpp182 shared_ptr<BaseHandler> chain = nullptr; in MakeResponsibilityChain() local
185 chain = NotifyResponsibilityChainFactory::CreateChain(TRANSPARENT); in MakeResponsibilityChain()
190 chain = NotifyResponsibilityChainFactory::CreateChain(PHOTODELETE); in MakeResponsibilityChain()
192 chain = NotifyResponsibilityChainFactory::CreateChain(TRANSPARENT); in MakeResponsibilityChain()
197 if (chain == nullptr) { in MakeResponsibilityChain()
201 chain->Handle(handleData); in MakeResponsibilityChain()
/foundation/communication/netmanager_base/test/netmanagernative/unittest/firewall_manager_test/
H A Dfirewall_manager_class_test.cpp69 ChainType chain = ChainType::CHAIN_OHFW_DOZABLE; in HWTEST_F() local
70 FirewallType fwType = g_firewallManager->FetchChainType(chain); in HWTEST_F()
73 chain = ChainType::CHAIN_OHFW_UNDOZABLE; in HWTEST_F()
74 fwType = g_firewallManager->FetchChainType(chain); in HWTEST_F()
77 chain = ChainType::CHAIN_NONE; in HWTEST_F()
78 fwType = g_firewallManager->FetchChainType(chain); in HWTEST_F()
/foundation/multimedia/audio_framework/frameworks/native/audioeffect/src/
H A Daudio_enhance_chain_manager.cpp143 // Construct enhanceChainToEnhancesMap_ that stores all effect names of each effect chain in ConstructEnhanceChainMgrMaps()
211 for (auto &[scode, chain] : sceneTypeToEnhanceChainMap_) { in InitEnhanceBuffer()
212 if (chain) { in InitEnhanceBuffer()
213 len = std::max(len, chain->GetAlgoBufferSize()); in InitEnhanceBuffer()
214 lenEc = std::max(lenEc, chain->GetAlgoBufferSizeEc()); in InitEnhanceBuffer()
215 lenMicRef = std::max(lenMicRef, chain->GetAlgoBufferSizeMicRef()); in InitEnhanceBuffer()
303 // means map to default chain in CreateAudioEnhanceChainDynamic()
373 // default enhance chain not exsist in CreateEnhanceChainInner()
384 AUDIO_INFO_LOG("captureId %{public}u defaultScene chain not exsist, create it", captureId); in CreateEnhanceChainInner()
394 AUDIO_INFO_LOG("captureId %{public}u create normalScene %{public}s chain", captureI in CreateEnhanceChainInner()
[all...]
/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/
H A Dnet_manager_native.cpp449 int32_t NetManagerNative::FirewallSetUidsAllowedListChain(uint32_t chain, const std::vector<uint32_t> &uids) in FirewallSetUidsAllowedListChain() argument
451 auto chainType = static_cast<NetManagerStandard::ChainType>(chain); in FirewallSetUidsAllowedListChain()
455 int32_t NetManagerNative::FirewallSetUidsDeniedListChain(uint32_t chain, const std::vector<uint32_t> &uids) in FirewallSetUidsDeniedListChain() argument
457 auto chainType = static_cast<NetManagerStandard::ChainType>(chain); in FirewallSetUidsDeniedListChain()
461 int32_t NetManagerNative::FirewallEnableChain(uint32_t chain, bool enable) in FirewallEnableChain() argument
463 auto chainType = static_cast<NetManagerStandard::ChainType>(chain); in FirewallEnableChain()
467 int32_t NetManagerNative::FirewallSetUidRule(uint32_t chain, const std::vector<uint32_t> &uids, uint32_t firewallRule) in FirewallSetUidRule() argument
469 auto chainType = static_cast<NetManagerStandard::ChainType>(chain); in FirewallSetUidRule()
/foundation/communication/netmanager_base/services/netpolicymanager/src/firewall_rule/
H A Dfirewall_rule.cpp24 std::shared_ptr<FirewallRule> FirewallRule::CreateFirewallRule(uint32_t chain) in CreateFirewallRule() argument
26 switch (chain) { in CreateFirewallRule()
/foundation/multimedia/audio_framework/services/audio_policy/server/src/service/effect/
H A Daudio_effect_manager.cpp450 auto index = std::find(availableLayout.begin(), availableLayout.end(), devicePort.chain); in UpdateUnavailableEffectChainsRecord()
461 streamEffectMode.devicePort[*it].chain = "LAYOUT_BYPASS"; in UpdateUnavailableEffectChainsRecord()
493 auto chainName = device.chain; in UpdateSupportedEffectProperty()
560 // Update duplicate defined modes, devices, and unsupported effect chain. in BuildAvailableAEConfig()
617 defaultChain = device.chain; in ConstructEffectChainMode()
620 AddKeyValueIntoMap(map, key, device.chain); in ConstructEffectChainMode()
622 ConstructDefaultEffectProperty(device.chain, effectChainMgrParam.effectDefaultProperty); in ConstructEffectChainMode()
708 AddKeyValueIntoMap(map, key, device.chain); in ConstructEnhanceChainManagerParam()
709 ConstructDefaultEffectProperty(device.chain, enhanceDefaultProperty); in ConstructEnhanceChainManagerParam()
/foundation/communication/netmanager_base/services/netsyscontroller/src/
H A Dnetsys_controller.cpp1028 int32_t NetsysController::FirewallSetUidsAllowedListChain(uint32_t chain, const std::vector<uint32_t> &uids) in FirewallSetUidsAllowedListChain() argument
1030 NETMGR_LOG_I("NetsysController::FirewallSetUidsAllowedListChain: chain=%{public}d", chain); in FirewallSetUidsAllowedListChain()
1037 return netsysService_->FirewallSetUidsAllowedListChain(chain, uids); in FirewallSetUidsAllowedListChain()
1040 int32_t NetsysController::FirewallSetUidsDeniedListChain(uint32_t chain, const std::vector<uint32_t> &uids) in FirewallSetUidsDeniedListChain() argument
1042 NETMGR_LOG_I("NetsysController::FirewallSetUidsDeniedListChain: chain=%{public}d", chain); in FirewallSetUidsDeniedListChain()
1049 return netsysService_->FirewallSetUidsDeniedListChain(chain, uids); in FirewallSetUidsDeniedListChain()
1052 int32_t NetsysController::FirewallEnableChain(uint32_t chain, bool enable) in FirewallEnableChain() argument
1054 NETMGR_LOG_I("NetsysController::FirewallEnableChain: chain in FirewallEnableChain()
1064 FirewallSetUidRule(uint32_t chain, const std::vector<uint32_t> &uids, uint32_t firewallRule) FirewallSetUidRule() argument
[all...]
H A Dnetsys_controller_service_impl.cpp652 int32_t NetsysControllerServiceImpl::FirewallSetUidsAllowedListChain(uint32_t chain, const std::vector<uint32_t> &uids) in FirewallSetUidsAllowedListChain() argument
654 NETMGR_LOG_D("FirewallSetUidsAllowedListChain: chain=%{public}d", chain); in FirewallSetUidsAllowedListChain()
655 return netsysClient_.FirewallSetUidsAllowedListChain(chain, uids); in FirewallSetUidsAllowedListChain()
658 int32_t NetsysControllerServiceImpl::FirewallSetUidsDeniedListChain(uint32_t chain, const std::vector<uint32_t> &uids) in FirewallSetUidsDeniedListChain() argument
660 NETMGR_LOG_D("FirewallSetUidsDeniedListChain: chain=%{public}d", chain); in FirewallSetUidsDeniedListChain()
661 return netsysClient_.FirewallSetUidsDeniedListChain(chain, uids); in FirewallSetUidsDeniedListChain()
664 int32_t NetsysControllerServiceImpl::FirewallEnableChain(uint32_t chain, bool enable) in FirewallEnableChain() argument
666 NETMGR_LOG_D("FirewallEnableChain: chain in FirewallEnableChain()
670 FirewallSetUidRule(uint32_t chain, const std::vector<uint32_t> &uids, uint32_t firewallRule) FirewallSetUidRule() argument
[all...]
/foundation/arkui/ace_engine/frameworks/core/animation/
H A Dchain_animation.cpp78 auto chain = weak.Upgrade(); in ChainAnimation()
79 CHECK_NULL_VOID(chain); in ChainAnimation()
80 chain->TickAnimation(); in ChainAnimation()
/foundation/communication/netmanager_base/interfaces/innerkits/netmanagernative/include/
H A Di_netsys_service.h138 virtual int32_t FirewallSetUidsAllowedListChain(uint32_t chain, const std::vector<uint32_t> &uids) = 0;
139 virtual int32_t FirewallSetUidsDeniedListChain(uint32_t chain, const std::vector<uint32_t> &uids) = 0;
140 virtual int32_t FirewallEnableChain(uint32_t chain, bool enable) = 0;
141 virtual int32_t FirewallSetUidRule(uint32_t chain, const std::vector<uint32_t> &uids, uint32_t firewallRule) = 0;
H A Dnetsys_native_service_proxy.h97 int32_t FirewallEnableChain(uint32_t chain, bool enable) override;
98 int32_t FirewallSetUidRule(uint32_t chain, const std::vector<uint32_t> &uids, uint32_t firewallRule) override;
100 int32_t FirewallSetUidsAllowedListChain(uint32_t chain, const std::vector<uint32_t> &uids) override;
101 int32_t FirewallSetUidsDeniedListChain(uint32_t chain, const std::vector<uint32_t> &uids) override;
/foundation/communication/netmanager_base/services/netmanagernative/include/
H A Dnetsys_native_service.h121 int32_t FirewallSetUidsDeniedListChain(uint32_t chain, const std::vector<uint32_t> &uids) override;
122 int32_t FirewallEnableChain(uint32_t chain, bool enable) override;
123 int32_t FirewallSetUidRule(uint32_t chain, const std::vector<uint32_t> &uids, uint32_t firewallRule) override;
127 int32_t FirewallSetUidsAllowedListChain(uint32_t chain, const std::vector<uint32_t> &uids) override;
/foundation/communication/netmanager_base/services/netmanagernative/include/netsys/
H A Dnet_manager_native.h127 int32_t FirewallSetUidsAllowedListChain(uint32_t chain, const std::vector<uint32_t> &uids);
128 int32_t FirewallSetUidsDeniedListChain(uint32_t chain, const std::vector<uint32_t> &uids);
129 int32_t FirewallEnableChain(uint32_t chain, bool enable);
130 int32_t FirewallSetUidRule(uint32_t chain, const std::vector<uint32_t> &uids, uint32_t firewallRule);
/foundation/communication/netmanager_base/test/netmanagernative/unittest/netsys_distributed_test/
H A Dnetsys_native_service_stub_test.cpp346 int32_t FirewallSetUidsAllowedListChain(uint32_t chain, const std::vector<uint32_t> &uids) override
351 int32_t FirewallSetUidsDeniedListChain(uint32_t chain, const std::vector<uint32_t> &uids) override
356 int32_t FirewallEnableChain(uint32_t chain, bool enable) override
361 int32_t FirewallSetUidRule(uint32_t chain, const std::vector<uint32_t> &uids, uint32_t firewallRule) override
/foundation/communication/netmanager_base/services/netsyscontroller/include/
H A Dnetsys_controller_service_impl.h639 * @param chain chain type
644 int32_t FirewallSetUidsAllowedListChain(uint32_t chain, const std::vector<uint32_t> &uids) override;
649 * @param chain chain type
654 int32_t FirewallSetUidsDeniedListChain(uint32_t chain, const std::vector<uint32_t> &uids) override;
657 * Enable or disable the specified firewall chain.
659 * @param chain chain type
663 int32_t FirewallEnableChain(uint32_t chain, boo
[all...]
H A Di_netsys_controller_service.h668 * @param chain chain type
673 virtual int32_t FirewallSetUidsAllowedListChain(uint32_t chain, const std::vector<uint32_t> &uids) = 0;
678 * @param chain chain type
683 virtual int32_t FirewallSetUidsDeniedListChain(uint32_t chain, const std::vector<uint32_t> &uids) = 0;
686 * Enable or disable the specified firewall chain.
688 * @param chain chain type
692 virtual int32_t FirewallEnableChain(uint32_t chain, boo
[all...]
H A Dnetsys_controller.h654 * @param chain chain type
659 int32_t FirewallSetUidsAllowedListChain(uint32_t chain, const std::vector<uint32_t> &uids);
664 * @param chain chain type
669 int32_t FirewallSetUidsDeniedListChain(uint32_t chain, const std::vector<uint32_t> &uids);
672 * Enable or disable the specified firewall chain.
674 * @param chain chain type
678 int32_t FirewallEnableChain(uint32_t chain, boo
[all...]

Completed in 19 milliseconds

12