Home
last modified time | relevance | path

Searched full:path (Results 1 – 25 of 275) sorted by relevance

1234567891011

/arkcompiler/ets_frontend/legacy_bin/api8/
Dmanifest_tag.xml7 …<project name="ability_ability_lite" path="foundation/aafwk/aafwk_lite" revision="a68d6d7043d8455c…
8 …<project name="ability_ability_runtime" path="foundation/aafwk/standard" revision="2d1fae94bc520c9…
9 …<project name="accessibility" path="base/accessibility" revision="8b7e96589b672c590a65b9ec58241ec0…
10 …<project name="account_os_account" path="base/account/os_account" revision="3fd5f525cdcdaab2b92872…
11 …<project name="ai_engine" path="foundation/ai/engine" revision="ea2bf753964f265c2875d06e17b46544a9…
12 …<project name="applications_admin_provisioning" path="applications/standard/admin_provisioning" re…
13 …<project name="applications_call" path="applications/standard/call" revision="19077cc0474000320fe7…
14 …<project name="applications_camera" path="applications/standard/camera" revision="d14dd4df946144e7…
15 …<project name="applications_camera_sample_communication" path="applications/sample/camera/communic…
16 …<project name="applications_camera_screensaver_app" path="applications/sample/camera/screensaver" …
[all …]
/arkcompiler/ets_frontend/testTs/
Dutils.py34 def mk_dir(path): argument
35 if not os.path.exists(path):
36 os.makedirs(path)
39 def remove_dir(path): argument
40 if os.path.exists(path):
41 shutil.rmtree(path)
44 def remove_file(path): argument
45 if os.path.exists(path):
46 os.remove(path)
49 def clean_file(path): argument
[all …]
Dconfig.py26 EXPECT_DIR = os.path.join("testTs", "expect")
27 OUT_DIR = os.path.join("out")
28 OUT_TEST_DIR = os.path.join("out", "testTs")
29 OUT_RESULT_FILE = os.path.join("out", "testTs", "result.txt")
30 TEST_DIR = os.path.join("testTs")
31 TS_CASES_DIR = os.path.join(".", "testTs", "test")
32 SKIP_FILE_PATH = os.path.join("testTs", "skip_tests.json")
33 CUR_FILE_DIR = os.path.dirname(__file__)
34 IMPORT_FILE_PATH = os.path.join(CUR_FILE_DIR, "import_tests.json")
35 CODE_ROOT = os.path.abspath(os.path.join(CUR_FILE_DIR, "../../.."))
[all …]
/arkcompiler/ets_frontend/test262/
Dconfig.py25 DATA_DIR = os.path.join("test262", "data")
26 ESHOST_DIR = os.path.join("test262", "eshost")
27 HARNESS_DIR = os.path.join("test262", "harness")
29 BASE_OUT_DIR = os.path.join("out", "test262")
31 CUR_FILE_DIR = os.path.dirname(__file__)
32 CODE_ROOT = os.path.abspath(os.path.join(CUR_FILE_DIR, "../../.."))
40 TEST_FULL_DIR = os.path.join(DATA_DIR, "test")
41 TEST_ES5_DIR = os.path.join(DATA_DIR, "test_es51")
42 TEST_ES2015_DIR = os.path.join(DATA_DIR, "test_es2015")
43 TEST_ES2021_DIR = os.path.join(DATA_DIR, "test_es2021")
[all …]
Drun_test262.py82 help="The path collection of dependent so has been divided by':'")
94 help="the root path for qemu-aarch64 or qemu-arm")
129 ark_frontend_binary = os.path.join(ARK_FRONTEND_BINARY_LIST[0])
131 ark_frontend_binary = os.path.join(args.ark_frontend_binary)
133 ts2abc_build_dir = os.path.join(os.path.dirname(
134 os.path.realpath(ark_frontend_binary)), "..")
136 if not os.path.exists(os.path.join(ts2abc_build_dir, "package.json")) and \
137 not os.path.exists(os.path.join(ts2abc_build_dir, "..", "package.json")):
140 if os.path.exists(os.path.join(ts2abc_build_dir, "..", "package.json")) and \
141 not os.path.exists(os.path.join(ts2abc_build_dir, "package.json")):
[all …]
Drun_sunspider.py49 help="The path collection of dependent so has been divided by':'")
70 help="the root path for qemu-aarch64 or qemu-arm")
91 ICU_PATH = f"--icu-data-path={CODE_ROOT}/third_party/icu/ohos_icu4j/data"
231 output_file = os.path.splitext(os.path.join(BASE_OUT_DIR,
232 os.path.split(dependency)[1]))[0]
251 file_dir = os.path.split(self.js_file)[0]
252 proto_abc_file = ".".join([os.path.splitext(os.path.basename(self.js_file))[0], "abc"])
256 if os.path.exists(file_name_pre):
261 dependency_file_prefix = os.path.basename(dependency)[:-3]
266 if not os.path.exists(dependency_bin_file):
[all …]
/arkcompiler/ets_frontend/ts2panda/scripts/
Drun.py39 help='node path')
41 help='path to node-modules exetuable')
54 os.environ["PATH"] = f'{node_dir}{jsoner_format}{os.environ["PATH"]}'
67 run_command(['cp', '-f', os.path.join(src_dir, "package.json"),
68 os.path.join(dist_dir, "package.json")])
69 run_command(['cp', '-f', os.path.join(src_dir, "package-lock.json"),
70 os.path.join(dist_dir, "package-lock.json")])
74 os.path.join(dist_dir, "node_modules")])
81 if os.path.exists(os.path.join(dist_dir, inp_dir)):
82 shutil.rmtree(os.path.join(dist_dir, inp_dir), ignore_errors=True)
[all …]
Dgenerate_js_bytecode.py34 help='path to nodejs exetuable')
35 parser.add_argument('--frontend-tool-path',
36 help='path to frontend conversion tool')
38 help='path to node-modules exetuable')
61 os.environ["PATH"] = input_arguments.node + \
62 jsoner_format + os.environ["PATH"]
76 (path, name) = os.path.split(frontend_tool_path)
78 if not os.path.exists(os.path.join(path, "node_modules")):
80 cmd = ['cp', "-rf", input_arguments.node_modules, path]
81 run_command(cmd, path)
[all …]
Dgenerate_plugin.py33 help="path to nodejs exetuable")
34 parser.add_argument("--frontend-tool-path",
35 help="path to frontend conversion tool")
37 help='path to node-modules exetuable')
38 parser.add_argument("--plugin-path",
39 help="plugin js file path")
59 js_file = os.path.join(file_path, file_name)
60 file_name_pre = os.path.splitext(file_name)[0]
62 generate_js_bytecode = os.path.join(
63 os.path.dirname(__file__), "generate_js_bytecode.py")
[all …]
Dts2abc.js17 const path = require("path"); constant
24 const arkDir = path.resolve(__dirname);
26 if (fs.existsSync(path.join(arkDir, 'build-win'))) {
28 } else if (fs.existsSync(path.join(arkDir, 'build-mac'))) {
30 } else if (!fs.existsSync(path.join(arkDir, 'build'))) {
36 js2abc = path.join(arkDir, 'build-win', 'bin', 'js2abc.exe');
38 js2abc = path.join(arkDir, 'build-mac', 'bin', 'js2abc');
40 js2abc = path.join(arkDir, 'build', 'bin', 'js2abc');
Drun_tests.py26 CUR_FILE_DIR = os.path.dirname(__file__)
27 TS2PANDA_DIR = os.path.abspath(os.path.join(CUR_FILE_DIR, ".."))
28 CODE_ROOT = os.path.abspath(os.path.join(TS2PANDA_DIR, "../../.."))
29 DEFAULT_TARGET_DIR = os.path.join(
31 DEFAULT_NODE_MODULE = os.path.join(
46 help='path to node-modules exetuable')
88 run_command(['cp', '-f', os.path.join(src_dir, "package.json"),
89 os.path.join(dist_dir, "package.json")])
90 run_command(['cp', '-f', os.path.join(src_dir, "package-lock.json"),
91 os.path.join(dist_dir, "package-lock.json")])
[all …]
/arkcompiler/ets_frontend/es2panda/test/
Drunner.py18 from os import path
31 if not path.isdir(arg):
34 return path.abspath(arg)
38 if not path.isfile(arg):
41 return path.abspath(arg)
127 help='the path of js vm runtime')
131 '--tsc-path', dest='tsc_path', default=None, type=lambda arg: is_directory(parser, arg),
132 help='the path of tsc')
145 self.path = test_path
159 cmd.append(self.path)
[all …]
Dtest262util.py18 from os import path
38 dest_path = path.join(build_dir, 'test262')
39 stamp_file = path.join(dest_path, 'test262.stamp')
41 if path.isfile(stamp_file):
44 test262_path = path.join(path.sep, 'tmp', 'test262-%s' % revision)
46 if not path.exists(test262_path):
47 archive_file = path.join(path.sep, 'tmp', 'test262.zip')
63 if path.isdir(test262_path):
67 ['unzip', '-q', '-d', path.join(path.sep, 'tmp'), archive_file])
76 src_path = path.join(test262_path, 'test')
[all …]
/arkcompiler/runtime_core/runtime/
Druntime_controller.cpp44 static bool StartsWithData(std::string_view path) in StartsWithData() argument
46 if (path.empty() || (path[0] != '/')) { in StartsWithData()
49 return StartsWith(path, DIR_DATA_DATA) || StartsWith(path, DIR_DATA_USER); in StartsWithData()
52 static bool IsInPermitList(std::string_view path) in IsInPermitList() argument
54 size_t pos = path.rfind('/'); in IsInPermitList()
56 LOG(ERROR, RUNTIME) << "Failed to get file name from path: " << path; in IsInPermitList()
59 std::string_view file_name = path.substr(pos + 1U); in IsInPermitList()
68 bool RuntimeController::CanLoadPandaFile(const std::string &path) const in CanLoadPandaFile()
73 if (realpath(path.c_str(), buffer.data()) == nullptr) { in CanLoadPandaFile()
74 LOG(ERROR, RUNTIME) << "Failed to get realpath for " << path; in CanLoadPandaFile()
[all …]
/arkcompiler/toolchain/build/prebuilts_download/
Dprebuilts_download.py68 mark_file_dir = os.path.join(code_dir, unzip_dir)
70 mark_file_path = os.path.join(mark_file_dir, mark_file_name)
72 return os.path.exists(mark_file_path)
80 bin_file = os.path.basename(huaweicloud_url)
84 dest_dir = os.path.join(code_dir, unzip_dir)
94 if os.path.basename(unzip_dir) == 'nodejs':
129 abs_unzip_dir = os.path.join(code_dir, unzip_dir)
130 if not os.path.exists(abs_unzip_dir):
134 if os.path.basename(abs_unzip_dir) == 'nodejs':
139 … local_file = os.path.join(bin_dir, ''.join([md5_huaweicloud_url, '.', bin_file]))
[all …]
Dutil.py24 if not os.path.exists(input_file):
43 if not os.path.exists(input_file):
60 file_dir = os.path.dirname(os.path.abspath(output_file))
61 if not os.path.exists(file_dir):
74 if os.path.exists(output_file) and os.path.isfile(output_file):
90 file_dir = os.path.dirname(os.path.abspath(output_file))
91 if not os.path.exists(file_dir):
/arkcompiler/runtime_core/platforms/windows/libpandabase/
Dfile.h33 // In windows API, the length of a path has a limitation of MAX_PATH, which is defined as 260 chara…
34 // the "\\?\" prefix is used to specify an extended-length path for a maximum length of 32,767 char…
113 static const std::string GetExtendedFilePath(const std::string &path) in GetExtendedFilePath() argument
115 if (LIKELY(path.length() < _MAX_PATH)) { in GetExtendedFilePath()
116 return path; in GetExtendedFilePath()
118 return GetExtendedLengthStylePath(path); in GetExtendedFilePath()
138 static const std::string GetExtendedLengthStylePath(const std::string &path) in GetExtendedLengthStylePath() argument
140 // PREFIX_FOR_LONG_PATH is added to specify it's an extended-length path, in GetExtendedLengthStylePath()
141 // and the path needs to be composed of names seperated by backslashes in GetExtendedLengthStylePath()
142 std::string extendedPath = PREFIX_FOR_LONG_PATH + path; in GetExtendedLengthStylePath()
[all …]
/arkcompiler/toolchain/
DOAT.xml17 basedir: Root dir, the basedir + project path is the real source file location.
26 5. task project: Projects to be checked, the path field define the source root dir of the project.
31 2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilte…
32 <policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPoli…
34 "compatibility" is used to check license compatibility in the specified path;
35 "license" is used to check source license header in the specified path;
36 "copyright" is used to check source copyright header in the specified path;
37 … "import" is used to check source dependency in the specified path, such as import ... ,include ...
38 … "filetype" is used to check file type in the specified path, supported file types: archive, binary
39 …"filename" is used to check whether the specified file exists in the specified path(support projec…
[all …]
/arkcompiler/ets_frontend/
DOAT.xml16 basedir: Root dir, the basedir + project path is the real source file location.
25 5. task project: Projects to be checked, the path field define the source root dir of the project.
30 2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilte…
31 <policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPoli…
33 "compatibility" is used to check license compatibility in the specified path;
34 "license" is used to check source license header in the specified path;
35 "copyright" is used to check source copyright header in the specified path;
36 … "import" is used to check source dependency in the specified path, such as import ... ,include ...
37 … "filetype" is used to check file type in the specified path, supported file types: archive, binary
38 …"filename" is used to check whether the specified file exists in the specified path(support projec…
[all …]
/arkcompiler/runtime_core/libark_defect_scan_aux/tests/
Dgenerate_abc_file.py25 '--testcase-list', help='the file path of testcase list', required=True)
29 '--dst-dir', help='the output dst path', required=True)
34 if os.path.isabs(out_dir) and not os.path.exists(out_dir):
46 tc_name = os.path.basename(testcase)
51 out_dir = os.path.join(dst_dir, 'defectscanaux_tests',
55 cmd.append(os.path.join(out_dir, tc_name + '.abc'))
56 tc_path = os.path.join(tc_dir, testcase)
62 ts2js = os.path.join(args.build_dir, 'src/index.js')
63 tc_dir = os.path.dirname(args.testcase_list)
/arkcompiler/toolchain/build/compile_script/
Dark.py75 return os.path.join(OUTDIR, subdir)
164 path = get_path(arch, mode)
165 if not os.path.exists(path):
166 print("# mkdir -p %s" % path)
167 os.makedirs(path)
170 code = _Call("./prebuilts/build-tools/linux-x86/bin/gn clean %s" % path)
171 code += _Call("./prebuilts/build-tools/linux-x86/bin/ninja -C %s -t clean" % path)
176 build_log = os.path.join(path, "build.log")
177 if not os.path.exists("args.gn"):
178 args_gn = os.path.join(path, "args.gn")
[all …]
/arkcompiler/ets_runtime/
DOAT.xml17 basedir: Root dir, the basedir + project path is the real source file location.
26 5. task project: Projects to be checked, the path field define the source root dir of the project.
31 2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilte…
32 <policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPoli…
34 "compatibility" is used to check license compatibility in the specified path;
35 "license" is used to check source license header in the specified path;
36 "copyright" is used to check source copyright header in the specified path;
37 … "import" is used to check source dependency in the specified path, such as import ... ,include ...
38 … "filetype" is used to check file type in the specified path, supported file types: archive, binary
39 …"filename" is used to check whether the specified file exists in the specified path(support projec…
[all …]
/arkcompiler/runtime_core/
DOAT.xml24 …2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilt…
25 …<policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPol…
27 "compatibility" is used to check license compatibility in the specified path;
28 "license" is used to check source license header in the specified path;
29 "copyright" is used to check source copyright header in the specified path;
30 … "import" is used to check source dependency in the specified path, such as import ... ,include ...
31 … "filetype" is used to check file type in the specified path, supported file types: archive, binary
32 …"filename" is used to check whether the specified file exists in the specified path(projectroot me…
34 …5. policyitem path: This field is used for define the source file scope to apply this policyitem, …
38 …ules, the type filename is used to filter file name, the type filepath is used to filter file path.
[all …]
/arkcompiler/runtime_core/irtoc/backend/compiler/
Dcodegen_fastpath.h26 …* Fast path code supports only native calls, that hasn't safepoints inside. Compiler has specific …
31 …* Fast path entrypoint saves only used registers, and saves all caller registers if it goes to the…
32 …* Slow path is invoked via code-to-runtime bridge, which forms boundary frame and saves callee reg…
33 * So, before calling the slow path we restore all modified callee registers.
35 …* To call C-implemented entrypoint (slow path) we need a separate bridge, because it shouldn't sav…
36 * before calling slow path, since they are saved within irtoced entrypoint.
44 … save LR register in a prologue, so we can't use LR as a temp register in the whole Fast Path code. in CodegenFastPath()
/arkcompiler/runtime_core/bytecode_optimizer/tests/benchmark/
Drun_benchmark.py22 SRC_PATH = os.path.realpath(os.path.dirname(__file__))
23 testdir = os.path.join(SRC_PATH, "suite")
24 bindir = os.path.join(SRC_PATH, "..", "..", "..", "build", "bin")
28 … help="Directory with tests (*.class or *.pa). Default: './%s'" % os.path.relpath(testdir))
30 … help="Directory with compiled binaries (eg.: c2p). Default: './%s'" % os.path.relpath(bindir))
35 % (os.path.relpath(os.path.join(bindir, "c2p")))),
38 % (os.path.relpath(os.path.join(bindir, "c2p")))),
114 c2p = os.path.join(bin_dir, "c2p")
115 if not os.path.exists(c2p):
116 print("c2p executable does not exists (%s)." % os.path.relpath(c2p))
[all …]

1234567891011