Home
last modified time | relevance | path

Searched refs:cmd (Results 1 - 4 of 4) sorted by relevance

/applications/sample/camera/communication/wpa_cli/src/
H A Dwpa_cli_sample.c127 static int SendCtrlCommand(const char *cmd, char *reply, size_t *replyLen) in SendCtrlCommand() argument
130 wpa_ctrl_request(g_ctrlConn, cmd, strlen(cmd), reply, &len, 0); in SendCtrlCommand()
136 SAMPLE_ERROR("send ctrl request [%s] failed.", cmd); in SendCtrlCommand()
153 char cmd[200] = {0}; in TestNetworkConfig() local
155 temp = sprintf_s(cmd, sizeof(cmd), "SET_NETWORK %.*s ssid \"example\"", networkIdLen, networkId); in TestNetworkConfig()
159 ret += SendCtrlCommand(cmd, reply, &replyLen); in TestNetworkConfig()
161 temp = sprintf_s(cmd, sizeof(cmd), "SET_NETWOR in TestNetworkConfig()
[all...]
/applications/sample/camera/media/
H A Dplayer_sample.cpp622 static void RunCmdSetVolume(TestSample &sample, const char cmd[]) in RunCmdSetVolume() argument
627 if (sscanf_s(cmd, "setvolume %f %f", &lvolume, &rvolume) != 0x2) { in RunCmdSetVolume()
638 static void RunCmdNext(TestSample &sample, const char cmd[]) in RunCmdNext() argument
642 if (sscanf_s(cmd, "next %d", &cnt) != 1) { in RunCmdNext()
657 static void RunCmdPressurePupl(TestSample &sample, const char cmd[]) in RunCmdPressurePupl() argument
662 if (sscanf_s(cmd, "pressure_pupl %d", &cnt) != 1) { in RunCmdPressurePupl()
675 static void RunCmdPressureSeek(TestSample &sample, const char cmd[]) in RunCmdPressureSeek() argument
680 if (sscanf_s(cmd, "pressure_seek %d", &cnt) != 1) { in RunCmdPressureSeek()
700 static void RunCmdLoop(TestSample &sample, const char cmd[]) in RunCmdLoop() argument
704 if (sscanf_s(cmd, "loo in RunCmdLoop()
717 RunCmdSpeed(TestSample &sample, const char cmd[]) RunCmdSpeed() argument
731 RunCmdSeek(TestSample &sample, const char cmd[]) RunCmdSeek() argument
745 RunCmdSleep(const char cmd[]) RunCmdSleep() argument
771 char cmd[0x40]; /* 64: Array length */ SampleCmd() local
[all...]
/applications/sample/camera/setting/setting/src/main/cpp/
H A Dwpa_work.c59 static int SendCtrlCommand(const char *cmd, char *reply, size_t *replyLen) in SendCtrlCommand() argument
76 wpa_ctrl_request(ctrlConn, cmd, strlen(cmd), reply, &len, 0); in SendCtrlCommand()
86 SAMPLE_ERROR("send ctrl request [%s] failed.", cmd); in SendCtrlCommand()
380 char cmd[200] = {0}; in TestNetworkConfig() local
381 int err = sprintf_s(cmd, sizeof(cmd), "SET_NETWORK %.*s ssid \"%s\"", networkIdLen, networkId, gSsid); in TestNetworkConfig()
386 ret += SendCtrlCommand(cmd, reply, &replyLen); in TestNetworkConfig()
388 err = sprintf_s(cmd, sizeof(cmd), "SET_NETWOR in TestNetworkConfig()
[all...]
/applications/standard/app_samples/code/Project/HapBuild/test-tool/
H A DInstallAndTestSpecial_ci.py46 def exec_cmd(cmd):
47 f = os.popen(f"hdc shell \"{cmd}\"")
48 # print(cmd)
56 def exec_cmd_path(cmd, path):
57 f = os.popen(f"hdc shell \"{cmd}\" >> {path}")
58 # print(cmd)
64 def exec_cmd_simple(cmd):
65 f = os.popen(cmd)
66 # print(cmd)
134 cmd
[all...]

Completed in 4 milliseconds