Home
last modified time | relevance | path

Searched refs:handler (Results 1 – 14 of 14) 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);
439 MessageEnvelope(nsecs_t uptime, const sp<MessageHandler> handler, in MessageEnvelope()
440 const Message& message) : uptime(uptime), handler(handler), message(message) { in MessageEnvelope()
444 sp<MessageHandler> handler; member
/system/core/sdcard/
Dsdcard.c788 static int handle_lookup(struct fuse* fuse, struct fuse_handler* handler, in handle_lookup() argument
799 TRACE("[%d] LOOKUP %s @ %"PRIx64" (%s)\n", handler->token, name, hdr->nodeid, in handle_lookup()
814 static int handle_forget(struct fuse* fuse, struct fuse_handler* handler, in handle_forget() argument
821 TRACE("[%d] FORGET #%"PRIu64" @ %"PRIx64" (%s)\n", handler->token, req->nlookup, in handle_forget()
833 static int handle_getattr(struct fuse* fuse, struct fuse_handler* handler, in handle_getattr() argument
841 TRACE("[%d] GETATTR flags=%x fh=%"PRIx64" @ %"PRIx64" (%s)\n", handler->token, in handle_getattr()
855 static int handle_setattr(struct fuse* fuse, struct fuse_handler* handler, in handle_setattr() argument
864 TRACE("[%d] SETATTR fh=%"PRIx64" valid=%x @ %"PRIx64" (%s)\n", handler->token, in handle_setattr()
910 handler->token, path, times[0].tv_sec, times[1].tv_sec); in handle_setattr()
918 static int handle_mknod(struct fuse* fuse, struct fuse_handler* handler, in handle_mknod() argument
[all …]
/system/core/libutils/
DLooper.cpp31 WeakMessageHandler::WeakMessageHandler(const wp<MessageHandler>& handler) : in WeakMessageHandler() argument
32 mHandler(handler) { in WeakMessageHandler()
39 sp<MessageHandler> handler = mHandler.promote(); in handleMessage() local
40 if (handler != NULL) { in handleMessage()
41 handler->handleMessage(message); in handleMessage()
324 sp<MessageHandler> handler = messageEnvelope.handler; in pollInner() local
332 this, handler.get(), message.what); in pollInner()
334 handler->handleMessage(message); in pollInner()
583 void Looper::sendMessage(const sp<MessageHandler>& handler, const Message& message) { in sendMessage() argument
585 sendMessageAtTime(now, handler, message); in sendMessage()
[all …]
/system/netd/server/
DDnsProxyListener.cpp75 GetAddrInfoHandler* handler = reinterpret_cast<GetAddrInfoHandler*>(obj); in threadStart() local
76 handler->run(); in threadStart()
77 delete handler; in threadStart()
260 DnsProxyListener::GetAddrInfoHandler* handler = in runCommand() local
262 handler->start(); in runCommand()
305 DnsProxyListener::GetHostByNameHandler* handler = in runCommand() local
307 handler->start(); in runCommand()
336 GetHostByNameHandler* handler = reinterpret_cast<GetHostByNameHandler*>(obj); in threadStart() local
337 handler->run(); in threadStart()
338 delete handler; in threadStart()
[all …]
DDnsProxyListener.h53 static void* threadStart(void* handler);
83 static void* threadStart(void* handler);
114 static void* threadStart(void* handler);
DNetlinkManager.cpp117 NetlinkHandler *handler = new NetlinkHandler(this, *sock, format); in setupSocket() local
118 if (handler->start()) { in setupSocket()
124 return handler; in setupSocket()
DMDnsSdListener.h76 static void *threadStart(void *handler);
/system/bt/tools/hci/
Dmain.c24 handler_t handler; member
136 if (!command->handler) { in main()
141 return command->handler(argc - 2, &argv[2]); in main()
/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.h76 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()
/system/bt/btcore/src/
Dcounter.c64 handler_t handler; member
385 int rc = command->handler(socket); in read_ready()
/system/bt/test/bluedroidtest/
Dbluedroidtest.c359 t_console_cmd_handler *handler; member
770 console_cmd_list[i].handler(p); in process_cmd()