/foundation/communication/netmanager_base/services/netmanagernative/src/manager/ |
H A D | firewall_manager.cpp | 101 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 D | bandwidth_manager.cpp | 44 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 D | firewall_manager.h | 39 * 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 D | bandwidth_manager.h | 105 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 D | netsys_policy_wrapper.cpp | 90 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 D | ut_netsys_policy_wrapper.cpp | 113 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 D | netsys_policy_wrapper.h | 42 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 D | bandwidth_manager_class_test.cpp | 72 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 D | cloud_sync_notify_handler.cpp | 182 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 D | firewall_manager_class_test.cpp | 69 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 D | audio_enhance_chain_manager.cpp | 143 // 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 D | net_manager_native.cpp | 449 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 D | firewall_rule.cpp | 24 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 D | audio_effect_manager.cpp | 450 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 D | netsys_controller.cpp | 1028 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 D | netsys_controller_service_impl.cpp | 652 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 D | chain_animation.cpp | 78 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 D | i_netsys_service.h | 138 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 D | netsys_native_service_proxy.h | 97 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 D | netsys_native_service.h | 121 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 D | net_manager_native.h | 127 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 D | netsys_native_service_stub_test.cpp | 346 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 D | netsys_controller_service_impl.h | 639 * @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 D | i_netsys_controller_service.h | 668 * @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 D | netsys_controller.h | 654 * @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...] |