Home
last modified time | relevance | path

Searched refs:WATCHER_CHECK (Results 1 – 9 of 9) sorted by relevance

/base/startup/init/services/param/watcher/agent/
Dwatcher_manager_kits.cpp56 WATCHER_CHECK(threadForReWatch_ != nullptr, return, "Failed to create thread"); in ResetService()
69 WATCHER_CHECK(samgr != nullptr, return nullptr, "Get samgr failed"); in GetService()
71WATCHER_CHECK(object != nullptr, return nullptr, "Get watcher manager object from samgr failed"); in GetService()
107 WATCHER_CHECK(watcherManager != nullptr, return, "Failed to get watcher manager"); in ReAddWatcher()
110 WATCHER_CHECK(remoteWatcherId > 0, return, "Failed to get remote agent"); in ReAddWatcher()
121 WATCHER_CHECK(ret == 0, continue, "Failed to add watcher for %s", iter->first.c_str()); in ReAddWatcher()
142 WATCHER_CHECK(watcherManager != nullptr, return 0, "Failed to get watcher manager"); in GetRemoteWatcher()
144 WATCHER_CHECK(remoteWatcher_ != nullptr, return 0, "Failed to create watcher"); in GetRemoteWatcher()
146 WATCHER_CHECK(remoteWatcherId_ != 0, return 0, "Failed to add watcher"); in GetRemoteWatcher()
153 WATCHER_CHECK(watcherManager != nullptr, return -1, "Failed to get watcher manager"); in AddWatcher()
[all …]
Dwatcher_manager_proxy.cpp22 WATCHER_CHECK(watcher != nullptr, return ERR_INVALID_VALUE, "Invalid param"); in AddRemoteWatcher()
24 WATCHER_CHECK(remote != nullptr, return 0, "Can not get remote"); in AddRemoteWatcher()
29 WATCHER_CHECK(ret, return 0, "Can not get remote"); in AddRemoteWatcher()
35 WATCHER_CHECK(res == ERR_OK, return 0, "Transact error %d", res); in AddRemoteWatcher()
42 WATCHER_CHECK(remote != nullptr, return ERR_FLATTEN_OBJECT, "Can not get remote"); in DelRemoteWatcher()
50 WATCHER_CHECK(res == ERR_OK, return ERR_FLATTEN_OBJECT, "Transact error"); in DelRemoteWatcher()
57 WATCHER_CHECK(remote != nullptr, return 0, "Can not get remote"); in SendMsg()
66 WATCHER_CHECK(res == ERR_OK, return 0, "Transact error"); in SendMsg()
Dwatcher_stub.cpp27 WATCHER_CHECK(myDescriptor == remoteDescriptor, return -1, "Invalid remoteDescriptor"); in OnRemoteRequest()
/base/startup/init/services/param/watcher/proxy/
Dwatcher_manager.cpp44WATCHER_CHECK(watcher != nullptr && deathRecipient_ != nullptr, return 0, "Invalid remove watcher"… in AddRemoteWatcher()
47WATCHER_CHECK(object->AddDeathRecipient(deathRecipient_), return 0, "Failed to add death recipient… in AddRemoteWatcher()
54 WATCHER_CHECK(ret == 0, return 0, "Failed to get watcher id for %u", id); in AddRemoteWatcher()
57 WATCHER_CHECK(remoteWatcher != nullptr, return 0, "Failed to create watcher for %u", id); in AddRemoteWatcher()
71WATCHER_CHECK(remoteWatcher != nullptr, return 0, "Can not find watcher %u", remoteWatcherId); in DelRemoteWatcher()
87WATCHER_CHECK(remoteWatcher != nullptr, return -1, "Can not find remote watcher %d", remoteWatcher… in AddWatcher()
89 WATCHER_CHECK(group != nullptr, return -1, "Failed to create group for %s", keyPrefix.c_str()); in AddWatcher()
109 WATCHER_CHECK(group != nullptr, return 0, "Can not find group %s", keyPrefix.c_str()); in DelWatcher()
111WATCHER_CHECK(remoteWatcher != nullptr, return 0, "Can not find watcher %s %d", keyPrefix.c_str(),… in DelWatcher()
129 WATCHER_CHECK(group != nullptr, return 0, "Can not find group %s", keyPrefix.c_str()); in RefreshWatcher()
[all …]
Dwatcher_proxy.cpp33 WATCHER_CHECK(remote != nullptr, return, "Can not get remote"); in OnParameterChange()
40WATCHER_CHECK(ret == ERR_OK, return, "Can not SendRequest for name %s err:%d", name.c_str(), ret); in OnParameterChange()
Dwatcher_manager_stub.cpp27 WATCHER_CHECK(myDescriptor == remoteDescriptor, return -1, "Invalid remoteDescriptor"); in OnRemoteRequest()
46 WATCHER_CHECK(remote != nullptr, reply.WriteUint32(0); in OnRemoteRequest()
/base/startup/init/test/unittest/param/
Dwatcher_proxy_unittest.cpp64 WATCHER_CHECK(watcherManager != nullptr, return -1, "Failed to create manager"); in TestAddRemoteWatcher()
72 WATCHER_CHECK(ret, return 0, "Can not get remote"); in TestAddRemoteWatcher()
90 WATCHER_CHECK(watcherManager != nullptr, return -1, "Failed to create manager"); in TestDelRemoteWatcher()
106 WATCHER_CHECK(watcherManager != nullptr, return -1, "Failed to create manager"); in TestAddWatcher()
124 WATCHER_CHECK(watcherManager != nullptr, return -1, "Failed to create manager"); in TestDelWatcher()
139 WATCHER_CHECK(watcherManager != nullptr, return -1, "Failed to create manager"); in TestProcessWatcherMessage()
145 WATCHER_CHECK(msg != nullptr, return -1, "Invalid msg"); in TestProcessWatcherMessage()
150 WATCHER_CHECK(ret == 0, return -1, "Failed to fill value"); in TestProcessWatcherMessage()
153 WATCHER_CHECK(ret == 0, return -1, "Failed to fill value"); in TestProcessWatcherMessage()
191 WATCHER_CHECK(watcherManager != nullptr, return -1, "Failed to get manager"); in TestWatchAgentDied()
[all …]
Dwatcher_agent_unittest.cpp160 WATCHER_CHECK(samgr != nullptr, return -1, "Get samgr failed"); in TestResetService()
162 WATCHER_CHECK(object != nullptr, return -1, "Get watcher manager object from samgr failed"); in TestResetService()
/base/startup/init/services/param/watcher/include/
Dwatcher_utils.h37 #define WATCHER_CHECK(retCode, exper, ...) \ macro