Searched refs:g_subscriber (Results 1 – 2 of 2) sorted by relevance
31 static std::shared_ptr<SandboxManagerCommonEventSubscriber> g_subscriber = nullptr; variable48 g_subscriber = std::make_shared<SandboxManagerCommonEventSubscriber>(*info); in RegisterEvent()49 if (!EventFwk::CommonEventManager::SubscribeCommonEvent(g_subscriber)) { in RegisterEvent()64 if (!EventFwk::CommonEventManager::UnSubscribeCommonEvent(g_subscriber)) { in UnRegisterEvent()
36 static std::shared_ptr<PrivacyCommonEventSubscriber> g_subscriber = nullptr; variable55 g_subscriber = std::make_shared<PrivacyCommonEventSubscriber>(*info); in RegisterEvent()56 const auto result = EventFwk::CommonEventManager::SubscribeCommonEvent(g_subscriber); in RegisterEvent()67 const auto result = EventFwk::CommonEventManager::UnSubscribeCommonEvent(g_subscriber); in UnRegisterEvent()