Home
last modified time | relevance | path

Searched refs:path (Results 1 – 25 of 493) sorted by relevance

12345678910>>...20

/developtools/packing_tool/adapter/ohos/
DREADME36 If "maple-so-path" is valid, "maple-so-dir" will not be used.
37 The input method of "maple-so-path" will be discarded later.
42 java -jar app_packing_tool.jar --mode <option> --json-path <option> --maple-so-path [option]
43 --profile-path [option] --maple-so-dir [option] --dex-path [option] --lib-path [option] --assets-pa…
44 --resources-path [option] --shell-apk-path [option] --index-path [option] --out-path <option> --for…
48 --json-path not null config.json path.
49 --profile-path CAPABILITY.profile path.
50 --maple-so-path maple-so/ path.
51 --maple-so-dir maple so path must end with .so, if has more than one so,
53 --dex-path 1.dex path must end with .dex, if has more than one dex,
[all …]
/developtools/smartperf_host/ide/src/
Dicon.svg4 <path
5 …0.3 7.4-6.5 12.7l124.6 172.8c12.7 17.7 39 17.7 51.7 0l210.6-292c3.9-5.3 0.1-12.7-6.4-12.7z"></path>
6 <path
7 …z m0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"></path>
10 <path
11 …z m0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"></path>
12 <path
13 …4.2 43-37.7 72.4-87 72.4-61.1 0-95.6-44.9-95.6-125.2v-49.3c0.1-81.4 34.6-126.8 95.7-126.8z"></path>
16 <path
17 …z m0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"></path>
[all …]
/developtools/profiler/device/plugins/ftrace_plugin/src/
Dfile_utils.cpp52 std::string FileUtils::ReadFile(const std::string& path) in ReadFile() argument
55 CHECK_TRUE((path.length() < PATH_MAX) && (realpath(path.c_str(), realPath) != nullptr), "", in ReadFile()
56 "%s:path is invalid: %s, errno=%d", __func__, path.c_str(), errno); in ReadFile()
62 PROFILER_LOG_WARN(LOG_CORE, "open file %s FAILED: %s!", path.c_str(), buf); in ReadFile()
66 CHECK_TRUE(close(fd) != -1, content, "close %s failed, %d", path.c_str(), errno); in ReadFile()
70 int FileUtils::WriteFile(const std::string& path, const std::string& content) in WriteFile() argument
72 return WriteFile(path, content, O_WRONLY); in WriteFile()
75 int FileUtils::WriteFile(const std::string& path, const std::string& content, int flags) in WriteFile() argument
77 return WriteFile(path, content, flags, 0); in WriteFile()
80 int FileUtils::WriteFile(const std::string& path, const std::string& content, int flags, int mode) in WriteFile() argument
[all …]
Dftrace_fs_ops.cpp47 auto path = *iter + "/events"; in GetFtraceRoot() local
49 lstat(path.c_str(), &s); in GetFtraceRoot()
66 int FtraceFsOps::WriteTraceFile(const std::string& path, const std::string& content) in WriteTraceFile() argument
69 if (access((ftraceRoot_ + hmTraceDir_ + path).c_str(), W_OK) == 0) { in WriteTraceFile()
70 if (FileUtils::WriteFile(ftraceRoot_ + hmTraceDir_ + path, content) > 0) { in WriteTraceFile()
74 if (access((ftraceRoot_ + path).c_str(), W_OK) == 0) { in WriteTraceFile()
75 if (FileUtils::WriteFile(ftraceRoot_ + path, content) > 0) { in WriteTraceFile()
83 int FtraceFsOps::WriteTraceFile(const std::string& path, const std::string& content, int flags) in WriteTraceFile() argument
86 if (access((ftraceRoot_ + hmTraceDir_ + path).c_str(), W_OK) == 0) { in WriteTraceFile()
87 if (FileUtils::WriteFile(ftraceRoot_ + hmTraceDir_ + path, content, flags) > 0) { in WriteTraceFile()
[all …]
/developtools/integration_verification/DeployDevice/src/aw/Download/
DDownload.py33 current_path = os.path.dirname(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
34 BitCometjar = os.path.join(current_path, "Resource", "thirdtools", "TTorrentFull.jar")
62 version_path, destdir = os.path.split(download_dir)
64 exist_log = os.path.join(version_path, destdir + "_exist.log")
68 if os.path.isfile(exist_log):
85 download_torrent = os.path.join(version_path, destdir + ".torrent")
88 if os.path.isfile(download_torrent):
99 if os.path.isfile(Aria2cbin):
110 if len(ld) == 32 and os.path.isdir(os.path.join(version_path, ld)):
111 copyDirectory(os.path.join(version_path, ld), download_dir, os_method)
[all …]
DDownloadold.py33 current_path = os.path.dirname(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
34 BitCometjar = os.path.join(current_path, "Resource", "thirdtools", "TTorrentFull.jar")
62 version_path, destdir = os.path.split(download_dir)
64 exist_log = os.path.join(version_path, destdir + "_exist.log")
68 if os.path.isfile(exist_log):
85 download_torrent = os.path.join(version_path, destdir + ".torrent")
88 if os.path.isfile(download_torrent):
99 if os.path.isfile(Aria2cbin):
110 if len(ld) == 32 and os.path.isdir(os.path.join(version_path, ld)):
111 copyDirectory(os.path.join(version_path, ld), download_dir, os_method)
[all …]
/developtools/syscap_codec/src/
Dcontext_tool.c46 char path[PATH_MAX + 1] = {0x00}; in GetFileContext() local
49 …if (strlen(inputFile) > PATH_MAX || strncpy_s(path, PATH_MAX, inputFile, strlen(inputFile)) != EOK… in GetFileContext()
54 if (strlen(inputFile) > PATH_MAX || realpath(inputFile, path) == NULL) { in GetFileContext()
60 ret = stat(path, &statBuf); in GetFileContext()
62 PRINT_ERR("get file(%s) st_mode failed, errno = %d\n", path, errno); in GetFileContext()
66 PRINT_ERR("don't have permission to read the file(%s)\n", path); in GetFileContext()
74 fp = fopen(path, "rb"); in GetFileContext()
76 PRINT_ERR("open file(%s) failed, errno = %d\n", path, errno); in GetFileContext()
82 PRINT_ERR("read file(%s) failed, errno = %d\n", path, errno); in GetFileContext()
99 char path[PATH_MAX + 1] = {0x00}; in ConvertedContextSaveAsFile() local
[all …]
/developtools/global_resource_tool/src/
Dfile_entry.cpp39 FileEntry::FileEntry(const string &path) in FileEntry() argument
40 : filePath_(path), isFile_(false) in FileEntry()
113 bool FileEntry::Exist(const string &path) in Exist() argument
116 return PathFileExists(AdaptLongPath(path).c_str()); in Exist()
119 if (stat(path.c_str(), &s) != 0) { in Exist()
126 bool FileEntry::RemoveAllDir(const string &path) in RemoveAllDir() argument
128 FileEntry f(path); in RemoveAllDir()
134 cerr << "Error: RemoveAllDir '" << path << "' not directory." << endl; in RemoveAllDir()
140 bool FileEntry::CreateDirs(const string &path) in CreateDirs() argument
142 return CreateDirsInner(path, 0); in CreateDirs()
[all …]
/developtools/integration_verification/tools/deps_guard/elf_file_mgr/
Delf_file_mgr.py171 def __get_library_order(self, path): argument
172 if not path.startswith("/"):
173 path = "/" + path
174 if path.find("/lib64/") > 0:
179 if path.rfind("/") < 0:
182 path = path[:path.rfind("/")]
186 if p == path:
217 def get_elf_by_path(self, path): argument
218 if path not in self._path_dict and path.find("/lib64/") > 0:
219 path = path.replace("/lib64/", "/lib/")
[all …]
/developtools/ace_js2bundle/ace-loader/plugin/templater/
Dcontent.js35 enter(path) { argument
36 if (path.parent && path.node.type === "Identifier") {
38 if (['ConditionalExpression', 'BinaryExpression'].includes(path.parent.type) ||
39 path.parent.type === 'CallExpression' && path.parent.callee === path.node) {
42 …else if (path.parent.type === "ObjectProperty" && !path.parent.computed && path.parent.value === p…
46 flag = addPrefix(path.node, path.parent)
48 if (flag && !keyWordsReg.test(path.node.name)) {
49 path.node.name = 'this.' + path.node.name
/developtools/smartperf_host/trace_streamer/build/
Dprotoc_w.py21 THIS_DIR = os.path.dirname(os.path.abspath(__file__))
22 PROJECT_TOP = os.path.realpath(os.path.join(THIS_DIR, ".."))
27 PROJECT_TOP = os.path.realpath(os.path.join(THIS_DIR, ".."))
29 OHOS_X64_OUT = os.path.join(PROJECT_TOP, sys.argv[2])
30 LIBCXX_X64_OUT = os.path.join(PROJECT_TOP, sys.argv[1], "ndk/libcxx/linux_x86_64")
31 SUBSYS_X64_OUT = os.path.join(PROJECT_TOP, sys.argv[2], TAIL_DIR)
38 PROTOC = os.path.join(PROJECT_TOP, sys.argv[2], TAIL_DIR, PROTOC_NAME)
39 OPT_PLUGIN_PROTOREADER_PATH = os.path.join(PROJECT_TOP, sys.argv[2], TAIL_DIR, PROTOCREADER_PLUGIN)
40 OPT_PLUGIN_PROTOREADER = "--plugin=protoc-gen-plugin=" + os.path.join(PROJECT_TOP, sys.argv[2], TAI…
51 if os.path.isfile(OPT_PLUGIN_PROTOREADER_PATH):
/developtools/integration_verification/cases/smoke/basic/screenshot32/acls_check/
Dread_acl_whitelist.py17 sys.path.append(os.path.dirname(os.path.realpath(__file__)) + os.sep)
24 def read_json(path): argument
25 set_log_content(LogLevel(2).name, log_tag, 'read {}'.format(path))
26 if not os.path.exists(path):
27 set_log_content(LogLevel(2).name, log_tag, '{} file not exits'.format(path))
28 raise AclCheckException('{} file not exits'.format(path))
30 with open(path, 'r') as f:
35 raise AclCheckException('{} failed to read the file.'.format(path))
Dresolve_token_info.py17 sys.path.append(os.path.dirname(os.path.realpath(__file__)) + os.sep)
54 def clear_token_info_txt(path): argument
56 os.remove(path)
61 def read_txt(path): argument
62 set_log_content(LogLevel(2).name, log_tag, 'read {}'.format(path))
63 if not os.path.exists(path):
64 set_log_content(LogLevel(2).name, log_tag, '{} file not exits'.format(path))
65 raise AclCheckException('{} file not exits!'.format(path))
67 with open(path, 'r') as f:
72 raise AclCheckException('{} failed to read the file.'.format(path))
/developtools/integration_verification/cases/smoke/basic/screenshot32/xdevice_smoke/acls_check/
Dread_acl_whitelist.py17 sys.path.append(os.path.dirname(os.path.realpath(__file__)) + os.sep)
24 def read_json(path): argument
25 set_log_content(LogLevel(2).name, log_tag, 'read {}'.format(path))
26 if not os.path.exists(path):
27 set_log_content(LogLevel(2).name, log_tag, '{} file not exits'.format(path))
28 raise AclCheckException('{} file not exits'.format(path))
30 with open(path, 'r') as f:
35 raise AclCheckException('{} failed to read the file.'.format(path))
Dresolve_token_info.py17 sys.path.append(os.path.dirname(os.path.realpath(__file__)) + os.sep)
54 def clear_token_info_txt(path): argument
56 os.remove(path)
61 def read_txt(path): argument
62 set_log_content(LogLevel(2).name, log_tag, 'read {}'.format(path))
63 if not os.path.exists(path):
64 set_log_content(LogLevel(2).name, log_tag, '{} file not exits'.format(path))
65 raise AclCheckException('{} file not exits!'.format(path))
67 with open(path, 'r') as f:
72 raise AclCheckException('{} failed to read the file.'.format(path))
/developtools/packing_tool/
DREADME_zh.md21 …ode hap --json-path <option> --resources-path <option> --ets-path <option> --index-path <option> -…
28path <option> --maple-so-path [option] --profile-path [option] --maple-so-dir [option] --dex-path
36 | --json-path | 是 | NA | .json文件路径,FA模型文件名必须为config.json;stage模型文件名必须为mo…
37 | --profile-path | 否 | NA | CAPABILITY.profile文件路径。 …
38 | --maple-so-path | 否 | NA | maple so文件输入路径,so文件路径,文件名必须以.so为后缀。如果是多个so需要用“,…
40 | --dex-path | 否 | NA | 1.dex文件路径,文件名必须以.dex为后缀。如果是多个dex需要用“,”分隔。2.dex文…
41 | --lib-path | 否 | NA | lib库文件路径。 …
42 | --resources-path | 否 | NA | resources资源包路径。 …
43 | --index-path | 否 | NA | .index文件路径,文件名必须为resources.index。 …
44 | --pack-info-path | 否 | NA | pack.info文件路径,文件名必须为pack.info。 …
[all …]
/developtools/profiler/device/services/profiler_service/test/unittest/
Dtrace_file_reader_test.cpp40 std::string path = "trace.bin"; member in __anon9e6b0a0d0111::TraceFileReaderTest
46 std::string path = DEFAULT_TEST_PATH + name; in TearDownTestCase() local
48 if (access(path.c_str(), F_OK) == 0) { in TearDownTestCase()
49 system(std::string("rm " + path).c_str()); in TearDownTestCase()
65 std::string path = "trace-write-msg.bin"; variable
66 auto writer = std::make_shared<TraceFileWriter>(path);
77 PROFILER_LOG_INFO(LOG_CORE, "[%d/%d] write %ld bytes to %s.", i, n, bytes, path.c_str());
83 ASSERT_TRUE(reader->Open(path));
89 PROFILER_LOG_INFO(LOG_CORE, "read %ld bytes from %s", bytes, path.c_str());
100 std::string path = "trace-write-msg.bin"; variable
[all …]
/developtools/profiler/device/plugins/ftrace_plugin/test/unittest/
Dfile_utils_test.cpp94 std::string path = "file-name-that-not-exists.txt"; variable
95 std::string text = FileUtils::ReadFile(path);
106 std::string path = "temp.txt"; variable
109 int retval = FileUtils::WriteFile(path, data_, O_CREAT | O_RDWR, FILE_MODE);
112 std::string text = FileUtils::ReadFile(path);
115 EXPECT_EQ(unlink(path.c_str()), 0);
125 std::string path = "dir_not_exists/temp.txt"; variable
127 int retval = FileUtils::WriteFile(path, data_);
138 std::string path = "temp.txt"; variable
141 int retval = FileUtils::WriteFile(path, data_, O_CREAT | O_RDWR, FILE_MODE);
[all …]
/developtools/integration_verification/tools/rom_ram_analyzer/lite_small/pkgs/
Dgn_common_tool.py94 …def find_variables_in_gn(cls, var_name_tuple: tuple, path: str, stop_tail: str = "home", use_cache…
108 if os.path.isfile(path):
109 path, _ = os.path.split(path)
118 while (stop_tail in path) and not_found_count:
134 path, _ = os.path.split(path)
150 tuple(variable_list), path=gn_path, stop_tail=stop_tail)
156 def find_values_of_variable(cls, var_name: str, path: str, stop_tail: str = "home") -> list:
164 if os.path.isfile(path):
165 path, _ = os.path.split(path)
168 while stop_tail in path:
[all …]
/developtools/hiperf/script/
Dhiperf_utils.py40 script_dir = os.path.dirname(os.path.realpath(__file__))
43 lib_path = os.path.join(script_dir, "bin", system_type,
46 lib_path = os.path.join(script_dir, "bin", system_type,
49 lib_path = os.path.join(script_dir, "bin", system_type,
54 if not os.path.exists(lib_path):
61 if os.path.isfile(files):
63 elif os.path.isdir(files):
67 def is_elf_file(path): argument
68 if os.path.isfile(path):
69 with open(path, 'rb') as file_bin:
[all …]
/developtools/ace_js2bundle/ace-loader/
Dnpm-install.js17 var path = require("path"); variable
21 const arkDir = path.resolve(__dirname, 'bin', "ark");
29 if (fs.existsSync(path.join(arkDir, "build-win"))) {
31 } else if (fs.existsSync(path.join(arkDir, "build-mac"))) {
33 } else if (!fs.existsSync(path.join(arkDir, "build"))) {
39 cwd = path.join(arkDir, "build-win");
41 cwd = path.join(arkDir, "build-mac");
43 cwd = path.join(arkDir, "build");
46 cwd = path.join(cwd, "legacy_api8");
/developtools/ace_ets2bundle/compiler/
Dnpm-install.js17 const path = require('path'); constant
21 const arkDir = path.resolve(__dirname, 'bin', "ark");
29 if (fs.existsSync(path.join(arkDir, "build-win"))) {
31 } else if (fs.existsSync(path.join(arkDir, "build-mac"))) {
33 } else if (!fs.existsSync(path.join(arkDir, "build"))) {
39 cwd = path.join(arkDir, "build-win");
41 cwd = path.join(arkDir, "build-mac");
43 cwd = path.join(arkDir, "build");
46 cwd = path.join(cwd, "legacy_api8");
Dwebpack.config.js16 const path = require('path'); constant
49 const projectPath = path.resolve(projectConfig.projectPath);
59 path: path.resolve(__dirname, projectConfig.buildPath), property
70 use: [{ loader: path.resolve(__dirname, 'lib/process_dts_file.js') }]
75 { loader: path.resolve(__dirname, 'lib/result_process.js') },
82 configFile: path.resolve(__dirname,
95 { loader: path.resolve(__dirname, 'lib/pre_process.js') }
110 path.join(__dirname, 'node_modules'),
128 cacheDirectory: path.resolve(projectConfig.cachePath, '.ets_cache',
129 path.basename(projectConfig.projectPath))
[all …]
/developtools/integration_verification/DeployDevice/src/aw/Common/
DCommon.py25 if not os.path.isfile(source_path):
27 if os.path.isdir(copy_path):
28 copy_path = os.path.join(copy_path, os.path.basename(source_path))
42 if not os.path.isdir(src_dir):
45 if not os.path.isdir(dst_dir):
52 if not os.path.isdir(dst_dir):
57 file_path = os.path.join(src_dir, item)
58 child_path = os.path.join(dst_dir, item)
59 if os.path.isfile(file_path):
62 if not os.path.isfile(child_path):
[all …]
/developtools/profiler/host/smartperf/client/client_ui/entry/src/main/ets/common/profiler/base/
DBaseProfilerUtils.ets31 export function isAccess(path: string):boolean{
32 SPLogger.DEBUG("BaseProfilerUtils","ets check path is start..."+ "path:" + path);
35 fileio.accessSync(path);
37 SPLogger.DEBUG("BaseProfilerUtils","ets check path is finish..."+ "path:" + path);
39 SPLogger.DEBUG(TAG,"accessSync failed with error:"+ err + "path:" + path);
46 * @param path
48 export function fileOpen(path: string): String {
50 if (!isAccess(path)) {
56 fd = fileio.openSync(path, 0o0)
60 SPLogger.DEBUG(TAG,"fileOpen path data:"+result);
[all …]

12345678910>>...20