/base/web/webview/ |
H A D | copy_files.py | 24 sys.path.append(os.path.join(PROJECT_DIR, 'build')) 25 sys.path.append(os.path.join(PROJECT_DIR, 'build/hb')) 30 INTERFACE_DIR = os.path.join(WORK_SPACE, 'ohos_interface') 31 INTERFACE_INCLUDE_DIR = os.path.join(INTERFACE_DIR, 'include') 32 INTERFACE_OHOS_GLUE_DIR = os.path.join(INTERFACE_DIR, 'ohos_glue') 45 source_files.append(os.path.join(root, name)) 52 src_file = os.path.join(src_dir, item) 53 dst_file = os.path.join(dst_dir, item) 61 nweb_include = os.path.join('ohos_nweb', 'include') 62 include_source_files = copy_files(os.path.join(INTERFACE_INCLUDE_DI [all...] |
/base/security/selinux_adapter/scripts/ |
H A D | build_policy_api.py | 75 folder_list.append(os.path.join(root, dir_i)) 85 path = os.path.join(root, each_file) 122 print("".join([policy_file, " : need an empty line at end\n"])) 128 cmdstr = " ".join(in_cmd) 149 check_policy_cmd = [os.path.join(args.tool_path, "checkpolicy"), 157 return "".join([string, "_", version]) 174 cil_write.write(" ".join(elem_list)) 186 cil_write.write(" ".join(elem_list)) 198 cil_write.write(" ".join(elem_list)) 210 cil_write.write(" ".join(elem_lis [all...] |
H A D | build_contexts.py | 48 cmdstr = " ".join(in_cmd) 68 file_list_path = os.path.join(root, each_file) 75 return " ".join(str(x) for x in policy_file_list) 92 print("".join((contexts_file, " : need an empty line at end \n"))) 96 print("".join((contexts_file, " : must be unix format\n"))) 145 err_msg = "".join(str_seq) 148 err_msg = "".join(str_seq) 150 err_msg = "".join(str_seq) 165 check_cmd = [os.path.join(args.tool_path, "sefcontext_compile"), 230 check_cmd = [os.path.join(arg [all...] |
H A D | build_ignore_cfg.py | 47 path = os.path.join(root_dir, i) 68 err = "".join((ignore_file, " : need an empty line at end ")) 74 err = "".join((ignore_file, " : must be unix format")) 77 err = "".join((ignore_file, " : line must not be only / or /*")) 80 err = "".join((ignore_file, " : line must end with / or /*")) 99 file_list_path = os.path.join(root, each_file) 103 err_str = "\n{}".format("\n".join(err_msg)) 138 line = "".join([line, "\n"]) 152 folder_list.append(os.path.join(root, dir_i)) 157 combined_ignore_cfg = os.path.join(output_pat [all...] |
/base/security/selinux_adapter/scripts/selinux_check/ |
H A D | check_baseline.py | 152 baseline_file_list = [os.path.join(script_path, "config/glb_def.txt")] 160 output_baseline = os.path.join(output_path, domain + BASELINE_SUFFIX) 173 expect_perm = ''.join(['(', ' '.join(set(baseline_map.get(diff, ''))), ')))']) 174 expect = ' '.join(['expect rule: (allow', domain, ' ('.join(diff), expect_perm]) 175 actual_perm = ''.join(['(', ' '.join(set(domain_policy.get(diff, ''))), ')))']) 176 actual = ' '.join(['actual rule: (allow', domain, ' ('.join(dif [all...] |
H A D | selinux_check_main.py | 31 request_args.append(os.path.join(args.output_path, "file_contexts")) 34 request_args.append(os.path.join(args.output_path, "all.cil")) 36 request_args.append(os.path.join(args.output_path, "developer/all.cil")) 41 check_policy_cmd = [os.path.join(args.tool_path, "checkpolicy"), 44 "-o", os.path.join(args.output_path, "all.cil")] 46 check_policy_cmd = [os.path.join(args.tool_path, "checkpolicy"), 49 "-o", os.path.join(args.output_path, "developer/all.cil")] 61 path = os.path.join(args.source_root_dir, i) 87 check_config = read_json_file(os.path.join(input_args.source_root_dir, input_args.selinux_check_config)) 90 script = os.path.join(input_arg [all...] |
/base/update/packaging_tools/test/ |
H A D | create_package_data.py | 95 create_file(os.path.join(package_name_path, "system.img"), get_target_vendor_data())
106 create_file(os.path.join(package_name_path, "vendor.img"), vendor_content)
108 create_file(os.path.join(package_name_path, "updater_binary"), UPDATER_BINARY_DATA)
111 create_file(os.path.join(package_name_path, "uImage"), get_target_vendor_data())
112 create_file(os.path.join(package_name_path, "updater.img"), get_target_vendor_data())
113 create_file(os.path.join(package_name_path, "updater_b.img"), get_target_vendor_data())
114 create_file(os.path.join(package_name_path, "updater_uImage"), get_target_vendor_data())
119 create_file(os.path.join(updater_config_path, "BOARD.list"), BOARD_LIST_DATA)
121 create_file(os.path.join(updater_config_path, "VERSION.mbn"), VERSION_MBN_DATA)
133 create_file(os.path.join(updater_config_pat [all...] |
/base/startup/init/services/etc/appender/ |
H A D | file_appender.py | 47 value = [':'.join(passwd_gid_value), arr[3]] 56 source_dict[key][1] = ','.join(user_value) 68 value = [':'.join(passwd_gid_value), arr[3]] 70 value = [':'.join(passwd_gid_value), " "] 83 value = [':'.join(passwd_gid_value), arr[3]] 85 value = [':'.join(passwd_gid_value), " "] 106 target_f.write(f"{item}:{':'.join(source_dict[item])}\n") 126 sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir,
|
/base/update/packaging_tools/ |
H A D | build_module_img.py | 39 print(" ".join(["pid ", str(res[0]), " ret ", str(res[1]), "\n", 49 run_cmd(" ".join(["img2simg ", device, " ", tmp_device])) 56 size += sum([roundup(os.path.getsize(os.path.join(root, name)), BLOCK_SIZE) for name in files]) 65 run_cmd(" ".join(["resize2fs", "-M", device])) 89 run_cmd(" ".join([hvb_tools, "make_hashtree_footer", "--image", device, 106 env_path = ':'.join(args.build_image_tools_path) 129 mk_configs = " ".join([src_dir, device, MOUNT_POINT, str(fs_size), fs_type_config, 131 res = run_cmd(" ".join([mkfs_tools, mk_configs]))
|
H A D | utils.py | 47 SO_PATH = os.path.join(operation_path, 'lib/libpackage.so')
48 SO_PATH_L1 = os.path.join(operation_path, 'lib/libpackageL1.so')
49 DIFF_EXE_PATH = os.path.join(operation_path, 'lib/diff')
50 E2FSDROID_PATH = os.path.join(operation_path, 'lib/e2fsdroid')
237 os.mkdir(os.path.join(tmp_dir, name))
239 ext_filename = os.path.join(
251 unzip_dir = os.path.join(tmp_dir, tmp_dir_list[0])
283 mbn_path = os.path.join(mbn_dir, soft_version_file)
341 tem_path = os.path.join(OPTIONS_MANAGER.target_package_dir, component.get("#text", None))
398 os.path.join(OPTIONS_MANAGE [all...] |
H A D | unpack_updater_package.py | 160 component_name = ''.join([component_name, '.img']) 162 component_name = ''.join([component_name, '.zip']) 164 image_file_path = os.path.join(self.save_path, component_name) 191 filename = ''.join(['unpack_result_', time.strftime("%H%M%S", time.localtime())]) 192 self.save_path = os.path.join(OPTIONS_MANAGER.target_package, filename)
|
H A D | build_update.py | 157 unpack_package = os.path.join(OPTIONS_MANAGER.update_package, arg)
337 xml_path = os.path.join(OPTIONS_MANAGER.source_package_dir, UPDATER_CONFIG, XML_FILE_PATH)
373 os.path.join(OPTIONS_MANAGER.target_package_config_dir,
392 os.path.join(OPTIONS_MANAGER.target_package_config_dir,
411 os.path.join(target_package, UPDATER_CONFIG)
426 os.path.join(unzip_dir, UPDATER_CONFIG)
459 target_num = ''.join(target_ver.split(' ')[-1].replace('.', ''))
460 source_num = ''.join(source_ver.split(' ')[-1].replace('.', ''))
614 each_src_image_path = os.path.join(source_package_dir, '%s.img' % each_img)
615 each_src_map_path = os.path.join(source_package_di [all...] |
/base/startup/appspawn/test/unittest/app_spawn_standard_test/ |
H A D | app_spawn_command_lexer_test.cpp | 43 static std::string Join(const char *separator, ...) in Join() function in OHOS::AppSpawn::__anon3397::CommandLexerTest 73 std::string command = Join(SPACE_STR, in HWTEST_F() 90 std::string command = Join(SPACE_STR, in HWTEST_F() 106 std::string command = Join(SPACE_STR, in HWTEST_F() 141 std::string command = Join(SPACE_STR, fileName, message, nullptr); in HWTEST_F() 153 std::string command = Join(SPACE_STR, fileName, opt, dirName, nullptr); in HWTEST_F()
|
/base/startup/init/services/etc/passwd_appender/ |
H A D | passwd_appender.py | 48 value = [':'.join(passwd_gid_value), arr[3]] 57 source_dict[key][1] = ','.join(user_value) 69 value = [':'.join(passwd_gid_value), arr[3]] 71 value = [':'.join(passwd_gid_value), " "] 84 value = [':'.join(passwd_gid_value), arr[3]] 86 value = [':'.join(passwd_gid_value), " "] 107 target_f.write(f"{item}:{':'.join(source_dict[item])}\n") 185 sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir,
|
/base/global/i18n_lite/tools/i18n-dat-tool/src/main/python/ohos/global/i18n/ |
H A D | generate_dat.py | 42 resource_str = '_'.join(locale_metas.get(resource_id, [])) 65 with open(os.path.join(path, locales_file_name), 'r', encoding='utf-8') as locale_file: 71 with open(os.path.join(path, resource_item_file_name), 'r', encoding='utf-8') as resource_file: 78 with open(os.path.join(path, resource_name), 'r', encoding='utf-8') as item_file: 179 resource_str = '_'.join(resource_vals) 198 resource_path = os.path.join(os.path.dirname(current_file_path), "..", "..", "..", "..", "resource") 203 save_path = os.path.join(*save_path)
|
/base/update/updater/services/script/ |
H A D | generate_yacc.py | 29 parser_file = os.path.join(yacc_path, "parser.cpp") 30 lexer_file = os.path.join(yacc_path, "lexer.cpp") 31 flexlexer_file = os.path.join(yacc_path, "FlexLexer.h")
|
/base/startup/init/test/moduletest/ |
H A D | syspara_moduleTest.cpp | 147 std::thread(GetAllParameterTestFunc).join(); in HWTEST_F() 157 std::thread(GetUdidTestFunc, udid, UDID_LEN).join(); in HWTEST_F() 171 std::thread(SetParameterTestFunc, key1, value1).join(); in HWTEST_F() 172 std::thread(SetParameterTestFunc, key2, value2).join(); in HWTEST_F() 173 std::thread(SetParameterTestFunc, key3, value3).join(); in HWTEST_F() 315 std::thread(GetParameterTestReInt, key.c_str(), "", retValue, PARAM_VALUE_LEN_MAX).join(); in HWTEST_F() 318 std::thread(GetParameterTestFuncReStr, key, "").join(); in HWTEST_F() 336 std::thread(ParamSetFun, key1, value1).join(); in HWTEST_F() 340 std::thread(ParamSetFun, key2, "*****").join(); in HWTEST_F() 354 std::thread(TestParameterWatchChange).join(); in HWTEST_F() [all...] |
/base/web/webview/ohos_interface/ohos_glue/scripts/ |
H A D | translator.py | 82 dir_path = os.path.join(os.path.join(work_dir, dir_name), 'capi') 96 dir_path = os.path.join(os.path.join(work_dir, dir_name), 'cpptoc') 116 dir_path = os.path.join(os.path.join(work_dir, dir_name), 'ctocpp') 140 include_file_dir = os.path.join(os.path.join(root_dir, dir_name), 'include')
|
H A D | make_cpptoc_header.py | 66 absolute_dir = os.path.join(os.path.join(dir_path, dir_name), 'cpptoc') 67 absolute_path = os.path.join(absolute_dir, file_parser.get_capi_name(class_name, False) + '_cpptoc.h')
|
/base/hiviewdfx/faultloggerd/test/unittest/signal_handler/ |
H A D | signal_handler_test.cpp | 229 std::thread (TestThread, 1, SIGILL).join(); // 1 : first thread in HWTEST_F() 230 std::thread (TestThread, 2, SIGILL).join(); // 2 : second thread in HWTEST_F() 252 std::thread (TestThread, 1, SIGBUS).join(); // 1 : first thread in HWTEST_F() 253 std::thread (TestThread, 2, SIGBUS).join(); // 2 : second thread in HWTEST_F() 275 std::thread (TestThread, 1, SIGSEGV).join(); // 1 : first thread in HWTEST_F() 276 std::thread (TestThread, 2, SIGSEGV).join(); // 2 : second thread in HWTEST_F() 360 thread.join(); in HWTEST_F() 394 thread.join(); in HWTEST_F() 514 thread.join(); in HWTEST_F()
|
/base/hiviewdfx/faultloggerd/test/unittest/process_dump/ |
H A D | lock_parser_test.cpp | 148 t1.join(); in HWTEST_F() 202 t1.join(); in HWTEST_F() 241 t1.join(); in HWTEST_F() 280 t1.join(); in HWTEST_F() 335 t1.join(); in HWTEST_F()
|
/base/security/huks/test/reliability/src/ |
H A D | api_pressure_test.cpp | 931 t.join(); in HWTEST_F() 952 t.join(); in HWTEST_F() 973 t.join(); in HWTEST_F() 994 t.join(); in HWTEST_F() 1027 t.join(); in HWTEST_F() 1057 t.join(); in HWTEST_F() 1078 t.join(); in HWTEST_F() 1108 t.join(); in HWTEST_F() 1138 t.join(); in HWTEST_F() 1159 t.join(); in HWTEST_F() [all...] |
/base/msdp/device_status/libs/src/datahub/ |
H A D | sensor_data_callback.cpp | 42 FI_HILOGE("Thread join failed"); in ~SensorDataCallback() 46 algorithmThread_->join(); in ~SensorDataCallback() 73 FI_HILOGE("Thread join failed"); in Unregister() 80 algorithmThread_->join(); in Unregister()
|
/base/hiviewdfx/faultloggerd/tools/crasher_cpp/faults/ |
H A D | multi_thread_container_access.cpp | 50 th.join();
in MultiThreadVectorAccess() 72 th.join();
in MultiThreadMapAccess() 95 th.join();
in MultiThreadListAccess()
|
/base/powermgr/power_manager/services/native/src/actions/default/suspend/ |
H A D | suspend_controller.cpp | 89 POWER_HILOGD(FEATURE_SUSPEND, "daemon join start"); in Stop() 91 daemon_->join(); in Stop() 92 POWER_HILOGD(FEATURE_SUSPEND, "daemon join end"); in Stop()
|