Home | History | Annotate | Download | only in servicemanager

Lines Matching refs:si

107     struct svcinfo *si;
109 for (si = svclist; si; si = si->next) {
110 if ((len == si->len) &&
111 !memcmp(s16, si->name, len * sizeof(uint16_t))) {
112 return si;
120 struct svcinfo *si = ptr;
121 ALOGI("service '%s' died\n", str8(si->name));
122 if (si->ptr) {
123 binder_release(bs, si->ptr);
124 si->ptr = 0;
136 struct svcinfo *si;
137 si = find_svc(s, len);
139 // ALOGI("check_service('%s') ptr = %p\n", str8(s), si ? si->ptr : 0);
140 if (si && si->ptr) {
141 if (!si->allow_isolated) {
149 return si->ptr;
159 struct svcinfo *si;
172 si = find_svc(s, len);
173 if (si) {
174 if (si->ptr) {
177 svcinfo_death(bs, si);
179 si->ptr = ptr;
181 si = malloc(sizeof(*si) + (len + 1) * sizeof(uint16_t));
182 if (!si) {
187 si->ptr = ptr;
188 si->len = len;
189 memcpy(si->name, s, (len + 1) * sizeof(uint16_t));
190 si->name[len] = '\0';
191 si->death.func = svcinfo_death;
192 si->death.ptr = si;
193 si->allow_isolated = allow_isolated;
194 si->next = svclist;
195 svclist = si;
199 binder_link_to_death(bs, ptr, &si->death);
208 struct svcinfo *si;
254 si = svclist;
255 while ((n-- > 0) && si)
256 si = si->next;
257 if (si) {
258 bio_put_string16(reply, si->name);