Home
last modified time | relevance | path

Searched refs:WatcherManagerKits (Results 1 – 3 of 3) sorted by relevance

/base/startup/init/services/param/watcher/agent/
Dwatcher_manager_kits.cpp28 WatcherManagerKits &WatcherManagerKits::GetInstance(void) in GetInstance()
30 return DelayedRefSingleton<WatcherManagerKits>::GetInstance(); in GetInstance()
33 WatcherManagerKits::WatcherManagerKits(void) {} in WatcherManagerKits() function in OHOS::init_param::WatcherManagerKits
35 WatcherManagerKits::~WatcherManagerKits(void) {} in ~WatcherManagerKits()
37 void WatcherManagerKits::ResetService(const wptr<IRemoteObject> &remote) in ResetService()
55 … threadForReWatch_ = new (std::nothrow)std::thread(&WatcherManagerKits::ReAddWatcher, this); in ResetService()
61 sptr<IWatcherManager> WatcherManagerKits::GetService(void) in GetService()
83 void WatcherManagerKits::DeathRecipient::OnRemoteDied(const wptr<IRemoteObject> &remote) in OnRemoteDied()
85 DelayedRefSingleton<WatcherManagerKits>::GetInstance().ResetService(remote); in OnRemoteDied()
88 void WatcherManagerKits::ReAddWatcher(void) in ReAddWatcher()
[all …]
Dwatcher_manager_kits.h33 class INIT_LOCAL_API WatcherManagerKits final : public DelayedRefSingleton<WatcherManagerKits> {
34 DECLARE_DELAYED_REF_SINGLETON(WatcherManagerKits);
36 DISALLOW_COPY_AND_MOVE(WatcherManagerKits);
38 static WatcherManagerKits &GetInstance(void);
89 … explicit RemoteWatcher(WatcherManagerKits *watcherManager) : watcherManager_(watcherManager) {} in RemoteWatcher()
94 WatcherManagerKits *watcherManager_ = { nullptr };
97 using ParamWatcherKitPtr = std::shared_ptr<WatcherManagerKits::ParamWatcher>;
/base/startup/init/test/unittest/param/
Dwatcher_agent_unittest.cpp170 WatcherManagerKits &instance = OHOS::init_param::WatcherManagerKits::GetInstance(); in TestRecvMessage()
194 …OHOS::init_param::WatcherManagerKits &instance = OHOS::init_param::WatcherManagerKits::GetInstance… in TestResetService()
206 WatcherManagerKits &instance = OHOS::init_param::WatcherManagerKits::GetInstance(); in TestWatcherProxy()
207 … sptr<Watcher> remoteWatcher = new OHOS::init_param::WatcherManagerKits::RemoteWatcher(&instance); in TestWatcherProxy()