Searched refs:handler (Results 1 - 18 of 18) sorted by relevance

/system/core/libcutils/
H A Ddlmalloc_stubs.c25 void dlmalloc_inspect_all(void(*handler)(void*, void *, size_t, void*),
/system/core/libutils/tests/
H A DLooper_test.cpp63 virtual int handler(int fd, int events) = 0;
67 return static_cast<CallbackHandler*>(data)->handler(fd, events);
84 virtual int handler(int fd, int events) { function in class:android::StubCallbackHandler
166 StubCallbackHandler handler(true);
168 handler.setCallback(mLooper, pipe.receiveFd, ALOOPER_EVENT_INPUT);
178 EXPECT_EQ(0, handler.callbackCount)
184 StubCallbackHandler handler(true);
187 handler.setCallback(mLooper, pipe.receiveFd, ALOOPER_EVENT_INPUT);
197 EXPECT_EQ(1, handler.callbackCount)
199 EXPECT_EQ(pipe.receiveFd, handler
441 sp<StubMessageHandler> handler = new StubMessageHandler(); local
489 sp<StubMessageHandler> handler = new StubMessageHandler(); local
525 sp<StubMessageHandler> handler = new StubMessageHandler(); local
543 sp<StubMessageHandler> handler = new StubMessageHandler(); local
562 sp<StubMessageHandler> handler = new StubMessageHandler(); local
599 sp<StubMessageHandler> handler = new StubMessageHandler(); local
618 sp<StubMessageHandler> handler = new StubMessageHandler(); local
636 sp<StubMessageHandler> handler = new StubMessageHandler(); local
662 sp<StubMessageHandler> handler = new StubMessageHandler(); local
[all...]
/system/core/include/utils/
H A DLooper.h44 /* The message type. (interpretation is left up to the handler) */
50 * Interface for a Looper message handler.
52 * The Looper holds a strong reference to the message handler whenever it has
54 * to remove any pending messages destined for the handler so that the handler
70 * A simple proxy that holds a weak reference to a message handler.
77 WeakMessageHandler(const wp<MessageHandler>& handler);
254 * Enqueues a message to be processed by the specified handler.
256 * The handler must not be null.
259 void sendMessage(const sp<MessageHandler>& handler, cons
345 MessageEnvelope(nsecs_t uptime, const sp<MessageHandler> handler, const Message& message) argument
350 sp<MessageHandler> handler; member in struct:android::Looper::MessageEnvelope
[all...]
/system/core/libutils/
H A DLooper.cpp29 WeakMessageHandler::WeakMessageHandler(const wp<MessageHandler>& handler) : argument
30 mHandler(handler) {
37 sp<MessageHandler> handler = mHandler.promote(); local
38 if (handler != NULL) {
39 handler->handleMessage(message);
288 // We keep a strong reference to the handler until the call to handleMessage
289 // finishes. Then we drop it so that the handler can be deleted *before*
291 { // obtain handler
292 sp<MessageHandler> handler = messageEnvelope.handler; local
489 sendMessage(const sp<MessageHandler>& handler, const Message& message) argument
494 sendMessageDelayed(nsecs_t uptimeDelay, const sp<MessageHandler>& handler, const Message& message) argument
500 sendMessageAtTime(nsecs_t uptime, const sp<MessageHandler>& handler, const Message& message) argument
534 removeMessages(const sp<MessageHandler>& handler) argument
551 removeMessages(const sp<MessageHandler>& handler, int what) argument
[all...]
/system/core/sdcard/
H A Dsdcard.c226 /* Private data used by a single fuse handler. */
811 static int handle_lookup(struct fuse* fuse, struct fuse_handler* handler, argument
822 TRACE("[%d] LOOKUP %s @ %llx (%s)\n", handler->token, name, hdr->nodeid,
837 static int handle_forget(struct fuse* fuse, struct fuse_handler* handler, argument
844 TRACE("[%d] FORGET #%lld @ %llx (%s)\n", handler->token, req->nlookup,
856 static int handle_getattr(struct fuse* fuse, struct fuse_handler* handler, argument
864 TRACE("[%d] GETATTR flags=%x fh=%llx @ %llx (%s)\n", handler->token,
878 static int handle_setattr(struct fuse* fuse, struct fuse_handler* handler, argument
889 TRACE("[%d] SETATTR fh=%llx valid=%x @ %llx (%s)\n", handler->token,
933 handler
941 handle_mknod(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const struct fuse_mknod_in* req, const char* name) argument
972 handle_mkdir(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const struct fuse_mkdir_in* req, const char* name) argument
1022 handle_unlink(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const char* name) argument
1051 handle_rmdir(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const char* name) argument
1080 handle_rename(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const struct fuse_rename_in* req, const char* old_name, const char* new_name) argument
1173 handle_open(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const struct fuse_open_in* req) argument
1213 handle_read(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const struct fuse_read_in* req) argument
1239 handle_write(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const struct fuse_write_in* req, const void* buffer) argument
1258 handle_statfs(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr) argument
1289 handle_release(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const struct fuse_release_in* req) argument
1300 handle_fsync(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const struct fuse_fsync_in* req) argument
1316 handle_flush(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr) argument
1323 handle_opendir(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const struct fuse_open_in* req) argument
1360 handle_readdir(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const struct fuse_read_in* req) argument
1389 handle_releasedir(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const struct fuse_release_in* req) argument
1400 handle_init(struct fuse* fuse, struct fuse_handler* handler, const struct fuse_in_header* hdr, const struct fuse_init_in* req) argument
1418 handle_fuse_request(struct fuse *fuse, struct fuse_handler* handler, const struct fuse_in_header *hdr, const void *data, size_t data_len) argument
1541 handle_fuse_requests(struct fuse_handler* handler) argument
1585 struct fuse_handler* handler = data; local
[all...]
/system/netd/
H A DDnsProxyListener.cpp83 GetAddrInfoHandler* handler = reinterpret_cast<GetAddrInfoHandler*>(obj); local
84 handler->run();
85 delete handler;
235 DnsProxyListener::GetAddrInfoHandler* handler = local
238 handler->start();
286 DnsProxyListener::GetHostByNameHandler* handler = local
289 handler->start();
323 GetHostByNameHandler* handler = reinterpret_cast<GetHostByNameHandler*>(obj); local
324 handler->run();
325 delete handler;
419 DnsProxyListener::GetHostByAddrHandler* handler = local
458 GetHostByAddrHandler* handler = reinterpret_cast<GetHostByAddrHandler*>(obj); local
[all...]
H A DDnsProxyListener.h54 static void* threadStart(void* handler);
89 static void* threadStart(void* handler);
124 static void* threadStart(void* handler);
H A DNetlinkManager.cpp88 NetlinkHandler *handler = new NetlinkHandler(this, *sock, format); local
89 if (handler->start()) {
95 return handler;
H A DMDnsSdListener.h76 static void *threadStart(void *handler);
/system/core/sh/
H A Derror.h50 * jump locations. The global variable handler contains the location to
53 * exception handlers, the user should save the value of handler on entry
54 * to an inner scope, set handler to point to a jmploc structure for the
55 * inner scope, and restore handler on exit from the scope.
64 extern struct jmploc *handler;
H A Dhistedit.c299 handler = savehandler;
300 longjmp(handler->loc, 1);
302 savehandler = handler;
303 handler = &jmploc;
H A Derror.c67 struct jmploc *handler; variable in typeref:struct:jmploc
79 * just do a longjmp to the exception handler. The type of exception is
86 if (handler == NULL)
89 longjmp(handler->loc, 1);
H A Deval.c876 savehandler = handler;
877 handler = &jmploc;
882 handler = savehandler; /* restore from vfork(2) */
947 handler = savehandler;
948 longjmp(handler->loc, 1);
950 savehandler = handler;
951 handler = &jmploc;
963 handler = savehandler;
987 savehandler = handler;
989 handler
[all...]
H A Dvar.c198 struct jmploc *volatile savehandler = handler;
207 handler = &jmploc;
210 handler = savehandler;
H A Dtrap.c65 * modes. A value of zero means that the current handler is not known.
76 char *trap[NSIG+1]; /* trap handler commands */
227 * Set the signal handler for the specified signal. The routine figures
361 * Signal handler.
380 * handlers while we are executing a trap handler.
444 handler = &loc1;
449 l1: handler = &loc2; /* probably unnecessary */
H A Dmain.c162 handler = &jmploc;
H A Dparser.c1383 handler = savehandler;
1384 longjmp(handler->loc, 1);
1393 savehandler = handler;
1394 handler = &jmploc;
1501 handler = savehandler;
/system/core/libcorkscrew/arch-arm/
H A Dbacktrace-arm.c45 * we are running in a signal handler or using ptrace()!
124 ALOGV("get_exception_handler: pc is zero, no handler");
146 uintptr_t handler = 0; local
185 handler = entry_handler_ptr; // in-place handler data
187 handler = prel_to_absolute(entry_handler_ptr, entry_handler);
195 "exidx_start=0x%08x, exidx_size=%d, handler=0x%08x, handler_index=%d",
196 pc, mi->name, mi->start, exidx_start, exidx_size, handler, handler_index);
199 "exidx_start=0x%08x, exidx_size=%d, handler=0x%08x, handler_index=%d",
200 pc, exidx_start, exidx_size, handler, handler_inde
502 uintptr_t handler = get_exception_handler(memory, map_info_list, pc); local
[all...]

Completed in 3322 milliseconds