/openthread-3.4.0/tests/unit/ |
D | test_child.cpp | 53 for (uint8_t index = 0; index < aAddressListLength; index++) in VerifyChildIp6Addresses() local 55 VerifyOrQuit(aChild.HasIp6Address(aAddressList[index])); in VerifyChildIp6Addresses() 64 for (uint8_t index = 0; index < aAddressListLength; index++) in VerifyChildIp6Addresses() local 66 if (address == aAddressList[index]) in VerifyChildIp6Addresses() 69 addressObserved[index] = true; in VerifyChildIp6Addresses() 77 for (uint8_t index = 0; index < aAddressListLength; index++) in VerifyChildIp6Addresses() local 81 …VerifyOrQuit(addressObserved[index], "Child::IterateIp6Addresses() missed an entry from the expect… in VerifyChildIp6Addresses() 83 if (sInstance->Get<Mle::MleRouter>().IsMeshLocalAddress(aAddressList[index])) in VerifyChildIp6Addresses() 86 …VerifyOrQuit(address == aAddressList[index], "GetMeshLocalIp6Address() did not return expected add… in VerifyChildIp6Addresses() 125 for (uint8_t index = 0; index < aAddressListLength; index++) in VerifyChildIp6Addresses() local [all …]
|
D | test_flash.cpp | 94 for (uint16_t index = 0; index < 16; index++) in TestFlash() local 96 uint16_t length = index; in TestFlash() 101 for (uint16_t index = 0; index < 16; index++) in TestFlash() local 103 uint16_t length = index; in TestFlash() 105 SuccessOrQuit(flash.Get(0, index, readBuffer, &length)); in TestFlash() 106 VerifyOrQuit(length == index, "Get() did not return expected length"); in TestFlash() 110 for (uint16_t index = 0; index < 16; index++) in TestFlash() local 120 for (uint16_t index = 0; index < 16; index++) in TestFlash() local 122 uint16_t length = index; in TestFlash() 124 if ((index % 4) == 0) in TestFlash() [all …]
|
D | test_array.cpp | 52 uint8_t index; in TestArray() local 96 for (index = 0; index < len; index++) in TestArray() 98 VerifyOrQuit(array[index] == seed + index + 1); in TestArray() 99 VerifyOrQuit(array.At(index) != nullptr); in TestArray() 100 VerifyOrQuit(*array.At(index) == seed + index + 1); in TestArray() 102 VerifyOrQuit(array.Contains(seed + index + 1)); in TestArray() 103 VerifyOrQuit(array.Find(seed + index + 1) == &array[index]); in TestArray() 109 index = 0; in TestArray() 113 VerifyOrQuit(value == array[index]); in TestArray() 114 index++; in TestArray() [all …]
|
D | test_hmac_sha256.cpp | 92 uint8_t index; in TestSha256() local 113 index = 0; in TestSha256() 118 offsets[index++] = message->GetLength(); in TestSha256() 123 index = 0; in TestSha256() 131 sha256.Update(*message, offsets[index++], static_cast<uint16_t>(strlen(testCase.mData))); in TestSha256() 233 uint8_t index; in TestHmacSha256() local 256 index = 0; in TestHmacSha256() 261 offsets[index++] = message->GetLength(); in TestHmacSha256() 266 index = 0; in TestHmacSha256() 274 hmac.Update(*message, offsets[index++], testCase.mDataLength); in TestHmacSha256()
|
D | test_dns_client.cpp | 371 for (uint16_t index = 0;; index++) in BrowseCallback() local 376 error = response.GetServiceInstance(index, instLabel, sizeof(instLabel)); in BrowseCallback() 380 sBrowseInfo.mNumInstances = index; in BrowseCallback() 386 Log(" %2u) %s", index + 1, instLabel); in BrowseCallback() 441 for (uint8_t index = 0; index < kMaxHostAddresses; index++) in ServiceCallback() local 446 error = response.GetHostAddress(sResolveServiceInfo.mInfo.mHostNameBuffer, index, in ServiceCallback() 447 sResolveServiceInfo.mHostAddresses[index], ttl); in ServiceCallback() 451 sResolveServiceInfo.mNumHostAddresses = index; in ServiceCallback() 461 for (uint8_t index = 0; index < sResolveServiceInfo.mNumHostAddresses; index++) in ServiceCallback() local 463 Log(" %s", sResolveServiceInfo.mHostAddresses[index].ToString().AsCString()); in ServiceCallback() [all …]
|
D | test_child_table.cpp | 180 for (uint16_t index = 0; index < aChildListLength; index++) in VerifyChildTableContent() local 182 if (ChildMatches(*iter.GetChild(), aChildList[index])) in VerifyChildTableContent() 184 childObserved[index] = true; in VerifyChildTableContent() 210 for (uint16_t index = 0; index < aChildListLength; index++) in VerifyChildTableContent() local 212 if (StateMatchesFilter(aChildList[index].mState, filter)) in VerifyChildTableContent() 214 … VerifyOrQuit(childObserved[index], "iterator failed to return an expected entry"); in VerifyChildTableContent() 218 … VerifyOrQuit(!childObserved[index], "iterator returned an extra unexpected entry"); in VerifyChildTableContent()
|
D | test_dns.cpp | 275 for (uint8_t index = 0; test.mLabels[index] != nullptr; index++) in TestDnsName() local 280 printf("Label[%d] = \"%s\"\n", index, label); in TestDnsName() 282 …VerifyOrQuit(strcmp(label, test.mLabels[index]) == 0, "Name::ReadLabel() did not get expected labe… in TestDnsName() 312 for (uint8_t index = 0; test.mLabels[index] != nullptr; index++) in TestDnsName() local 316 strcpy(label, test.mLabels[index]); in TestDnsName() 430 for (uint8_t index = 0; test.mLabels[index] != nullptr; index++) in TestDnsName() local 432 SuccessOrQuit(Dns::Name::AppendLabel(test.mLabels[index], *message)); in TestDnsName() 513 for (uint8_t index = 0; index < kHeaderOffset + kGuardBlockSize; index++) in TestDnsCompressedName() local 515 SuccessOrQuit(message->Append(index)); in TestDnsCompressedName() 525 for (uint8_t index = 0; index < kGuardBlockSize; index++) in TestDnsCompressedName() local [all …]
|
D | test_pool.cpp | 70 uint16_t index; in VerifyEntry() local 76 index = aPool.GetIndexOf(aEntry); in VerifyEntry() 77 VerifyOrQuit(&aPool.GetEntryAt(index) == &aEntry); in VerifyEntry() 78 VerifyOrQuit(&constPool.GetEntryAt(index) == &aEntry); in VerifyEntry()
|
/openthread-3.4.0/src/core/mac/ |
D | mac_frame.cpp | 174 uint8_t index = FindPayloadIndex(); in ValidatePsdu() local 176 VerifyOrExit(index != kInvalidIndex, error = kErrorParse); in ValidatePsdu() 177 VerifyOrExit((index + GetFooterLength()) <= mLength, error = kErrorParse); in ValidatePsdu() 209 uint8_t index; in FindDstPanIdIndex() local 211 VerifyOrExit(IsDstPanIdPresent(), index = kInvalidIndex); in FindDstPanIdIndex() 213 index = kFcfSize + kDsnSize; in FindDstPanIdIndex() 216 return index; in FindDstPanIdIndex() 252 uint8_t index = FindDstPanIdIndex(); in GetDstPanId() local 254 VerifyOrExit(index != kInvalidIndex, error = kErrorParse); in GetDstPanId() 255 aPanId = ReadUint16(&mPsdu[index]); in GetDstPanId() [all …]
|
/openthread-3.4.0/tests/toranj/ncp/ |
D | test-039-address-cache-table-snoop.py | 158 for index in range(NUM_QUERY_ADDRS): 159 verify(cache_table[index].state == wpan.ADDRESS_CACHE_ENTRY_STATE_RETRY_QUERY) 160 verify(cache_table[index].retry_delay == 2 * INITIAL_RETRY_DELAY) 183 for index in range(NUM_QUERY_ADDRS): 184 verify(cache_table[index].state == wpan.ADDRESS_CACHE_ENTRY_STATE_RETRY_QUERY) 185 verify(cache_table[index].timeout == 0) 202 for index in range(NUM_QUERY_ADDRS): 203 verify(cache_table[index].state == wpan.ADDRESS_CACHE_ENTRY_STATE_QUERY) 204 verify(cache_table[index].can_evict() == True) 227 for index in range(NUM_ADDRESSES): [all …]
|
D | test-012-multi-hop-traffic.py | 69 for index in range(NUM_ROUTERS): 93 for index in range(0, NUM_ROUTERS): 94 routers[index].allowlist_node(sed_children[index]) 95 sed_children[index].allowlist_node(routers[index]) 107 for index in range(1, NUM_ROUTERS): 108 routers[index - 1].allowlist_node(routers[index]) 109 routers[index].allowlist_node(routers[index - 1]) 115 for index in range(1, NUM_ROUTERS): 116 routers[index].join_node(routers[index - 1], wpan.JOIN_TYPE_ROUTER) 117 sed_children[index].join_node(routers[index], wpan.JOIN_TYPE_SLEEPY_END_DEVICE) [all …]
|
/openthread-3.4.0/src/ncp/ |
D | changed_props_set.cpp | 111 for (uint8_t index = 0; index < numEntries; index++, entry++) in Add() local 115 if (!IsEntryFiltered(index)) in Add() 117 SetBit(mChangedSet, index); in Add() 133 for (uint8_t index = 0; index < numEntries; index++, entry++) in EnablePropertyFilter() local 139 SetBit(mFilterSet, index); in EnablePropertyFilter() 144 ClearBit(mChangedSet, index); in EnablePropertyFilter() 148 ClearBit(mFilterSet, index); in EnablePropertyFilter() 175 for (uint8_t index = 0; index < numEntries; index++, entry++) in IsPropertyFiltered() local 179 isFiltered = IsEntryFiltered(index); in IsPropertyFiltered()
|
/openthread-3.4.0/tests/scripts/thread-cert/ |
D | test_history_tracker.py | 177 for index in range(num_msgs): 178 self.assertEqual(leader_tx[index]['type'], 'ICMP6(EchoReqst)') 179 self.assertEqual(leader_tx[index]['sec'], 'yes') 180 self.assertEqual(leader_tx[index]['prio'], 'norm') 181 self.assertEqual(leader_tx[index]['tx-success'], 'yes') 182 self.assertEqual(leader_tx[index]['radio'], '15.4') 183 self.assertEqual(int(leader_tx[index]['to'], 16), child_rloc16) 184 self.assertEqual(leader_tx[index]['src'][1:-3], leader_mleid) 185 self.assertEqual(leader_tx[index]['dst'][1:-3], child_mleid) 187 self.assertEqual(child_rx[index]['type'], 'ICMP6(EchoReqst)') [all …]
|
/openthread-3.4.0/src/core/backbone_router/ |
D | multicast_listeners_table.cpp | 186 uint16_t index = aIndex; in SiftHeapElemDown() local 195 uint16_t child = 2 * index + 1; in SiftHeapElemDown() 197 if (child >= mNumValidListeners || child <= index) // child <= index after int overflow in SiftHeapElemDown() 212 mListeners[index] = mListeners[child]; in SiftHeapElemDown() 214 index = child; in SiftHeapElemDown() 217 if (index > aIndex) in SiftHeapElemDown() 219 mListeners[index] = saveElem; in SiftHeapElemDown() 222 return index > aIndex; in SiftHeapElemDown() 227 uint16_t index = aIndex; in SiftHeapElemUp() local 236 uint16_t parent = (index - 1) / 2; in SiftHeapElemUp() [all …]
|
/openthread-3.4.0/src/core/thread/ |
D | neighbor_table.cpp | 184 int16_t index; in GetNextNeighborInfo() local 190 for (index = aIterator;; index++) in GetNextNeighborInfo() 192 Child *child = Get<ChildTable>().GetChildAtIndex(static_cast<uint16_t>(index)); in GetNextNeighborInfo() 203 index++; in GetNextNeighborInfo() 204 aIterator = index; in GetNextNeighborInfo() 214 for (index = -aIterator; index <= Mle::kMaxRouterId; index++) in GetNextNeighborInfo() 216 Router *router = Get<RouterTable>().FindRouterById(static_cast<uint8_t>(index)); in GetNextNeighborInfo() 222 index++; in GetNextNeighborInfo() 223 aIterator = -index; in GetNextNeighborInfo() 228 aIterator = -index; in GetNextNeighborInfo()
|
/openthread-3.4.0/src/cli/ |
D | cli_history.cpp | 105 for (uint16_t index = 0; (numEntries == 0) || (index < numEntries); index++) in Process() local 177 for (uint16_t index = 0; (numEntries == 0) || (index < numEntries); index++) in Process() local 236 for (uint16_t index = 0; (numEntries == 0) || (index < numEntries); index++) in Process() local 301 for (uint16_t index = 0; (numEntries == 0) || (index < numEntries); index++) in Process() local 371 for (uint16_t index = 0; (numEntries == 0) || (index < numEntries); index++) in Process() local 499 for (uint16_t index = 0; (numEntries == 0) || (index < numEntries); index++) in ProcessRxTxHistory() local 553 if (index != 0) in ProcessRxTxHistory() 669 for (uint16_t index = 0; (numEntries == 0) || (index < numEntries); index++) in Process() local 719 for (uint16_t index = 0; (numEntries == 0) || (index < numEntries); index++) in Process() local
|
D | cli_srp_client.cpp | 169 for (uint8_t index = 0; index < hostInfo->mNumAddresses; index++) in Process() local 171 OutputIp6AddressLine(hostInfo->mAddresses[index]); in Process() 392 for (uint16_t index = 0; index + 1 < arrayLength; index++) in ProcessServiceAdd() local 395 subTypeLabels[index] = label; in ProcessServiceAdd() 481 for (uint8_t index = 0; index < aHostInfo.mNumAddresses; index++) in OutputHostInfo() local 483 if (index > 0) in OutputHostInfo() 488 OutputIp6Address(aHostInfo.mAddresses[index]); in OutputHostInfo() 510 for (uint16_t index = 0; aService.mSubTypeLabels[index] != nullptr; index++) in OutputService() local 512 OutputFormat(",%s", aService.mSubTypeLabels[index]); in OutputService()
|
D | cli_output.cpp | 388 for (uint8_t index = 0; index < aNumColumns; index++) in OutputTableHeader() local 390 const char *title = aTitles[index]; in OutputTableHeader() 391 uint8_t width = aWidths[index]; in OutputTableHeader() 417 for (uint8_t index = 0; index < aNumColumns; index++) in OutputTableSeparator() local 421 for (uint8_t width = aWidths[index]; width != 0; width--) in OutputTableSeparator()
|
/openthread-3.4.0/src/core/utils/ |
D | flash.cpp | 121 int index = 0; // This must be initialized to 0. See [Note] in Delete(). in Get() local 136 index = 0; in Get() 139 if (index == aIndex) in Get() 157 index++; in Get() 261 int index = 0; // This must be initialized to 0. See [Note] below. in Delete() local 275 index = 0; in Delete() 278 if ((aIndex == index) || (aIndex == -1)) in Delete() 289 if ((index == 1) && (aIndex == 0)) in Delete() 295 index++; in Delete()
|
/openthread-3.4.0/tests/scripts/thread-cert/pktverify/ |
D | packet_filter.py | 49 self._saved_index = pkts.index 55 self._pkts.index = self._saved_index 72 index=None, argument 81 self._index = index if index is not None else self._start_index 103 def index(self) -> Tuple[int, int]: member in PacketFilter 109 @index.setter 110 def index(self, index: Tuple[int, int]): member in PacketFilter 115 assert isinstance(index, tuple) and len(index) == 2, index 117 self._index = index 194 raise errors.PacketNotFound(self.index, self._stop_index) [all …]
|
/openthread-3.4.0/src/core/net/ |
D | dns_types.cpp | 176 uint16_t index = 0; in AppendMultipleLabels() local 184 ch = index < aLength ? aLabels[index] : static_cast<char>(kNullChar); in AppendMultipleLabels() 188 uint8_t labelLength = static_cast<uint8_t>(index - labelStartIndex); in AppendMultipleLabels() 199 …((ch == kNullChar) || ((index == 0) && (aLabels[1] == kNullChar))) ? kErrorNone : kErrorInvalidArg… in AppendMultipleLabels() 203 VerifyOrExit(index + 1 < kMaxEncodedLength, error = kErrorInvalidArgs); in AppendMultipleLabels() 206 labelStartIndex = index + 1; in AppendMultipleLabels() 209 index++; in AppendMultipleLabels() 928 uint8_t index; in GetNextEntry() local 954 for (index = 0; index < length; index++) in GetNextEntry() 956 if (cur[index] == kKeyValueSeparator) in GetNextEntry() [all …]
|
D | ip6_address.cpp | 550 uint8_t index = 0; in ParseFrom() local 562 colonIndex = index; in ParseFrom() 608 VerifyOrExit(index <= endIndex); in ParseFrom() 614 VerifyOrExit(index < endIndex); in ParseFrom() 615 mFields.m16[index++] = HostSwap16(static_cast<uint16_t>(value)); in ParseFrom() 624 colonIndex = index; in ParseFrom() 630 if (index < endIndex) in ParseFrom() 636 wordsToCopy = index - colonIndex; in ParseFrom() 639 memset(&mFields.m16[colonIndex], 0, (endIndex - index) * sizeof(uint16_t)); in ParseFrom() 681 for (uint8_t index = 0; index < aLength; index++) in AppendHexWords() local [all …]
|
/openthread-3.4.0/src/core/common/ |
D | heap_array.hpp | 527 for (IndexType index = 0; index < mLength; index++) in Allocate() local 529 new (&newArray[index]) Type(static_cast<Type &&>(mArray[index])); in Allocate() 530 mArray[index].~Type(); in Allocate()
|
/openthread-3.4.0/tests/toranj/cli/ |
D | test-012-reset-recovery.py | 74 leader = cli.Node(index=1) 104 router = cli.Node(index=2) 120 leader = cli.Node(index=1) 142 child1 = cli.Node(index=3)
|
/openthread-3.4.0/examples/platforms/simulation/ |
D | flash.c | 87 for (uint8_t index = 0; index < SWAP_NUM; index++) in otPlatFlashInit() local 89 otPlatFlashErase(aInstance, index); in otPlatFlashInit()
|