/openthread-latest/tools/otci/otci/ |
D | utils.py | 36 match = expect_line.match(line) is not None 38 match = (line == expect_line) 40 match = any(match_line(line, x) for x in expect_line) 42 return match
|
D | command_handlers.py | 98 assert __PATTERN_LOG_LINE.match('[I] ChannelMonitor: debug log') 99 assert __PATTERN_LOG_LINE.match('[I] Mac-----------: info log') 100 assert __PATTERN_LOG_LINE.match('[N] MeshForwarder-: note log') 101 assert __PATTERN_LOG_LINE.match('[W] Notifier------: warn log') 102 assert __PATTERN_LOG_LINE.match('[C] Mle-----------: critical log') 103 assert __PATTERN_LOG_LINE.match('[-] Settings------: none log') 104 …assert not __PATTERN_LOG_LINE.match('[-] Settings-----: none log') # not enough `-` after module … 224 if not OtCliCommandRunner.__PATTERN_LOG_LINE.match(line):
|
/openthread-latest/third_party/mbedtls/repo/tests/scripts/ |
D | check_names.py | 157 def __init__(self, pattern, match): argument 159 self.match = match 166 .format(self.match.filename, self.match.line_no, self.match.name) 173 self.match.filename, 174 self.match.line_no, 175 self.match.name, 178 ) + "\n" + str(self.match) 189 def __init__(self, match): argument 190 self.match = match 196 .format(self.match.filename, self.match.line_no, self.match.name) [all …]
|
D | generate_test_code.py | 401 if not re.match(CONDITION_REGEX, dependency, re.I): 430 match = re.search(DEPENDENCY_REGEX, line.strip()) 431 if match: 433 dependencies = parse_dependencies(match.group('dependencies')) 457 match = re.search(BEGIN_CASE_REGEX, line) 458 dep_str = match.group('depends_on') 460 match = re.search(DEPENDENCY_REGEX, dep_str) 461 if match: 462 dependencies += parse_dependencies(match.group('dependencies')) 635 match = re.match(TEST_FUNCTION_VALIDATION_REGEX, [all …]
|
D | audit-validity-dates.py | 36 match = re.match(r'^[0-9]+', cryptography.__version__) 37 if match is None or int(match.group(0)) < 35: 328 match = re.search(r'\A\w+(.*:)?\"', line) 329 if match: 358 match = re.match(r'"(?P<data>[0-9a-fA-F]+)"', test_arg) 359 if not match: 361 if not X509Parser.check_hex_string(match.group('data')): 363 audit_data = self.parse_bytes(bytes.fromhex(match.group('data')))
|
D | test_psa_compliance.py | 108 match = test_re.match(line) 109 if match is not None: 110 groupdict = match.groupdict()
|
D | list_internal_identifiers.py | 40 identifiers = ["{}\n".format(match.name) for match in result]
|
D | check_files.py | 76 re.match(self.path_exemptions, self.normalize_path(filepath)): 179 m = re.match(self._shebang_re, first_line) 278 return not self.GOOD_CHARACTERS_RE.match(text) 424 m = self.COPYRIGHT_RE.match(line) 429 m = self.SPDX_RE.match(line) 441 m = self.LICENSE_MENTION_RE.match(line)
|
D | depends.py | 333 if exclude and re.match(exclude, description): 355 if exclude and re.match(exclude, description): 374 m = re.match(r' *MBEDTLS_CIPHER_ID_(\w+),', line) 383 if re.match(regexp, symbol)]
|
/openthread-latest/src/core/thread/ |
D | link_metrics_types.cpp | 132 bool match = false; in IsFrameTypeMatch() local 138 match = mSeriesFlags.IsLinkProbeFlagSet(); in IsFrameTypeMatch() 141 match = mSeriesFlags.IsMacDataFlagSet(); in IsFrameTypeMatch() 144 match = mSeriesFlags.IsMacDataRequestFlagSet(); in IsFrameTypeMatch() 147 match = mSeriesFlags.IsMacAckFlagSet(); in IsFrameTypeMatch() 154 return match; in IsFrameTypeMatch()
|
/openthread-latest/third_party/mbedtls/repo/scripts/ |
D | generate_ssl_debug_helpers.py | 29 def replacer(match): argument 30 if match.lastgroup == 'comment': 32 return match.group() 83 for match in pattern.finditer(source): 85 directive = match.groupdict()['directive'].strip() 86 param = match.groupdict()['param'] 87 start, end = match.span() 150 for match in enum_pattern.finditer(source_code, start, end): 152 span=match.span(), 153 group=match.groupdict())
|
D | generate_errors.pl | 106 foreach my $match (@matches) 108 my ($error_name, $error_code, $description) = @$match;
|
/openthread-latest/tests/unit/ |
D | test_array.cpp | 295 Entry *match; in TestArrayCopyAndFindMatching() local 299 match = array2.FindMatching(entry.mName); in TestArrayCopyAndFindMatching() 300 VerifyOrQuit(match != nullptr); in TestArrayCopyAndFindMatching() 301 VerifyOrQuit(match == &entry); in TestArrayCopyAndFindMatching() 304 match = array2.FindMatching(entry.mYear); in TestArrayCopyAndFindMatching() 305 VerifyOrQuit(match != nullptr); in TestArrayCopyAndFindMatching() 306 VerifyOrQuit(match == &entry); in TestArrayCopyAndFindMatching() 321 Entry *match; in TestArrayCopyAndFindMatching() local 326 match = array2.Find(entryToRemove); in TestArrayCopyAndFindMatching() 327 VerifyOrQuit(match != nullptr); in TestArrayCopyAndFindMatching() [all …]
|
/openthread-latest/tools/harness-automation/cases_R140/ |
D | leader_5_5_1.py | 45 match = re.search(r'(?<=Leader Timeout\[)\d+(?= Seconds\])', body) 46 if match: 47 timeout = int(match.group(0)) / 2
|
/openthread-latest/tools/harness-automation/cases/ |
D | leader_5_5_1.py | 45 match = re.search(r'(?<=Leader Timeout\[)\d+(?= Seconds\])', body) 46 if match: 47 timeout = int(match.group(0)) / 2
|
/openthread-latest/third_party/mbedtls/repo/scripts/mbedtls_dev/ |
D | crypto_knowledge.py | 90 m = re.match(r'(\w+)\s*\((.*)\)\Z', self.name) 100 assert re.match(r'PSA_KEY_TYPE_\w+\Z', self.name) 107 m = re.match(r'PSA_KEY_TYPE_(\w+)', self.name) 308 m = re.match(r'PSA_ALG_(?:' 323 m = re.match(r'PSA_ALG_(?:DETERMINISTIC_)?(\w+)', expr) 328 m = re.match(r'PSA_ALG_KEY_AGREEMENT\s*\(\s*PSA_ALG_(\w+)', expr) 333 if re.match(r'ED[0-9]+PH\Z', head): 381 if re.match(r'.*[0-9]\Z', prefix): 421 m = re.match(r'PSA_ALG_KEY_AGREEMENT\(\w+,\s*(.*)\)\Z', self.expression) 426 if re.match(r'(?:0[Xx])?0+\s*\Z', kdf_alg): [all …]
|
D | c_parsing_helper.py | 42 m = self._DECLARATION_RE.match(self.decl) 117 m = _C_FUNCTION_DECLARATION_RE.match(line) 124 if len(arguments) == 1 and re.match(FunctionInfo.VOID_RE, arguments[0]):
|
D | macro_collector.py | 258 if re.match(r'MAC(?:_|\Z)', name): 260 elif re.match(r'KDF(?:_|\Z)', name): 288 m = re.match(self._define_directive_re, line) 295 if re.match(self._deprecated_definition_re, expansion): 467 m = re.match(self._header_line_re, line) 537 m = re.match(self._test_case_line_re, line)
|
/openthread-latest/tests/scripts/thread-cert/ |
D | test_pbbr_aloc.py | 104 if not re.match(MESH_LOCAL_PREFIX_REGEX_PATTERN, ip): 110 self.assertIsNotNone(re.match(ROUTING_LOCATOR_REGEX_PATTERN, ip), ip)
|
D | node.py | 853 return pattern.match(line) 892 log = self.pexpect.match.group(0) 948 line = self.pexpect.match.group(0).decode('utf8').strip() 1437 m = re.match(r'(\w+)\:[^\d]+(\d+)[^\d]+(\d+)(?:[^\d]+(\d+))?', line) 1471 m = re.match(r'(\w+)\: (\d+)', line) 1556 g = self.pexpect.match.groups() 1669 m = re.match(r'status (\d+), (\d+) failed', lines[0]) 2138 if re.match(config.LINK_LOCAL_REGEX_PATTERN, ip6Addr, re.I): 2146 if ((not re.match(config.LINK_LOCAL_REGEX_PATTERN, ip6Addr, re.I)) and 2147 (not re.match(config.MESH_LOCAL_PREFIX_REGEX_PATTERN, ip6Addr, re.I)) and [all …]
|
/openthread-latest/tools/harness-automation/ |
D | parse_topofile.py | 103 if re.match(r'\s*#.*', line): 106 matched_case = re.match(r'(.*)-(.*)', line, re.M | re.I)
|
/openthread-latest/tests/scripts/thread-cert/border_router/ |
D | test_dnssd_instance_name_with_space.py | 183 def _match_record(self, record, match): argument 186 if record == match: 189 return all(a == b or (callable(b) and b(a)) for a, b in zip(record, match))
|
D | test_dnssd_server.py | 311 def _match_record(self, record, match): argument 314 if record == match: 317 return all(a == b or (callable(b) and b(a)) for a, b in zip(record, match))
|
/openthread-latest/src/core/common/ |
D | string.cpp | 63 MatchType match = kNoMatch; in Match() local 82 match = (*aString == kNullChar) ? kFullMatch : kPrefixMatch; in Match() 85 return match; in Match()
|
/openthread-latest/src/core/net/ |
D | srp_advertising_proxy.cpp | 671 bool match = false; in EntriesMatch() local 677 match = true; in EntriesMatch() 688 match = true; in EntriesMatch() 691 return match; in EntriesMatch() 697 bool match = false; in EntriesMatch() local 703 match = true; in EntriesMatch() 722 match = true; in EntriesMatch() 725 return match; in EntriesMatch()
|