/frameworks/base/cmds/servicemanager/ |
H A D | bctest.c | 10 void *svcmgr_lookup(struct binder_state *bs, void *target, const char *name) argument 20 if (binder_call(bs, &msg, &reply, target, SVC_MGR_CHECK_SERVICE)) 26 binder_acquire(bs, ptr); 28 binder_done(bs, &msg, &reply); 33 int svcmgr_publish(struct binder_state *bs, void *target, const char *name, void *ptr) argument 45 if (binder_call(bs, &msg, &reply, target, SVC_MGR_ADD_SERVICE)) 50 binder_done(bs, &msg, &reply); 60 struct binder_state *bs; local 63 bs = binder_open(128*1024); 69 void *ptr = svcmgr_lookup(bs, svcmg [all...] |
H A D | service_manager.c | 112 void svcinfo_death(struct binder_state *bs, void *ptr) argument 117 binder_release(bs, si->ptr); 128 void *do_find_service(struct binder_state *bs, uint16_t *s, unsigned len) argument 141 int do_add_service(struct binder_state *bs, argument 182 binder_acquire(bs, ptr); 183 binder_link_to_death(bs, ptr, &si->death); 187 int svcmgr_handler(struct binder_state *bs, argument 215 ptr = do_find_service(bs, s, len); 224 if (do_add_service(bs, s, len, ptr, txn->sender_euid)) 251 struct binder_state *bs; local [all...] |
H A D | binder.c | 96 struct binder_state *bs; local 98 bs = malloc(sizeof(*bs)); 99 if (!bs) { 104 bs->fd = open("/dev/binder", O_RDWR); 105 if (bs->fd < 0) { 111 bs->mapsize = mapsize; 112 bs->mapped = mmap(NULL, mapsize, PROT_READ, MAP_PRIVATE, bs->fd, 0); 113 if (bs 130 binder_close(struct binder_state *bs) argument 137 binder_become_context_manager(struct binder_state *bs) argument 142 binder_write(struct binder_state *bs, void *data, unsigned len) argument 160 binder_send_reply(struct binder_state *bs, struct binder_io *reply, void *buffer_to_free, int status) argument 194 binder_parse(struct binder_state *bs, struct binder_io *bio, uint32_t *ptr, uint32_t size, binder_handler func) argument 277 binder_acquire(struct binder_state *bs, void *ptr) argument 285 binder_release(struct binder_state *bs, void *ptr) argument 293 binder_link_to_death(struct binder_state *bs, void *ptr, struct binder_death *death) argument 303 binder_call(struct binder_state *bs, struct binder_io *msg, struct binder_io *reply, void *target, uint32_t code) argument 357 binder_loop(struct binder_state *bs, binder_handler func) argument 436 binder_done(struct binder_state *bs, struct binder_io *msg, struct binder_io *reply) argument [all...] |
/frameworks/base/opengl/libagl/ |
H A D | mipmap.cpp | 53 int bs = base->stride; local 62 size_t offset = (y*2) * bs; 66 uint32_t p01 = src[offset+bs]; 67 uint32_t p11 = src[offset+bs+1]; 84 size_t offset = (y*2) * bs; 88 uint32_t p01 = src[offset+bs]; 89 uint32_t p11 = src[offset+bs+1]; 104 size_t offset = (y*2) * bs; 108 uint32_t p01 = src[offset+bs]; 109 uint32_t p11 = src[offset+bs [all...] |
/frameworks/base/libs/utils/ |
H A D | BufferedTextOutput.cpp | 267 BufferState* bs = ts->states[mIndex].get(); local 268 if (bs != NULL && bs->seq == mSeq) return bs; 271 bs = ts->states[mIndex].get(); 272 if (bs != NULL) return bs;
|