Home
last modified time | relevance | path

Searched refs:cmd (Results 1 – 25 of 118) sorted by relevance

12345

/developtools/profiler/device/services/plugin_service/src/
Dplugin_command_builder.cpp31 auto cmd = std::make_shared<GetCommandResponse>(); in BuildCreateSessionCmd() local
32 cmd->set_status(ResponseStatus::OK); in BuildCreateSessionCmd()
33 cmd->set_has_more(false); in BuildCreateSessionCmd()
34 cmd->set_command_id(cmdIdAutoIncrease_); in BuildCreateSessionCmd()
35 CreateSessionCmd* csc = cmd->mutable_create_session_cmd(); in BuildCreateSessionCmd()
39 commandHistory_[cmdIdAutoIncrease_] = cmd; in BuildCreateSessionCmd()
41 return cmd; in BuildCreateSessionCmd()
46 auto cmd = std::make_shared<GetCommandResponse>(); in BuildDestroySessionCmd() local
47 cmd->set_status(ResponseStatus::OK); in BuildDestroySessionCmd()
48 cmd->set_has_more(false); in BuildDestroySessionCmd()
[all …]
Dplugin_service.cpp119 auto cmd = pluginCommandBuilder_->BuildCreateSessionCmd(pluginConfig, bufferSize); in CreatePluginSession() local
120 …CHECK_TRUE(cmd != nullptr, false, "CreatePluginSession BuildCreateSessionCmd FAIL %s", pluginName.… in CreatePluginSession()
136 pluginServiceImpl_->PushCommand(*pluginCtx->context, cmd); in CreatePluginSession()
159 auto cmd = pluginCommandBuilder_->BuildCreateSessionCmd(pluginConfig, 0); in CreatePluginSession() local
160 …CHECK_TRUE(cmd != nullptr, false, "CreatePluginSession BuildCreateSessionCmd FAIL %s", pluginName.… in CreatePluginSession()
163 pluginServiceImpl_->PushCommand(*pluginCtx->context, cmd); in CreatePluginSession()
177 auto cmd = pluginCommandBuilder_->BuildStartSessionCmd(config, pluginId); in StartPluginSession() local
178 …CHECK_TRUE(cmd != nullptr, false, "StartPluginSession BuildStartSessionCmd FAIL %s", pluginName.c_… in StartPluginSession()
181 pluginServiceImpl_->PushCommand(*pluginCtx->context, cmd); in StartPluginSession()
193 auto cmd = pluginCommandBuilder_->BuildStopSessionCmd(pluginId); in StopPluginSession() local
[all …]
/developtools/hapsigner/tools/
Dauto_test.py275 def run_target(case, cmd): argument
283 command = Popen(cmd, stdout=PIPE, stderr=PIPE, stdin=PIPE, shell=True)
291 f.writelines(cmd + "\r\n")
299 f.writelines(cmd + "\r\n")
322 cmd = 'java -jar {} {}'.format(jar_file, k)
323 print("== Run command: {}".format(cmd))
324 result = run_target(case, cmd)
336 cmd = 'java -jar {} {}'.format(jar_file, k)
337 print("== Run command: {}".format(cmd))
338 result = run_target(case, cmd)
[all …]
/developtools/profiler/host/smartperf/ide/src/hdc/hdcclient/
DFormatCommand.ts31 static string2FormatCommand(cmd: string): FormatCommand {
32 log("Command : " + cmd);
34 if (cmd.startsWith(CMDSTR_SHELL + " ")) {
36 formatCommand.parameters = cmd.substring((CMDSTR_SHELL + " ").length)
37 } else if (cmd.startsWith(CMDSTR_SHELL)) {
39 } else if (cmd.startsWith(CMDSTR_FILE_RECV)) {
41 formatCommand.parameters = cmd.substring((CMDSTR_FILE_RECV + " ").length)
42 } else if (cmd.startsWith(CMDSTR_FILE_SEND)) {
44 formatCommand.parameters = cmd.substring((CMDSTR_FILE_SEND + " ").length)
/developtools/profiler/device/plugins/api/src/
Dcommand_poller.cpp41 bool CommandPoller::OnCreateSessionCmd(const CreateSessionCmd& cmd, SocketContext& context) const in OnCreateSessionCmd() argument
44 if (cmd.buffer_sizes().size() == 0 || cmd.plugin_configs().size() == 0) { in OnCreateSessionCmd()
48 uint32_t bufferSize = cmd.buffer_sizes(0); in OnCreateSessionCmd()
49 ProfilerPluginConfig config = cmd.plugin_configs(0); in OnCreateSessionCmd()
82 bool CommandPoller::OnDestroySessionCmd(const DestroySessionCmd& cmd) const in OnDestroySessionCmd()
85 if (cmd.plugin_ids().size() == 0) { in OnDestroySessionCmd()
89 uint32_t pluginId = cmd.plugin_ids(0); in OnDestroySessionCmd()
112 bool CommandPoller::OnStartSessionCmd(const StartSessionCmd& cmd, PluginResult& result) const in OnStartSessionCmd() argument
115 if (cmd.plugin_ids().size() == 0 || cmd.plugin_configs().size() == 0) { in OnStartSessionCmd()
120 pluginIds.push_back(cmd.plugin_ids(0)); in OnStartSessionCmd()
[all …]
Dcommand_poller.h37 bool OnCreateSessionCmd(const CreateSessionCmd& cmd, SocketContext& context) const;
38 bool OnDestroySessionCmd(const DestroySessionCmd& cmd) const;
39 bool OnStartSessionCmd(const StartSessionCmd& cmd, PluginResult& result) const;
40 bool OnStopSessionCmd(const StopSessionCmd& cmd) const;
41 bool OnReportBasicDataCmd(const RefreshSessionCmd& cmd) const;
/developtools/profiler/device/cmds/test/unittest/
Dhiprofiler_cmd_test.cpp82 bool RunCommand(const std::string& cmd, std::string& content) in RunCommand() argument
84 std::unique_ptr<FILE, decltype(&pclose)> pipe(popen(cmd.c_str(), "r"), pclose); in RunCommand()
289 std::string cmd = DEFAULT_HIPROFILER_CMD_PATH + " -h"; variable
291 EXPECT_TRUE(RunCommand(cmd, content));
296 cmd = DEFAULT_HIPROFILER_CMD_PATH + " -q";
297 EXPECT_TRUE(RunCommand(cmd, content));
304 EXPECT_TRUE(RunCommand(cmd, content));
324 …std::string cmd = DEFAULT_HIPROFILER_CMD_PATH + " -c " + configTestFile + " -o " + outFile + " -t … variable
325 EXPECT_TRUE(RunCommand(cmd, content));
335 cmd = DEFAULT_HIPROFILER_CMD_PATH + " -c " + configFile + " -o " + outFile + " -t 3";
[all …]
/developtools/profiler/device/plugins/hiperf_plugin/src/
Dhiperf_module.cpp85 bool RunCommand(const std::string& cmd) in RunCommand() argument
87 HILOG_INFO(LOG_CORE, "run command: %s", cmd.c_str()); in RunCommand()
91 COMMON::SplitString(cmd, " ", cmdArg); in RunCommand()
126 for (const auto &cmd : cmds) { in HiperfPluginSessionStart() local
127 res = RunCommand(cmd); in HiperfPluginSessionStart()
128 CHECK_TRUE(res, -1, "HiperfPluginSessionStart, RunCommand(%s) FAILED!", cmd.c_str()); in HiperfPluginSessionStart()
137 std::string cmd; in HiperfPluginSessionStop() local
139 cmd = SU_ROOT; in HiperfPluginSessionStop()
141 cmd += HIPERF_CMD + g_logLevel + HIPERF_RECORD_CMD; in HiperfPluginSessionStop()
142 cmd += HIPERF_RECORD_STOP; in HiperfPluginSessionStop()
[all …]
/developtools/hiperf/interfaces/innerkits/native/src/
Dhiperf_client.cpp337 void Client::GetExecCmd(std::vector<std::string> &cmd, int pipeIn, int pipeOut, in GetExecCmd() argument
340 cmd.clear(); in GetExecCmd()
341 cmd.emplace_back(executeCommandPath_); in GetExecCmd()
344 cmd.emplace_back(ArgDebug); in GetExecCmd()
346 cmd.emplace_back(ArgDebugMuch); in GetExecCmd()
350 cmd.emplace_back(ArgHilog); in GetExecCmd()
353 cmd.emplace_back(CommandRecord); in GetExecCmd()
354 cmd.emplace_back(ArgPipeInput); in GetExecCmd()
355 cmd.emplace_back(std::to_string(pipeIn)); in GetExecCmd()
356 cmd.emplace_back(ArgPipeOutput); in GetExecCmd()
[all …]
/developtools/hapsigner/autosign/
Dautosign.py99 cmd = eng_v
104 cmd = '{} -{} "{}"'.format(cmd, required_key, param)
109 cmd = '{} -{} "{}"'.format(cmd, others_key, param)
110 cmds.append(cmd)
114 def run_target(cmd): argument
115 command = Popen(cmd, stdout=PIPE, stderr=PIPE, stdin=PIPE, shell=True)
119 f.writelines(cmd + "\r\n")
127 f.writelines(cmd + "\r\n")
139 for cmd in cmds:
140 result = run_target('java -jar {} {}'.format(jar, cmd))
[all …]
/developtools/integration_verification/DeployDevice/src/func/liteOsUpgrade/
DliteOsUpgrade_L1_shequ_app copy.py273cmd = ".\jre\\bin\java -jar hiburn.jar --erase -n %s -m serial %s -x %s" % (chip_type, deploy_com.…
274 self.eraseDevice(cmd, usb_port)
279cmd = ".\jre\\bin\java -jar hiburn.jar --burn -n %s -m USBBootrom -x %s" % (chip_type, xml_path)
280 logger.info("cmd is: %s" % cmd)
281 ret, outpri = subprocess.getstatusoutput(cmd)
334 cmd = 'toybox ls\r'
335 ret = sendCmd(ser, cmd, READ_MINITIMEOUT)
337 cmd = 'toybox mkdir /sdcard\r'
338 ret = sendCmd(ser, cmd, READ_MINITIMEOUT)
342 cmd = 'toybox mount /dev/mmcblk0p0 /sdcard vfat\r'
[all …]
DliteOsUpgrade_L1_shequ_test_app.py278cmd = ".\jre\\bin\java -jar hiburn.jar --erase -n %s -m serial %s -x %s" % (chip_type, deploy_com.…
279 logger.info("cmd is: %s" % cmd)
280 ret, outpri = subprocess.getstatusoutput(cmd)
289cmd = ".\jre\\bin\java -jar hiburn.jar --burn -n %s -m USBBootrom -x %s" % (chip_type, xml_path)
290 logger.info("cmd is: %s" % cmd)
291 ret, outpri = subprocess.getstatusoutput(cmd)
347 cmd = 'ls\r'
348 ret = sendCmd(ser, cmd, READ_MINITIMEOUT)
350 cmd = 'mkdir /sdcard\r'
351 ret = sendCmd(ser, cmd, READ_MINITIMEOUT)
[all …]
DliteOsUpgrade_linux_app.py274cmd = ".\jre\\bin\java -jar hiburn.jar --erase -n %s -m serial %s -x %s" % (chip_type, deploy_com.…
275 self.eraseDevice(cmd, usb_port)
280cmd = ".\jre\\bin\java -jar hiburn.jar --burn -n %s -m USBBootrom -x %s" % (chip_type, xml_path)
281 logger.info("cmd is: %s" % cmd)
282 ret, outpri = subprocess.getstatusoutput(cmd)
390 cmd = 'ls\r'
391 ret = sendCmd(ser, cmd, READ_MINITIMEOUT)
393 cmd = 'mkdir /sdcard\r'
394 ret = sendCmd(ser, cmd, READ_MINITIMEOUT)
398 cmd = 'mount /dev/mmcblk0p0 /sdcard vfat\r'
[all …]
DliteOsUpgrade_L1_shequ_app.py274cmd = ".\jre\\bin\java -jar hiburn.jar --erase -n %s -m serial %s -x %s" % (chip_type, deploy_com.…
275 self.eraseDevice(cmd, usb_port)
280cmd = ".\jre\\bin\java -jar hiburn.jar --burn -n %s -m USBBootrom -x %s" % (chip_type, xml_path)
281 logger.info("cmd is: %s" % cmd)
282 ret, outpri = subprocess.getstatusoutput(cmd)
390 cmd = 'ls\r'
391 ret = sendCmd(ser, cmd, READ_MINITIMEOUT)
393 cmd = 'mkdir /sdcard\r'
394 ret = sendCmd(ser, cmd, READ_MINITIMEOUT)
398 cmd = 'mount /dev/mmcblk0p0 /sdcard vfat\r'
[all …]
DliteOsUpgrade_L2_app.py266cmd = ".\jre\\bin\java -jar hiburn.jar --erase -n %s -m serial %s -x %s" % (chip_type, deploy_com.…
267 self.eraseDevice(cmd, usb_port)
286cmd = ".\jre\\bin\java -jar hiburn.jar --burn -n %s -m USBBootrom -x %s" % (chip_type, xml_path)
287 logger.info("cmd is: %s" % cmd)
288 ret, outpri = subprocess.getstatusoutput(cmd)
374 cmd = 'hdc_std -t %s shell date -u "%sT%s"'% (sn,y_m_d,h_m_s)
376 logger.printLog('cmd is %s'% cmd)
377 ret,out = subprocess.getstatusoutput(cmd)
385 def eraseDevice(self, cmd, usb_port): argument
393 logger.info("cmd is: %s" % cmd)
[all …]
/developtools/hdc/src/host/
Dclient.cpp73 bool HdcClient::StartKillServer(const char *cmd, bool startOrKill) in StartKillServer() argument
84 if (!strstr(cmd, " -r")) { in StartKillServer()
105 if (!strstr(cmd, " -r")) { in StartKillServer()
292 char *cmd = hChannel->bufStd; in ReadStd() local
296 thisClass->Send(hChannel->channelId, reinterpret_cast<uint8_t *>(cmd), strlen(cmd)); in ReadStd()
429 uint16_t cmd = 0; in ReadChannel() local
432 cmd = *reinterpret_cast<uint16_t *>(buf); in ReadChannel()
433 bOffset = IsOffset(cmd); in ReadChannel()
435 if (cmd == CMD_CHECK_SERVER && isCheckVersionCmd) { in ReadChannel()
447 hTaskInfo->masterSlave = (cmd == CMD_FILE_INIT); in ReadChannel()
[all …]
/developtools/profiler/host/smartperf/ide/src/hdc/common/
DUtils.ts33 public static formatCommand(cmd: string): FormatCommand {
34 let command = cmd;
35 if (cmd.startsWith("hdc_std")) {
37 } else if (cmd.startsWith("hdc")) {
/developtools/profiler/host/smartperf/ide/server/
Dmain.go298 cmd := "cmd"
300 return exec.Command(cmd, args...).Start()
303 var cmd = "open"
305 return exec.Command(cmd, args...).Start()
308 var cmd = "xdg-open"
310 return exec.Command(cmd, args...).Start()
322 cmd := exec.Command(
331 cmd.Stdout = &stdout // 标准输出
332 cmd.Stderr = &stderr // 标准错误
333 err := cmd.Run()
[all …]
/developtools/hdc/src/daemon/
Ddaemon_unity.cpp174 bool HdcDaemonUnity::RebootDevice(const string &cmd) in RebootDevice() argument
177 return SystemDepend::RebootDevice(cmd); in RebootDevice()
180 bool HdcDaemonUnity::SetDeviceRunMode(void *daemonIn, const char *cmd) in SetDeviceRunMode() argument
183 WRITE_LOG(LOG_DEBUG, "Set run mode:%s", cmd); in SetDeviceRunMode()
184 if (!strcmp(CMDSTR_TMODE_USB.c_str(), cmd)) { in SetDeviceRunMode()
186 } else if (!strncmp("port", cmd, strlen("port"))) { in SetDeviceRunMode()
188 if (!strncmp("port ", cmd, strlen("port "))) { in SetDeviceRunMode()
189 const char *port = cmd + 5; in SetDeviceRunMode()
202 inline bool HdcDaemonUnity::GetHiLog(const char *cmd) in GetHiLog() argument
205 if (cmd && !strcmp(const_cast<char *>(cmd), "h")) { in GetHiLog()
Dsystem_depend.cpp82 bool RebootDevice(const string &cmd) in RebootDevice() argument
85 if (cmd != "") { in RebootDevice()
87 reason += cmd; in RebootDevice()
89 WRITE_LOG(LOG_DEBUG, "DoReboot with args:[%s] for cmd:[%s]", reason.c_str(), cmd.c_str()); in RebootDevice()
Ddaemon_unity.h34 bool RebootDevice(const string &cmd);
35 bool SetDeviceRunMode(void *daemonIn, const char *cmd);
36 bool GetHiLog(const char *cmd);
/developtools/profiler/device/plugins/hidump_plugin/test/unittest/
Dhidump_plugin_unittest.cpp129 const char *cmd = ""; variable
130 plugin.SetTestCmd(cmd);
132 EXPECT_STREQ(plugin.GetTestCmd(), cmd);
152 const char *cmd = "GP_daemon_fps 0"; variable
153 plugin.SetTestCmd(cmd);
155 EXPECT_STREQ(plugin.GetTestCmd(), cmd);
221 std::string cmd = "cat " + file; in RecordFileExist() local
222 std::unique_ptr<FILE, int (*)(FILE*)> fp(popen(cmd.c_str(), "r"), pclose); in RecordFileExist()
251 std::string cmd = "echo \"123\" > " + fileName; variable
253 fp = plugin.CustomPopen(cmd.c_str(), "w");
[all …]
/developtools/hiperf/proto/
Dbuild_proto.sh33 cmd="$protoc_cmdline"
34 echo $cmd
35 $cmd
/developtools/integration_verification/tools/rom_ram_analyzer/lite_small/pkgs/
Dbasic_tool.py116 cmd = f"grep -Ern '{pattern}' '{cls.abspath(path)}'"
119 cmd += f" --include='{include}'"
121 cmd += f" --exclude-dir='{e}'"
122 o = cls.execute(cmd)
128 def execute(cls, cmd: str, post_processor: Callable[[Text], Text] = do_nothing) -> Any:
136 output = os.popen(cmd).read()
/developtools/profiler/host/smartperf/ide/src/hdc/
DHdcDeviceManager.ts111 public static async shellResultAsString(cmd: string, isSkipResult: boolean): Promise<string> {
114 await hdcStream.DoCommand(cmd);
142 public static async stopHiprofiler(cmd: string, isSkipResult: boolean): Promise<string> {
145 await hdcStream.DoCommand(cmd);
168 public static async shellResultAsBlob(cmd: string, isSkipResult: boolean): Promise<Blob> {
171 log("cmd is " + cmd);
172 await hdcStream.DoCommand(cmd);

12345