Home
last modified time | relevance | path

Searched refs:_type (Results 1 – 16 of 16) sorted by relevance

/openthread-latest/tests/scripts/thread-cert/
Dtlvs_parsing.py46 self._type = type
49 return UnknownTlv(self._type, data)
57 def _get_factory(self, _type): argument
59 return self._sub_tlvs_factories[_type]
61 logging.error('Could not find TLV factory. Unsupported TLV type: {}'.format(_type))
62 return UnknownTlvFactory(_type)
68 _type = ord(data.read(1))
73 factory = self._get_factory(_type)
Dcommon.py120 def __init__(self, mac_address, _type, big_endian=True): argument
121 if _type == MacAddressType.SHORT:
123 elif _type == MacAddressType.LONG:
130 self._type = _type
134 return self._type
145 if self._type == MacAddressType.SHORT:
147 elif self._type == MacAddressType.LONG:
150 … raise RuntimeError("Could not convert to IID. Invalid MAC address type: {}".format(self._type))
174 …cAddress(mac_address=b'{}', type={})".format(hexlify(self.mac_address), MacAddressType(self._type))
Dcoap.py108 def __init__(self, _type, value): argument
109 self._type = _type
114 return self._type
130 _type = 0
136 _type += option_header.delta
139 option = CoapOption(_type, value)
203 _type, argument
212 self._type = _type
226 return self._type
396 _type = CoapMessageType((initial_byte >> 4) & 0x3)
[all …]
Dtest_ipv6.py126 def __init__(self, header, data, _type): argument
129 self._type = _type
133 return self._type
170 def any_icmp_payload(_type, code, checksum, body): argument
171 return bytearray([_type, code, (checksum >> 8) & 0xff, checksum & 0xff]) + body
293 _type = any_type()
296 while _type <= 1:
297 _type = any_type()
299 return HopByHopOptionHeader(_type, length)
328 def any_upper_layer_payload(data, _type): argument
[all …]
Dmessage.py62 self._type = None
73 self._type = MessageType.MLE
77 self._type = MessageType.COAP
82 self._type = MessageType.DTLS
87 self._type = MessageType.ICMP
109 msg._type = self.type
121 return self._type
125 self._type = value
144 self._type = MessageType.BEACON
147 self._type = MessageType.ACK
[all …]
Dipv6.py567 def __init__(self, _type, code, checksum=0): argument
568 self.type = _type
578 _type = ord(data.read(1))
582 return cls(_type, code, checksum)
764 def __init__(self, _type, length=None): argument
765 self.type = _type
773 _type = ord(data.read(1))
775 return cls(_type, length)
963 def _get_HopByHopOption_value_factory(self, _type): argument
965 return self._options_factories[_type]
[all …]
Dmesh_cop.py884 def __init__(self, _type, tlvs): argument
885 self._type = _type
890 return self._type
919 def _get_tlv_factory(self, _type): argument
921 return self._tlvs_factories[_type]
923 logging.error('Could not find TLV factory. Unsupported TLV type: {}'.format(_type))
924 return UnknownTlvFactory(_type)
927 _type = TlvType(ord(data.read(1)))
930 factory = self._get_tlv_factory(_type)
Dtest_coap.py181 _type = any_coap_option_type()
183 coap_opt = coap.CoapOption(_type, any_value())
189 self.assertEqual(_type, actual_type)
326 _type = any_type()
330 _type,
342 self.assertEqual(_type, actual_type)
Dmle.py1190 def __init__(self, _type, tlvs): argument
1191 self._type = _type
1196 return self._type
1222 def _get_tlv_factory(self, _type): argument
1224 return self._tlvs_factories[_type]
1226 logging.error('Could not find TLV factory. Unsupported TLV type: {}'.format(_type))
1227 return UnknownTlvFactory(_type)
1230 _type = TlvType(ord(data.read(1)))
1234 factory = self._get_tlv_factory(_type)
Dtest_network_data.py80 _type = sub_tlv.stable | ((0 & 0x7F) << 1)
84 _type = sub_tlv.stable | ((2 & 0x7F) << 1)
88 _type = sub_tlv.stable | ((3 & 0x7F) << 1)
93 data += bytearray([_type, len(value)]) + value
108 _type = sub_tlv.stable | ((6 & 0x7F) << 1)
113 data += bytearray([_type, len(value)]) + value
Dtest_network_layer.py77 _type = random.getrandbits(8)
81 return bytearray([_type, length]) + value
Dnetwork_data.py70 _type = (data_byte >> 1) & 0x7F
75 factory = self._get_factory(_type)
/openthread-latest/tools/harness-automation/autothreadharness/
Dpdu_controller_factory.py34 def create_pdu_controller(self, _type): argument
35 if _type == 'NORDIC_BOARD_PDU_CONTOLLER':
37 elif _type == 'APC_PDU_CONTROLLER':
39 elif _type == 'IP_POWER_SOCKET_PDU_CONTROLLER':
41 elif _type == 'MANUAL_PDU_CONTROLLER':
43 elif _type == 'EATON_PDU_CONTROLLER':
Drunner.py161 names = [device for device, _type in settings.GOLDEN_DEVICES if _type == 'OpenThread']
/openthread-latest/tools/tcat_ble_client/tlv/
Dadvertised_tlv.py39 self._type: int = type
47 self._type = (data[0] & 0xf0) >> 4
/openthread-latest/tests/toranj/ncp/
Dwpan.py1064 self._type = ScanResult.TYPE_ENERGY_SCAN
1068 self._type = ScanResult.TYPE_ACTIVE_SCAN
1075 self._type = ScanResult.TYPE_DISCOVERY_SCAN
1088 return self._type