/system/vold/ |
D | CommandListener.cpp | 92 int CommandListener::DumpCmd::runCommand(SocketClient *cli, in runCommand() argument 94 cli->sendMsg(0, "Dumping loop status", false); in runCommand() 95 if (Loop::dumpState(cli)) { in runCommand() 96 cli->sendMsg(ResponseCode::CommandOkay, "Loop dump failed", true); in runCommand() 98 cli->sendMsg(0, "Dumping DM status", false); in runCommand() 99 if (Devmapper::dumpState(cli)) { in runCommand() 100 cli->sendMsg(ResponseCode::CommandOkay, "Devmapper dump failed", true); in runCommand() 102 cli->sendMsg(0, "Dumping mounted filesystems", false); in runCommand() 108 cli->sendMsg(0, line, false);; in runCommand() 113 cli->sendMsg(ResponseCode::CommandOkay, "dump complete", false); in runCommand() [all …]
|
D | VolumeManager.h | 80 int listVolumes(SocketClient *cli, bool broadcast); 116 int listMountedObbs(SocketClient* cli);
|
D | VolumeManager.cpp | 263 int VolumeManager::listVolumes(SocketClient *cli, bool broadcast) { in listVolumes() argument 272 cli->sendMsg(ResponseCode::VolumeListResult, buffer, false); in listVolumes() 289 cli->sendMsg(ResponseCode::CommandOkay, "Volumes listed.", false); in listVolumes() 1468 int VolumeManager::listMountedObbs(SocketClient* cli) { in listMountedObbs() argument 1501 cli->sendMsg(ResponseCode::AsecListResult, in listMountedObbs()
|
/system/netd/server/ |
D | CommandListener.cpp | 259 int CommandListener::InterfaceCmd::runCommand(SocketClient *cli, in runCommand() argument 262 cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing argument", false); in runCommand() 271 cli->sendMsg(ResponseCode::OperationFailed, "Failed to open sysfs dir", true); in runCommand() 278 cli->sendMsg(ResponseCode::InterfaceListResult, de->d_name, false); in runCommand() 281 cli->sendMsg(ResponseCode::CommandOkay, "Interface list completed", false); in runCommand() 288 cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing argument", false); in runCommand() 302 cli->sendMsg(ResponseCode::OperationFailed, "Interface not found", true); in runCommand() 330 cli->sendMsg(ResponseCode::InterfaceGetCfgResult, msg, false); in runCommand() 341 cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing argument", false); in runCommand() 356 cli->sendMsg(ResponseCode::OperationFailed, "Failed to set address", true); in runCommand() [all …]
|
D | MDnsSdListener.cpp | 59 void MDnsSdListener::Handler::discover(SocketClient *cli, in discover() argument 73 cli->sendMsg(ResponseCode::CommandParameterError, in discover() 86 cli->sendMsg(ResponseCode::CommandParameterError, in discover() 92 cli->sendMsg(ResponseCode::CommandOkay, "Discover operation started", false); in discover() 130 void MDnsSdListener::Handler::stop(SocketClient *cli, int argc, char **argv, const char *str) { in stop() argument 134 cli->sendMsg(ResponseCode::CommandParameterError, msg, false); in stop() 142 cli->sendMsg(ResponseCode::CommandParameterError, "Unknown requestId", false); in stop() 150 cli->sendMsg(ResponseCode::CommandOkay, msg, false); in stop() 154 void MDnsSdListener::Handler::serviceRegister(SocketClient *cli, int requestId, in serviceRegister() argument 166 cli->sendMsg(ResponseCode::CommandParameterError, in serviceRegister() [all …]
|
D | CommandListener.h | 110 void sendGenericOkFail(SocketClient *cli, int cond); 111 void sendGenericOpFailed(SocketClient *cli, const char *errMsg); 112 void sendGenericSyntaxError(SocketClient *cli, const char *usageMsg); 135 int sendGenericOkFail(SocketClient *cli, int cond); 152 int syntaxError(SocketClient* cli, const char* message); 153 int operationError(SocketClient* cli, const char* message, int ret); 154 int success(SocketClient* cli);
|
D | DnsProxyListener.cpp | 159 int DnsProxyListener::GetAddrInfoCmd::runCommand(SocketClient *cli, in runCommand() argument 170 cli->sendMsg(ResponseCode::CommandParameterError, msg, false); in runCommand() 195 uid_t uid = cli->getUid(); in runCommand() 222 cli->incRef(); in runCommand() 224 new DnsProxyListener::GetAddrInfoHandler(cli, name, service, hints, netId, mark); in runCommand() 238 int DnsProxyListener::GetHostByNameCmd::runCommand(SocketClient *cli, in runCommand() argument 249 cli->sendMsg(ResponseCode::CommandParameterError, msg, false); in runCommand() 254 uid_t uid = cli->getUid(); in runCommand() 267 cli->incRef(); in runCommand() 269 new DnsProxyListener::GetHostByNameHandler(cli, name, af, netId, mark); in runCommand() [all …]
|
D | MDnsSdListener.h | 111 void stop(SocketClient *cli, int argc, char **argv, const char *str); 113 void discover(SocketClient *cli, const char *iface, const char *regType, 117 void serviceRegister(SocketClient *cli, int requestId, const char *interfaceName, 121 void resolveService(SocketClient *cli, int requestId, 125 void setHostname(SocketClient *cli, int requestId, const char *hostname); 127 void getAddrInfo(SocketClient *cli, int requestId, const char *interfaceName,
|
D | BandwidthController.h | 93 int getTetherStats(SocketClient *cli, TetherStats &stats, std::string &extraProcessingInfo); 165 static int parseForwardChainStats(SocketClient *cli, const TetherStats filter, FILE *fp,
|
D | BandwidthController.cpp | 1131 int BandwidthController::parseForwardChainStats(SocketClient *cli, const TetherStats filter, in parseForwardChainStats() argument 1211 cli->sendMsg(ResponseCode::TetheringStatsResult, msg, false); in parseForwardChainStats() 1214 cli->sendMsg(ResponseCode::TetheringStatsListResult, msg, false); in parseForwardChainStats() 1228 cli->sendMsg(ResponseCode::CommandOkay, "Tethering stats list completed", false); in parseForwardChainStats() 1239 int BandwidthController::getTetherStats(SocketClient *cli, TetherStats &stats, std::string &extraPr… in getTetherStats() argument 1260 res = parseForwardChainStats(cli, stats, iptOutput, extraProcessingInfo); in getTetherStats()
|
/system/core/logd/ |
D | CommandListener.cpp | 74 int CommandListener::ClearCmd::runCommand(SocketClient *cli, in runCommand() argument 77 uid_t uid = cli->getUid(); in runCommand() 78 if (clientHasLogCredentials(cli)) { in runCommand() 83 cli->sendMsg("Missing Argument"); in runCommand() 89 cli->sendMsg("Range Error"); in runCommand() 94 cli->sendMsg("success"); in runCommand() 103 int CommandListener::GetBufSizeCmd::runCommand(SocketClient *cli, in runCommand() argument 107 cli->sendMsg("Missing Argument"); in runCommand() 113 cli->sendMsg("Range Error"); in runCommand() 120 cli->sendMsg(buf); in runCommand() [all …]
|
D | LogReader.cpp | 39 bool LogReader::onDataAvailable(SocketClient *cli) { in onDataAvailable() argument 44 int len = read(cli->getSocket(), buffer, sizeof(buffer) - 1); in onDataAvailable() 46 doSocketDelete(cli); in onDataAvailable() 145 logbuf().flushTo(cli, LogTimeEntry::EPOCH, in onDataAvailable() 146 FlushCommand::hasReadLogs(cli), in onDataAvailable() 151 doSocketDelete(cli); in onDataAvailable() 160 command.runSocketCommand(cli); in onDataAvailable() 164 void LogReader::doSocketDelete(SocketClient *cli) { in doSocketDelete() argument 170 if (entry->mClient == cli) { in doSocketDelete()
|
D | LogCommand.cpp | 60 bool clientHasLogCredentials(SocketClient * cli) { in clientHasLogCredentials() argument 61 uid_t uid = cli->getUid(); in clientHasLogCredentials() 66 gid_t gid = cli->getGid(); in clientHasLogCredentials() 75 snprintf(filename, sizeof(filename), "/proc/%d/status", cli->getPid()); in clientHasLogCredentials()
|
D | LogReader.h | 34 virtual bool onDataAvailable(SocketClient *cli); 39 void doSocketDelete(SocketClient *cli);
|
D | LogCommand.h | 29 bool clientHasLogCredentials(SocketClient * cli);
|
D | LogListener.cpp | 35 bool LogListener::onDataAvailable(SocketClient *cli) { in onDataAvailable() argument 54 int socket = cli->getSocket(); in onDataAvailable()
|
D | LogListener.h | 31 virtual bool onDataAvailable(SocketClient *cli);
|
D | LogAudit.h | 32 virtual bool onDataAvailable(SocketClient *cli);
|
D | LogAudit.cpp | 49 bool LogAudit::onDataAvailable(SocketClient *cli) { in onDataAvailable() argument 58 if (audit_get_reply(cli->getSocket(), &rep, GET_REPLY_BLOCKING, 0) < 0) { in onDataAvailable()
|
/system/core/libsysutils/src/ |
D | FrameworkListener.cpp | 85 void FrameworkListener::dispatchCommand(SocketClient *cli, char *data) { in dispatchCommand() argument 120 cli->sendMsg(500, "Unsupported escape sequence", false); in dispatchCommand() 146 cli->sendMsg(500, "Invalid sequence number", false); in dispatchCommand() 149 cli->setCmdNum(cmdNum); in dispatchCommand() 174 cli->sendMsg(500, "Unclosed quotes error", false); in dispatchCommand() 188 if (c->runCommand(cli, argc, argv)) { in dispatchCommand() 194 cli->sendMsg(500, "Command not recognized", false); in dispatchCommand() 202 LOG_EVENT_INT(78001, cli->getUid()); in dispatchCommand() 203 cli->sendMsg(500, "Command too long", false); in dispatchCommand()
|
D | NetlinkListener.cpp | 44 bool NetlinkListener::onDataAvailable(SocketClient *cli) in onDataAvailable() argument 46 int socket = cli->getSocket(); in onDataAvailable()
|
/system/core/include/sysutils/ |
D | NetlinkListener.h | 44 virtual bool onDataAvailable(SocketClient *cli);
|