/test/xts/acts/kernel_lite/io_posix/src/ |
H A D | IoTestSprintf.cpp | 30 char str[100] = {0};
in HWTEST_F() local 31 int ret = sprintf(str, "%d", -2147483648);
in HWTEST_F() 33 EXPECT_STREQ(str, "-2147483648");
in HWTEST_F() 35 ret = sprintf(str, "%d", 2147483647);
in HWTEST_F() 37 EXPECT_STREQ(str, "2147483647");
in HWTEST_F() 39 ret = sprintf(str, "%i", -2147483648);
in HWTEST_F() 41 EXPECT_STREQ(str, "-2147483648");
in HWTEST_F() 43 ret = sprintf(str, "%i", 2147483647);
in HWTEST_F() 45 EXPECT_STREQ(str, "2147483647");
in HWTEST_F() 47 ret = sprintf(str, " in HWTEST_F() 63 char str[100] = {0}; HWTEST_F() local 96 char str[100] = {0}; HWTEST_F() local 129 char str[100] = {0}; HWTEST_F() local 154 char str[50] = {0}; HWTEST_F() local 171 char str[50] = {0}; HWTEST_F() local 188 char str[50] = {0}; HWTEST_F() local 205 char str[50] = {0}; HWTEST_F() local 250 char str[50] = {0}; HWTEST_F() local 283 char str[50] = {0}; HWTEST_F() local 340 char str[50] = {0}; HWTEST_F() local 373 char str[50] = {0}; HWTEST_F() local 422 char str[50] = {0}; HWTEST_F() local 455 char str[50] = {0}; HWTEST_F() local 504 char str[50] = {0}; HWTEST_F() local 537 char str[50] = {0}; HWTEST_F() local 590 char str[100] = {0}; HWTEST_F() local 643 char str[50] = {0}; HWTEST_F() local 692 char str[50] = {0}; HWTEST_F() local 741 char str[50] = {0}; HWTEST_F() local 790 char str[50] = {0}; HWTEST_F() local 839 char str[50] = {0}; HWTEST_F() local 888 char str[50] = {0}; HWTEST_F() local 937 char str[100] = {0}; HWTEST_F() local 1002 char str[100] = {0}; HWTEST_F() local 1035 char str[100] = {0}; HWTEST_F() local 1056 char str[100] = {0}; HWTEST_F() local [all...] |
H A D | IoTestStdio.cpp | 44 char str[50] = {0}; in HWTEST_F() local 45 char *retS = fgets(str, sizeof(str), fp); in HWTEST_F() 46 EXPECT_STREQ(retS, str); in HWTEST_F() 47 EXPECT_STREQ(str, "hello world"); in HWTEST_F() 126 char str[50] = {0}; in HWTEST_F() local 127 char *retC = fgets(str, sizeof(str), fp); in HWTEST_F() 128 EXPECT_STREQ(retC, str); in HWTEST_F() 149 char str[5 in HWTEST_F() local 170 char str[50] = {0}; HWTEST_F() local 211 char str[50] = {0}; HWTEST_F() local 269 char str[50] = {0}; HWTEST_F() local 349 char str[] = "hello world"; HWTEST_F() local 373 char str[] = "hello world"; HWTEST_F() local 401 char str[50] = {0}; HWTEST_F() local 466 char str[50] = {0}; HWTEST_F() local 485 FormatVsprintf(char *str, char *format, ...) FormatVsprintf() argument 494 FormatVsscanf(const char *str, const char *format, ...) FormatVsscanf() argument 510 char str[50] = {0}; HWTEST_F() local 544 char str[50] = {0}; FormatVsnprintf() local 611 char str[100] = {0}; HWTEST_F() local 683 char str[50] = {0}; HWTEST_F() local [all...] |
H A D | IoTestWchar.cpp | 171 wchar_t str[50] = {0}; in HWTEST_F() local 172 wchar_t *retS = fgetws(str, sizeof(str)/sizeof(str[0]), fp); in HWTEST_F() 173 EXPECT_STREQ(retS, str); in HWTEST_F() 174 EXPECT_STREQ(str, L"hello world"); in HWTEST_F() 344 int FormatVswscanf(const wchar_t *str, const wchar_t *format, ...) in FormatVswscanf() argument 348 int ret = vswscanf(str, format, args); in FormatVswscanf() 357 wchar_t str[50] = {0}; in FormatVswprintf() local 358 int ret = vswprintf(str, sizeo in FormatVswprintf() 376 wchar_t str[] = L"helloworld has 10 words"; HWTEST_F() local 433 wchar_t str[50] = {0}; HWTEST_F() local 459 wchar_t str[50] = {0}; HWTEST_F() local 516 wchar_t str[50] = {0}; HWTEST_F() local 551 wchar_t str[50] = {0}; HWTEST_F() local [all...] |
/test/xts/dcts/common/ |
H A D | shm_utils.cpp | 119 char str[MAX_DATA_LENGTH] = { 0 };
in waitDataWithCode() local 125 if (readDataFromShmNoClear(str) != 0 || strncmp(code, str, CODE_HEAD) != 0) {
in waitDataWithCode() 128 LOG("while: waitDataWithCode 9999 str= %s, i=%d", str, i);
in waitDataWithCode() 132 if (readDataFromShm(str) == 0 && strncmp(code, str, CODE_HEAD) == 0) {
in waitDataWithCode() 133 if (strncpy_s(data, strlen("0") + 1, str + STR_KEY, 1) != EOK) {
in waitDataWithCode() 137 LOG("waitDataWithCode 9999 str= %s", str);
in waitDataWithCode() 153 char* str = (char*)malloc(MAX_DATA_LENGTH); writeCodeDataToShm() local 232 Int2String(int num, char* str) Int2String() argument [all...] |
/device/soc/rockchip/rk3568/hardware/omx_il/osal/ |
H A D | Rockchip_OSAL_Log.c | 52 char str[MPP_LOG_MAX_LEN] = {0}; in _Rockchip_OSAL_Log() local 53 if (vsnprintf_s(str, sizeof(str), sizeof(str), msg, ap) <= 0) { in _Rockchip_OSAL_Log() 62 fwrite(str, strlen(str), 1, fp); in _Rockchip_OSAL_Log() 65 HDF_LOGD("%{public}s %{public}s", tag, str); in _Rockchip_OSAL_Log() 72 fwrite(str, strlen(str), 1, fp); in _Rockchip_OSAL_Log() 75 HDF_LOGD("%{public}s %{public}s", tag, str); in _Rockchip_OSAL_Log() [all...] |
/device/soc/rockchip/rk2206/sdk_liteos/platform/system/ |
H A D | system.c | 68 const char *_parse_integer_fixup_radix(const char *str, unsigned int *base) in _parse_integer_fixup_radix() argument 70 const char *s = str; in _parse_integer_fixup_radix() 89 unsigned int _parse_integer(const char *str, unsigned int base, unsigned long long *p) in _parse_integer() argument 94 const char *s = str; in _parse_integer() 141 char* skip_spaces(const char * str) in skip_spaces() argument 143 const char* str_temp = str; in skip_spaces() 213 const char *str = __s; in pre_vsscanf() local 223 while (*fmt && *str) { in pre_vsscanf() 231 str = skip_spaces(str); in pre_vsscanf() [all...] |
/test/xts/acts/graphic/acts_drawing_native/ |
H A D | DrawingNativeTextBlobTest.cpp | 130 const char *str = "123456"; in HWTEST_F() local 144 byteLength = strlen(str); in HWTEST_F() 146 byteLength = strlen(str) * 2; in HWTEST_F() 148 byteLength = strlen(str) * 4; in HWTEST_F() 150 byteLength = strlen(str) * 16; in HWTEST_F() 152 OH_Drawing_TextBlob *textBlob = OH_Drawing_TextBlobCreateFromText(str, byteLength, font, encode); in HWTEST_F() 170 const char *str = "123456"; in HWTEST_F() local 177 OH_Drawing_TextBlob *textBlob1 = OH_Drawing_TextBlobCreateFromText(nullptr, strlen(str), font, TEXT_ENCODING_UTF8); in HWTEST_F() 181 OH_Drawing_TextBlob *textBlob2 = OH_Drawing_TextBlobCreateFromText(str, 0, font, TEXT_ENCODING_UTF8); in HWTEST_F() 185 OH_Drawing_TextBlob *textBlob3 = OH_Drawing_TextBlobCreateFromText(str, strle in HWTEST_F() 220 const char *str = strs[i % 6]; HWTEST_F() local 240 const char *str = "123456"; HWTEST_F() local 265 const char *str = "123456"; HWTEST_F() local 290 const char *str = "123456"; HWTEST_F() local 340 const char *str = strs[i % 6]; HWTEST_F() local 359 const char *str = "123456"; HWTEST_F() local 384 const char *str = "123456"; HWTEST_F() local 418 const char *str = "123456"; HWTEST_F() local 461 const char *str = strs[i % 6]; HWTEST_F() local 482 const char *str = "123456"; HWTEST_F() local 512 const char *str = "123456"; HWTEST_F() local 540 const char *str = "123456"; HWTEST_F() local 577 const char *str = strs[i % 6]; HWTEST_F() local 605 const char *str = "123456"; HWTEST_F() local 631 const char *str = "123456"; HWTEST_F() local 654 const char *str = "123456"; HWTEST_F() local 684 const char *str = strs[i % 6]; HWTEST_F() local 863 const char *str = "123456"; HWTEST_F() local [all...] |
H A D | DrawingNativeFontTest.cpp | 575 const char *str = "Hello World"; in HWTEST_F() local 583 int count = OH_Drawing_FontCountText(font, str, strlen(str), encode); in HWTEST_F() 616 const char *str = "Hello World"; in HWTEST_F() local 619 OH_Drawing_FontCountText(nullptr, str, strlen(str), TEXT_ENCODING_UTF8); in HWTEST_F() 623 OH_Drawing_FontCountText(font, nullptr, strlen(str), TEXT_ENCODING_UTF8); in HWTEST_F() 648 for (const char *str : strs) { in HWTEST_F() 649 int count = OH_Drawing_FontCountText(font, str, strlen(str), TEXT_ENCODING_UTF in HWTEST_F() 680 const char *str = "Hello World"; HWTEST_F() local 699 const char *str = "Hello World"; HWTEST_F() local 728 const char *str = "Hello World"; HWTEST_F() local 793 const char *str = "Hello World"; HWTEST_F() local 816 const char *str = "Hello World"; HWTEST_F() local 842 const char *str = "Hello World"; HWTEST_F() local 864 const char *str = "Hello World"; HWTEST_F() local 928 const char *str = "Hello World"; HWTEST_F() local 959 const char *str = "Hello World"; HWTEST_F() local 1800 const char *str[] = { HWTEST_F() local [all...] |
/test/xts/acts/global_lite/i18n_lite/resource_parse_load/src/ |
H A D | res_desc_test.cpp | 68 std::string str; in HWTEST_F() local 71 str.assign("abc"); in HWTEST_F() 72 EXPECT_TRUE(!IdItem::IsRef(str, resType, id)); in HWTEST_F() 74 str.assign("$abc"); in HWTEST_F() 75 EXPECT_TRUE(!IdItem::IsRef(str, resType, id)); in HWTEST_F() 77 str.assign("$abc:"); in HWTEST_F() 78 EXPECT_TRUE(!IdItem::IsRef(str, resType, id)); in HWTEST_F() 80 str.assign("$abc:abc"); in HWTEST_F() 81 EXPECT_TRUE(!IdItem::IsRef(str, resType, id)); in HWTEST_F() 83 str in HWTEST_F() [all...] |
/build/ohos/images/mkimage/ |
H A D | mkimages.py | 30 def run_cmd(cmd: str): 38 def build_rootdir(src_dir: str) -> str: 52 def load_config(config_file: str) -> list: 78 print(" ".join(["pid ", str(res[0]), " ret ", str(res[1]), "\n", 80 print("MkImages failed errno: %s" % str(res[1])) 84 def sparse_img2simg(is_sparse: str, device: str): 92 def mk_system_img(mkfs_tools: str, mk_config [all...] |
/build/lite/ |
H A D | gen_module_notice_file.py | 28 def is_top_dir(src_path: str): 32 def find_config_parent_file(src_dir: str, target_cfg: str): 43 def get_notice_file_name(readme_file_path: str, copyright_file: str, 44 module_relative_src_path: str): 74 def get_opensource_config_file(module_source_dir: str, root_out_dir: str, target_cfg: str): 90 def get_notice_file(module_source_dir: str, root_out_di [all...] |
/build/ohos/hisysevent/ |
H A D | gen_def_from_all_yaml.py | 281 def _open_warning_file(output_path: str): 302 def _output_deprecated(output_path: str): 320 def _is_valid_length(content: str, len_min: int, len_max: int) -> bool: 324 def _is_valid_header(content: str) -> bool: 332 def _check_invalid_char(content: str): 339 def _check_domain_duplicate(domain: str) -> bool: 352 if not isinstance(yaml_info["domain"], str): 383 def _check_event_name(domain: str, event_name: str) -> bool: 403 def _check_event_type(event_name: str, event_bas [all...] |
/test/testfwk/xdevice/plugins/devicetest/core/ |
H A D | exception.py | 29 return str(self.error_msg) 38 return str(self.error_msg) 49 return str(self.error_msg) 58 return str(self.error_msg) 67 return str(self.error_msg) 79 return str(self.error_msg) 90 return str(self.error_msg) 101 return str(self.error_msg) 112 return str(self.error_msg) 123 return str(sel [all...] |
/build/scripts/ |
H A D | gen_sdk_build_file.py | 53 def check_header_files(checkfile_dir: str, subsystem_sdk_dir: str, subsystem_name: str, 54 module_name: str, interface_mgr): 61 def get_build_config_from_label(label: str, current_toolchain_dir: str) -> str: 67 def add_dynamic_deps(output: str, build_config: str) -> str [all...] |
H A D | ninja_rules_parser.py | 24 def _read_subninja_build(build_dir: str, subninja_build_file: str): 52 def _parse_target_label(build_label_list: list, toolchain_name: str): 69 def _read_toolchain_ninja(build_dir: str, toolchain_ninja_file: str, toolchain_name: str): 97 def _read_variants_toolchain_info(variants_toolchain_info_file: str): 109 def _read_build_ninja(build_ninja_file: str): 118 def generate_phony_targets(build_dir: str, toolchain_ninja_file: str, platfor [all...] |
/build/ohos/testfwk/ |
H A D | testcase_resource_copy.py | 29 def copy_dir(src: str, dest: str) -> list: 54 def _resources_with_xml_v1(root, testcase_target_name: str, test_resource_path: str, 55 part_build_out_path: str, resource_output_path: str) -> list: 100 def _parse_res_value(value) -> str: 105 def _resources_with_xml_v2(root, testcase_target_name: str, test_resource_path: str, 106 part_build_out_path: str, resource_output_pat [all...] |
/test/ostest/wukong/common/include/ |
H A D | wukong_define.h | 48 #define TRACK_LOG(str) \ 49 WuKongLogger::GetInstance()->Print(LOG_LEVEL_TRACK, "TRK : (%5d) %s : %s", __LINE__, __func__, str) 50 #define DEBUG_LOG(str) \ 51 WuKongLogger::GetInstance()->Print(LOG_LEVEL_DEBUG, "DBG : (%5d) %s : %s", __LINE__, __func__, str) 52 #define INFO_LOG(str) WuKongLogger::GetInstance()->Print(LOG_LEVEL_INFO, "INF : (%5d) %s : %s", __LINE__, __func__, str) 53 #define WARN_LOG(str) WuKongLogger::GetInstance()->Print(LOG_LEVEL_WARN, "WRN : (%5d) %s : %s", __LINE__, __func__, str) 54 #define ERROR_LOG(str) \ 55 WuKongLogger::GetInstance()->Print(LOG_LEVEL_ERROR, "ERR : (%5d) %s : %s", __LINE__, __func__, str) [all...] |
/build/ohos/ndk/ |
H A D | copy_notices_file.py | 22 def create_dest_file(dest_dir: str): 27 def get_file_name(target_name: str, opensource_name: str): 36 def merge_multi_notices(notice_root_dir: str, 37 module_notices: str, 38 target_name: str, 39 opensource_name: str): 53 def copy_notice_file(root_out_dir: str, 54 module_notices: str, 55 target_name: str, [all...] |
/build/tools/component_tools/ |
H A D | generate_kconfig.py | 36 def create_config(name: str, comment: str): 40 def create_property(name: str, comment: str): 44 def create_menu(name: str): 52 def create_feature(name: str): 56 def read_json(file: str): 63 def write_kconfig(result: str, outdir: str): 70 def gen_kconfig(config_path: str, outdi [all...] |
H A D | parse_kconf.py | 35 def read_full_component(path: str): 48 def read_deps_info(path: str): 78 def is_valid_line(line: str): 82 def handle_config_feature(items: dict, arr: list, line: str): 93 def handle_config_component(items: dict, arr: list, line: str): 100 def handle_config_property(items: dict, arr: list, line: str): 106 def read_line_item(line: str): 126 def read(kconf: str): 149 def generate_config_with_full_deps(deps_path: str, base_product_path: str, config_pat [all...] |
/build/hb/exceptions/ |
H A D | ohos_exception.py | 26 def __init__(self, message: str, code: int = 0): 30 def get_solution(self) -> str: 35 return status_file[str(self._code)]['solution'] 37 def get_type(self) -> str: 40 if not self._code in status_file.keys() or 'type' not in status_file[str(self._code)].keys(): 42 return status_file[str(self._code)]['type'] 44 def get_desc(self) -> str: 47 if not self._code in status_file.keys() or 'description' not in status_file[str(self._code)].keys(): 49 return status_file[str(self._code)]['description']
|
/build/ |
H A D | prebuilts_download.py | 34 def _run_cmd(cmd: str): 41 def _check_sha256(check_url: str, local_file: str) -> bool: 52 def _check_sha256_by_mark(args, check_url: str, code_dir: str, unzip_dir: str, unzip_filename: str) -> bool: 62 def _obtain_sha256_by_sha_sums256(check_url: str) -> str: 75 def _config_parse(config: dict, tool_repo: str, glibc_versio [all...] |
/build/ohos/sdk/ |
H A D | parse_public_sdk.py | 40 def copy_sdk_interface(source_root: str): 48 def replace_sdk_api_dir(source_root: str): 56 def replace_sdk_kits_dir(source_root: str): 64 def replace_sdk_arkts_dir(source_root: str): 72 def remove_system_api_method(source_root: str, nodejs: str): 83 def regenerate_sdk_description_file(source_root: str, sdk_description_file: str, output_pub_sdk_desc_file: str): 87 label = str(inf [all...] |
/build/lite/testfwk/ |
H A D | lite_testcase_resource_copy.py | 28 def copy_dir(src: str, dest: str): 50 def _resources_with_xml_v1(root, testcase_target_name: str, test_resource_path: str, 51 part_build_out_path: str, resource_output_path: str): 96 def _parse_res_value(value: str): 101 def _resources_with_xml_v2(root, testcase_target_name: str, test_resource_path: str, 102 part_build_out_path: str, resource_output_pat [all...] |
/build/ohos/packages/ |
H A D | resources_collect.py | 27 def get_src_parts(system_install_info_file: str): 42 def _collect_testcase(resources_dir: str, parts_info: dict, output_base_dir: str): 63 def collect_testcase(resources_dir_list: list, parts_info: dict, output_base_dir: str): 68 def _collect_test_mlf(resources_dir: str, parts_info: dict, output_base_dir: str): 89 def collect_test_mlf(resources_dir_list: list, parts_info: dict, output_base_dir: str): 94 def _collect_libs_symbols(resources_dir: str, parts_info: dict, package_output_base_dir: str): 120 def collect_libs_symbols(resources_dir_list: list, parts_info: dict, output_base_dir: str) [all...] |