/foundation/arkui/ace_engine/build/tools/ |
H A D | build_js.py | 16 import os namespace 22 project_path = os.path.abspath(argv[1]) 23 target_out_path = os.path.abspath(argv[2]) 24 nodejs_path = os.path.abspath(argv[3]) 25 js2bundle_path = os.path.abspath(argv[4]) 26 interface_path = os.path.abspath(argv[5]) 27 parse5_path = os.path.abspath(argv[6]) 28 weex_loader_path = os.path.abspath(argv[7]) 30 buildEnv = os.environ 33 interface_target_path = os [all...] |
/foundation/graphic/graphic_2d/utils/build/ |
H A D | copy_arkui_adapters.py | 17 import os namespace 26 sys.stderr.write(os.linesep) 29 source_dir = os.path.realpath(sys.argv[1]) 30 if (not os.path.isdir(source_dir)): 32 sys.stderr.write(os.linesep) 35 dest_dir = os.path.realpath(sys.argv[2]) 36 if (not os.path.isdir(dest_dir)): 38 sys.stderr.write(os.linesep) 41 for item in os.listdir(source_dir): 45 if not os [all...] |
H A D | graphic_2d_ext_exists.py | 16 import os namespace 21 filename = os.path.join(os.path.dirname(os.path.realpath(__file__)), "../../../graphic_2d_ext/ohcore") 22 is_exist = os.path.exists(filename) and os.path.isdir(filename)
|
/foundation/arkui/ace_engine/build/ |
H A D | search.py | 17 import os namespace 24 sys.stderr.write(os.linesep) 25 exit(os.errno.EINVAL) 27 base_dir = os.path.realpath(sys.argv[1]) 28 if (not os.path.isdir(base_dir)): 30 sys.stderr.write(os.linesep) 31 exit(os.errno.EINVAL) 33 for item in os.listdir(base_dir): 34 if not os.path.isdir(os [all...] |
/foundation/multimodalinput/input/util/common/include/ |
H A D | table_dump.h | 58 inline void PrintLine(std::ostream &os, const std::vector<size_t> &widths) in PrintLine() argument 60 os << "+"; in PrintLine() 62 os << std::setw(static_cast<int32_t>(width) + ELEMENT_SPACE_COUNT) << std::left << std::setfill('-') in PrintLine() 65 os << std::setfill(' ') << std::endl; in PrintLine() 68 inline void PrintCentered(std::ostream &os, const std::string &value, size_t width) in PrintCentered() argument 72 os << std::string(padding_left, ' ') << value << std::string(padding_right, ' '); in PrintCentered() 75 inline void PrintHeader(std::ostream &os, const std::vector<size_t> &widths, const std::vector<std::string> &titles) in PrintHeader() argument 77 os << "|"; in PrintHeader() 79 os << " "; in PrintHeader() 80 PrintCentered(os, title in PrintHeader() 86 PrintRow(std::ostream &os, const std::vector<size_t> &widths, const std::vector<std::string> &row) PrintRow() argument 97 DumpFullTable(std::ostream &os, const std::string &tableName, const std::vector<std::string> &titles, const std::vector<std::vector<std::string>> &rows) DumpFullTable() argument [all...] |
/foundation/arkui/ace_engine_lite/frameworks/tools/snapshot/ |
H A D | framework2char.py | 16 import os namespace 21 HMF_ACE_BASE_PATH = os.path.join("..", "..") 22 FRAMEWORK_SNAPSHOT_FILE_PATH = os.path.join( 25 SNAPSHOT_OUTPUT_C_FILE_PATH = os.path.join( 28 FRAMEWORK_JS_FILE_PATH = os.path.join( 31 JS_OUTPUT_C_FILE_PATH = os.path.join( 68 input_flags = os.O_WRONLY | os.O_CREAT 70 with os.fdopen(os [all...] |
/foundation/ability/idl_tool/test/hdi_unittest/hdi_hash_test/ |
H A D | hash_bad_04.py | 19 import os namespace 24 file_path = os.path.join(work_dir, "foo", "v1_0", "IFoo.idl") 25 if not os.path.exists(self.target_dir): 26 os.makedirs(self.target_dir) 28 fail_output = os.path.join(self.target_dir, "fail_output.txt") 29 with os.fdopen(os.open(fail_output, os.O_CREAT | os.O_WRONLY | os [all...] |
H A D | hdi_compile_opt_test_03.py | 19 import os namespace 29 package_path = os.path.join(work_dir, "foo") 30 idl_dir = os.path.join(package_path, "v1_0") 32 output_path = os.path.join(self.working_dir, "hash_out") 33 if not os.path.exists(output_path): 34 os.makedirs(output_path) 35 self.set_output_path(os.path.join(output_path, "hash.txt")) 37 self.set_target_dir(os.path.join(self.working_dir, "hash_target"))
|
H A D | hdi_compile_opt_test_02.py | 19 import os namespace 29 package_path = os.path.join(work_dir, "foo") 30 idl_dir = os.path.join(package_path, "v1_0") 32 output_path = os.path.join(self.working_dir, "hash_out") 33 if not os.path.exists(output_path): 34 os.makedirs(output_path) 35 self.set_output_path(os.path.join(output_path, "hash.txt")) 37 self.set_target_dir(os.path.join(self.working_dir, "hash_target"))
|
H A D | hdi_compile_opt_test_01.py | 19 import os namespace 29 package_path = os.path.join(work_dir, "foo") 30 idl_dir = os.path.join(package_path, "v1_0") 32 output_path = os.path.join(self.working_dir, "hash_out") 33 if not os.path.exists(output_path): 34 os.makedirs(output_path) 35 self.set_output_path(os.path.join(output_path, "hash.txt")) 37 self.set_target_dir(os.path.join(self.working_dir, "hash_target"))
|
/foundation/ability/idl_tool/test/hdi_unittest/hdi_gen_test/ |
H A D | big_d_2000_file_test.py | 19 import os namespace 64 idl_dir = os.path.join(self.get_working_dir(), "foo", "v1_0") 68 foo_file_dst_name = os.path.join(idl_dir, f"IFoo_{loop}.idl") 69 type_file_dst_name = os.path.join(idl_dir, f"Types_{loop}.idl") 70 with os.fdopen(os.open(foo_file_dst_name, os.O_CREAT | os.O_WRONLY, 0o644), 73 with os.fdopen(os [all...] |
/foundation/ability/idl_tool/test/hdi_unittest/hdi_dump_ast_test/ |
H A D | hdi_compile_opt_test_03.py | 19 import os namespace 29 package_path = os.path.join(work_dir, "foo") 30 idl_dir = os.path.join(package_path, "v1_0") 32 output_path = os.path.join(self.working_dir, "dump_ast_out") 33 if not os.path.exists(output_path): 34 os.makedirs(output_path) 35 self.set_output_path(os.path.join(output_path, "dump.txt")) 37 self.set_target_dir(os.path.join(self.working_dir, "dump_ast_target"))
|
H A D | hdi_compile_opt_test_02.py | 19 import os namespace 29 package_path = os.path.join(work_dir, "foo") 30 idl_dir = os.path.join(package_path, "v1_0") 32 output_path = os.path.join(self.working_dir, "dump_ast_out") 33 if not os.path.exists(output_path): 34 os.makedirs(output_path) 35 self.set_output_path(os.path.join(output_path, "dump.txt")) 37 self.set_target_dir(os.path.join(self.working_dir, "dump_ast_target"))
|
H A D | hdi_compile_opt_test_01.py | 19 import os namespace 29 package_path = os.path.join(work_dir, "foo") 30 idl_dir = os.path.join(package_path, "v1_0") 32 output_path = os.path.join(self.working_dir, "dump_ast_out") 33 if not os.path.exists(output_path): 34 os.makedirs(output_path) 35 self.set_output_path(os.path.join(output_path, "dump.txt")) 37 self.set_target_dir(os.path.join(self.working_dir, "dump_ast_target"))
|
/foundation/arkui/ace_engine/test/unittest/scripts/ |
H A D | run.py | 17 import os
namespace 74 for root, _, files in os.walk(tests_path):
77 test_suite_path = os.path.join(root, test_suite_name)
89 for root, _, files in os.walk(test_directory):
91 test_suite_path = os.path.join(root, file)
92 name, ext = os.path.splitext(file)
111 if os.path.exists(xml_file_path):
122 json_file_path = os.path.join(test_directory, "test_result.json")
123 flags = os.O_CREAT | os [all...] |
/foundation/arkui/ace_engine_lite/frameworks/tools/profiler/ |
H A D | js_profiler.py | 19 import os namespace 49 flags = os.O_WRONLY | os.O_CREAT 51 with os.fdopen(os.open(source_file, flags, modes), 'w') as source: 69 flags = os.O_WRONLY | os.O_CREAT | os.O_APPEND 71 with os.fdopen(os [all...] |
/foundation/arkui/ace_engine/test/tools/event_tree_to_graph/src/ |
H A D | pre_process.py | 20 import os namespace 29 if os.path.exists(output_file): 31 os.remove(output_file) 36 flags = os.O_WRONLY | os.O_CREAT 38 with os.fdopen(os.open(output_file, flags, mode), 'w') as outfile:
|
/foundation/ability/idl_tool/test/sa_test/ |
H A D | util.py | 19 import os namespace 93 return os.path.isfile(file_path) 107 items = os.listdir(path) 109 item_path = os.path.join(path, item) 110 if not os.path.isdir(item_path): 121 if os.path.splitext(file)[-1] == ".idl": 127 current_path = os.path.dirname(os.path.abspath(__file__)) 128 relative_path = os.path.join(current_path, get_idl_name()) 129 return os [all...] |
H A D | test_base.py | 19 import os namespace 33 self.idl_file = os.path.join(self.working_dir, "foo", "IFoo.idl") 34 self.output_dir = os.path.join(self.working_dir, "out") 35 self.target_dir = os.path.join(self.working_dir, "target") 46 current_path = os.path.dirname(os.path.abspath(__file__)) 47 return os.path.join(current_path, os.path.splitext(os.path.basename(self._file_name))[0]) 56 self.output_dir = os [all...] |
/foundation/ability/idl_tool/test/hdi_unittest/base/ |
H A D | test_base.py | 19 import os namespace 33 self.idl_dir = os.path.join(self.working_dir, "foo") 34 self.output_dir = os.path.join(self.working_dir, "out") 35 self.target_dir = os.path.join(self.working_dir, "target") 61 current_path = os.path.dirname(os.path.abspath(__file__)) 62 return os.path.realpath(os.path.join(current_path, 63 "..", os.path.splitext(os [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/state_mgmt/ |
H A D | build.py | 16 import os namespace 27 os.chdir(os.path.abspath(argv[1])) 28 if not os.path.exists(os.path.abspath(argv[2])):
|
/foundation/communication/dsoftbus/ |
H A D | config.py | 19 import os namespace 37 if os.path.exists('.config'): 38 os.remove('.config') 51 flags = os.O_WRONLY | os.O_CREAT 53 with os.fdopen(os.open(file_name, flags, modes), 'w')as gni_file
|
/foundation/filemanagement/file_api/interfaces/kits/ts/streamhash/ |
H A D | build_ts_js.py | 16 import os namespace 46 BUILD_PATH = os.path.abspath(os.path.join(os.getcwd(), INPUT_ARGUMENTS.relative_path)) 47 os.chdir(("%s" + INPUT_ARGUMENTS.module_path) % BUILD_PATH) 50 if not os.path.exists(NODE_PATH): 55 if not os.path.exists(INPUT_ARGUMENTS.out_file):
|
/foundation/filemanagement/file_api/interfaces/kits/ts/streamrw/ |
H A D | build_ts_js.py | 16 import os namespace 46 BUILD_PATH = os.path.abspath(os.path.join(os.getcwd(), INPUT_ARGUMENTS.relative_path)) 47 os.chdir(("%s" + INPUT_ARGUMENTS.module_path) % BUILD_PATH) 50 if not os.path.exists(NODE_PATH): 55 if not os.path.exists(INPUT_ARGUMENTS.out_file):
|
/foundation/ability/idl_tool/scripts/ |
H A D | idl.py | 17 import os namespace 43 (path, name) = os.path.split(input_arguments.idl_tool_path) 44 is_exists = os.path.exists(input_arguments.dst_path) 47 os.makedirs(input_arguments.dst_path, 0o750, exist_ok=True) 53 print("idl_gen_interface run os.remove start") 57 for file_name in os.listdir(input_arguments.dst_path): 60 file_path = os.path.join(input_arguments.dst_path, file_name) 61 os.remove(file_path) 62 print("idl_gen_interface run os.remove", i_dst_file) 72 cmd = [os [all...] |