Home
last modified time | relevance | path

Searched refs:SocketClient (Results 1 – 25 of 32) sorted by relevance

12

/system/core/libsysutils/src/
DSocketClient.cpp35 SocketClient::SocketClient(int socket, bool owned) { in SocketClient() function in SocketClient
39 SocketClient::SocketClient(int socket, bool owned, bool useCmdNum) { in SocketClient() function in SocketClient
43 void SocketClient::init(int socket, bool owned, bool useCmdNum) { in init()
67 SocketClient::~SocketClient() { in ~SocketClient()
73 int SocketClient::sendMsg(int code, const char *msg, bool addErrno) { in sendMsg()
77 int SocketClient::sendMsg(int code, const char *msg, bool addErrno, bool useCmdNum) { in sendMsg()
103 int SocketClient::sendBinaryMsg(int code, const void *data, int len) { in sendBinaryMsg()
127 int SocketClient::sendCode(int code) { in sendCode()
133 char *SocketClient::quoteArg(const char *arg) { in quoteArg()
164 int SocketClient::sendMsg(const char *msg) { in sendMsg()
[all …]
DSocketListener.cpp96 mClients[mSock] = new SocketClient(mSock, false, mUseCmdNum); in startListener()
191 mClients[c] = new SocketClient(c, true, mUseCmdNum); in runListener()
197 std::vector<SocketClient*> pending; in runListener()
208 SocketClient* c = it->second; in runListener()
215 for (SocketClient* c : pending) { in runListener()
226 bool SocketListener::release(SocketClient* c, bool wakeup) { in release()
246 std::vector<SocketClient*> SocketListener::snapshotClients() { in snapshotClients()
247 std::vector<SocketClient*> clients; in snapshotClients()
251 SocketClient* c = pair.second; in snapshotClients()
261 for (SocketClient* c : snapshotClients()) { in sendBroadcast()
[all …]
DFrameworkCommand.cpp30 int FrameworkCommand::runCommand(SocketClient *c UNUSED, int argc UNUSED, in runCommand()
DNetlinkListener.cpp46 bool NetlinkListener::onDataAvailable(SocketClient *cli) in onDataAvailable()
DFrameworkListener.cpp53 bool FrameworkListener::onDataAvailable(SocketClient *c) { in onDataAvailable()
94 void FrameworkListener::dispatchCommand(SocketClient *cli, char *data) { in dispatchCommand()
/system/chre/host/common/
Dsocket_client.cc36 SocketClient::SocketClient() { in SocketClient() function in android::chre::SocketClient
40 SocketClient::~SocketClient() { in ~SocketClient()
44 bool SocketClient::connect(const char *socketName, in connect()
49 bool SocketClient::connectInBackground(const char *socketName, in connectInBackground()
54 void SocketClient::disconnect() { in disconnect()
79 bool SocketClient::isConnected() const { in isConnected()
83 bool SocketClient::sendMessage(const void *data, size_t length) { in sendMessage()
105 bool SocketClient::doConnect(const char *socketName, in doConnect()
137 bool SocketClient::inReceiveThread() const { in inReceiveThread()
141 void SocketClient::receiveThread() { in receiveThread()
[all …]
/system/core/libsysutils/include/sysutils/
DSocketListener.h30 std::unordered_map<int, SocketClient*> mClients;
50 bool release(SocketClient *c) { return release(c, true); } in release()
53 virtual bool onDataAvailable(SocketClient *c) = 0;
60 std::vector<SocketClient*> snapshotClients();
62 bool release(SocketClient *c, bool wakeup);
DSocketClient.h9 class SocketClient {
32 SocketClient(int sock, bool owned);
33 SocketClient(int sock, bool owned, bool useCmdNum);
34 virtual ~SocketClient();
DFrameworkListener.h24 class SocketClient; variable
47 bool onDataAvailable(SocketClient* c) override;
50 void dispatchCommand(SocketClient *c, char *data);
DFrameworkCommand.h19 class SocketClient; variable
30 virtual int runCommand(SocketClient *c, int argc, char **argv) = 0;
DSocketClientCommand.h24 virtual void runSocketCommand(SocketClient *client) = 0;
DNetlinkListener.h45 virtual bool onDataAvailable(SocketClient *cli);
/system/netd/server/
DMDnsSdListener.h111 int runCommand(SocketClient *c, int argc, char** argv);
115 void stop(SocketClient *cli, int argc, char **argv, const char *str);
117 void discover(SocketClient *cli, const char *iface, const char *regType,
121 void serviceRegister(SocketClient *cli, int requestId, const char *interfaceName,
125 void resolveService(SocketClient *cli, int requestId,
129 void setHostname(SocketClient *cli, int requestId, const char *hostname);
131 void getAddrInfo(SocketClient *cli, int requestId, const char *interfaceName,
DFwmarkServer.h38 bool onDataAvailable(SocketClient* client);
41 int processClient(SocketClient* client, int* socketFd);
DMDnsSdListener.cpp66 void MDnsSdListener::Handler::discover(SocketClient *cli, in discover()
116 char *quotedServiceName = SocketClient::quoteArg(serviceName); in MDnsSdListenerDiscoverCallback()
137 void MDnsSdListener::Handler::stop(SocketClient *cli, int argc, char **argv, const char *str) { in stop()
161 void MDnsSdListener::Handler::serviceRegister(SocketClient *cli, int requestId, in serviceRegister()
207 char *quotedServiceName = SocketClient::quoteArg(serviceName); in MDnsSdListenerRegisterCallback()
217 void MDnsSdListener::Handler::resolveService(SocketClient *cli, int requestId, in resolveService()
263 char *quotedFullName = SocketClient::quoteArg(fullname); in MDnsSdListenerResolveCallback()
264 char *quotedHostTarget = SocketClient::quoteArg(hosttarget); in MDnsSdListenerResolveCallback()
287 void MDnsSdListener::Handler::getAddrInfo(SocketClient *cli, int requestId, in getAddrInfo()
331 char *quotedHostname = SocketClient::quoteArg(hostname); in MDnsSdListenerGetAddrInfoCallback()
[all …]
DFwmarkServer.cpp47 bool isSystemServer(SocketClient* client) { in isSystemServer()
74 bool FwmarkServer::onDataAvailable(SocketClient* client) { in onDataAvailable()
101 int FwmarkServer::processClient(SocketClient* client, int* socketFd) { in processClient()
/system/core/logd/
DCommandListener.cpp66 int CommandListener::ClearCmd::runCommand(SocketClient* cli, int argc, in runCommand()
89 int CommandListener::GetBufSizeCmd::runCommand(SocketClient* cli, int argc, in runCommand()
110 int CommandListener::SetBufSizeCmd::runCommand(SocketClient* cli, int argc, in runCommand()
139 int CommandListener::GetBufSizeUsedCmd::runCommand(SocketClient* cli, int argc, in runCommand()
182 int CommandListener::GetStatisticsCmd::runCommand(SocketClient* cli, int argc, in runCommand()
218 int CommandListener::GetPruneListCmd::runCommand(SocketClient* cli, int, char**) { in runCommand()
224 int CommandListener::SetPruneListCmd::runCommand(SocketClient* cli, int argc, char** argv) { in runCommand()
248 int CommandListener::GetEventTagCmd::runCommand(SocketClient* cli, int argc, in runCommand()
293 int CommandListener::ReinitCmd::runCommand(SocketClient* cli, int /*argc*/, in runCommand()
317 int CommandListener::ExitCmd::runCommand(SocketClient* cli, int /*argc*/, in runCommand()
DLogReader.h32 virtual bool onDataAvailable(SocketClient* cli);
37 bool DoSocketDelete(SocketClient* cli);
DLogReader.cpp39 static bool CanReadSecurityLogs(SocketClient* client) { in CanReadSecurityLogs()
43 static std::string SocketClientToName(SocketClient* client) { in SocketClientToName()
49 SocketLogWriter(LogReader* reader, SocketClient* client, bool privileged) in SocketLogWriter()
73 SocketClient* client_;
80 bool LogReader::onDataAvailable(SocketClient* cli) { in onDataAvailable()
231 bool LogReader::DoSocketDelete(SocketClient* cli) { in DoSocketDelete()
DLogPermissions.h24 bool clientHasLogCredentials(SocketClient* cli);
DLogKlog.h49 virtual bool onDataAvailable(SocketClient* cli);
DLogAudit.h38 virtual bool onDataAvailable(SocketClient* cli);
/system/chre/host/common/audio_stress_test/
Daudio_stress_test.cc42 using android::chre::SocketClient;
51 class SocketCallbacks : public SocketClient::ICallbacks,
79 void sendLoadNanoappRequest(SocketClient& client, const char *filename, in sendLoadNanoappRequest()
114 SocketClient client; in main()
/system/chre/host/common/include/chre_host/
Dsocket_client.h32 class SocketClient {
34 SocketClient();
35 ~SocketClient();
/system/chre/host/common/test/
Dchre_test_client.cc49 using android::chre::SocketClient;
67 class SocketCallbacks : public SocketClient::ICallbacks,
134 void requestHubInfo(SocketClient& client) { in requestHubInfo()
144 void requestNanoappList(SocketClient& client) { in requestNanoappList()
154 void sendMessageToNanoapp(SocketClient& client) { in sendMessageToNanoapp()
168 void sendLoadNanoappRequest(SocketClient& client, const char *filename, in sendLoadNanoappRequest()
200 void sendUnloadNanoappRequest(SocketClient& client, uint64_t appId) { in sendUnloadNanoappRequest()
235 SocketClient client; in main()

12