/developtools/integration_verification/tools/fotff/utils/ |
H A D | hdc.go | 12 var hdc string var 15 if hdc, _ = exec.LookPath("hdc"); hdc == "" { 16 hdc, _ = exec.LookPath("hdc_std") 18 if hdc == "" { 19 logrus.Panicf("can not find 'hdc', please install") 32 ExecContext(ctx, hdc, "kill") 34 ExecContext(ctx, hdc, "start") 36 out, err := ExecCombinedOutputContext(ctx, hdc, "lis [all...] |
/developtools/hdc/hdc_rust/src/host/ |
H A D | main.rs | 34 use hdc::common::base; 35 use hdc::common::base::Base; 36 use hdc::config; 56 hdc::error!("panic info: {}", info); in setup_panic_hook() 59 hdc::error!( in setup_panic_hook() 63 hdc::error!("backtrace: \n{}", backtrace); in setup_panic_hook() 90 hdc::debug!("parsed cmd: {:#?}", parsed_cmd); in main() 94 hdc::debug!("There is already a running service, please exit directly"); in main() 101 hdc::debug!("in client mode, cmd: {:#?}, parameter:{:#?}", parsed_cmd.command, parsed_cmd.parameters); in main() 113 hdc in main() [all...] |
H A D | host_app.rs | 15 use hdc::common::base::Base; 16 use hdc::common::filemanager::FileManager; 17 use hdc::common::hdcfile; 18 use hdc::common::hdctransfer::{self, HdcTransferBase}; 19 use hdc::config::HdcCommand; 20 use hdc::config::TaskMessage; 21 use hdc::config::TRANSFER_FUNC_NAME; 22 use hdc::config::{self, INSTALL_TAR_MAX_CNT}; 23 use hdc::serializer::serialize::Serialization; 24 use hdc [all...] |
H A D | auth.rs | 20 use hdc::config; 21 use hdc::config::TaskMessage; 22 use hdc::serializer::native_struct::SessionHandShake; 23 use hdc::serializer::serialize::Serialization; 24 use hdc::transfer; 34 use hdc::common::base::Base; 95 hdc::info!( 116 hdc::error!("update connect status for {} failed", connect_key); 126 hdc::info!("recv handshake: {:#?}", recv); 129 hdc [all...] |
H A D | server.rs | 23 use hdc::config; 24 use hdc::config::HdcCommand; 25 use hdc::host_transfer::host_usb; 26 use hdc::transfer; 27 use hdc::utils; 29 use hdc::utils::hdc_log::*; 89 hdc::info!("start_usb_server sn:{}", sn); 105 hdc::info!("server binds on {saddr}"); 109 hdc::info!("accepted client {addr}"); 117 let output_vec = match utils::execute_cmd("tasklist | findstr hdc" [all...] |
H A D | client.rs | 18 use hdc::common::base; 19 use hdc::common::base::Base; 20 use hdc::config::{self, HdcCommand}; 21 use hdc::transfer; 22 use hdc::utils; 24 use hdc::utils::hdc_log::*; 85 hdc::error!("handshake with server failed: {e:?}"); 117 hdc::debug!("execute command params: {}", &entire_cmd); 177 hdc::debug!("channel send buf: {:#?}", buf); 183 hdc [all...] |
H A D | task.rs | 19 use hdc::common::forward::{self, ForwardTaskMap, HdcForward}; 22 /// use hdc::common::hdcfile::HdcFile; 23 use hdc::common::hdcfile::{self, FileTaskMap, HdcFile}; 24 use hdc::config::{ConnectType, HdcCommand}; 25 use hdc::host_transfer::host_usb; 26 use hdc::transfer; 27 use hdc::transfer::send_channel_data; 28 use hdc::utils; 30 use hdc::utils::hdc_log::*; 52 hdc [all...] |
H A D | parser.rs | 17 use hdc::config::{self, HdcCommand}; 19 use hdc::utils; 153 hdc::info!("parsed parameter is {:?}", parsed.parameters); in exchange_parsed_for_daemon()
|
H A D | tty_utility.rs | 64 None => hdc::info!("current control code is not support now"), in convert_to_control_code() 92 hdc::info!("unicode bytes len is {:?}", len); in unicode_assemble()
|
H A D | logger.rs | 20 use hdc::config; 109 hdc::error!("rename failed, {err}"); in dump_log_file()
|
H A D | unittest.rs | 21 use hdc::config::{self, HdcCommand};
|
/developtools/hdc/hdc_rust/src/daemon/ |
H A D | main.rs | 18 use hdc::common::jdwp::Jdwp; 19 use hdc::common::base::Base; 20 use hdc::config; 21 use hdc::daemon_lib::*; 22 use hdc::utils::hdc_log::*; 23 use hdc::utils; 27 use hdc::daemon_lib::bridge; 28 use hdc::daemon_lib::auth::clear_auth_pub_key_file; 86 hdc::error!("[Fail]tcp daemon failed: {}", e); in main() 92 hdc in main() [all...] |
/developtools/hiperf/script/ |
H A D | hiperf_utils.py | 27 HDC_NAME = "hdc" 34 'path_in_tool': '../platform-tools/hdc', 197 raise Exception("Can't find hdc in PATH environment.") 204 print('run hdc cmd: %s' % hdc_args) 215 print('run hdc cmd: %s [result %s]' % (hdc_args, result)) 221 raise Exception('run "hdc %s" failed' % hdc_args) 228 print('unroot hdc') 270 def __init__(self, device_arch, hdc): 271 self.hdc = hdc [all...] |
H A D | recv_binary_cache.py | 42 self.hdc = HdcInterface() 164 if self.hdc.run_hdc_cmd(['file recv', device_path, host_path]): 169 if (self.hdc.run_hdc_cmd(['shell', 'cp', device_path, 171 self.hdc.run_hdc_cmd(['file recv', 174 self.hdc.run_hdc_cmd(['shell', 'rm', 195 if self.hdc.switch_root(): 196 old_kptr_restrict = os.popen('hdc shell cat /proc/sys/kernel/kptr_restrict').read() 197 self.hdc.run_hdc_cmd(['shell', 199 self.hdc.run_hdc_cmd(['file recv', '/proc/kallsyms', file_path]) 200 self.hdc [all...] |
/developtools/hdc/scripts/ |
H A D | build_standalone_linux_host.sh | 88 g++ ${DEFINES} ${CXXFLAGS} ${INCLUDES} $(find src/common/ src/host/ \( -name "*.cpp" -or -name "*.c" \)) -lusb-1.0 -ldl -lpthread $STATICLIB -o hdc 90 if [ -f hdc ]; then 92 cp hdc $cwddir 102 for name in "developtools/hdc" "third_party/libuv" "third_party/openssl" "third_party/bounds_checking_function" "third_party/lz4"; do
|
/developtools/integration_verification/cases/smoke/basic/screenshot32/new_script/utils/ |
H A D | device.py | 38 shell_cmd = f'hdc -l0 -t {self.sn} shell "{cmd}"' 47 def hdc(self, cmd): member in Device 48 return self._execute_cmd(f'hdc -l0 -t {self.sn} {cmd}') 51 return self._execute_cmd('hdc -v') 54 devices = self._execute_cmd('hdc list targets') 71 return self.hdc(cmd) 82 return self.hdc(cmd) 98 # cmd = 'hdc app uninstall {}'.format(bundle_name) 99 return self.hdc(f'uninstall {bundle_name}') 107 return self.hdc( [all...] |