/openthread-latest/tools/otci/otci/ |
D | command_handlers.py | 46 def execute_command(self, cmd: str, timeout: float) -> List[str]: 55 def execute_platform_command(self, cmd: str, timeout: float) -> List[str]: 84 def shell(self, cmd: str, timeout: float) -> List[str]: 122 def execute_command(self, cmd, timeout=10) -> List[str]: argument 133 self.__expect_line(timeout, cmd) 135 output = self.__expect_line(timeout, 140 def execute_platform_command(self, cmd, timeout=10) -> List[str]: argument 169 …def __expect_line(self, timeout: float, expect_line: Union[str, Pattern], asynchronous=False) -> L… 175 line = self.__pending_lines.get(timeout=timeout) 185 while not done and timeout > 0: [all …]
|
/openthread-latest/tools/harness-thci/ |
D | OpenThread_BR.py | 98 def bash(self, cmd, timeout): argument 103 stdin, stdout, stderr = self.__handle.exec_command(cmd, timeout=timeout) 129 self.__handle = serial.Serial(port, baudrate, timeout=0) 143 line = self.__bashReadLine(timeout=1) 180 def bash(self, cmd, timeout=10): argument 186 self.__bashExpect(cmd, timeout=timeout, endswith=True) 190 deadline = time.time() + timeout 206 def __bashExpect(self, expected, timeout=20, endswith=False): argument 209 deadline = time.time() + timeout 232 def __bashRead(self, timeout=1): argument [all …]
|
D | OpenThread.py | 274 def _beforeRegisterMulticast(self, sAddr, timeout): argument 293 def __executeCommand(self, cmd, timeout=DEFAULT_COMMAND_TIMEOUT): argument 314 t_end = time.time() + timeout 344 def __expect(self, expected, timeout=5, endswith=False): argument 353 deadline = time.time() + timeout 1193 timeout=self.NETWORK_ATTACHMENT_TIMEOUT, 1197 def wait_for_attach_to_the_network(self, expected_role, timeout, raise_assert=False): argument 1200 while time.time() < start_time + timeout: 1207 self, timeout)) 1215 while time.time() < start_time + timeout: [all …]
|
/openthread-latest/tests/scripts/expect/ |
D | posix-ccathreshold.exp | 34 timeout { exit 1 } 44 timeout { exit 1 } 54 timeout { exit 1 } 64 timeout { exit 1 } 70 timeout { exit 1 }
|
D | posix-fem-lnagain.exp | 34 timeout { exit 1 } 44 timeout { exit 1 } 54 timeout { exit 1 }
|
D | _common.exp | 39 set timeout 1 52 timeout { 61 set timeout 10 141 timeout { fail "Timed out" } 269 set timeout 10
|
D | cli-tcp-tls.exp | 109 set timeout 130 165 set timeout 130
|
/openthread-latest/examples/platforms/simulation/ |
D | system.c | 229 struct timeval timeout; in otSysProcessDrivers() local 237 platformAlarmUpdateTimeout(&timeout); in otSysProcessDrivers() 238 platformRadioUpdateFdSet(&read_fds, &write_fds, &timeout, &max_fd); in otSysProcessDrivers() 240 platformTrelUpdateFdSet(&read_fds, &write_fds, &timeout, &max_fd); in otSysProcessDrivers() 250 platformBleUpdateFdSet(&read_fds, &write_fds, &timeout, &max_fd); in otSysProcessDrivers() 255 timeout.tv_sec = 0; in otSysProcessDrivers() 256 timeout.tv_usec = 0; in otSysProcessDrivers() 259 rval = select(max_fd + 1, &read_fds, &write_fds, &error_fds, &timeout); in otSysProcessDrivers()
|
/openthread-latest/third_party/mbedtls/repo/library/ |
D | ssl_cache.c | 28 cache->timeout = MBEDTLS_SSL_CACHE_DEFAULT_TIMEOUT; in mbedtls_ssl_cache_init() 50 if (cache->timeout != 0 && in ssl_cache_find_entry() 51 (int) (t - cur->timestamp) > cache->timeout) { in ssl_cache_find_entry() 170 if (cache->timeout != 0 && in ssl_cache_pick_writing_slot() 171 (int) (t - cur->timestamp) > cache->timeout) { in ssl_cache_pick_writing_slot() 371 void mbedtls_ssl_cache_set_timeout(mbedtls_ssl_cache_context *cache, int timeout) in mbedtls_ssl_cache_set_timeout() argument 373 if (timeout < 0) { in mbedtls_ssl_cache_set_timeout() 374 timeout = 0; in mbedtls_ssl_cache_set_timeout() 377 cache->timeout = timeout; in mbedtls_ssl_cache_set_timeout()
|
D | net_sockets.c | 453 int mbedtls_net_poll(mbedtls_net_context *ctx, uint32_t rw, uint32_t timeout) in mbedtls_net_poll() argument 494 tv.tv_sec = timeout / 1000; in mbedtls_net_poll() 495 tv.tv_usec = (timeout % 1000) * 1000; in mbedtls_net_poll() 499 timeout == (uint32_t) -1 ? NULL : &tv); in mbedtls_net_poll() 582 size_t len, uint32_t timeout) in mbedtls_net_recv_timeout() argument 597 tv.tv_sec = timeout / 1000; in mbedtls_net_recv_timeout() 598 tv.tv_usec = (timeout % 1000) * 1000; in mbedtls_net_recv_timeout() 600 ret = select(fd + 1, &read_fds, NULL, NULL, timeout == 0 ? NULL : &tv); in mbedtls_net_recv_timeout()
|
/openthread-latest/tests/scripts/thread-cert/ |
D | node.py | 187 self.pexpect = pexpect.popen_spawn.PopenSpawn(cmd, timeout=30) 192 timeout = 0.4 193 while timeout > 0: 196 self.pexpect.expect('> ', timeout=0.1) 199 timeout -= 0.1 665 self.pexpect = pexpect.popen_spawn.PopenSpawn(self._cmd_prefix + cmd, timeout=10) 668 timeout = 0.4 669 while timeout > 0: 672 self.pexpect.expect('> ', timeout=0.1) 675 timeout -= 0.1 [all …]
|
D | network_diag.py | 199 def __init__(self, timeout: int, child_id: int, mode: mle.Mode): 200 self._timeout = timeout 205 def timeout(self): member in ChildTableEntry 219 …return (self.timeout == other.timeout and self.child_id == other.child_id and self.mode == other.m… 251 timeout = (timeout_and_id & 0xf800) >> 11 257 children.append(ChildTableEntry(timeout, child_id, mode))
|
D | v1_2_test_enhanced_keep_alive.py | 134 self.assertTrue(self.nodes[SED_1].ping(leader_aloc, timeout=USER_POLL_PERIOD * 2)) 140 self.assertFalse(self.nodes[SED_1].ping(leader_aloc, timeout=USER_POLL_PERIOD * 2)) 159 self.assertTrue(self.nodes[SED_1].ping(leader_aloc, timeout=USER_POLL_PERIOD * 2)) 170 self.assertTrue(self.nodes[SED_1].ping(leader_aloc, timeout=USER_POLL_PERIOD * 2)) 176 self.nodes[SED_1].ping(leader_aloc, timeout=1)
|
/openthread-latest/tools/harness-automation/cases_R140/ |
D | leader_5_5_1.py | 47 timeout = int(match.group(0)) / 2 49 timeout = 10 51 time.sleep(timeout)
|
/openthread-latest/tools/harness-automation/cases/ |
D | leader_5_5_1.py | 47 timeout = int(match.group(0)) / 2 49 timeout = 10 51 time.sleep(timeout)
|
/openthread-latest/third_party/mbedtls/repo/include/mbedtls/ |
D | ssl_cache.h | 69 int MBEDTLS_PRIVATE(timeout); /*!< cache entry timeout */ 150 void mbedtls_ssl_cache_set_timeout(mbedtls_ssl_cache_context *cache, int timeout); 163 return cache->MBEDTLS_PRIVATE(timeout); in mbedtls_ssl_cache_get_timeout()
|
D | net_sockets.h | 186 int mbedtls_net_poll(mbedtls_net_context *ctx, uint32_t rw, uint32_t timeout); 271 uint32_t timeout);
|
/openthread-latest/src/posix/platform/ |
D | hdlc_interface.cpp | 282 struct timeval timeout; in WaitForFrame() local 286 timeout.tv_sec = static_cast<time_t>(aTimeoutUs / OT_US_PER_S); in WaitForFrame() 287 timeout.tv_usec = static_cast<suseconds_t>(aTimeoutUs % OT_US_PER_S); in WaitForFrame() 289 virtualTimeSendSleepEvent(&timeout); in WaitForFrame() 307 timeout.tv_sec = static_cast<time_t>(aTimeoutUs / OT_US_PER_S); in WaitForFrame() 308 timeout.tv_usec = static_cast<suseconds_t>(aTimeoutUs % OT_US_PER_S); in WaitForFrame() 319 rval = select(mSockFd + 1, &read_fds, nullptr, &error_fds, &timeout); in WaitForFrame() 393 struct timeval timeout = {kMaxWaitTime / 1000, (kMaxWaitTime % 1000) * 1000}; in WaitForWritable() local 407 rval = select(mSockFd + 1, nullptr, &writeFds, &errorFds, &timeout); in WaitForWritable() 435 timeout.tv_sec = static_cast<time_t>(remain / OT_US_PER_S); in WaitForWritable() [all …]
|
D | spi_interface.cpp | 616 struct timeval timeout = {kSecPerDay, 0}; in UpdateFdSet() local 625 timeout.tv_sec = 0; in UpdateFdSet() 626 timeout.tv_usec = 0; in UpdateFdSet() 639 timeout.tv_sec = 0; in UpdateFdSet() 640 timeout.tv_usec = 0; in UpdateFdSet() 650 else if (timercmp(&pollingTimeout, &timeout, <)) in UpdateFdSet() 653 timeout = pollingTimeout; in UpdateFdSet() 675 if (timercmp(&timeout, &minTimeout, <)) in UpdateFdSet() 677 timeout = minTimeout; in UpdateFdSet() 707 if (timercmp(&timeout, &context->mTimeout, <)) in UpdateFdSet() [all …]
|
/openthread-latest/tools/tcat_ble_client/ble/ |
D | ble_stream_secure.py | 64 async def do_handshake(self, timeout=30.0): argument 73 while (time() - start) < timeout: 112 async def recv(self, buffersize, timeout=1): argument 113 end_time = asyncio.get_event_loop().time() + timeout 138 res = await self.recv(buffersize=4096, timeout=5)
|
/openthread-latest/src/cli/ |
D | cli_ping.cpp | 130 uint32_t timeout; in Process() local 132 SuccessOrExit(error = ParsePingInterval(aArgs[5], timeout)); in Process() 133 VerifyOrExit(timeout <= NumericLimits<uint16_t>::kMax, error = OT_ERROR_INVALID_ARGS); in Process() 134 config.mTimeout = static_cast<uint16_t>(timeout); in Process()
|
/openthread-latest/tools/harness-simulation/posix/sniffer_sim/ |
D | sniffer_transport.py | 74 def recv(self, bufsize, timeout): argument 146 def recv(self, bufsize, timeout): argument 147 self._socket.settimeout(timeout)
|
/openthread-latest/src/core/backbone_router/ |
D | bbr_manager.cpp | 158 uint32_t timeout; in HandleMulticastListenerRegistration() local 189 …lv = hasCommissionerSessionIdTlv && (Tlv::Find<ThreadTimeoutTlv>(aMessage, timeout) == kErrorNone); in HandleMulticastListenerRegistration() 201 timeout = config.mMlrTimeout; in HandleMulticastListenerRegistration() 205 … VerifyOrExit(timeout < NumericLimits<uint32_t>::kMax, status = ThreadStatusTlv::kMlrNoPersistent); in HandleMulticastListenerRegistration() 207 if (timeout != 0) in HandleMulticastListenerRegistration() 209 uint32_t origTimeout = timeout; in HandleMulticastListenerRegistration() 211 timeout = Min(timeout, kMaxMlrTimeout); in HandleMulticastListenerRegistration() 213 if (timeout != origTimeout) in HandleMulticastListenerRegistration() 215 …Note("MLR.req: MLR timeout is normalized from %lu to %lu", ToUlong(origTimeout), ToUlong(timeout)); in HandleMulticastListenerRegistration() 220 expireTime = TimerMilli::GetNow() + TimeMilli::SecToMsec(timeout); in HandleMulticastListenerRegistration() [all …]
|
/openthread-latest/tools/harness-simulation/harness/Thread_Harness/THCI/ |
D | OpenThread_BR_Sim.py | 87 def bash(self, cmd, timeout): argument 96 timeout=timeout)
|
/openthread-latest/tests/scripts/thread-cert/backbone/ |
D | test_bmlr.py | 121 … self.assertEqual((0, []), self.nodes[COMMISSIONER].register_multicast_listener(MA3, timeout=None)) 124 … timeout=CUSTOM_MLR_TIMEOUT)) 126 … self.assertEqual((0, []), self.nodes[COMMISSIONER].register_multicast_listener(MA5, timeout=0))
|