• Home
  • Raw
  • Download

Lines Matching refs:sm

74     sp<ServiceManager> sm = sp<NiceMock<MockServiceManager>>::make(std::move(access));  in getPermissiveServiceManager()  local
75 return sm; in getPermissiveServiceManager()
79 auto sm = getPermissiveServiceManager(); in TEST() local
80 EXPECT_TRUE(sm->addService("foo", getBinder(), false /*allowIsolated*/, in TEST()
85 auto sm = getPermissiveServiceManager(); in TEST() local
86 EXPECT_FALSE(sm->addService("", getBinder(), false /*allowIsolated*/, in TEST()
91 auto sm = getPermissiveServiceManager(); in TEST() local
92 EXPECT_TRUE(sm->addService(std::string(127, 'a'), getBinder(), false /*allowIsolated*/, in TEST()
97 auto sm = getPermissiveServiceManager(); in TEST() local
98 EXPECT_FALSE(sm->addService(std::string(128, 'a'), getBinder(), false /*allowIsolated*/, in TEST()
103 auto sm = getPermissiveServiceManager(); in TEST() local
104 EXPECT_FALSE(sm->addService("happy$foo$foo", getBinder(), false /*allowIsolated*/, in TEST()
109 auto sm = getPermissiveServiceManager(); in TEST() local
110 EXPECT_FALSE(sm->addService("foo", nullptr, false /*allowIsolated*/, in TEST()
122 sp<ServiceManager> sm = sp<NiceMock<MockServiceManager>>::make(std::move(access)); in TEST() local
124 EXPECT_FALSE(sm->addService("foo", getBinder(), false /*allowIsolated*/, in TEST()
131 auto sm = getPermissiveServiceManager(); in TEST() local
132 EXPECT_TRUE(sm->addService("foo", getBinder(), false /*allowIsolated*/, in TEST()
134 EXPECT_TRUE(sm->addService("foo", getBinder(), false /*allowIsolated*/, in TEST()
139 auto sm = getPermissiveServiceManager(); in TEST() local
141 EXPECT_TRUE(sm->addService("foo", serviceA, false /*allowIsolated*/, in TEST()
145 EXPECT_TRUE(sm->getService("foo", &outA).isOk()); in TEST()
150 EXPECT_TRUE(sm->addService("foo", serviceB, false /*allowIsolated*/, in TEST()
154 EXPECT_TRUE(sm->getService("foo", &outB).isOk()); in TEST()
164 sp<ServiceManager> sm = sp<NiceMock<MockServiceManager>>::make(std::move(access)); in TEST() local
166 EXPECT_FALSE(sm->addService("foo", getBinder(), false /*allowIsolated*/, in TEST()
171 auto sm = getPermissiveServiceManager(); in TEST() local
174 EXPECT_TRUE(sm->addService("foo", service, false /*allowIsolated*/, in TEST()
178 EXPECT_TRUE(sm->getService("foo", &out).isOk()); in TEST()
183 auto sm = getPermissiveServiceManager(); in TEST() local
186 EXPECT_TRUE(sm->getService("foo", &out).isOk()); in TEST()
197 sp<ServiceManager> sm = sp<NiceMock<MockServiceManager>>::make(std::move(access)); in TEST() local
199 EXPECT_TRUE(sm->addService("foo", getBinder(), false /*allowIsolated*/, in TEST()
204 EXPECT_TRUE(sm->getService("foo", &out).isOk()); in TEST()
221 sp<ServiceManager> sm = sp<NiceMock<MockServiceManager>>::make(std::move(access)); in TEST() local
224 EXPECT_TRUE(sm->addService("foo", service, true /*allowIsolated*/, in TEST()
228 EXPECT_TRUE(sm->getService("foo", &out).isOk()); in TEST()
247 sp<ServiceManager> sm = sp<NiceMock<MockServiceManager>>::make(std::move(access)); in TEST() local
249 EXPECT_TRUE(sm->addService("foo", getBinder(), false /*allowIsolated*/, in TEST()
254 EXPECT_TRUE(sm->getService("foo", &out).isOk()); in TEST()
264 sp<ServiceManager> sm = sp<NiceMock<MockServiceManager>>::make(std::move(access)); in TEST() local
267 EXPECT_FALSE(sm->listServices(IServiceManager::DUMP_FLAG_PRIORITY_ALL, &out).isOk()); in TEST()
272 auto sm = getPermissiveServiceManager(); in TEST() local
274 EXPECT_TRUE(sm->addService("sd", getBinder(), false /*allowIsolated*/, in TEST()
276 EXPECT_TRUE(sm->addService("sc", getBinder(), false /*allowIsolated*/, in TEST()
278 EXPECT_TRUE(sm->addService("sb", getBinder(), false /*allowIsolated*/, in TEST()
280 EXPECT_TRUE(sm->addService("sa", getBinder(), false /*allowIsolated*/, in TEST()
284 EXPECT_TRUE(sm->listServices(IServiceManager::DUMP_FLAG_PRIORITY_ALL, &out).isOk()); in TEST()
291 auto sm = getPermissiveServiceManager(); in TEST() local
293 EXPECT_TRUE(sm->addService("sd", getBinder(), false /*allowIsolated*/, in TEST()
295 EXPECT_TRUE(sm->addService("sc", getBinder(), false /*allowIsolated*/, in TEST()
297 EXPECT_TRUE(sm->addService("sb", getBinder(), false /*allowIsolated*/, in TEST()
299 EXPECT_TRUE(sm->addService("sa", getBinder(), false /*allowIsolated*/, in TEST()
303 EXPECT_TRUE(sm->listServices(IServiceManager::DUMP_FLAG_PRIORITY_CRITICAL, &out).isOk()); in TEST()
332 sp<ServiceManager> sm = sp<ServiceManager>::make(std::move(access)); in TEST() local
336 EXPECT_EQ(sm->registerForNotifications("foofoo", cb).exceptionCode(), in TEST()
346 sp<ServiceManager> sm = sp<ServiceManager>::make(std::move(access)); in TEST() local
351 EXPECT_EQ(sm->unregisterForNotifications("foofoo", cb).exceptionCode(), in TEST()
356 auto sm = getPermissiveServiceManager(); in TEST() local
360 EXPECT_EQ(sm->registerForNotifications("foo@foo", cb).exceptionCode(), in TEST()
365 auto sm = getPermissiveServiceManager(); in TEST() local
367 EXPECT_EQ(sm->registerForNotifications("foofoo", nullptr).exceptionCode(), in TEST()
372 auto sm = getPermissiveServiceManager(); in TEST() local
376 EXPECT_TRUE(sm->registerForNotifications("foofoo", cb).isOk()); in TEST()
377 EXPECT_EQ(sm->unregisterForNotifications("foofoo", cb).exceptionCode(), 0); in TEST()
381 auto sm = getPermissiveServiceManager(); in TEST() local
385 EXPECT_EQ(sm->unregisterForNotifications("foofoo", cb).exceptionCode(), in TEST()
390 auto sm = getPermissiveServiceManager(); in TEST() local
394 EXPECT_TRUE(sm->registerForNotifications("foofoo", cb).isOk()); in TEST()
395 EXPECT_TRUE(sm->addService("otherservice", getBinder(), in TEST()
403 auto sm = getPermissiveServiceManager(); in TEST() local
409 EXPECT_TRUE(sm->registerForNotifications("asdfasdf", cb).isOk()); in TEST()
410 EXPECT_TRUE(sm->addService("asdfasdf", service, in TEST()
418 auto sm = getPermissiveServiceManager(); in TEST() local
424 EXPECT_TRUE(sm->addService("asdfasdf", service, in TEST()
427 EXPECT_TRUE(sm->registerForNotifications("asdfasdf", cb).isOk()); in TEST()
434 auto sm = getPermissiveServiceManager(); in TEST() local
441 EXPECT_TRUE(sm->registerForNotifications("asdfasdf", cb).isOk()); in TEST()
442 EXPECT_TRUE(sm->addService("asdfasdf", binder1, in TEST()
444 EXPECT_TRUE(sm->addService("asdfasdf", binder2, in TEST()