/system/core/libutils/ |
D | Looper_test.cpp | 86 virtual int handler(int fd, int events) = 0; 90 return static_cast<CallbackHandler*>(data)->handler(fd, events); in staticHandler() 107 virtual int handler(int fd, int events) { in handler() function in android::StubCallbackHandler 189 StubCallbackHandler handler(true); in TEST_F() local 191 handler.setCallback(mLooper, pipe.receiveFd, Looper::EVENT_INPUT); in TEST_F() 201 EXPECT_EQ(0, handler.callbackCount) in TEST_F() 207 StubCallbackHandler handler(true); in TEST_F() local 210 handler.setCallback(mLooper, pipe.receiveFd, Looper::EVENT_INPUT); in TEST_F() 220 EXPECT_EQ(1, handler.callbackCount) in TEST_F() 222 EXPECT_EQ(pipe.receiveFd, handler.fd) in TEST_F() [all …]
|
D | Looper.cpp | 39 WeakMessageHandler::WeakMessageHandler(const wp<MessageHandler>& handler) : in WeakMessageHandler() argument 40 mHandler(handler) { in WeakMessageHandler() 47 sp<MessageHandler> handler = mHandler.promote(); in handleMessage() local 48 if (handler != nullptr) { in handleMessage() 49 handler->handleMessage(message); in handleMessage() 327 sp<MessageHandler> handler = messageEnvelope.handler; in pollInner() local 335 this, handler.get(), message.what); in pollInner() 337 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/connectivity/wificond/tests/ |
D | ap_interface_impl_unittest.cpp | 60 OnStationEventHandler handler) { in CaptureStationEventHandler() argument 61 *out_handler = handler; in CaptureStationEventHandler() 67 OnChannelSwitchEventHandler handler) { in CaptureChannelSwitchEventHandler() argument 68 *out_handler = handler; in CaptureChannelSwitchEventHandler() 94 OnStationEventHandler handler; in TEST_F() local 96 .WillOnce(Invoke(bind(CaptureStationEventHandler, &handler, _1, _2))); in TEST_F() 110 handler(NEW_STATION, fake_mac_address_01); in TEST_F() 111 handler(NEW_STATION, fake_mac_address_02); in TEST_F() 112 handler(DEL_STATION, fake_mac_address_01); in TEST_F() 116 OnStationEventHandler handler; in TEST_F() local [all …]
|
D | mock_netlink_utils.h | 46 MlmeEventHandler* handler)); 49 OnRegDomainChangedHandler handler)); 52 OnStationEventHandler handler)); 55 OnChannelSwitchEventHandler handler)); 58 OnFrameTxStatusEventHandler handler));
|
/system/connectivity/wificond/net/ |
D | netlink_manager.cpp | 272 std::function<void(unique_ptr<const NL80211Packet>)> handler) { in RegisterHandlerAndSendMessage() argument 280 message_handlers_[packet.GetMessageSequence()] = handler; in RegisterHandlerAndSendMessage() 570 const auto handler = on_station_event_handler_.find(if_index); in BroadcastHandler() local 571 if (handler != on_station_event_handler_.end()) { in BroadcastHandler() 578 handler->second(NEW_STATION, mac_address); in BroadcastHandler() 580 handler->second(DEL_STATION, mac_address); in BroadcastHandler() 625 for (const auto& handler : on_reg_domain_changed_handler_) { in OnRegChangeEvent() local 626 handler.second(handler.first, country_code); in OnRegChangeEvent() 637 const auto handler = on_mlme_event_handler_.find(if_index); in OnMlmeEvent() local 638 if (handler == on_mlme_event_handler_.end()) { in OnMlmeEvent() [all …]
|
D | netlink_manager.h | 151 std::function<void(std::unique_ptr<const NL80211Packet>)> handler); 202 OnScanResultsReadyHandler handler); 216 MlmeEventHandler* handler); 232 OnSchedScanResultsReadyHandler handler); 243 OnRegDomainChangedHandler handler); 254 OnStationEventHandler handler); 265 OnChannelSwitchEventHandler handler); 272 uint32_t interface_index, OnFrameTxStatusEventHandler handler);
|
D | netlink_utils.h | 254 MlmeEventHandler* handler); 265 OnRegDomainChangedHandler handler); 276 OnStationEventHandler handler); 286 OnChannelSwitchEventHandler handler); 293 uint32_t interface_index, OnFrameTxStatusEventHandler handler);
|
/system/core/libcutils/ |
D | qtaguid.cpp | 51 netdHandler handler; in initHandler() local 52 handler.netdTagSocket = (int (*)(int, uint32_t, uid_t))dlsym(netdClientHandle, "tagSocket"); in initHandler() 53 if (!handler.netdTagSocket) { in initHandler() 58 handler.netdUntagSocket = (int (*)(int))dlsym(netdClientHandle, "untagSocket"); in initHandler() 59 if (!handler.netdUntagSocket) { in initHandler() 64 return handler; in initHandler()
|
D | sockets_test.cpp | 113 cutils_socket_t handler = accept(server, nullptr, nullptr); in TEST() local 116 TestConnectedSockets(handler, client, SOCK_STREAM); in TEST() 135 cutils_socket_t handler = accept(server, nullptr, nullptr); in TEST() local 138 TestConnectedSockets(handler, client, SOCK_STREAM); in TEST()
|
/system/core/fs_mgr/libsnapshot/snapuserd/dm-snapshot-merge/ |
D | snapuserd_server.cpp | 139 auto handler = AddHandler(out[1], out[2], out[3]); in Receivemsg() local 140 if (!handler) { in Receivemsg() 144 auto retval = "success," + std::to_string(handler->snapuserd()->GetNumSectors()); in Receivemsg() 227 void SnapuserdServer::RunThread(std::shared_ptr<DmUserHandler> handler) { in RunThread() argument 228 LOG(INFO) << "Entering thread for handler: " << handler->misc_name(); in RunThread() 230 handler->snapuserd()->SetSocketPresent(is_socket_present_); in RunThread() 231 if (!handler->snapuserd()->Start()) { in RunThread() 235 handler->snapuserd()->CloseFds(); in RunThread() 236 handler->snapuserd()->CheckMergeCompletionStatus(); in RunThread() 237 handler->snapuserd()->UnmapBufferRegion(); in RunThread() [all …]
|
/system/core/fs_mgr/libsnapshot/snapuserd/user-space-merge/ |
D | snapuserd_server.cpp | 151 auto handler = AddHandler(out[1], out[2], out[3], out[4]); in Receivemsg() local 152 if (!handler) { in Receivemsg() 156 auto retval = "success," + std::to_string(handler->snapuserd()->GetNumSectors()); in Receivemsg() 311 void UserSnapshotServer::RunThread(std::shared_ptr<HandlerThread> handler) { in RunThread() argument 312 LOG(INFO) << "Entering thread for handler: " << handler->misc_name(); in RunThread() 314 if (!handler->snapuserd()->Start()) { in RunThread() 318 handler->snapuserd()->CloseFds(); in RunThread() 319 bool merge_completed = handler->snapuserd()->CheckMergeCompletionStatus(); in RunThread() 320 handler->snapuserd()->UnmapBufferRegion(); in RunThread() 322 auto misc_name = handler->misc_name(); in RunThread() [all …]
|
D | snapuserd_server.h | 121 void RunThread(std::shared_ptr<HandlerThread> handler); 150 bool StartHandler(const std::shared_ptr<HandlerThread>& handler); 152 const std::shared_ptr<HandlerThread>& handler); 153 std::string GetMergeStatus(const std::shared_ptr<HandlerThread>& handler);
|
/system/core/libutils/include/utils/ |
D | Looper.h | 92 WeakMessageHandler(const wp<MessageHandler>& handler); 353 void sendMessage(const sp<MessageHandler>& handler, const Message& message); 363 void sendMessageDelayed(nsecs_t uptimeDelay, const sp<MessageHandler>& handler, 374 void sendMessageAtTime(nsecs_t uptime, const sp<MessageHandler>& handler, 383 void removeMessages(const sp<MessageHandler>& handler); 391 void removeMessages(const sp<MessageHandler>& handler, int what); 447 : uptime(u), handler(std::move(h)), message(m) {} in MessageEnvelope() 450 sp<MessageHandler> handler; member
|
/system/core/fs_mgr/libsnapshot/snapuserd/ |
D | snapuserd_daemon.cpp | 116 auto handler = user_server_.AddHandler(parts[0], parts[1], parts[2], parts[3]); in StartServerForUserspaceSnapshots() local 117 if (!handler || !user_server_.StartHandler(handler)) { in StartServerForUserspaceSnapshots() 164 auto handler = server_.AddHandler(parts[0], parts[1], parts[2]); in StartServerForDmSnapshot() local 165 if (!handler || !server_.StartHandler(handler)) { in StartServerForDmSnapshot()
|
/system/core/init/ |
D | epoll.cpp | 43 Result<void> Epoll::RegisterHandler(int fd, Handler handler, uint32_t events) { in RegisterHandler() argument 51 .handler = std::move(handler), in RegisterHandler() 110 info.handler(); in Wait()
|
D | epoll.h | 44 Result<void> RegisterHandler(int fd, Handler handler, uint32_t events = EPOLLIN); 51 Handler handler; member
|
D | epoll_test.cpp | 49 auto handler = [&, catch_dtor]() -> void { in TEST() local 58 epoll.RegisterHandler(fds[0], std::move(handler)); in TEST()
|
D | firmware_handler.h | 57 Result<std::string> RunExternalHandler(const std::string& handler, uid_t uid, gid_t gid, 61 bool ForEachFirmwareDirectory(std::function<bool(const std::string&)> handler) const;
|
/system/sepolicy/tools/ |
D | insertkeys.py | 3 from xml.sax import saxutils, handler, make_parser 150 class ReplaceTags(handler.ContentHandler): 163 handler.ContentHandler.__init__(self) 264 handler = ReplaceTags(key_map, output_file) variable 265 parser.setContentHandler(handler) 266 handler.prologue() 269 handler.epilogue()
|
/system/teeui/libteeui/src/ |
D | evdev.cpp | 89 void EventLoop::addEventReceiver(NonCopyableFunction<void(short)> handler, int eventFd, in addEventReceiver() argument 92 newReceivers_.emplace_back(eventFd, flags, std::move(handler)); in addEventReceiver() 98 void EventLoop::addTimer(NonCopyableFunction<void()> handler, in addTimer() argument 102 newTimers_.emplace_back(next, duration, std::move(handler), oneShot); in addTimer() 234 std::function<void(short, const EventDev&)> handler) { in grabAllEvDevsAndRegisterCallbacks() argument 254 [&, handler, evDev = std::move(evDev)](short flags) { handler(flags, evDev); }, fd, in grabAllEvDevsAndRegisterCallbacks()
|
/system/memory/libmemunreachable/ |
D | HeapWalker.h | 67 SIGSEGV, [=](ScopedSignalHandler& handler, int signal, siginfo_t* siginfo, void* uctx) { 68 this->HandleSegFault(handler, signal, siginfo, uctx); 71 SIGBUS, [=](ScopedSignalHandler& handler, int signal, siginfo_t* siginfo, void* uctx) { 72 this->HandleSegFault(handler, signal, siginfo, uctx);
|
/system/connectivity/wificond/aidl/android/net/wifi/nl80211/ |
D | IWifiScannerImpl.aidl | 73 oneway void subscribeScanEvents(IScanEvent handler); in subscribeScanEvents() argument 81 oneway void subscribePnoScanEvents(IPnoScanEvent handler); in subscribePnoScanEvents() argument
|
/system/libziparchive/incfs_support/ |
D | signal_handling.cpp | 41 .sa_sigaction = &handler, in SignalHandler() 54 void SignalHandler::handler(int sig, siginfo_t* info, void* ucontext) { in handler() function in incfs::SignalHandler
|
/system/netd/server/ |
D | NetlinkManager.cpp | 122 NetlinkHandler *handler = new NetlinkHandler(this, *sock, format); in setupSocket() local 123 if (handler->start()) { in setupSocket() 129 return handler; in setupSocket()
|
/system/update_engine/client_library/include/update_engine/ |
D | client.h | 114 virtual bool RegisterStatusUpdateHandler(StatusUpdateHandler* handler) = 0; 117 virtual bool UnregisterStatusUpdateHandler(StatusUpdateHandler* handler) = 0;
|