/system/netd/server/ |
D | NdcDispatcher.cpp | 53 #define PARSE_INT_RETURN_IF_FAIL(cli, label, intLabel, errMsg, addErrno) \ argument 57 (cli)->sendMsg(ResponseCode::OperationFailed, (errMsg), (addErrno)); \ 62 #define PARSE_UINT_RETURN_IF_FAIL(cli, label, intLabel, errMsg, addErrno) \ argument 66 (cli)->sendMsg(ResponseCode::OperationFailed, (errMsg), (addErrno)); \ 167 int NdcDispatcher::InterfaceCmd::runCommand(NdcClient* cli, int argc, char** argv) const { in runCommand() argument 169 cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing argument", false); in runCommand() 179 cli->sendMsg(ResponseCode::OperationFailed, "Failed to get interface list", true); in runCommand() 183 cli->sendMsg(ResponseCode::InterfaceListResult, iface.c_str(), false); in runCommand() 186 cli->sendMsg(ResponseCode::CommandOkay, "Interface list completed", false); in runCommand() 193 cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing argument", false); in runCommand() [all …]
|
D | NdcDispatcher.h | 84 int runCommand(NdcClient* cli, int argc, char** argv) const; 91 int runCommand(NdcClient* cli, int argc, char** argv) const; 98 int runCommand(NdcClient* cli, int argc, char** argv) const; 105 int runCommand(NdcClient* cli, int argc, char** argv) const; 112 int runCommand(NdcClient* cli, int argc, char** argv) const; 115 void sendGenericOkFail(NdcClient* cli, int cond) const; 116 void sendGenericOpFailed(NdcClient* cli, const char* errMsg) const; 117 void sendGenericSyntaxError(NdcClient* cli, const char* usageMsg) const; 124 int runCommand(NdcClient* cli, int argc, char** argv) const; 131 int runCommand(NdcClient* cli, int argc, char** argv) const; [all …]
|
D | MDnsSdListener.cpp | 66 void MDnsSdListener::Handler::discover(SocketClient *cli, in discover() argument 80 cli->sendMsg(ResponseCode::CommandParameterError, in discover() 93 cli->sendMsg(ResponseCode::CommandParameterError, in discover() 99 cli->sendMsg(ResponseCode::CommandOkay, "Discover operation started", false); in discover() 137 void MDnsSdListener::Handler::stop(SocketClient *cli, int argc, char **argv, const char *str) { in stop() argument 141 cli->sendMsg(ResponseCode::CommandParameterError, msg, false); in stop() 149 cli->sendMsg(ResponseCode::CommandParameterError, "Unknown requestId", false); in stop() 157 cli->sendMsg(ResponseCode::CommandOkay, msg, false); in stop() 161 void MDnsSdListener::Handler::serviceRegister(SocketClient *cli, int requestId, in serviceRegister() argument 173 cli->sendMsg(ResponseCode::CommandParameterError, in serviceRegister() [all …]
|
D | MDnsSdListener.h | 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,
|
/system/core/logd/ |
D | CommandListener.cpp | 66 int CommandListener::ClearCmd::runCommand(SocketClient* cli, int argc, in runCommand() argument 69 uid_t uid = cli->getUid(); in runCommand() 70 if (clientHasLogCredentials(cli)) { in runCommand() 75 cli->sendMsg("Missing Argument"); in runCommand() 81 cli->sendMsg("Range Error"); in runCommand() 85 cli->sendMsg(buf()->Clear((log_id_t)id, uid) ? "success" : "busy"); in runCommand() 89 int CommandListener::GetBufSizeCmd::runCommand(SocketClient* cli, int argc, in runCommand() argument 93 cli->sendMsg("Missing Argument"); in runCommand() 99 cli->sendMsg("Range Error"); in runCommand() 106 cli->sendMsg(buf); in runCommand() [all …]
|
D | LogReader.cpp | 80 bool LogReader::onDataAvailable(SocketClient* cli) { in onDataAvailable() argument 89 int len = read(cli->getSocket(), buffer, sizeof(buffer) - 1); in onDataAvailable() 91 DoSocketDelete(cli); in onDataAvailable() 97 if (DoSocketDelete(cli)) { in onDataAvailable() 161 bool privileged = clientHasLogCredentials(cli); in onDataAvailable() 162 bool can_read_security = CanReadSecurityLogs(cli); in onDataAvailable() 167 std::unique_ptr<LogWriter> socket_log_writer(new SocketLogWriter(this, cli, privileged)); in onDataAvailable() 208 cli->getUid(), cli->getGid(), cli->getPid(), nonBlock ? 'n' : 'b', tail, logMask, in onDataAvailable() 220 cli->incRef(); in onDataAvailable() 225 setsockopt(cli->getSocket(), SOL_SOCKET, SO_SNDTIMEO, (const char*)&t, in onDataAvailable() [all …]
|
D | LogPermissions.cpp | 139 bool clientHasLogCredentials(SocketClient* cli) { in clientHasLogCredentials() argument 140 return clientHasLogCredentials(cli->getUid(), cli->getGid(), cli->getPid()); in clientHasLogCredentials()
|
D | LogReader.h | 32 virtual bool onDataAvailable(SocketClient* cli); 37 bool DoSocketDelete(SocketClient* cli);
|
D | LogPermissions.h | 24 bool clientHasLogCredentials(SocketClient* cli);
|
D | LogKlog.h | 49 virtual bool onDataAvailable(SocketClient* cli);
|
D | LogAudit.h | 38 virtual bool onDataAvailable(SocketClient* cli);
|
D | LogAudit.cpp | 80 bool LogAudit::onDataAvailable(SocketClient* cli) { in onDataAvailable() argument 92 if (audit_get_reply(cli->getSocket(), &rep, GET_REPLY_BLOCKING, 0) < 0) { in onDataAvailable()
|
D | LogKlog.cpp | 220 bool LogKlog::onDataAvailable(SocketClient* cli) { in onDataAvailable() argument 234 read(cli->getSocket(), buffer + len, sizeof(buffer) - 1 - len); in onDataAvailable()
|
/system/security/keystore/tests/ |
D | list_auth_bound_keys_test.sh | 30 function cli { function 39 cli $USER1_ID "delete --name=no_auth_key" || true 40 cli $USER1_ID "generate --name=no_auth_key" 41 cli $USER2_ID "delete --name=auth_key" || true 42 if ! cli $USER2_ID "generate --name=auth_key --auth_bound"; then 49 if cli $USER2_ID list-apps-with-keys; then 55 if cli $ROOT_ID "list-apps-with-keys"; then 71 done <<< $(cli $SYSTEM_ID "list-apps-with-keys")
|
/system/core/libsysutils/src/ |
D | FrameworkListener.cpp | 94 void FrameworkListener::dispatchCommand(SocketClient *cli, char *data) { in dispatchCommand() argument 128 cli->sendMsg(500, "Unsupported escape sequence", false); in dispatchCommand() 154 cli->sendMsg(500, "Invalid sequence number", false); in dispatchCommand() 157 cli->setCmdNum(cmdNum); in dispatchCommand() 182 cli->sendMsg(500, "Unclosed quotes error", false); in dispatchCommand() 194 if (c->runCommand(cli, argc, argv)) { in dispatchCommand() 200 cli->sendMsg(500, "Command not recognized", false); in dispatchCommand() 208 cli->sendMsg(500, "Command too long", false); in dispatchCommand()
|
D | NetlinkListener.cpp | 46 bool NetlinkListener::onDataAvailable(SocketClient *cli) in onDataAvailable() argument 48 int socket = cli->getSocket(); in onDataAvailable()
|
D | SocketListener_test.cpp | 105 int runCommand(SocketClient* cli, int argc, char** argv) { in runCommand() argument 108 cli->sendMsg(42, reply.c_str(), /*addErrno=*/false, /*useCmdNum=*/false); in runCommand()
|
/system/tools/xsdc/src/com/android/xsdc/ |
D | Main.java | 28 import org.apache.commons.cli.CommandLine; 29 import org.apache.commons.cli.CommandLineParser; 30 import org.apache.commons.cli.GnuParser; 31 import org.apache.commons.cli.HelpFormatter; 32 import org.apache.commons.cli.OptionBuilder; 33 import org.apache.commons.cli.Options; 34 import org.apache.commons.cli.ParseException;
|
/system/libziparchive/ |
D | run-ziptool-tests-on-android.sh | 6 adb push cli-tests/ /data/local/tmp/ziptool-tests/ 15 exec adb shell $dash_t cli-test /data/local/tmp/ziptool-tests/cli-tests/*.test
|
D | Android.bp | 218 data: ["cli-tests/**/*"], 219 target_required: ["cli-test", "ziptool"],
|
/system/core/cli-test/ |
D | Android.bp | 2 name: "cli-test", 4 srcs: ["cli-test.cpp"],
|
D | README.md | 1 # cli-test 5 `cli-test` makes integration testing of command-line tools easier.
|
/system/tools/xsdc/ |
D | Android.bp | 5 "commons-cli-1.2",
|
/system/core/libsysutils/include/sysutils/ |
D | NetlinkListener.h | 45 virtual bool onDataAvailable(SocketClient *cli);
|
/system/bt/service/ |
D | Android.bp | 168 name: "bluetooth-cli",
|