Home | History | Annotate | Download | only in servicemanager

Lines Matching refs:si

104     struct svcinfo *si;
106 for (si = svclist; si; si = si->next) {
107 if ((len == si->len) &&
108 !memcmp(s16, si->name, len * sizeof(uint16_t))) {
109 return si;
117 struct svcinfo *si = ptr;
118 ALOGI("service '%s' died\n", str8(si->name));
119 if (si->ptr) {
120 binder_release(bs, si->ptr);
121 si->ptr = 0;
133 struct svcinfo *si;
134 si = find_svc(s, len);
136 // ALOGI("check_service('%s') ptr = %p\n", str8(s), si ? si->ptr : 0);
137 if (si && si->ptr) {
138 if (!si->allow_isolated) {
146 return si->ptr;
156 struct svcinfo *si;
169 si = find_svc(s, len);
170 if (si) {
171 if (si->ptr) {
174 svcinfo_death(bs, si);
176 si->ptr = ptr;
178 si = malloc(sizeof(*si) + (len + 1) * sizeof(uint16_t));
179 if (!si) {
184 si->ptr = ptr;
185 si->len = len;
186 memcpy(si->name, s, (len + 1) * sizeof(uint16_t));
187 si->name[len] = '\0';
188 si->death.func = svcinfo_death;
189 si->death.ptr = si;
190 si->allow_isolated = allow_isolated;
191 si->next = svclist;
192 svclist = si;
196 binder_link_to_death(bs, ptr, &si->death);
205 struct svcinfo *si;
251 si = svclist;
252 while ((n-- > 0) && si)
253 si = si->next;
254 if (si) {
255 bio_put_string16(reply, si->name);