/system/core/logd/ |
H A D | CommandListener.cpp | 60 int CommandListener::ShutdownCmd::runCommand(SocketClient * /*cli*/, 81 int CommandListener::ClearCmd::runCommand(SocketClient *cli, argument 84 uid_t uid = cli->getUid(); 85 if (clientHasLogCredentials(cli)) { 90 cli->sendMsg("Missing Argument"); 96 cli->sendMsg("Range Error"); 100 cli->sendMsg(mBuf.clear((log_id_t) id, uid) ? "busy" : "success"); 109 int CommandListener::GetBufSizeCmd::runCommand(SocketClient *cli, argument 113 cli->sendMsg("Missing Argument"); 119 cli 135 runCommand(SocketClient *cli, int argc, char **argv) argument 169 runCommand(SocketClient *cli, int argc, char **argv) argument 204 runCommand(SocketClient *cli, int argc, char **argv) argument 246 runCommand(SocketClient *cli, int , char ** ) argument 258 runCommand(SocketClient *cli, int argc, char **argv) argument 289 runCommand(SocketClient *cli, int , char ** ) argument [all...] |
H A D | LogReader.h | 36 virtual bool onDataAvailable(SocketClient *cli); 41 void doSocketDelete(SocketClient *cli);
|
H A D | LogListener.h | 31 virtual bool onDataAvailable(SocketClient *cli);
|
H A D | LogCommand.cpp | 148 bool clientHasLogCredentials(SocketClient *cli) { argument 149 return clientHasLogCredentials(cli->getUid(), cli->getGid(), cli->getPid());
|
H A D | LogReader.cpp | 43 bool LogReader::onDataAvailable(SocketClient *cli) { argument 52 int len = read(cli->getSocket(), buffer, sizeof(buffer) - 1); 54 doSocketDelete(cli); 169 logbuf().flushTo(cli, sequence, FlushCommand::hasReadLogs(cli), 170 FlushCommand::hasSecurityLogs(cli), 175 doSocketDelete(cli); 186 setsockopt(cli->getSocket(), SOL_SOCKET, SO_SNDTIMEO, (const char *)&t, sizeof(t)); 188 command.runSocketCommand(cli); 192 void LogReader::doSocketDelete(SocketClient *cli) { argument [all...] |
H A D | LogAudit.h | 38 virtual bool onDataAvailable(SocketClient *cli);
|
H A D | LogListener.cpp | 40 bool LogListener::onDataAvailable(SocketClient *cli) { argument 62 int socket = cli->getSocket();
|
H A D | LogKlog.h | 57 virtual bool onDataAvailable(SocketClient *cli);
|
H A D | LogUtils.h | 44 bool clientHasLogCredentials(SocketClient *cli);
|
H A D | LogAudit.cpp | 56 bool LogAudit::onDataAvailable(SocketClient *cli) { argument 68 if (audit_get_reply(cli->getSocket(), &rep, GET_REPLY_BLOCKING, 0) < 0) {
|
/system/vold/ |
H A D | CryptCommandListener.cpp | 93 int CryptCommandListener::sendGenericOkFailOnBool(SocketClient *cli, bool success) { argument 95 return cli->sendMsg(ResponseCode::CommandOkay, "Command succeeded", false); 97 return cli->sendMsg(ResponseCode::OperationFailed, "Command failed", false); 128 static bool check_argc(SocketClient *cli, const std::string &subcommand, int argc, argument 144 cli->sendMsg(ResponseCode::CommandSyntaxError, message.c_str(), false); 172 int CryptCommandListener::CryptfsCmd::runCommand(SocketClient *cli, argument 174 if ((cli->getUid() != 0) && (cli->getUid() != AID_SYSTEM)) { 175 cli->sendMsg(ResponseCode::CommandNoPermission, "No permission to run cryptfs commands", false); 180 cli [all...] |
H A D | CommandListener.cpp | 100 int CommandListener::sendGenericOkFail(SocketClient *cli, int cond) { argument 102 return cli->sendMsg(ResponseCode::CommandOkay, "Command succeeded", false); 104 return cli->sendMsg(ResponseCode::OperationFailed, "Command failed", false); 112 int CommandListener::DumpCmd::runCommand(SocketClient *cli, argument 114 cli->sendMsg(0, "Dumping loop status", false); 115 if (Loop::dumpState(cli)) { 116 cli->sendMsg(ResponseCode::CommandOkay, "Loop dump failed", true); 118 cli->sendMsg(0, "Dumping DM status", false); 119 if (Devmapper::dumpState(cli)) { 120 cli 141 runCommand(SocketClient *cli, int argc, char **argv) argument 286 runCommand(SocketClient *cli, int argc, char **argv) argument 353 listAsecsInDirectory(SocketClient *cli, const char *directory) argument 391 runCommand(SocketClient *cli, int argc, char **argv) argument 533 runCommand(SocketClient *cli, int argc, char **argv) argument 596 runCommand(SocketClient *cli, int argc, char **argv) argument 772 runCommand(SocketClient *cli, int argc, char **argv) argument 840 sendFd(SocketClient *cli, int fd) argument [all...] |
H A D | CryptCommandListener.h | 31 static int sendGenericOkFailOnBool(SocketClient *cli, bool success);
|
H A D | CommandListener.h | 31 static int sendGenericOkFail(SocketClient *cli, int cond);
|
/system/netd/server/ |
H A D | CommandListener.cpp | 254 int CommandListener::InterfaceCmd::runCommand(SocketClient *cli, argument 257 cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing argument", false); 266 cli->sendMsg(ResponseCode::OperationFailed, "Failed to open sysfs dir", true); 273 cli->sendMsg(ResponseCode::InterfaceListResult, de->d_name, false); 276 cli->sendMsg(ResponseCode::CommandOkay, "Interface list completed", false); 283 cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing argument", false); 297 cli->sendMsg(ResponseCode::OperationFailed, "Interface not found", true); 325 cli->sendMsg(ResponseCode::InterfaceGetCfgResult, msg, false); 336 cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing argument", false); 351 cli 483 runCommand(SocketClient *cli, int , char ** ) argument 500 runCommand(SocketClient *cli, int argc, char **argv) argument 560 runCommand(SocketClient *cli, int argc, char **argv) argument 663 runCommand(SocketClient *cli, int argc, char **argv) argument 703 runCommand(SocketClient *cli, int argc, char **argv) argument 755 runCommand(SocketClient *cli, int argc, char **argv) argument 801 runCommand(SocketClient *cli, int argc, char **margv) argument 868 sendGenericSyntaxError(SocketClient *cli, const char *usageMsg) argument 875 sendGenericOkFail(SocketClient *cli, int cond) argument 883 sendGenericOpFailed(SocketClient *cli, const char *errMsg) argument 887 runCommand(SocketClient *cli, int argc, char **argv) argument 1179 runCommand(SocketClient *cli, int argc, char **argv) argument 1241 sendGenericOkFail(SocketClient *cli, int cond) argument 1287 runCommand(SocketClient *cli, int argc, char **argv) argument 1415 runCommand(SocketClient *cli, int argc, char **argv) argument 1452 sendGenericOkFail(SocketClient *cli, int cond) argument 1473 runCommand(SocketClient *cli, int argc, char **argv) argument [all...] |
H A D | BandwidthControllerTest.cpp | 190 SocketClient cli(socketPair[0], false); 197 ASSERT_EQ(-1, mBw.getTetherStats(&cli, filter, err)); 202 ASSERT_EQ(-1, mBw.getTetherStats(&cli, filter, err)); 212 ASSERT_EQ(0, mBw.getTetherStats(&cli, filter, err)); 221 ASSERT_EQ(0, mBw.getTetherStats(&cli, filter, err)); 229 ASSERT_EQ(0, mBw.getTetherStats(&cli, filter, err)); 237 ASSERT_EQ(0, mBw.getTetherStats(&cli, filter, err)); 243 ASSERT_EQ(0, mBw.getTetherStats(&cli, filter, err)); 248 ASSERT_EQ(0, mBw.getTetherStats(&cli, filter, err)); 255 ASSERT_EQ(-1, mBw.getTetherStats(&cli, filte [all...] |
H A D | CommandListener.h | 104 void sendGenericOkFail(SocketClient *cli, int cond); 105 void sendGenericOpFailed(SocketClient *cli, const char *errMsg); 106 void sendGenericSyntaxError(SocketClient *cli, const char *usageMsg); 132 int sendGenericOkFail(SocketClient *cli, int cond); 151 int sendGenericOkFail(SocketClient *cli, int cond); 161 int syntaxError(SocketClient* cli, const char* message); 162 int operationError(SocketClient* cli, const char* message, int ret); 163 int success(SocketClient* cli);
|
H A D | MDnsSdListener.cpp | 62 void MDnsSdListener::Handler::discover(SocketClient *cli, argument 76 cli->sendMsg(ResponseCode::CommandParameterError, 89 cli->sendMsg(ResponseCode::CommandParameterError, 95 cli->sendMsg(ResponseCode::CommandOkay, "Discover operation started", false); 133 void MDnsSdListener::Handler::stop(SocketClient *cli, int argc, char **argv, const char *str) { argument 137 cli->sendMsg(ResponseCode::CommandParameterError, msg, false); 145 cli->sendMsg(ResponseCode::CommandParameterError, "Unknown requestId", false); 153 cli->sendMsg(ResponseCode::CommandOkay, msg, false); 157 void MDnsSdListener::Handler::serviceRegister(SocketClient *cli, int requestId, argument 169 cli 213 resolveService(SocketClient *cli, int requestId, const char *interfaceName, const char *serviceName, const char *regType, const char *domain) argument 283 getAddrInfo(SocketClient *cli, int requestId, const char *interfaceName, uint32_t protocol, const char *hostname) argument 343 setHostname(SocketClient *cli, int requestId, const char *hostname) argument 406 runCommand(SocketClient *cli, int argc, char **argv) argument [all...] |
H A 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,
|
H A D | DnsProxyListener.cpp | 256 int DnsProxyListener::GetAddrInfoCmd::runCommand(SocketClient *cli, argument 267 cli->sendMsg(ResponseCode::CommandParameterError, msg, false); 292 uid_t uid = cli->getUid(); 317 cli->incRef(); 319 new DnsProxyListener::GetAddrInfoHandler(cli, name, service, hints, netcontext, 334 int DnsProxyListener::GetHostByNameCmd::runCommand(SocketClient *cli, argument 345 cli->sendMsg(ResponseCode::CommandParameterError, msg, false); 350 uid_t uid = cli->getUid(); 364 cli->incRef(); 366 new DnsProxyListener::GetHostByNameHandler(cli, nam 482 runCommand(SocketClient *cli, int argc, char **argv) argument [all...] |
H A D | BandwidthController.h | 103 * Sends out to the cli the single stat (TetheringStatsReluts) or a list of stats 108 int getTetherStats(SocketClient *cli, TetherStats &stats, std::string &extraProcessingInfo); 188 static int parseForwardChainStats(SocketClient *cli, const TetherStats filter, FILE *fp,
|
/system/core/libsysutils/src/ |
H A D | FrameworkListener.cpp | 96 void FrameworkListener::dispatchCommand(SocketClient *cli, char *data) { argument 131 cli->sendMsg(500, "Unsupported escape sequence", false); 157 cli->sendMsg(500, "Invalid sequence number", false); 160 cli->setCmdNum(cmdNum); 185 cli->sendMsg(500, "Unclosed quotes error", false); 199 if (c->runCommand(cli, argc, argv)) { 205 cli->sendMsg(500, "Command not recognized", false); 213 LOG_EVENT_INT(78001, cli->getUid()); 214 cli->sendMsg(500, "Command too long", false);
|
H A D | NetlinkListener.cpp | 44 bool NetlinkListener::onDataAvailable(SocketClient *cli) argument 46 int socket = cli->getSocket();
|
/system/core/include/sysutils/ |
H A D | NetlinkListener.h | 45 virtual bool onDataAvailable(SocketClient *cli);
|
/system/bt/service/ |
H A D | Android.mk | 224 LOCAL_MODULE := bluetooth-cli
|