/system/netd/server/ |
H A D | NatController.cpp | 51 const char *cmd[32]; member in struct:CommandsAndArgs 105 if (runCmd(ARRAY_SIZE(defaultCommands[cmdNum].cmd), defaultCommands[cmdNum].cmd) && 118 * - the defaultsCommands[].cmd array is padded with NULL, and 119 * - the 1st argc of runCmd() will just be the max for the CommandsAndArgs[].cmd, and 128 if (runCmd(ARRAY_SIZE(defaultCommands[cmdNum].cmd), defaultCommands[cmdNum].cmd) && 156 const char *cmd[] = { local 168 if (runCmd(ARRAY_SIZE(cmd), cmd)) { [all...] |
H A D | CommandListener.h | 44 void registerLockingCmd(FrameworkCommand *cmd, android::RWLock& lock); 45 void registerLockingCmd(FrameworkCommand *cmd) { argument 46 registerLockingCmd(cmd, android::net::gBigNetdLock);
|
H A D | NetdConstants.cpp | 122 static int execIptablesRestoreCommand(const char *cmd, const std::string& commands) { argument 124 cmd,
|
/system/tpm/trunks/ftdi/ |
H A D | support.c | 93 uint8_t cmd, 105 if (mpsse->mode == I2C || (cmd & MPSSE_BITMODE)) { 145 if (cmd == mpsse->rx) { 153 buf[i++] = cmd; 155 if (!(cmd & MPSSE_BITMODE)) { 160 if (cmd == mpsse->tx || cmd == mpsse->txrx) { 173 if (cmd == mpsse->rx) { 184 else if (cmd == mpsse->tx) { 92 build_block_buffer(struct mpsse_context* mpsse, uint8_t cmd, const uint8_t* data, int size, int* buf_size) argument
|
/system/update_engine/common/ |
H A D | subprocess.cc | 74 bool LaunchProcess(const vector<string>& cmd, argument 78 for (const string& arg : cmd) 171 pid_t Subprocess::Exec(const vector<string>& cmd, argument 173 return ExecFlags(cmd, kRedirectStderrToStdout, {}, callback); 176 pid_t Subprocess::ExecFlags(const vector<string>& cmd, argument 182 if (!LaunchProcess(cmd, flags, output_pipes, &record->proc)) { 231 bool Subprocess::SynchronousExec(const vector<string>& cmd, argument 237 cmd, 243 bool Subprocess::SynchronousExecFlags(const vector<string>& cmd, argument 251 if (!LaunchProcess(cmd, flag [all...] |
H A D | subprocess_unittest.cc | 174 const vector<string> cmd = {kBinPath "/sh", "-c", local 177 cmd, 198 vector<string> cmd = { local 204 ASSERT_TRUE(Subprocess::SynchronousExec(cmd, &rc, &stdout)); 233 vector<string> cmd = { local 240 uint32_t tag = Subprocess::Get().Exec(cmd, base::Bind(&CallbackBad));
|
H A D | test_utils.h | 73 inline int System(const std::string& cmd) { argument 74 return system(cmd.c_str());
|
/system/update_engine/ |
H A D | hardware_chromeos.cc | 119 vector<string> cmd = {"/usr/sbin/mosys", "-k", "ec", "info"}; local 121 bool success = Subprocess::SynchronousExec(cmd, &exit_code, &input_line);
|
/system/vold/ |
H A D | MoveTask.cpp | 63 static status_t pushBackContents(const std::string& path, std::vector<std::string>& cmd) { argument 74 cmd.push_back(StringPrintf("%s/%s", path.c_str(), ent->d_name)); 87 std::vector<std::string> cmd; local 88 cmd.push_back(kRmPath); 89 cmd.push_back("-f"); /* force: remove without confirmation, no error if it doesn't exist */ 90 cmd.push_back("-R"); /* recursive: remove directory contents */ 91 if (pushBackContents(path, cmd) != OK) { 96 pid_t pid = ForkExecvpAsync(cmd); 125 std::vector<std::string> cmd; local 126 cmd [all...] |
/system/vold/fs/ |
H A D | Ext4.cpp | 117 std::vector<std::string> cmd; local 118 cmd.push_back(kFsckPath); 119 cmd.push_back("-y"); 120 cmd.push_back(c_source); 123 return ForkExecvp(cmd, sFsckContext); 155 std::vector<std::string> cmd; local 156 cmd.push_back(kResizefsPath); 157 cmd.push_back("-f"); 158 cmd.push_back(source); 159 cmd 166 std::vector<std::string> cmd; local [all...] |
/system/bt/bta/gatt/ |
H A D | bta_gatts_act.c | 41 static BOOLEAN bta_gatts_nv_srv_chg_cback(tGATTS_SRV_CHG_CMD cmd, tGATTS_SRV_CHG_REQ *p_req, 95 static BOOLEAN bta_gatts_nv_srv_chg_cback(tGATTS_SRV_CHG_CMD cmd, argument 98 return bta_gatts_co_srv_chg((tBTA_GATTS_SRV_CHG_CMD) cmd,
|
/system/bt/bta/hf_client/ |
H A D | bta_hf_client_at.h | 38 typedef void (tBTA_AG_AT_CMD_CBACK)(void *p_user, UINT16 cmd, UINT8 arg_type, 82 tBTA_HF_CLIENT_AT_CMD cmd; member in struct:queued_at_cmd
|
/system/bt/btif/src/ |
H A D | btif_hf_client.c | 659 static bt_status_t send_at_cmd(int cmd,int val1,int val2,const char *arg) argument 663 __FUNCTION__,cmd,val1,val2,arg); 664 BTA_HfClientSendAT(btif_hf_client_cb.handle, cmd, val1, val2, arg);
|
H A D | btif_sock_thread.c | 75 /*cmd executes in socket poll thread */ 216 //add the cmd fd for read & write 249 APPL_TRACE_ERROR("cmd socket is not created. socket thread may not initialized"); 264 sock_cmd_t cmd = {CMD_ADD_FD, fd, type, flags, user_id}; local 268 OSI_NO_INTR(ret = send(ts[h].cmd_fdw, &cmd, sizeof(cmd), 0)); 270 return ret == sizeof(cmd); 286 sock_cmd_t cmd = {CMD_REMOVE_FD, fd, 0, 0, 0}; local 289 OSI_NO_INTR(ret = send(ts[thread_handle].cmd_fdw, &cmd, sizeof(cmd), 306 sock_cmd_t cmd = {CMD_USER_PRIVATE, 0, type, size, user_id}; local 343 sock_cmd_t cmd = {CMD_WAKEUP, 0, 0, 0, 0}; local 362 sock_cmd_t cmd = {CMD_EXIT, 0, 0, 0, 0}; local 459 sock_cmd_t cmd = {-1, 0, 0, 0, 0}; local [all...] |
/system/connectivity/shill/dbus/ |
H A D | chromeos_mm1_modem_proxy.cc | 186 void ChromeosModemProxy::Command(const std::string& cmd, argument 191 SLOG(&proxy_->GetObjectPath(), 2) << __func__ << ": " << cmd; local 192 proxy_->CommandAsync(cmd,
|
/system/core/bootstat/ |
H A D | bootstat.cpp | 62 void ShowHelp(const char *cmd) { argument 63 fprintf(stderr, "Usage: %s [options]\n", cmd); 77 std::string cmd; local 79 cmd += argv[i]; 80 cmd += " "; 83 return cmd;
|
/system/core/liblog/ |
H A D | logd_reader.c | 460 const char cmd[] = "setPruneList "; local 461 const size_t cmdlen = sizeof(cmd) - 1; 468 memcpy(buf, cmd, cmdlen);
|
/system/core/toolbox/ |
H A D | iftop.c | 221 static void usage(const char *cmd) argument 223 fprintf(stderr, "usage: %s [ -r repeats] [ -d delay ]\n", cmd);
|
/system/extras/cpustats/ |
H A D | cpustats.c | 68 static void usage(char *cmd); 429 static void usage(char *cmd) { argument 435 cmd);
|
/system/extras/latencytop/ |
H A D | latencytop.c | 65 static void usage(const char *cmd); 420 static void usage(const char *cmd) { argument 427 cmd);
|
/system/extras/procmem/ |
H A D | procmem.c | 37 static void usage(const char *cmd); 304 static void usage(const char *cmd) { argument 311 cmd);
|
/system/extras/tests/lib/testUtil/ |
H A D | testUtil.c | 387 * Executes the command pointed to by cmd. Output from the 394 void testExecCmd(const char *cmd) argument 402 testPrintI("cmd: %s", cmd); 406 if ((fp = popen(cmd, "r")) == NULL) {
|
/system/extras/tests/wifi/stress/ |
H A D | wifiLoadScanAssoc.c | 133 char cmd[MAXCMD]; local 305 rv = snprintf(cmd, sizeof(cmd), "%s", CMD_STATUS); 306 if (rv >= (signed) sizeof(cmd) - 1) { 310 testExecCmd(cmd); 351 rv = snprintf(cmd, sizeof(cmd), "%s", CMD_STATUS); 352 if (rv >= (signed) sizeof(cmd) - 1) { 356 testExecCmd(cmd); 360 rv = snprintf(cmd, sizeo 391 char cmd[MAXCMD]; local [all...] |
/system/tpm/trunks/ |
H A D | trunks_ftdi_spi.cc | 159 uint8_t cmd; local 182 FtdiReadReg(TPM_ACCESS_REG, sizeof(cmd), &cmd); 184 if ((cmd & ~tpmEstablishment) != tpmRegValidSts) { 185 LOG(ERROR) << "invalid reset status: 0x" << std::hex << (unsigned)cmd; 188 cmd = requestUse; 189 FtdiWriteReg(TPM_ACCESS_REG, sizeof(cmd), &cmd); 190 FtdiReadReg(TPM_ACCESS_REG, sizeof(cmd), &cmd); [all...] |
/system/core/fastboot/ |
H A D | engine.cpp | 58 char cmd[CMD_SIZE]; member in struct:Action 79 std::string cmd = "getvar:"; local 80 cmd += key; 84 if (fb_command_response(transport, cmd.c_str(), buf)) { 111 cmdsize = vsnprintf(a->cmd, sizeof(a->cmd), fmt, ap); 114 if (cmdsize >= sizeof(a->cmd)) { 116 die("Command length (%d) exceeds maximum size (%d)", cmdsize, sizeof(a->cmd)); 229 fprintf(stderr,"Device %s is '%s'.\n", a->cmd + 7, resp); 262 fprintf(stderr, "%s FAILED (%s)\n", a->cmd, res 308 fb_queue_command(const char *cmd, const char *msg) argument [all...] |