| /system/core/libsysutils/src/ |
| D | SocketClient.cpp | 35 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 …]
|
| D | SocketListener.cpp | 96 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 …]
|
| D | FrameworkCommand.cpp | 30 int FrameworkCommand::runCommand(SocketClient *c UNUSED, int argc UNUSED, in runCommand()
|
| D | FrameworkListener.cpp | 53 bool FrameworkListener::onDataAvailable(SocketClient *c) { in onDataAvailable() 94 void FrameworkListener::dispatchCommand(SocketClient *cli, char *data) { in dispatchCommand()
|
| D | NetlinkListener.cpp | 46 bool NetlinkListener::onDataAvailable(SocketClient *cli) in onDataAvailable()
|
| /system/chre/host/common/ |
| D | socket_client.cc | 36 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/ |
| D | SocketListener.h | 30 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);
|
| D | SocketClient.h | 9 class SocketClient { 32 SocketClient(int sock, bool owned); 33 SocketClient(int sock, bool owned, bool useCmdNum); 34 virtual ~SocketClient();
|
| D | FrameworkListener.h | 24 class SocketClient; variable 47 bool onDataAvailable(SocketClient* c) override; 50 void dispatchCommand(SocketClient *c, char *data);
|
| D | FrameworkCommand.h | 19 class SocketClient; variable 30 virtual int runCommand(SocketClient *c, int argc, char **argv) = 0;
|
| D | SocketClientCommand.h | 24 virtual void runSocketCommand(SocketClient *client) = 0;
|
| D | NetlinkListener.h | 45 virtual bool onDataAvailable(SocketClient *cli);
|
| /system/logging/logd/ |
| D | CommandListener.cpp | 69 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 …]
|
| D | LogPermissions.h | 24 bool clientHasLogCredentials(SocketClient* cli); 26 bool clientIsExemptedFromUserConsent(SocketClient* cli);
|
| D | LogReader.h | 30 virtual bool onDataAvailable(SocketClient* cli); 35 bool DoSocketDelete(SocketClient* cli);
|
| D | LogReader.cpp | 48 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()
|
| D | TrustyLog.h | 37 virtual bool onDataAvailable(SocketClient* cli);
|
| D | LogAudit.h | 38 virtual bool onDataAvailable(SocketClient* cli);
|
| /system/chre/host/common/audio_stress_test/ |
| D | audio_stress_test.cc | 43 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/ |
| D | socket_client.h | 32 class SocketClient { 34 SocketClient(); 35 ~SocketClient();
|
| /system/chre/host/common/test/ |
| D | chre_test_client.cc | 54 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/ |
| D | FwmarkServer.h | 36 bool onDataAvailable(SocketClient* client); 39 int processClient(SocketClient* client, int* socketFd);
|
| D | FwmarkServer.cpp | 47 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/ |
| D | chre_power_test_client.cc | 130 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/ |
| D | hal_chre_socket_connection.h | 124 class SocketCallbacks : public ::android::chre::SocketClient::ICallbacks, 163 ::android::chre::SocketClient mClient;
|