Lines Matching defs:EthernetService

41     SystemAbility::MakeAndRegisterAbility(DelayedSingleton<EthernetService>::GetInstance().get());
44 EthernetService::EthernetService() : SystemAbility(COMM_ETHERNET_MANAGER_SYS_ABILITY_ID, true) {}
46 EthernetService::~EthernetService() = default;
48 void EthernetService::OnStart()
52 NETMGR_EXT_LOG_D("EthernetService::OnStart begin");
54 NETMGR_EXT_LOG_D("EthernetService the state is already running");
58 NETMGR_EXT_LOG_E("EthernetService init failed");
63 NETMGR_EXT_LOG_D("EthernetService::OnStart end");
66 void EthernetService::OnStop()
73 int32_t EthernetService::Dump(int32_t fd, const std::vector<std::u16string> &args)
82 void EthernetService::OnAddSystemAbility(int32_t systemAbilityId, const std::string &deviceId)
86 NETMGR_EXT_LOG_D("EthernetService::OnAddSystemAbility Conn");
90 NETMGR_EXT_LOG_D("EthernetService::OnAddSystemAbility CES");
94 NETMGR_EXT_LOG_D("EthernetService::OnAddSystemAbility unhandled sysabilityId:%{public}d", systemAbilityId);
102 bool EthernetService::Init()
105 NETMGR_EXT_LOG_E("EthernetService Register to local sa manager failed");
109 if (!Publish(DelayedSingleton<EthernetService>::GetInstance().get())) {
110 NETMGR_EXT_LOG_E("EthernetService Register to sa manager failed");
129 ethernetServiceFfrtQueue_ = std::make_shared<ffrt::queue>("EthernetService");
133 void EthernetService::InitManagement()
135 NETMGR_EXT_LOG_D("EthernetService::InitManagement Enter");
139 int32_t EthernetService::GlobalInterfaceStateCallback::OnInterfaceAddressUpdated(const std::string &addr,
146 int32_t EthernetService::GlobalInterfaceStateCallback::OnInterfaceAddressRemoved(const std::string &addr,
153 int32_t EthernetService::GlobalInterfaceStateCallback::OnInterfaceAdded(const std::string &iface)
161 int32_t EthernetService::GlobalInterfaceStateCallback::OnInterfaceRemoved(const std::string &iface)
169 int32_t EthernetService::GlobalInterfaceStateCallback::OnInterfaceChanged(const std::string &iface, bool up)
174 int32_t EthernetService::GlobalInterfaceStateCallback::OnInterfaceLinkStateChanged(const std::string &ifName, bool up)
182 int32_t EthernetService::GlobalInterfaceStateCallback::OnRouteChanged(bool updated, const std::string &route,
189 int32_t EthernetService::GlobalInterfaceStateCallback::OnDhcpSuccess(NetsysControllerCallback::DhcpResult &dhcpResult)
194 int32_t EthernetService::GlobalInterfaceStateCallback::OnBandwidthReachedLimit(const std::string &limitName,
200 int32_t EthernetService::GetMacAddress(std::vector<MacAddressInfo> &macAddrList)
207 NETMGR_EXT_LOG_E("EthernetService GetMacAddress no js permission");
214 int32_t EthernetService::SetIfaceConfig(const std::string &iface, sptr<InterfaceConfiguration> &ic)
222 NETMGR_EXT_LOG_E("EthernetService SetIfaceConfig no js permission");
229 int32_t EthernetService::GetIfaceConfig(const std::string &iface, sptr<InterfaceConfiguration> &ifaceConfig)
237 NETMGR_EXT_LOG_E("EthernetService GetIfaceConfig no js permission");
244 int32_t EthernetService::IsIfaceActive(const std::string &iface, int32_t &activeStatus)
252 NETMGR_EXT_LOG_E("EthernetService IsIfaceActive no js permission");
259 int32_t EthernetService::GetAllActiveIfaces(std::vector<std::string> &activeIfaces)
266 NETMGR_EXT_LOG_E("EthernetService GetAllActiveIfaces no js permission");
273 int32_t EthernetService::ResetFactory()
280 NETMGR_EXT_LOG_E("EthernetService GetAllActiveIfaces no js permission");
287 int32_t EthernetService::RegisterIfacesStateChanged(const sptr<InterfaceStateCallback> &callback)
304 int32_t EthernetService::UnregisterIfacesStateChanged(const sptr<InterfaceStateCallback> &callback)
321 int32_t EthernetService::SetInterfaceUp(const std::string &iface)
325 NETMGR_EXT_LOG_E("EthernetService SetInterfaceUp no permission");
331 int32_t EthernetService::SetInterfaceDown(const std::string &iface)
335 NETMGR_EXT_LOG_E("EthernetService SetInterfaceDown no permission");
341 int32_t EthernetService::GetInterfaceConfig(const std::string &iface, OHOS::nmd::InterfaceConfigurationParcel &config)
345 NETMGR_EXT_LOG_E("EthernetService GetInterfaceConfig no permission");
352 int32_t EthernetService::SetInterfaceConfig(const std::string &iface, OHOS::nmd::InterfaceConfigurationParcel &cfg)
356 NETMGR_EXT_LOG_E("EthernetService SetInterfaceConfig no permission");
363 int32_t EthernetService::RegisterMonitorIfaceCallbackAsync(const sptr<InterfaceStateCallback> &callback)
386 int32_t EthernetService::UnregisterMonitorIfaceCallbackAsync(const sptr<InterfaceStateCallback> &callback)
409 void EthernetService::NotifyMonitorIfaceCallbackAsync(OnFunctionT onFunction)