/openthread-latest/third_party/mbedtls/repo/library/ |
D | debug.c | 36 const char *str) in debug_send_line() argument 45 mbedtls_snprintf(idstr, sizeof(idstr), "%p: %s", (void *) ssl, str); in debug_send_line() 48 ssl->conf->f_dbg(ssl->conf->p_dbg, level, file, line, str); in debug_send_line() 58 char str[DEBUG_BUF_SIZE]; in mbedtls_debug_print_msg() local 71 ret = mbedtls_vsnprintf(str, DEBUG_BUF_SIZE, format, argp); in mbedtls_debug_print_msg() 81 str[ret] = '\n'; in mbedtls_debug_print_msg() 82 str[ret + 1] = '\0'; in mbedtls_debug_print_msg() 84 debug_send_line(ssl, level, file, line, str); in mbedtls_debug_print_msg() 91 char str[DEBUG_BUF_SIZE]; in mbedtls_debug_print_ret() local 109 mbedtls_snprintf(str, sizeof(str), "%s() returned %d (-0x%04x)\n", in mbedtls_debug_print_ret() [all …]
|
/openthread-latest/third_party/mbedtls/repo/scripts/mbedtls_dev/ |
D | bignum_core.py | 40 def __init__(self, input_hex: str, descr: str, count: int) -> None: argument 46 def arguments(self) -> List[str]: 48 str(self.shift_count), 51 def description(self) -> str: 89 def arguments(self) -> List[str]: 91 str(self.int_a) 94 def description(self) -> str: 105 def format_result(self, res: int) -> str: 110 def result(self) -> List[str]: 139 bitsize: int, descr: str, window_size: int) -> None: argument [all …]
|
D | psa_information.py | 45 def psa_want_symbol(name: str) -> str: argument 52 def finish_family_dependency(dep: str, bits: int) -> str: argument 59 return re.sub(r'_FAMILY_(.*)', r'_\1_' + str(bits), dep) 61 def finish_family_dependencies(dependencies: List[str], bits: int) -> List[str]: argument 76 def automatic_dependencies(*expressions: str) -> List[str]: argument 105 description: str argument 106 ) -> List[str]: 121 def read_implemented_dependencies(filename: str) -> FrozenSet[str]: argument 126 def hack_dependencies_not_implemented(dependencies: List[str]) -> None: argument 136 def tweak_key_pair_dependency(dep: str, usage: str): argument [all …]
|
D | c_wrapper_generator.py | 21 def c_declare(prefix: str, name: str, suffix: str) -> str: argument 29 ('argument_names', List[str]), 30 ('guard', Optional[str]), 31 ('wrapper_name', str), 105 def _wrapper_function_name(self, original_name: str) -> str: argument 116 wrapper_name: str) -> str: argument 128 function_name: str, argument 130 arg: ArgumentInfo) -> str: 135 name = 'arg' + str(num) 141 function_name: str, argument [all …]
|
D | ecp.py | 79 def arg_a(self) -> str: 82 def result(self) -> List[str]: 90 def arguments(self)-> List[str]: 156 def arg_a(self) -> str: 161 def result(self) -> List[str]: 169 def arguments(self)-> List[str]: 243 def arg_a(self) -> str: 246 def result(self) -> List[str]: 254 def arguments(self)-> List[str]: 366 def arg_a(self) -> str: [all …]
|
D | macro_collector.py | 14 def __init__(self, filename: str, line_number: Union[int, str]) -> None: argument 40 def __init__(self, filename: str, binary: bool = False) -> None: argument 50 def __iter__(self) -> Iterator[str]: 112 def is_internal_name(self, name: str) -> bool: argument 139 def _format_arguments(name: str, arguments: Iterable[str]) -> str: argument 149 def _argument_split(cls, arguments: str) -> List[str]: argument 152 def distribute_arguments(self, name: str) -> Iterator[str]: argument 183 self, seen: Set[str], name: str argument 184 ) -> Iterator[str]: 191 def generate_expressions(self, names: Iterable[str]) -> Iterator[str]: argument [all …]
|
D | build_tree.py | 12 def looks_like_tf_psa_crypto_root(path: str) -> bool: argument 17 def looks_like_mbedtls_root(path: str) -> bool: argument 22 def looks_like_root(path: str) -> bool: argument 25 def crypto_core_directory(root: Optional[str] = None, relative: Optional[bool] = False) -> str: argument 46 def crypto_library_filename(root: Optional[str] = None) -> str: argument 96 def guess_mbedtls_root(root: Optional[str] = None) -> str: argument 109 def guess_tf_psa_crypto_root(root: Optional[str] = None) -> str: argument
|
D | bignum_common.py | 39 def hex_to_int(val: str) -> int: argument 48 def quote_str(val: str) -> str: argument 78 def hex_digits_max_int(val: str, bits_in_limb: int) -> int: argument 87 def zfill_match(reference: str, target: str) -> str: argument 129 def __init__(self, val_a: str, val_b: str = "0", bits_in_limb: int = 32) -> None: argument 163 def format_arg(self, val: str) -> str: argument 171 def format_result(self, res: int) -> str: 176 def arg_a(self) -> str: 180 def arg_b(self) -> str: 185 def arguments(self) -> List[str]: [all …]
|
D | bignum_mod_raw.py | 28 def arguments(self) -> List[str]: 34 def result(self) -> List[str]: 61 def result(self) -> List[str]: 78 def arguments(self) -> List[str]: 84 def result(self) -> List[str]: 102 def result(self) -> List[str]: 117 def result(self) -> List[str]: 135 def arguments(self) -> List[str]: 140 def description(self) -> str: 147 n: str, a: str) -> Iterator[test_case.TestCase]: argument [all …]
|
D | c_parsing_helper.py | 34 def normalize_type(cls, typ: str) -> str: argument 40 def __init__(self, decl: str) -> None: argument 58 filename: str, argument 60 qualifiers: Iterable[str], argument 61 return_type: str, argument 62 name: str, argument 63 arguments: List[str]) -> None: argument 82 def read_logical_lines(filename: str) -> Iterator[Tuple[int, str]]: argument 113 def read_function_declarations(functions: Dict[str, FunctionInfo], argument 114 filename: str) -> None: argument
|
D | test_case.py | 15 def hex_string(data: bytes) -> str: 28 def __init__(self, description: Optional[str] = None): argument 35 def add_comment(self, *lines: str) -> None: argument 38 def set_description(self, description: str) -> None: argument 41 def set_dependencies(self, dependencies: List[str]) -> None: argument 44 def set_function(self, function: str) -> None: argument 47 def set_arguments(self, arguments: List[str]) -> None: argument 75 def write_data_file(filename: str, argument 77 caller: Optional[str] = None) -> None: argument
|
/openthread-latest/tools/otci/otci/ |
D | otci.py | 61 self.__logger = logging.getLogger(name=str(self)) 67 …def wait(self, duration: float, expect_line: Optional[Union[str, Pattern, Collection[Any]]] = None… argument 96 cmd: str, argument 99 already_is_ok: bool = True) -> List[str]: 110 cmd: str, argument 113 already_is_ok: bool = True) -> List[str]: 139 …def execute_platform_command(self, cmd: str, timeout: float = 10, silent: bool = False) -> List[st… argument 162 def shell(self, cmd: str, timeout: float = 10): argument 177 def set_line_read_callback(self, callback: Optional[Callable[[str], Any]]): argument 242 ip: Union[str, Ip6Addr], argument [all …]
|
D | command_handlers.py | 46 def execute_command(self, cmd: str, timeout: float) -> List[str]: argument 55 def execute_platform_command(self, cmd: str, timeout: float) -> List[str]: argument 67 def wait(self, duration: float) -> List[str]: 75 def set_line_read_callback(self, callback: Optional[Callable[[str], Any]]): argument 84 def shell(self, cmd: str, timeout: float) -> List[str]: argument 122 def execute_command(self, cmd, timeout=10) -> List[str]: 140 def execute_platform_command(self, cmd, timeout=10) -> List[str]: 143 def wait(self, duration: float) -> List[str]: 162 def set_line_read_callback(self, callback: Optional[Callable[[str], Any]]): argument 169 …expect_line(self, timeout: float, expect_line: Union[str, Pattern], asynchronous=False) -> List[st… argument [all …]
|
D | types.py | 63 class DeviceMode(str): 66 def __new__(cls, o: str): argument 67 ins = str.__new__(cls, o) 85 class ThreadState(str): 89 def __new__(cls, o: str): argument 90 ins = str.__new__(cls, o) 102 if isinstance(other, str): 118 if isinstance(other, str): 144 assert str(Ip6Addr('2001:0:0:0:0:0:0:1')) == '2001::1' 147 assert str(Ip6Prefix('2001:0:0:0::/64')) == '2001::/64'
|
/openthread-latest/tools/tcat_ble_client/cli/ |
D | base_commands.py | 47 def get_help_string(self) -> str: 61 def get_log_string(self) -> str: 82 def get_log_string(self) -> str: 85 def get_help_string(self) -> str: 94 def get_log_string(self) -> str: 97 def get_help_string(self) -> str: 108 def get_log_string(self) -> str: 111 def get_help_string(self) -> str: 120 def get_log_string(self) -> str: 123 def get_help_string(self) -> str: [all …]
|
D | dataset_commands.py | 47 def get_help_string(self) -> str: 65 def get_help_string(self) -> str: 76 def get_help_string(self) -> str: 86 def get_help_string(self) -> str: 95 def get_help_string(self) -> str: 104 def get_help_string(self) -> str: 113 def get_help_string(self) -> str: 122 def get_help_string(self) -> str: 131 def get_help_string(self) -> str: 140 def get_help_string(self) -> str: [all …]
|
/openthread-latest/src/posix/platform/ |
D | power.cpp | 52 char *str; in FromString() local 55 VerifyOrExit((str = strtok_r(aString, ",", &psave)) != nullptr, error = OT_ERROR_PARSE); in FromString() 56 SuccessOrExit(error = Utils::CmdLineParser::ParseAsUint8(str, mChannelStart)); in FromString() 58 VerifyOrExit((str = strtok_r(nullptr, ",", &psave)) != nullptr, error = OT_ERROR_PARSE); in FromString() 59 SuccessOrExit(error = Utils::CmdLineParser::ParseAsUint8(str, mChannelEnd)); in FromString() 61 VerifyOrExit((str = strtok_r(nullptr, ",", &psave)) != nullptr, error = OT_ERROR_PARSE); in FromString() 62 SuccessOrExit(error = Utils::CmdLineParser::ParseAsInt16(str, mTargetPower)); in FromString() 101 char *str; in FromString() local 104 VerifyOrExit((str = strtok_r(aString, ",", &pSave)) != nullptr, error = OT_ERROR_PARSE); in FromString() 105 SuccessOrExit(error = Utils::CmdLineParser::ParseAsUint8(str, mChannelStart)); in FromString() [all …]
|
/openthread-latest/tests/unit/ |
D | test_string.cpp | 51 String<kStringSize> str; in TestStringWriter() local 56 VerifyOrQuit(str.GetSize() == kStringSize); in TestStringWriter() 57 VerifyOrQuit(str.GetLength() == 0, "failed for empty string"); in TestStringWriter() 59 VerifyOrQuit(strcmp(str.AsCString(), "") == 0); in TestStringWriter() 61 PrintString("str", str); in TestStringWriter() 67 str.Append("Hi"); in TestStringWriter() 68 VerifyOrQuit(str.GetLength() == 2); in TestStringWriter() 69 VerifyOrQuit(strcmp(str.AsCString(), "Hi") == 0); in TestStringWriter() 70 PrintString("str", str); in TestStringWriter() 72 str.Append("%s%d", "!", 12); in TestStringWriter() [all …]
|
/openthread-latest/third_party/mbedtls/repo/scripts/ |
D | code_size_compare.py | 55 version: str, argument 56 git_rev: str, argument 57 arch: str, argument 58 config: str, argument 59 compiler: str, argument 60 opt_level: str, argument 90 host_arch: str, argument 91 measure_cmd: str, argument 109 record_dir: str, argument 110 comp_dir: str, argument [all …]
|
D | generate_driver_wrappers.py | 40 def render(template_path: str, driver_jsoncontext: list) -> str: argument 51 def generate_driver_wrapper_file(template_dir: str, argument 52 output_dir: str, argument 53 template_file_name: str, argument 84 " for driver " + driver_prefix, str(err)) 86 " for driver " + driver_prefix, str(err), file=sys.stderr) 93 " ".format(driverjson_data, _schema, str(err))) 96 " ".format(driverjson_data, _schema, str(err)), file=sys.stderr) 100 def load_driver(schemas: Dict[str, Any], driver_file: str) -> Any: argument 111 def load_schemas(project_root: str) -> Dict[str, Any]: argument [all …]
|
/openthread-latest/tools/harness-thci/ |
D | OpenThread_WpanCtl.py | 95 ModuleHelper.WriteIntoDebugLogger('initialize() Error: ' + str(e)) 103 ModuleHelper.WriteIntoDebugLogger('delete() Error: ' + str(e)) 221 logging.exception('%s: failed to send command[%s]: %s', self.port, cmd, str(e)) 242 response.append(str(stderr_line.strip())) 251 response.append(str(stdout_line.strip())) 275 ModuleHelper.WriteIntoDebugLogger('sendCommand() Error: ' + str(e)) 287 if isinstance(value, str): 326 ModuleHelper.WriteIntoDebugLogger('setDeviceMode() Error: ' + str(e)) 341 … cmd = self.wpan_cmd_prefix + 'setprop Thread:RouterUpgradeThreshold %s' % str(iThreshold) 344 ModuleHelper.WriteIntoDebugLogger('setRouterUpgradeThreshold() Error: ' + str(e)) [all …]
|
/openthread-latest/tests/scripts/thread-cert/pktverify/ |
D | addrs.py | 40 def __init__(self, addr: Union[str, bytearray, 'Bytes']): argument 57 def __init__(self, addr: Union[str, bytearray, 'Bytes']): argument 74 def __init__(self, addr: Union[str, bytearray, 'Bytes']): argument 75 if isinstance(addr, str): 94 def _expand(addr) -> str: 95 assert isinstance(addr, str) 156 assert a == str(a) 157 assert str(a) == a 168 assert a == str(a) 169 assert str(a) == a [all …]
|
D | bytes.py | 36 def __init__(self, s: Union[str, bytearray, 'Bytes', Any]): argument 37 if isinstance(s, str): 54 def format_compact(self) -> str: 60 def format_octets(self) -> str: 66 def format_hextets(self) -> str: 76 def _parse_compact(s: str) -> bytearray: argument 84 def _parse_octets(s: str) -> bytearray: argument 118 def __eq__(self, other: Union[str, 'Bytes']): argument 136 assert x == str(x), (x, str(x))
|
/openthread-latest/third_party/mbedtls/repo/tests/scripts/ |
D | test_psa_constant_names.py | 26 def gather_inputs(headers: Iterable[str], argument 27 test_suites: Iterable[str], argument 39 def run_c(type_word: str, argument 40 expressions: Iterable[str], argument 41 include_path: Optional[str] = None, argument 42 keep_c: bool = False) -> List[str]: 61 def normalize(expr: str) -> str: argument 73 def is_simplifiable(expr: str) -> bool: argument 85 type_word: str, argument 86 include_path: Optional[str] = None, argument [all …]
|
D | generate_bignum_tests.py | 76 def description_suffix(self) -> str: 81 def description(self) -> str: 100 def value_description(val) -> str: 142 def result(self) -> List[str]: 143 return [str(self._result)] 169 def __init__(self, val_a: str, val_b: str) -> None: argument 173 def description_suffix(self) -> str: 182 def result(self) -> List[str]:
|