Lines Matching refs:sm
50 auto sm = new FakeServiceManager(); in TEST() local
51 EXPECT_EQ(sm->addService(String16("foo"), getBinder(), false /*allowIsolated*/, in TEST()
56 auto sm = new FakeServiceManager(); in TEST() local
57 EXPECT_EQ(sm->addService(String16("foo"), nullptr, false /*allowIsolated*/, in TEST()
62 auto sm = new FakeServiceManager(); in TEST() local
63 EXPECT_EQ(sm->addService(String16("foo"), getBinder(), false /*allowIsolated*/, in TEST()
65 EXPECT_EQ(sm->addService(String16("foo"), getBinder(), false /*allowIsolated*/, in TEST()
70 auto sm = new FakeServiceManager(); in TEST() local
71 EXPECT_EQ(sm->addService(String16("foo"), getBinder(), false /*allowIsolated*/, in TEST()
73 EXPECT_NE(sm->getService(String16("foo")), nullptr); in TEST()
74 sm->clear(); in TEST()
75 EXPECT_EQ(sm->getService(String16("foo")), nullptr); in TEST()
79 auto sm = new FakeServiceManager(); in TEST() local
82 EXPECT_EQ(sm->addService(String16("foo"), service, false /*allowIsolated*/, in TEST()
85 EXPECT_EQ(sm->getService(String16("foo")), service); in TEST()
89 auto sm = new FakeServiceManager(); in TEST() local
91 EXPECT_EQ(sm->getService(String16("foo")), nullptr); in TEST()
95 auto sm = new FakeServiceManager(); in TEST() local
97 EXPECT_EQ(sm->addService(String16("sd"), getBinder(), false /*allowIsolated*/, in TEST()
99 EXPECT_EQ(sm->addService(String16("sc"), getBinder(), false /*allowIsolated*/, in TEST()
101 EXPECT_EQ(sm->addService(String16("sb"), getBinder(), false /*allowIsolated*/, in TEST()
103 EXPECT_EQ(sm->addService(String16("sa"), getBinder(), false /*allowIsolated*/, in TEST()
106 android::Vector<String16> out = sm->listServices(IServiceManager::DUMP_FLAG_PRIORITY_ALL); in TEST()
114 auto sm = new FakeServiceManager(); in TEST() local
116 EXPECT_EQ(sm->waitForService(String16("foo")), nullptr); in TEST()
120 auto sm = new FakeServiceManager(); in TEST() local
123 EXPECT_EQ(sm->addService(String16("foo"), service, false /*allowIsolated*/, in TEST()
126 EXPECT_EQ(sm->waitForService(String16("foo")), service); in TEST()
130 auto sm = new FakeServiceManager(); in TEST() local
132 EXPECT_FALSE(sm->isDeclared(String16("foo"))); in TEST()
136 auto sm = new FakeServiceManager(); in TEST() local
139 EXPECT_EQ(sm->addService(String16("foo"), service, false /*allowIsolated*/, in TEST()
142 EXPECT_TRUE(sm->isDeclared(String16("foo"))); in TEST()