| /developtools/integration_verification/DeployDevice/src/aw/Telnet/ |
| D | TelnetClient.py | 28 self.device = telnetlib.Telnet(self._host, port=self._port, timeout=self.__timeout) 30 def tellogin(self, username, password, endwaittag, timeout): argument 32 rets = self.device.read_until(endwaittag, timeout) 38 rets = self.sendCmdAndCheckResult(username.encode('utf-8'), 'Password:', timeout) 42 rets = self.sendCmdAndCheckResult(password.encode('utf-8'), endwaittag, timeout) 47 def sendCmd(self, send_cmd, endtag, timeout): argument 51 rets = self.device.read_until(endtag.encode('utf-8'), timeout) 57 def sendEnterCmd(self, endtag, timeout): argument 73 def sendCmdAndCheckResult(self, cmd, endtag, timeout): argument 75 rets = self.sendCmd(cmd + '\n'.encode('utf-8'), endtag, timeout) [all …]
|
| /developtools/integration_verification/DeployDevice/resource/common/ |
| D | portalocker.py | 16 def __init__(self, timeout=7200, delay=30): argument 21 self.timeout = timeout 37 if (start_time - mark_file_mtime > self.timeout): 50 if (time.time() - start_time) >= self.timeout:
|
| /developtools/integration_verification/DeployDevice/src/util/ |
| D | file_locker.py | 17 def __init__(self, timeout=7200, delay=3): argument 22 self.timeout = timeout 38 if (start_time - mark_file_mtime > self.timeout): 51 if (time.time() - start_time) >= self.timeout:
|
| /developtools/hdc/src/register/ |
| D | hdc_jdwp.cpp | 151 struct timeval timeout; in Connect() local 152 timeout.tv_sec = 1; in Connect() 153 timeout.tv_usec = 0; in Connect() 154 setsockopt(cfd_, SOL_SOCKET, SO_SNDTIMEO, &timeout, sizeof(timeout)); in Connect() 192 struct timeval timeout; in Read() local 193 timeout.tv_sec = sec; in Read() 194 timeout.tv_usec = 0; in Read() 197 int rc = select(cfd_ + 1, &rset, nullptr, nullptr, &timeout); in Read() 259 constexpr int timeout = 3; in Reconnect() local 262 sleep(timeout); in Reconnect() [all …]
|
| /developtools/profiler/hiebpf/test/unittest/ |
| D | ipc_unix_socket_test.cpp | 69 const uint32_t timeout = 1000; variable 70 ASSERT_TRUE(client.RecvMessage(buf.data(), size, timeout)); 78 ASSERT_TRUE(client.RecvMessage(buf.data(), size, timeout)); 97 const uint32_t timeout = 1000; variable 102 ASSERT_FALSE(client.RecvMessage(buf.data(), size, timeout));
|
| /developtools/hdc/hdc_rust/src/cffi/ |
| D | sys_para.cpp | 28 extern "C" int WaitParameterEx(const char *key, const char *val, int timeout) in WaitParameterEx() argument 30 return WaitParameter(key, val, timeout); in WaitParameterEx()
|
| /developtools/packing_tool/ |
| D | build.py | 55 haptobin_out, haptobin_err = child_haptobin.communicate(timeout=time_out) 75 unpack_out, unpack_err = child_unpack.communicate(timeout=time_out) 85 pack_out, pack_err = child_pack.communicate(timeout=time_out) 95 check_out, check_err = child_check.communicate(timeout=time_out)
|
| /developtools/hdc/hdc_rust/src/daemon/ |
| D | sys_para.rs | 33 timeout: libc::c_int, in WaitParameterEx() 68 pub fn wait_dev_item(key: &str, val: &str, timeout: i32) -> bool { in wait_dev_item() 72 unsafe { WaitParameterEx(ckey.as_ptr(), cval.as_ptr(), timeout) == 0 } in wait_dev_item()
|
| /developtools/integration_verification/DeployDevice/src/func/liteOsUpgrade/ |
| D | liteOsUpgrade_RK3568_app.py | 14 from util.time_info import get_now_time_str_info, get_now_time_info, Timeout, timeout 80 @timeout(3600) 220 @timeout(1000) 248 @timeout(120) 392 @timeout(30) 420 @timeout(180) 449 @timeout(900) 485 @timeout(900) 527 @timeout(1000)
|
| D | liteOsUpgrade_L2_app.py | 12 from util.time_info import get_now_time_str_info, get_now_time_info, Timeout, timeout 78 @timeout(18000) 313 ser = serial.Serial(deploy_com, int(baudrate), timeout=0) 369 @timeout(30) 474 def sendCmd(ser, cmd, timeout): argument 487 time.sleep(timeout) 511 @timeout(10) 524 ser = serial.Serial('com5', 115200, timeout=0)
|
| D | liteOsUpgrade_L3_app.py | 11 from util.time_info import get_now_time_str_info, get_now_time_info, Timeout, timeout 75 @timeout(1800) 206 @timeout(900) 275 @timeout(60*2*3) 290 @timeout(60*2)
|
| D | liteOsUpgrade_L0_app.py | 9 from util.time_info import get_now_time_str_info, get_now_time_info, Timeout, timeout 94 @timeout(1200) 122 @timeout(1800)
|
| D | liteOsUpgrade_L1_shequ_dv_app.py | 11 from util.time_info import get_now_time_str_info, get_now_time_info, Timeout, timeout 73 @timeout(1800) 327 ser = serial.Serial(deploy_com, int(baudrate), timeout=1) 428 def sendCmd(ser, cmd, endtag, timeout): argument 443 if i > timeout: 449 def sendResetCmd(ser, timeout): argument
|
| D | liteOsUpgrade_L1_shequ_test_app.py | 11 from util.time_info import get_now_time_str_info, get_now_time_info, Timeout, timeout 74 @timeout(1800) 307 ser = serial.Serial(deploy_com, int(baudrate), timeout=1) 413 def sendCmd(ser, cmd, timeout): argument 426 time.sleep(timeout)
|
| D | liteOsUpgrade_L1_shequ_app copy.py | 11 from util.time_info import get_now_time_str_info, get_now_time_info, Timeout, timeout 76 @timeout(1800) 300 ser = serial.Serial(deploy_com, int(baudrate), timeout=0) 435 def sendCmd(ser, cmd, timeout): argument 448 time.sleep(timeout)
|
| /developtools/profiler/hiebpf/src/ |
| D | ipc_unix_socket.cpp | 95 const int timeout = 1000; in handleThreadLoop() local 96 int polled = TEMP_FAILURE_RETRY(poll(&pollFd, 1, timeout)); in handleThreadLoop() 176 bool IpcUnixSocketClient::RecvMessage(void *buf, size_t &size, uint32_t timeout) in RecvMessage() argument 181 int polled = poll(&pollFd, 1, timeout); in RecvMessage()
|
| D | bpf_log_reader.cpp | 148 constexpr int timeout {10}; in MoveBPFLog() local 150 int ret = poll(&fds, nfds, timeout); in MoveBPFLog()
|
| /developtools/profiler/device/plugins/ftrace_plugin/src/ |
| D | process_utils.cpp | 96 int PollEvents(int timeout) in PollEvents() 98 int nready = poll(pollSet_.data(), pollSet_.size(), timeout); in PollEvents() 101 PROFILER_LOG_INFO(LOG_CORE, "poll %dms timeout!", timeout); in PollEvents() 184 int timeout = 1000; in ReceiveOutputAndSigchld() local 185 int events = poller.PollEvents(timeout); in ReceiveOutputAndSigchld()
|
| /developtools/hiperf/demo/cpp/ |
| D | hiperf_demo.cpp | 66 const int timeout = 30; in main() local 68 opt.SetTimeStopSec(timeout); in main()
|
| /developtools/integration_verification/DeployDevice/src/core/ |
| D | run.py | 16 from util.time_info import get_now_time_str_info, get_now_time_info, Timeout, timeout 165 @timeout(30)
|
| /developtools/hdc/src/common/ |
| D | file_descriptor.cpp | 98 struct timeval timeout; in FileIOOnThread() local 99 timeout.tv_sec = SECONDS_TIMEOUT; in FileIOOnThread() 100 timeout.tv_usec = 0; in FileIOOnThread() 104 int rc = select(thisClass->fdIO + 1, &rset, nullptr, nullptr, &timeout); in FileIOOnThread()
|
| /developtools/integration_verification/cases/daily/mini_system/ |
| D | L0_mini_system_test.py | 64 def ReadFromComPort(com_port, timeout): argument 69 while (time_end - time_start).seconds < timeout:
|
| /developtools/integration_verification/DeployDevice/src/aw/poweronoff/ |
| D | serial_power_on_off.py | 7 def __init__(self, ip, port, timeout=10, encoding="GBK"): argument 23 self.settimeout(timeout)
|
| /developtools/profiler/hiebpf/include/ |
| D | ipc_unix_socket.h | 69 bool RecvMessage(void *buf, size_t &size, uint32_t timeout);
|
| /developtools/integration_verification/DeployDevice/src/aw/Download/ |
| D | Download.py | 31 from util.time_info import get_now_time_str_info, timeout 101 … --max-download-limit=50M --bt-stop-timeout=120 %s" % (version_path, download_torrent) 445 @timeout(240) 522 res = requests.get(link, headers=heard, stream=True, timeout=240) 528 res = requests.get(link, headers=heard, stream=True, timeout=240)
|