/developtools/packing_tool/adapter/ohos/ |
D | README | 36 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/profiler/device/plugins/ftrace_plugin/src/ |
D | file_utils.cpp | 52 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 …]
|
D | ftrace_fs_ops.cpp | 47 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/ |
D | Downloadold.py | 33 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 …]
|
D | Download.py | 33 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/packing_tool/ |
D | README_zh.md | 21 …path <option> --resources-path <option> --ets-path <option> --index-path <option> --pack-info-path… 28 …path <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/syscap_codec/src/ |
D | context_tool.c | 46 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/ |
D | file_entry.cpp | 39 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/ |
D | elf_file_mgr.py | 148 def get_elf_by_path(self, path): argument 149 if path not in self._path_dict and path.find("/lib64/") > 0: 150 path = path.replace("/lib64/", "/lib/") 151 if path in self._path_dict: 152 return self._path_dict[path] 153 if path.find("/platformsdk/") > 0: 156 if path.startswith("system/lib64/"): 157 path = path.replace("system/lib64/", "system/lib64/platformsdk/") 158 elif path.startswith("system/lib/"): 159 path = path.replace("system/lib/", "system/lib/platformsdk/") [all …]
|
/developtools/ace_js2bundle/ace-loader/plugin/templater/ |
D | content.js | 35 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/ |
D | protoc_w.py | 21 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/xdevice_smoke/acls_check/ |
D | read_acl_whitelist.py | 17 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))
|
D | resolve_token_info.py | 17 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/acls_check/ |
D | read_acl_whitelist.py | 17 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))
|
D | resolve_token_info.py | 17 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/profiler/device/services/profiler_service/test/unittest/ |
D | trace_file_reader_test.cpp | 40 std::string path = "trace.bin"; member in __anon20d3c3990111::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/ |
D | file_utils_test.cpp | 94 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/ |
D | gn_common_tool.py | 74 …def find_variables_in_gn(cls, var_name_tuple: tuple, path: str, stop_tail: str = "home", use_cache… 88 if os.path.isfile(path): 89 path, _ = os.path.split(path) 98 while (stop_tail in path) and not_found_count: 114 path, _ = os.path.split(path) 130 tuple(variable_list), path=gn_path, stop_tail=stop_tail) 136 def find_values_of_variable(cls, var_name: str, path: str, stop_tail: str = "home") -> list: 144 if os.path.isfile(path): 145 path, _ = os.path.split(path) 148 while stop_tail in path: [all …]
|
/developtools/smartperf_host/ide/ |
D | webpack.config.js | 17 const path = require('path'); constant 70 const filePath = path.join(directoryPath, file); 85 const outPath = path.normalize(path.join(__dirname, '/', 'dist')); 86 const serverSrc = path.normalize(path.join(__dirname, '/server/main.go')); 89 path.normalize(path.join(outPath, '/', `main.exe`)) : 90 path.normalize(path.join(outPath, '/', `main_${platform}`)); 105 let outPath = path.normalize(path.join(__dirname, '/', 'dist')); 106 let binPath = path.normalize(path.join(__dirname, '/', 'bin')); 116 path: path.resolve(__dirname, 'dist'), property 210 path: false, //if you want to use this module also don't forget npm i crypto-browserify property
|
/developtools/hiperf/script/ |
D | hiperf_utils.py | 40 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_ets2bundle/compiler/ |
D | npm-install.js | 17 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");
|
D | webpack.config.js | 16 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/ace_js2bundle/ace-loader/ |
D | npm-install.js | 17 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/integration_verification/DeployDevice/src/aw/Common/ |
D | Common.py | 25 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/hdc/hdc_rust/src/common/ |
D | filemanager.rs | 26 path: Option<String>, field 31 pub fn remove_file(path: &str) -> std::io::Result<()> { in remove_file() 32 fs::remove_file(path) in remove_file() 37 path: Some(file_path), in new() 45 if let Some(path) = &self.path { in open() 46 let mut _file = OpenOptions::new().read(true).open(path); in open() 53 err_msg = format!("Transfer {} failed: {:?}.", path, e); in open() 84 if let Some(path) = &self.path { in buffer_read() 85 let mut _file = File::open(path); in buffer_read()
|