Home
last modified time | relevance | path

Searched refs:SocketClient (Results 1 – 25 of 34) 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()
DFrameworkListener.cpp53 bool FrameworkListener::onDataAvailable(SocketClient *c) { in onDataAvailable()
94 void FrameworkListener::dispatchCommand(SocketClient *cli, char *data) { in dispatchCommand()
DNetlinkListener.cpp46 bool NetlinkListener::onDataAvailable(SocketClient *cli) in onDataAvailable()
/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()
135 bool SocketClient::inReceiveThread() const { in inReceiveThread()
139 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/logging/logd/
DCommandListener.cpp69 static int LogIdCommand(SocketClient* cli, int argc, char** argv, F&& function) { in LogIdCommand()
87 int CommandListener::ClearCmd::runCommand(SocketClient* cli, int argc, char** argv) { in runCommand()
99 static int LogSizeCommand(SocketClient* cli, int argc, char** argv, F&& size_function) { in LogSizeCommand()
105 int CommandListener::GetBufSizeCmd::runCommand(SocketClient* cli, int argc, char** argv) { in runCommand()
109 int CommandListener::GetBufSizeReadableCmd::runCommand(SocketClient* cli, int argc, char** argv) { in runCommand()
114 int CommandListener::GetBufSizeUsedCmd::runCommand(SocketClient* cli, int argc, char** argv) { in runCommand()
118 int CommandListener::SetBufSizeCmd::runCommand(SocketClient* cli, int argc, in runCommand()
158 int CommandListener::GetStatisticsCmd::runCommand(SocketClient* cli, int argc, char** argv) { in runCommand()
193 int CommandListener::GetPruneListCmd::runCommand(SocketClient* cli, int, char**) { in runCommand()
199 int CommandListener::SetPruneListCmd::runCommand(SocketClient* cli, int argc, char** argv) { in runCommand()
[all …]
DLogPermissions.h24 bool clientHasLogCredentials(SocketClient* cli);
26 bool clientIsExemptedFromUserConsent(SocketClient* cli);
DLogReader.h30 virtual bool onDataAvailable(SocketClient* cli);
35 bool DoSocketDelete(SocketClient* cli);
DLogReader.cpp48 static bool CanReadSecurityLogs(SocketClient* client) { in CanReadSecurityLogs()
52 static std::string SocketClientToName(SocketClient* client) { in SocketClientToName()
76 SocketLogWriter(LogReader* reader, SocketClient* client, bool privileged) in SocketLogWriter()
100 SocketClient* client_;
107 bool LogReader::onDataAvailable(SocketClient* cli) { in onDataAvailable()
282 bool LogReader::DoSocketDelete(SocketClient* cli) { in DoSocketDelete()
DTrustyLog.h37 virtual bool onDataAvailable(SocketClient* cli);
DLogAudit.h38 virtual bool onDataAvailable(SocketClient* cli);
/system/chre/host/common/audio_stress_test/
Daudio_stress_test.cc43 using android::chre::SocketClient;
52 class SocketCallbacks : public SocketClient::ICallbacks,
80 void sendLoadNanoappRequest(SocketClient &client, const char *filename, in sendLoadNanoappRequest()
119 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.cc54 using android::chre::SocketClient;
72 class SocketCallbacks : public SocketClient::ICallbacks,
151 void requestHubInfo(SocketClient &client) { in requestHubInfo()
161 void requestNanoappList(SocketClient &client) { in requestNanoappList()
171 void sendMessageToNanoapp(SocketClient &client) { in sendMessageToNanoapp()
206 void sendNanoappLoad(SocketClient &client, uint64_t appId, uint32_t appVersion, in sendNanoappLoad()
226 void sendLoadNanoappRequest(SocketClient &client, const char *headerPath, in sendLoadNanoappRequest()
249 void sendLoadNanoappRequest(SocketClient &client, const char *filename, in sendLoadNanoappRequest()
264 void sendUnloadNanoappRequest(SocketClient &client, uint64_t appId) { in sendUnloadNanoappRequest()
277 void sendSelfTestRequest(SocketClient &client) { in sendSelfTestRequest()
[all …]
/system/netd/server/
DFwmarkServer.h36 bool onDataAvailable(SocketClient* client);
39 int processClient(SocketClient* client, int* socketFd);
DFwmarkServer.cpp47 bool isSystemServer(SocketClient* client) { in isSystemServer()
72 bool FwmarkServer::onDataAvailable(SocketClient* client) { in onDataAvailable()
99 int FwmarkServer::processClient(SocketClient* client, int* socketFd) { in processClient()
/system/chre/host/common/test/power_test/
Dchre_power_test_client.cc130 using android::chre::SocketClient;
260 class SocketCallbacks : public SocketClient::ICallbacks,
348 bool requestNanoappList(SocketClient &client) { in requestNanoappList()
383 bool sendNanoappLoad(SocketClient &client, uint64_t appId, uint32_t appVersion, in sendNanoappLoad()
401 bool sendLoadNanoappRequest(SocketClient &client, in sendLoadNanoappRequest()
427 bool loadNanoapp(SocketClient &client, sp<SocketCallbacks> callbacks, in loadNanoapp()
436 bool sendUnloadNanoappRequest(SocketClient &client, uint64_t appId) { in sendUnloadNanoappRequest()
451 bool unloadNanoapp(SocketClient &client, sp<SocketCallbacks> callbacks, in unloadNanoapp()
464 bool listNanoapps(SocketClient &client) { in listNanoapps()
475 bool unloadAllNanoapps(SocketClient &client, sp<SocketCallbacks> callbacks) { in unloadAllNanoapps()
[all …]
/system/chre/host/hal_generic/common/
Dhal_chre_socket_connection.h124 class SocketCallbacks : public ::android::chre::SocketClient::ICallbacks,
163 ::android::chre::SocketClient mClient;

12