Lines Matching refs:service
63 auto service = std::make_unique<NiceMock<MockHidlService>>(); in makeService() local
64 ON_CALL(*service, getNodeStrongRefCount()).WillByDefault(Invoke([&]() { in makeService()
68 return service; in makeService()
85 std::unique_ptr<HidlService> service = makeService(); in TEST_F() local
86 service->addClientCallback(cb, 1 /*knownClients*/); in TEST_F()
91 service->handleClientCallbacks(true /*onInterval*/, 1 /*knownClients*/); in TEST_F()
100 std::unique_ptr<HidlService> service = makeService(); in TEST_F() local
101 service->addClientCallback(cb, 2 /*knownClients*/); in TEST_F()
106 service->handleClientCallbacks(true /*onInterval*/, 2 /*knownClients*/); in TEST_F()
115 std::unique_ptr<HidlService> service = makeService(); in TEST_F() local
116 service->addClientCallback(cb, 1 /*knownClients*/); in TEST_F()
120 service->handleClientCallbacks(true /*onInterval*/, 1 /*knownClients*/); in TEST_F()
126 service->handleClientCallbacks(true /*onInterval*/, 1 /*knownClients*/); in TEST_F()
129 service->handleClientCallbacks(true /*onInterval*/, 1 /*knownClients*/); in TEST_F()
137 std::unique_ptr<HidlService> service = makeService(); in TEST_F() local
138 service->addClientCallback(cb, 1 /*knownClients*/); in TEST_F()
140 service->guaranteeClient(); in TEST_F()
143 service->handleClientCallbacks(false /*onInterval*/, 1 /*knownClients*/); in TEST_F()
146 service->handleClientCallbacks(true /*onInterval*/, 1 /*knownClients*/); in TEST_F()
149 service->handleClientCallbacks(true /*onInterval*/, 1 /*knownClients*/); in TEST_F()
156 std::unique_ptr<HidlService> service = makeService(); in TEST_F() local
157 service->addClientCallback(cb, 1 /*knownClients*/); in TEST_F()
163 service->handleClientCallbacks(false /*onInterval*/, 1 /*knownClients*/); in TEST_F()
165 service->handleClientCallbacks(false /*onInterval*/, 1 /*knownClients*/); in TEST_F()
170 service->handleClientCallbacks(true /*onInterval*/, 1 /*knownClients*/); in TEST_F()
173 service->handleClientCallbacks(true /*onInterval*/, 1 /*knownClients*/); in TEST_F()
180 std::unique_ptr<HidlService> service = makeService(); in TEST_F() local
181 service->addClientCallback(cb, 1 /*knownClients*/); in TEST_F()
184 service->handleClientCallbacks(false /*onInterval*/, 1 /*knownClients*/); in TEST_F()
188 service->guaranteeClient(); in TEST_F()
190 service->handleClientCallbacks(false /*onInterval*/, 1 /*knownClients*/); in TEST_F()
193 service->handleClientCallbacks(true /*onInterval*/, 1 /*knownClients*/); in TEST_F()
196 service->handleClientCallbacks(true /*onInterval*/, 1 /*knownClients*/); in TEST_F()
203 std::unique_ptr<HidlService> service = makeService(); in TEST_F() local
204 service->addClientCallback(cb, 1 /*knownClients*/); in TEST_F()
207 service->handleClientCallbacks(false /*onInterval*/, 1 /*knownClients*/); in TEST_F()
211 service->addClientCallback(laterCb, 1 /*knownClients*/); in TEST_F()
218 service->handleClientCallbacks(true /*onInterval*/, 1 /*knownClients*/); in TEST_F()
222 service->handleClientCallbacks(true /*onInterval*/, 1 /*knownClients*/); in TEST_F()
228 std::unique_ptr<HidlService> service = makeService(); in TEST_F() local
231 service->handleClientCallbacks(false /*onInterval*/, 1 /*knownClients*/); in TEST_F()