Home
last modified time | relevance | path

Searched refs:evt (Results 1 – 11 of 11) sorted by relevance

/system/netd/server/
DNetlinkHandler.cpp53 void NetlinkHandler::onEvent(NetlinkEvent *evt) { in onEvent() argument
54 const char *subsys = evt->getSubsystem(); in onEvent()
61 int action = evt->getAction(); in onEvent()
62 const char *iface = evt->findParam("INTERFACE"); in onEvent()
64 if (action == evt->NlActionAdd) { in onEvent()
66 } else if (action == evt->NlActionRemove) { in onEvent()
68 } else if (action == evt->NlActionChange) { in onEvent()
69 evt->dump(); in onEvent()
71 } else if (action == evt->NlActionLinkUp) { in onEvent()
73 } else if (action == evt->NlActionLinkDown) { in onEvent()
[all …]
DNetlinkHandler.h34 virtual void onEvent(NetlinkEvent *evt);
/system/vold/
DDirectVolume.cpp132 int DirectVolume::handleBlockEvent(NetlinkEvent *evt) { in handleBlockEvent() argument
133 const char *dp = evt->findParam("DEVPATH"); in handleBlockEvent()
139 int action = evt->getAction(); in handleBlockEvent()
140 const char *devtype = evt->findParam("DEVTYPE"); in handleBlockEvent()
143 int major = atoi(evt->findParam("MAJOR")); in handleBlockEvent()
144 int minor = atoi(evt->findParam("MINOR")); in handleBlockEvent()
155 handleDiskAdded(dp, evt); in handleBlockEvent()
157 handlePartitionAdded(dp, evt); in handleBlockEvent()
171 handleDiskRemoved(dp, evt); in handleBlockEvent()
173 handlePartitionRemoved(dp, evt); in handleBlockEvent()
[all …]
DDirectVolume.h65 int handleBlockEvent(NetlinkEvent *evt);
79 void handleDiskAdded(const char *devpath, NetlinkEvent *evt);
80 void handleDiskRemoved(const char *devpath, NetlinkEvent *evt);
81 void handleDiskChanged(const char *devpath, NetlinkEvent *evt);
82 void handlePartitionAdded(const char *devpath, NetlinkEvent *evt);
83 void handlePartitionRemoved(const char *devpath, NetlinkEvent *evt);
84 void handlePartitionChanged(const char *devpath, NetlinkEvent *evt);
DNetlinkHandler.cpp45 void NetlinkHandler::onEvent(NetlinkEvent *evt) { in onEvent() argument
47 const char *subsys = evt->getSubsystem(); in onEvent()
55 vm->handleBlockEvent(evt); in onEvent()
DNetlinkHandler.h32 virtual void onEvent(NetlinkEvent *evt);
DVolume.h84 virtual int handleBlockEvent(NetlinkEvent *evt);
DVolumeManager.h76 void handleBlockEvent(NetlinkEvent *evt);
DVolumeManager.cpp240 void VolumeManager::handleBlockEvent(NetlinkEvent *evt) { in handleBlockEvent() argument
241 const char *devpath = evt->findParam("DEVPATH"); in handleBlockEvent()
247 if (!(*it)->handleBlockEvent(evt)) { in handleBlockEvent()
/system/core/libsysutils/src/
DNetlinkListener.cpp59 NetlinkEvent *evt = new NetlinkEvent(); in onDataAvailable() local
60 if (evt->decode(mBuffer, count, mFormat)) { in onDataAvailable()
61 onEvent(evt); in onDataAvailable()
68 delete evt; in onDataAvailable()
/system/core/include/sysutils/
DNetlinkListener.h45 virtual void onEvent(NetlinkEvent *evt) = 0;