Searched refs:timestamp_seconds (Results 1 – 2 of 2) sorted by relevance
/openthread-3.4.0/tests/scripts/thread-cert/ |
D | mle.py | 936 def __init__(self, timestamp_seconds, timestamp_ticks, u): argument 937 self._timestamp_seconds = timestamp_seconds 942 def timestamp_seconds(self): member in ActiveTimestamp 956 …return (self.timestamp_seconds == other.timestamp_seconds and self.timestamp_ticks == other.timest… 961 self.timestamp_seconds, self.timestamp_ticks, self.u) 970 timestamp_seconds = struct.unpack(">Q", bytes(seconds))[0] 973 return ActiveTimestamp(timestamp_seconds, timestamp_ticks, u) 978 def __init__(self, timestamp_seconds, timestamp_ticks, u): argument 979 self._timestamp_seconds = timestamp_seconds 984 def timestamp_seconds(self): member in PendingTimestamp [all …]
|
D | test_mle.py | 1548 timestamp_seconds = any_timestamp_seconds() 1550 … active_timestamp_obj = mle.ActiveTimestamp(timestamp_seconds, any_timestamp_ticks(), any_u()) 1553 actual_timestamp_seconds = active_timestamp_obj.timestamp_seconds 1556 self.assertEqual(timestamp_seconds, actual_timestamp_seconds) 1587 timestamp_seconds = any_timestamp_seconds() 1593 … data = struct.pack(">Q", timestamp_seconds)[2:] + struct.pack(">H", (timestamp_ticks << 1) | u) 1600 self.assertEqual(timestamp_seconds, active_timestamp.timestamp_seconds) 1609 timestamp_seconds = any_timestamp_seconds() 1611 … pending_timestamp_obj = mle.PendingTimestamp(timestamp_seconds, any_timestamp_ticks(), any_u()) 1614 actual_timestamp_seconds = pending_timestamp_obj.timestamp_seconds [all …]
|