Home
last modified time | relevance | path

Searched refs:handler (Results 1 – 13 of 13) sorted by relevance

/system/core/libutils/tests/
DLooper_test.cpp63 virtual int handler(int fd, int events) = 0;
67 return static_cast<CallbackHandler*>(data)->handler(fd, events); in staticHandler()
84 virtual int handler(int fd, int events) { in handler() function in android::StubCallbackHandler
166 StubCallbackHandler handler(true); in TEST_F() local
168 handler.setCallback(mLooper, pipe.receiveFd, Looper::EVENT_INPUT); in TEST_F()
178 EXPECT_EQ(0, handler.callbackCount) in TEST_F()
184 StubCallbackHandler handler(true); in TEST_F() local
187 handler.setCallback(mLooper, pipe.receiveFd, Looper::EVENT_INPUT); in TEST_F()
197 EXPECT_EQ(1, handler.callbackCount) in TEST_F()
199 EXPECT_EQ(pipe.receiveFd, handler.fd) in TEST_F()
[all …]
/system/core/include/utils/
DLooper.h87 WeakMessageHandler(const wp<MessageHandler>& handler);
348 void sendMessage(const sp<MessageHandler>& handler, const Message& message);
358 void sendMessageDelayed(nsecs_t uptimeDelay, const sp<MessageHandler>& handler,
369 void sendMessageAtTime(nsecs_t uptime, const sp<MessageHandler>& handler,
378 void removeMessages(const sp<MessageHandler>& handler);
386 void removeMessages(const sp<MessageHandler>& handler, int what);
434 MessageEnvelope(nsecs_t uptime, const sp<MessageHandler> handler, in MessageEnvelope()
435 const Message& message) : uptime(uptime), handler(handler), message(message) { in MessageEnvelope()
439 sp<MessageHandler> handler; member
/system/core/fastbootd/commands/
Dvirtual_partitions.c43 current->handler(handle, arg); in try_handle_virtual_partition()
52 void (*handler)(struct protocol_handle *phandle, const char *arg)) in virtual_partition_register()
58 new->handler = handler; in virtual_partition_register()
Dvirtual_partitions.h40 void (*handler)(struct protocol_handle *phandle, const char *arg); member
47 void (*handler)(struct protocol_handle *phandle, const char *arg));
/system/core/libutils/
DLooper.cpp29 WeakMessageHandler::WeakMessageHandler(const wp<MessageHandler>& handler) : in WeakMessageHandler() argument
30 mHandler(handler) { in WeakMessageHandler()
37 sp<MessageHandler> handler = mHandler.promote(); in handleMessage() local
38 if (handler != NULL) { in handleMessage()
39 handler->handleMessage(message); in handleMessage()
292 sp<MessageHandler> handler = messageEnvelope.handler; in pollInner() local
300 this, handler.get(), message.what); in pollInner()
302 handler->handleMessage(message); in pollInner()
489 void Looper::sendMessage(const sp<MessageHandler>& handler, const Message& message) { in sendMessage() argument
491 sendMessageAtTime(now, handler, message); in sendMessage()
[all …]
/system/core/sdcard/
Dsdcard.c854 static int handle_lookup(struct fuse* fuse, struct fuse_handler* handler, in handle_lookup() argument
865 TRACE("[%d] LOOKUP %s @ %"PRIx64" (%s)\n", handler->token, name, hdr->nodeid, in handle_lookup()
880 static int handle_forget(struct fuse* fuse, struct fuse_handler* handler, in handle_forget() argument
887 TRACE("[%d] FORGET #%"PRIu64" @ %"PRIx64" (%s)\n", handler->token, req->nlookup, in handle_forget()
899 static int handle_getattr(struct fuse* fuse, struct fuse_handler* handler, in handle_getattr() argument
907 TRACE("[%d] GETATTR flags=%x fh=%"PRIx64" @ %"PRIx64" (%s)\n", handler->token, in handle_getattr()
921 static int handle_setattr(struct fuse* fuse, struct fuse_handler* handler, in handle_setattr() argument
932 TRACE("[%d] SETATTR fh=%"PRIx64" valid=%x @ %"PRIx64" (%s)\n", handler->token, in handle_setattr()
976 handler->token, path, times[0].tv_sec, times[1].tv_sec); in handle_setattr()
984 static int handle_mknod(struct fuse* fuse, struct fuse_handler* handler, in handle_mknod() argument
[all …]
/system/netd/server/
DDnsProxyListener.cpp79 GetAddrInfoHandler* handler = reinterpret_cast<GetAddrInfoHandler*>(obj); in threadStart() local
80 handler->run(); in threadStart()
81 delete handler; in threadStart()
223 DnsProxyListener::GetAddrInfoHandler* handler = in runCommand() local
225 handler->start(); in runCommand()
268 DnsProxyListener::GetHostByNameHandler* handler = in runCommand() local
270 handler->start(); in runCommand()
299 GetHostByNameHandler* handler = reinterpret_cast<GetHostByNameHandler*>(obj); in threadStart() local
300 handler->run(); in threadStart()
301 delete handler; in threadStart()
[all …]
DDnsProxyListener.h53 static void* threadStart(void* handler);
84 static void* threadStart(void* handler);
115 static void* threadStart(void* handler);
DNetlinkManager.cpp88 NetlinkHandler *handler = new NetlinkHandler(this, *sock, format); in setupSocket() local
89 if (handler->start()) { in setupSocket()
95 return handler; in setupSocket()
DMDnsSdListener.h76 static void *threadStart(void *handler);
/system/core/libcutils/
Ddlmalloc_stubs.c26 void dlmalloc_inspect_all(void(*handler)(void*, void *, size_t, void*) UNUSED, in dlmalloc_inspect_all()
/system/core/healthd/
Dhealthd.h75 int healthd_register_event(int fd, void (*handler)(uint32_t));
Dhealthd.cpp137 int healthd_register_event(int fd, void (*handler)(uint32_t)) { in healthd_register_event()
141 ev.data.ptr = (void *)handler; in healthd_register_event()