Home
last modified time | relevance | path

Searched refs:HdcCommand (Results 1 – 25 of 30) sorted by relevance

12

/developtools/hdc/hdc_rust/src/daemon/
Dtask.rs48 HdcCommand::ShellInit => { in daemon_shell_task()
53 HdcCommand::KernelEchoRaw, in daemon_shell_task()
57 HdcCommand::UnityExecute => { in daemon_shell_task()
63 HdcCommand::KernelEchoRaw, in daemon_shell_task()
102 command: HdcCommand::KernelChannelClose, in daemon_channel_close()
112 HdcCommand::AppCheck | HdcCommand::AppUninstall => { in daemon_file_task()
127 HdcCommand::AppBegin | HdcCommand::AppData => { in daemon_file_task()
138 HdcCommand::FileCheck | HdcCommand::FileInit => { in daemon_file_task()
155 HdcCommand::ForwardInit | HdcCommand::ForwardCheck => { in daemon_file_task()
169 HdcCommand::ForwardCheckResult in daemon_file_task()
[all …]
Ddaemon_unity.rs20 use hdc::config::{self, HdcCommand};
37 command: HdcCommand::KernelEchoRaw, in echo_client()
236 _command: HdcCommand, in command_dispatch() argument
242 HdcCommand::UnityReboot => { in command_dispatch()
245 HdcCommand::UnityRunmode => { in command_dispatch()
248 HdcCommand::UnityRootrun => { in command_dispatch()
251 HdcCommand::JdwpList => { in command_dispatch()
254 HdcCommand::JdwpTrack => { in command_dispatch()
257 HdcCommand::UnityRemount => { in command_dispatch()
Ddaemon_app.rs21 use hdc::config::HdcCommand;
118 command: HdcCommand::AppBegin, in put_file_begin()
141 command: HdcCommand::AppFinish, in put_app_finish()
254 _command: HdcCommand, in command_dispatch() argument
260 HdcCommand::AppCheck => { in command_dispatch()
267 HdcCommand::AppUninstall => { in command_dispatch()
270 HdcCommand::AppData => { in command_dispatch()
Dmain.rs94 command: config::HdcCommand::KernelChannelClose, in tcp_handle_client()
151 command: config::HdcCommand::KernelChannelClose, in uart_handshake()
215 if message.command == config::HdcCommand::UartFinish { in uart_handle_client()
219 if message.command == config::HdcCommand::KernelHandshake { in uart_handle_client()
281 command: config::HdcCommand::KernelChannelClose, in usb_handle_client()
291 if msg.command == config::HdcCommand::KernelHandshake { in usb_handle_client()
306 command: config::HdcCommand::KernelChannelClose, in usb_handle_client()
Dshell.rs20 use hdc::config::{HdcCommand, SHELL_PROG, SHELL_TEMP};
183 ret_command: HdcCommand, in pty_echo() argument
232 ret_command: HdcCommand, in subprocess_task() argument
281 command: HdcCommand::KernelChannelClose, in subprocess_task()
293 ret_command: HdcCommand, in new() argument
Dauth.rs78 if task_message.command != HdcCommand::KernelHandshake { in handshake_init()
134 command: HdcCommand::KernelHandshake, in handshake_init()
151 command: HdcCommand::KernelHandshake, in make_sign_message()
172 command: HdcCommand::KernelHandshake, in make_ok_message()
302 command: HdcCommand::KernelChannelClose, in handshake_task()
480 command: config::HdcCommand::KernelHandshake, in handshake_fail()
/developtools/hdc/hdc_rust/src/host/
Dparser.rs17 use hdc::config::{self, HdcCommand};
26 pub command: Option<HdcCommand>,
31 static ref CMD_MAP: HashMap<&'static str, HdcCommand> = {
34 map.insert("version", HdcCommand::ClientVersion);
35 map.insert("help", HdcCommand::KernelHelp);
36 map.insert("discover", HdcCommand::KernelTargetDiscover);
37 map.insert("start", HdcCommand::KernelServerStart);
38 map.insert("kill", HdcCommand::KernelServerKill);
39 map.insert("keygen", HdcCommand::ClientKeyGenerate);
40 map.insert("list targets", HdcCommand::KernelTargetList);
[all …]
Dtask.rs20 use hdc::config::{self, HdcCommand};
34 pub command: HdcCommand,
47 HdcCommand::UnityRunmode | HdcCommand::UnityRootrun => { in channel_task_dispatch()
51 HdcCommand::UnityExecute | HdcCommand::ShellInit | HdcCommand::ShellData => { in channel_task_dispatch()
55 HdcCommand::KernelTargetConnect => { in channel_task_dispatch()
59 HdcCommand::KernelTargetList => { in channel_task_dispatch()
63 HdcCommand::KernelChannelClose => { in channel_task_dispatch()
67 HdcCommand::FileInit in channel_task_dispatch()
68 | HdcCommand::FileBegin in channel_task_dispatch()
69 | HdcCommand::FileData in channel_task_dispatch()
[all …]
Dclient.rs19 use hdc::config::{self, HdcCommand};
40 command: HdcCommand,
48 HdcCommand::KernelServerStart => { in run_client_mode()
55 HdcCommand::KernelServerKill => { in run_client_mode()
108 HdcCommand::KernelTargetList in execute_command()
109 | HdcCommand::KernelTargetConnect in execute_command()
110 | HdcCommand::UnityHilog => self.general_task().await, in execute_command()
112 HdcCommand::FileInit | HdcCommand::FileCheck => self.file_send_task().await, in execute_command()
114 HdcCommand::AppInit | HdcCommand::AppUninstall => self.app_install_task().await, in execute_command()
115 HdcCommand::UnityRunmode => self.unity_task().await, in execute_command()
[all …]
Dhost_app.rs20 use hdc::config::HdcCommand;
128 command: HdcCommand::AppCheck, in put_app_check()
149 command: HdcCommand::AppUninstall, in do_app_uninstall()
192 _command: HdcCommand, in command_dispatch() argument
197 HdcCommand::AppInit => { in command_dispatch()
210 HdcCommand::AppBegin => { in command_dispatch()
211 hdctransfer::transfer_begin(&self.transfer, HdcCommand::AppData); in command_dispatch()
213 HdcCommand::AppUninstall => { in command_dispatch()
216 HdcCommand::AppFinish => { in command_dispatch()
Dunittest.rs21 use hdc::config::{self, HdcCommand};
31 command: Some(HdcCommand::FileInit), in if_parse_cmd_param_works()
51 command: Some(HdcCommand::KernelCheckServer), in if_parse_opt_cmd_works()
67 command: Some(HdcCommand::FileInit), in if_parse_opt_cmd_param_works()
Dserver.rs19 use hdc::config::HdcCommand;
129 command: HdcCommand::KernelChannelClose, in handle_client()
155 parsed.command = Some(HdcCommand::ShellData); in handle_client()
159 if parsed.command == Some(HdcCommand::UnityExecute) { in handle_client()
162 parsed.command = Some(HdcCommand::ShellInit); in handle_client()
/developtools/smartperf_host/ide/src/hdc/hdcclient/
DHdcStream.ts19 import { HdcCommand } from './HdcCommand';
41 formatCommand = new FormatCommand(HdcCommand.CMD_SHELL_DATA, cmd, false);
50 case HdcCommand.CMD_SHELL_INIT:
51 case HdcCommand.CMD_SHELL_DATA:
52 case HdcCommand.CMD_UNITY_EXECUTE:
53 case HdcCommand.CMD_UNITY_TERMINATE:
54 case HdcCommand.CMD_UNITY_REMOUNT:
55 case HdcCommand.CMD_UNITY_REBOOT:
56 case HdcCommand.CMD_UNITY_RUNMODE:
57 case HdcCommand.CMD_UNITY_HILOG: {
[all …]
DFormatCommand.ts16 import { HdcCommand } from './HdcCommand';
35 formatCommand.cmdFlag = HdcCommand.CMD_UNITY_EXECUTE;
38 formatCommand.cmdFlag = HdcCommand.CMD_SHELL_INIT;
40 formatCommand.cmdFlag = HdcCommand.CMD_FILE_INIT;
43 formatCommand.cmdFlag = HdcCommand.CMD_FILE_INIT;
DHdcClient.ts17 import { HdcCommand } from './HdcCommand';
68 HdcCommand.CMD_KERNEL_HANDSHAKE,
DHdcCommand.ts16 export enum HdcCommand { enum
/developtools/smartperf_host/ide/src/hdc/
DHdcDeviceManager.ts22 import { HdcCommand } from './hdcclient/HdcCommand';
146 …await hdcStream.DoCommandRemote(new FormatCommand(HdcCommand.CMD_KERNEL_CHANNEL_CLOSE, '0', false)…
157 …await hdcStream.DoCommandRemote(new FormatCommand(HdcCommand.CMD_KERNEL_CHANNEL_CLOSE, '0', false)…
179 …await hdcStream.DoCommandRemote(new FormatCommand(HdcCommand.CMD_KERNEL_CHANNEL_CLOSE, '0', false)…
208 new FormatCommand(HdcCommand.CMD_SHELL_DATA, cmd, false),
221 new FormatCommand(HdcCommand.CMD_SHELL_DATA, cmd, false),
313 if (dataMessage.commandFlag === HdcCommand.CMD_FILE_FINISH) {
314 …await hdcStream.DoCommandRemote(new FormatCommand(HdcCommand.CMD_KERNEL_CHANNEL_CLOSE, '', false));
329 await hdcStream.DoCommandRemote(new FormatCommand(HdcCommand.CMD_FILE_FINISH, '', false));
346 const channelClose = new FormatCommand(HdcCommand.CMD_KERNEL_CHANNEL_CLOSE, '0', false);
/developtools/hdc/hdc_rust/src/common/
Dtaskbase.rs18 use crate::config::HdcCommand;
23 _command: HdcCommand, in command_dispatch() argument
Dhdcfile.rs29 use crate::config::HdcCommand;
246 command: HdcCommand::FileCheck, in put_file_check()
286 command: HdcCommand::FileBegin, in put_file_begin()
341 command: HdcCommand::FileFinish, in do_file_finish()
361 command: HdcCommand::FileFinish, in put_file_finish()
370 _command: HdcCommand, in command_dispatch() argument
375 HdcCommand::FileInit => { in command_dispatch()
388 HdcCommand::FileCheck => { in command_dispatch()
401 HdcCommand::FileBegin => { in command_dispatch()
404 hdctransfer::transfer_begin(&task.transfer, HdcCommand::FileData).await; in command_dispatch()
[all …]
Dforward.rs30 use crate::config::HdcCommand;
86 HdcCommand::ForwardData, in read()
293 command: HdcCommand::ForwardSuccess, in check_command()
381 HdcCommand::ForwardData, in recv_tcp_msg()
409 HdcCommand::ForwardActiveSlave, in on_accept()
450 HdcCommand::ForwardData, in deamon_read_socket_msg()
474 HdcCommand::ForwardFreeContext, in free_context()
608 HdcCommand::ForwardData, in setup_device_point()
682 HdcCommand::ForwardData, in setup_jdwp_point()
713 HdcCommand::ForwardActiveMaster, // 04 in setup_jdwp_point()
[all …]
Dhdctransfer.rs21 use crate::config::HdcCommand;
153 _command_data: HdcCommand, in spawn_handler() argument
229 _command_data: HdcCommand, in read_and_send_data() argument
345 pub async fn transfer_begin(transfer: &HdcTransferBase, _command_data: HdcCommand) { in transfer_begin() argument
366 command: HdcCommand::KernelChannelClose, in transfer_task_finish()
372 pub async fn transfer_file_finish(channel_id: u32, _session_id: u32, comamnd_finish: HdcCommand) { in transfer_file_finish() argument
388 command: HdcCommand::KernelEchoRaw, in echo_client()
/developtools/smartperf_host/ide/src/hdc/message/
DDataMessage.ts21 import { HdcCommand } from '../hdcclient/HdcCommand';
51 if (payloadProtect.commandFlag == HdcCommand.CMD_KERNEL_CHANNEL_CLOSE) {
/developtools/hdc/hdc_rust/src/transfer/
Dbase.rs101 let command = match HdcCommand::try_from(payload_protect.command_flag) { in unpack_task_message_lock()
151 command: HdcCommand::UartFinish, in unpack_task_message_lock()
199 let command = match HdcCommand::try_from(payload_protect.command_flag) { in unpack_task_message()
/developtools/hdc/hdc_rust/src/
Dconfig.rs67 pub command: HdcCommand,
73 pub enum HdcCommand { enum
155 impl TryFrom<u32> for HdcCommand { implementation
/developtools/hdc/src/host/
Dhost_updater.h41 bool CheckCmd(HdcCommand command, uint8_t *payload, int payloadSize, size_t paramCount);

12