| /developtools/hapsigner/ |
| D | OAT.xml | 28 <filteritem type="filename" name="pom.xml"/> 29 <filteritem type="filename" name="settings.xml"/> 30 <filteritem type="filename" name="README.OpenSource"/> 31 <filteritem type="filename" name="README"/> 32 <filteritem type="filename" name="README.md"/> 33 <filteritem type="filename" name="README_zh.md"/> 34 <filteritem type="filename" name="*.p12"/> 35 <filteritem type="filename" name="*.jks"/> 36 <filteritem type="filename" name="*.bat" desc="script file"/> 37 <filteritem type="filename" name="*.sh" desc="script file"/> [all …]
|
| /developtools/ace_js2bundle/ace-loader/src/ |
| D | card-loader.js | 37 const fileName = resourcePath.replace(path.extname(resourcePath).toString(), '') 40 const styleInfo = findStyleFile(fileName) 45 output = addJson(this, output, fileName, '') 90 compResourcepath + `?${customElementName}#${fileName}`) 95 compStyleInfo.styleFileName + `?${customElementName}#${fileName}`) 97 … output = addJson(this, output, compFileName, `?${customElementName}#${fileName}`, elementLastName) 104 function findStyleFile (fileName) { argument 106 let styleFileName = fileName + '.css' 112 styleFileName = fileName + '.less' 117 styleFileName = fileName + '.sass' [all …]
|
| /developtools/hiperf/test/unittest/common/native/ |
| D | perf_file_reader_test.cpp | 45 const std::string filename = "perf.data"; variable 47 PerfFileReader hiperfFileReader(filename, fp); 48 std::unique_ptr<PerfFileReader> ret = hiperfFileReader.Instance(filename); 54 const std::string filename = "xxx"; variable 56 PerfFileReader hiperfFileReader(filename, fp); 57 std::unique_ptr<PerfFileReader> ret = hiperfFileReader.Instance(filename); 63 const std::string filename = "perf.data"; variable 65 PerfFileReader hiperfFileReader(filename, fp); 72 const std::string filename = "xxx"; variable 74 PerfFileReader hiperfFileReader(filename, fp); [all …]
|
| D | perf_file_writer_test.cpp | 71 std::string filename = "./TestFileWriter_Normal"; variable 73 ASSERT_TRUE(fileWriter.Open(filename)) << "current path no write permission?"; 102 ASSERT_TRUE((access(filename.c_str(), F_OK) == 0)); 107 std::string filename = "./TestFileWriter_Compress"; variable 109 ASSERT_TRUE(fileWriter.Open(filename, true)) << "current path no write permission?"; 135 ASSERT_TRUE((access(filename.c_str(), F_OK) == 0)); 136 filename += ".gz"; 137 ASSERT_TRUE((access(filename.c_str(), F_OK) != 0)); 142 std::string filename = "./TestFileWriter_AuxTraceInfo"; variable 144 ASSERT_TRUE(fileWriter.Open(filename)) << "current path no write permission?"; [all …]
|
| D | report_protobuf_file_test.cpp | 77 std::string fileName = "perf.proto"; variable 78 ASSERT_EQ(protobufOutputFileWriter_->Create(fileName), true); 79 EXPECT_EQ(access(fileName.c_str(), F_OK), 0); 82 EXPECT_EQ(protobufOutputFileWriter_->Create(fileName), false); 93 std::string fileName = "perf.proto"; variable 95 ASSERT_EQ(protobufOutputFileWriter_->Create(fileName), true); 108 std::string fileName = "perf.proto"; variable 150 std::string fileName = "perf.proto"; variable 152 ASSERT_EQ(protobufOutputFileWriter_->Create(fileName), true); 170 protobufInputFileReader_->Dump(fileName, protobufReadBack); [all …]
|
| /developtools/syscap_codec/ |
| D | OAT.xml | 27 <filteritem type="filename" name="README.OpenSource"/> 28 <filteritem type="filename" name="README"/> 29 <filteritem type="filename" name="README.md"/> 30 <filteritem type="filename" name="README_zh.md"/> 31 <filteritem type="filename" name="*.bat" desc="script file"/> 32 <filteritem type="filename" name="*.sh" desc="script file"/> 35 <filteritem type="filename" name="README.OpenSource"/> 36 <filteritem type="filename" name="README"/> 37 <filteritem type="filename" name="README.md"/> 38 <filteritem type="filename" name="README_zh.md"/> [all …]
|
| /developtools/integration_verification/ |
| D | OAT.xml | 42 …"filename" is used to check whether the specified file exists in the specified path(support projec… 48 8. filefilter: Filter rules, the type filename is used to filter file name, the type filepath is us… 66 <filteritem type="filename" name="*.png|*.jpeg|*.json" desc="Test files"/> 67 …<filteritem type="filename" name="*.bin|*.exe|ReadMe|oeminfo_nvm_test" desc="There are the upgrade… 73 …<filteritem type="filename" name="*.png|*.jpeg|*.json|*.hap|*.csv|dhcpc.sh" desc="NoLicenseHeader"… 74 …<filteritem type="filename" name="*.bin|*.exe|ReadMe|oeminfo_nvm_test" desc="There are the upgrade… 75 <filteritem type="filename" name="go.mod" desc="no need to check"/> 76 <filteritem type="filename" name="go.sum" desc="no need to check"/> 79 …<filteritem type="filename" name="*.png|*.jpeg|*.json|*.hap|*.csv|dhcpc.sh" desc="InvalidCopyright… 80 …<filteritem type="filename" name="*.bin|*.exe|ReadMe|oeminfo_nvm_test" desc="There are the upgrade… [all …]
|
| /developtools/packing_tool/packing_tool/frameworks/src/json/ |
| D | module_json_utils.cpp | 67 std::string fileName = fsHapPath.filename().string(); in GetStageHapVerifyInfo() local 68 std::transform(fileName.begin(), fileName.end(), fileName.begin(), ::tolower); in GetStageHapVerifyInfo() 69 if (Utils::EndsWith(fileName, HAP_SUFFIX)) { in GetStageHapVerifyInfo() 71 } else if (Utils::EndsWith(fileName, HSP_SUFFIX)) { in GetStageHapVerifyInfo() 147 std::string fileName = fsHapPath.filename().string(); in GetHapVerifyInfosfromFileList() local 148 if (fileName.empty()) { in GetHapVerifyInfosfromFileList() 152 std::transform(fileName.begin(), fileName.end(), fileName.begin(), ::tolower); in GetHapVerifyInfosfromFileList() 153 if (!Utils::EndsWith(fileName, HAP_SUFFIX) && !Utils::EndsWith(fileName, HSP_SUFFIX)) { in GetHapVerifyInfosfromFileList()
|
| /developtools/ace_ets2bundle/compiler/tools/memory_dotting_viewer/memory/ |
| D | MainMemory.js | 63 throw new Error('Failed to get filename: ' + response.statusText); 65 const filename = await response.text(); 66 console.log(filename); 67 …oadRes = await fetch(`${window.location.origin}/download?filename=${encodeURIComponent(filename)}`… 72 const file = new File([blob], filename, {type: blob.type}); 78 let fileName = file.name; 79 …let showFileName = fileName.lastIndexOf('.') === -1 ? fileName : fileName.substring(0, fileName.la… 80 this.parseLogFile(file, showFileName, file.size, fileName); 170 parseLogFile(file, showFileName, fileSize, fileName) { argument 173 console.log('fileName:' + fileName); [all …]
|
| /developtools/packing_tool/packing_tool/frameworks/src/ |
| D | zip_utils.cpp | 72 bool ZipUtils::IsFileExistsInZip(const std::string& zipFilePath, const std::string& filename) in IsFileExistsInZip() argument 101 …ileInfo.external_fa != ZIP_FILE_ATTR_DIRECTORY && strFilePathInZip.length() >= filename.length()) { in IsFileExistsInZip() 103 if (strFilePathInZip.compare(filename) == 0) { in IsFileExistsInZip() 120 bool ZipUtils::IsFileNameExistsInZip(const std::string& zipFilePath, const std::string& filename) in IsFileNameExistsInZip() argument 149 …ileInfo.external_fa != ZIP_FILE_ATTR_DIRECTORY && strFilePathInZip.length() >= filename.length()) { in IsFileNameExistsInZip() 150 …if (strFilePathInZip.substr(strFilePathInZip.length() - filename.length()).compare(filename) == 0)… in IsFileNameExistsInZip() 167 bool ZipUtils::GetFileContentFromZip(const std::string& zipFilePath, const std::string& filename, in GetFileContentFromZip() argument 180 if (unzLocateFile(unzipFile, filename.c_str(), 0) != UNZ_OK) { in GetFileContentFromZip() 181 LOGE("Locate file failed! filename=%s", filename.c_str()); in GetFileContentFromZip() 189 LOGE("Get current file info in zip failed! filename=%s", filename.c_str()); in GetFileContentFromZip() [all …]
|
| D | version_normalize.cpp | 175 std::string fileName = entry.path().filename().string(); in CompressDirToHap() local 177 if (fileName == Constants::ETS_PATH) { in CompressDirToHap() 179 } else if (fileName == Constants::HNP_PATH) { in CompressDirToHap() 181 } else if (fileName == Constants::LIB_PATH) { in CompressDirToHap() 183 } else if (fileName == Constants::AN_PATH) { in CompressDirToHap() 185 } else if (fileName == Constants::AP_PATH) { in CompressDirToHap() 187 } else if (fileName == Constants::RESOURCES_PATH) { in CompressDirToHap() 189 } else if (fileName == Constants::JS_PATH) { in CompressDirToHap() 191 } else if (fileName == Constants::ASSETS_PATH) { in CompressDirToHap() 193 } else if (fileName == Constants::SO_DIR) { in CompressDirToHap() [all …]
|
| /developtools/profiler/device/plugins/hiebpf_plugin/tools/src/ |
| D | ebpf_converter.cpp | 245 outData_ << " fileName: " << itm.first << '\n'; in EventFsParsing() 255 char fileName[maps.fileNameLen + 1]; in EventMapsParsing() local 256 (void)memset_s(fileName, sizeof(fileName), 0, sizeof(fileName)); in EventMapsParsing() 258 size_t dataLen = sizeof(fileName) > 1 ? sizeof(fileName) - 1 : 0; in EventMapsParsing() 259 CHK(Read(reinterpret_cast<void*>(fileName), dataLen)); in EventMapsParsing() 260 maps.fileName = fileName; in EventMapsParsing() 279 << " fileName: " << maps.fileName << '\n'; in EventMapsParsing() 335 char fileName[info.fileNameSize + 1]; in SymbolInfoParsing() local 336 (void)memset_s(fileName, sizeof(fileName), 0, sizeof(fileName)); in SymbolInfoParsing() 338 size_t dataLen = sizeof(fileName) > 1 ? sizeof(fileName) - 1 : 0; in SymbolInfoParsing() [all …]
|
| /developtools/ace_ets2bundle/compiler/src/ |
| D | process_module_files.ts | 56 …* The value of "node.fileName" consists of "test.ts", which does not correspond with the source fi… 62 …let temporaryFile: string = genTemporaryPath(moduleId ? moduleId : node.fileName, projectConfig.pr… 70 …let relativeFilePath = getRelativeSourcePath(moduleId ? moduleId : node.fileName, projectConfig.pr… 87 originSourceFilePath: node.fileName, 112 const fileName: string = moduleId ? moduleId : node.fileName; constant 117 ts.getBaseFileName(fileName), 129 toUnixPath(fileName).startsWith(toUnixPath(projectConfig.projectRootPath)) ? 130 toUnixPath(fileName).replace(toUnixPath(projectConfig.projectRootPath) + '/', '') : 131 toUnixPath(fileName).replace(toUnixPath(metaInfo.belongProjectPath) + '/', '') 135 content = transformModuleSpecifier(fileName, processSystemApi(content, true), projectConfig);
|
| D | ets_checker.ts | 125 .forEach((fileName: string) => { 126 if (/\.d\.ts$/.test(fileName)) { 127 declarationsFileNames.push(path.resolve(__dirname, '../declarations', fileName)); 133 const buildInfoWriteFile: ts.WriteFileCallback = (fileName: string, data: string) => { 134 if (fileName.includes(TS_BUILD_INFO_SUFFIX)) { 135 const fd: number = fs.openSync(fileName, 'w'); 296 export const fileHashScriptVersion: (fileName: string) => string = (fileName: string) => { 297 if (!fs.existsSync(fileName)) { 301 let fileContent: string = fs.readFileSync(fileName).toString(); 302 let cacheInfo: CacheFileName = cache[path.resolve(fileName)]; [all …]
|
| /developtools/profiler/hidebug/interfaces/js/kits/napi/ |
| D | napi_hidebug_dump.cpp | 77 bool InitRawHeapFile(std::string& fileName) in InitRawHeapFile() argument 83 fileName = filePath + SLASH_STR + RAW_HEAP_RECORD_FILE; in InitRawHeapFile() 85 return CreateDirectory(fileName, fileMode); in InitRawHeapFile() 217 napi_value DumpHeapSnapshot(const std::string& fileName, napi_env env) in DumpHeapSnapshot() argument 223 std::string filePath = filesDir + SLASH_STR + fileName + HEAPSNAPSHOT_FILE; in DumpHeapSnapshot() 225 return CreateErrorMessage(env, "input fileName is illegal."); in DumpHeapSnapshot() 238 std::string fileName = GetFileNameParam(env, info); in DumpHeapData() local 239 return DumpHeapSnapshot(fileName, env); in DumpHeapData() 245 std::string fileName; in DumpJsHeapData() local 246 if (!GetTheOnlyStringParam(env, info, fileName)) { in DumpJsHeapData() [all …]
|
| /developtools/hapsigner/hapsigntool_cpp/codesigning/sign/src/ |
| D | code_signing.cpp | 278 bool CodeSigning::GetSingleFileStreamFromZip(unzFile &zFile, char fileName[], in GetSingleFileStreamFromZip() argument 307 + std::string(fileName) + " failed."); in GetSingleFileStreamFromZip() 332 char fileName[FILE_NAME_SIZE]; in RunParseZipInfo() local 335 if (memset_s(fileName, FILE_NAME_SIZE, 0, FILE_NAME_SIZE) != 0) { in RunParseZipInfo() 336 SIGNATURE_TOOLS_LOGE("memory of fileName memset_s failed"); in RunParseZipInfo() 341 if (!CheckUnzParam(zFile, zFileInfo, fileName, &nameLen)) { in RunParseZipInfo() 345 if (!CheckFileName(fileName, &nameLen)) { in RunParseZipInfo() 349 bool flag = GetSingleFileStreamFromZip(zFile, fileName, zFileInfo, readFileSize, sb); in RunParseZipInfo() 354 bool handleFlag = DoNativeLibSignOrVerify(std::string(fileName), sb, param, readFileSize); in RunParseZipInfo() 356 SIGNATURE_TOOLS_LOGE("%s native libs handle failed", fileName); in RunParseZipInfo() [all …]
|
| /developtools/profiler/device/base/test/unittest/ |
| D | common_test.cpp | 133 std::string fileName = "/data/local/tmp/config.txt"; variable 135 EXPECT_TRUE(WriteFile(fileName, fileContent)); 140 bool ret = ReadFile(fileName, validPaths, readContent); 145 fileName = "config.txt"; 148 ret = ReadFile(fileName, validPaths, readContent); 153 fileName = "configtmp.txt"; 156 ret = ReadFile(fileName, validPaths, readContent); 161 fileName = "/data/local/tmp/config.txt"; 164 ret = ReadFile(fileName, validPaths, readContent); 169 fileName = "/data/local/tmp/config.txt"; [all …]
|
| /developtools/ace_ets2bundle/compiler/tools/memory_dotting_viewer/ |
| D | memory_server.py | 50 filename = query_params.get('filename', [None])[0] 51 if filename: 52 file_to_load = os.path.join(os.path.dirname(self.server.file_to_load), filename) 57 self.send_header('Content-Disposition', f'attachment; filename="{filename}"') 65 self.send_error(400, "Filename parameter is required") 68 filename = os.path.basename(self.server.file_to_load) 72 self.wfile.write(filename.encode('utf-8'))
|
| /developtools/integration_verification/DeployDevice/ |
| D | OAT.xml | 42 …"filename" is used to check whether the specified file exists in the specified path(support projec… 48 8. filefilter: Filter rules, the type filename is used to filter file name, the type filepath is us… 66 <filteritem type="filename" name="*.png|*.jpeg|*.json" desc="Test files"/> 67 …<filteritem type="filename" name="*.bin|*.exe|ReadMe|oeminfo_nvm_test" desc="There are the upgrade… 70 … <filteritem type="filename" name="*.png|*.jpeg|*.json|*.hap|dhcpc.sh" desc="NoLicenseHeader"/> 71 …<filteritem type="filename" name="*.bin|*.exe|ReadMe|oeminfo_nvm_test" desc="There are the upgrade… 74 …<filteritem type="filename" name="*.png|*.jpeg|*.json|*.hap|dhcpc.sh" desc="InvalidCopyright file"… 75 …<filteritem type="filename" name="*.bin|*.exe|ReadMe|oeminfo_nvm_test" desc="There are the upgrade… 78 … <filteritem type="filename" name="*.png|*.jpeg|*.json|*.hap|busybox" desc="already checked"/> 79 …<filteritem type="filename" name="*.bin|*.exe|ReadMe|oeminfo_nvm_test" desc="There are the upgrade…
|
| /developtools/profiler/hiebpf/include/ |
| D | elf_symbol_info.h | 40 bool IsCached(const std::string &fileName) in IsCached() argument 42 return (fileNames_.find(fileName) != fileNames_.end()); in IsCached() 45 void CacheFileName(const std::string &fileName) in CacheFileName() argument 47 fileNames_.insert(fileName); in CacheFileName() 50 bool GetSymbolTable(const std::string &fileName, ElfSymbolTable &symbolTable);
|
| /developtools/profiler/hiebpf/src/ |
| D | maps_info.cpp | 60 …std::copy(map.fileName_.c_str(), map.fileName_.c_str() + map.fileName_.size() + 1, wp); // fileName in GetBinary() 103 bool MapsInfo::IsLegalFileName(const std::string &fileName) in IsLegalFileName() argument 105 if (fileName.find(':') != std::string::npos or in IsLegalFileName() 106 fileName.front() == '[' or fileName.back() == ']' or in IsLegalFileName() 107 std::strncmp(fileName.c_str(), "/dev/", sizeof("/dev/")) == 0 or in IsLegalFileName() 108 std::strncmp(fileName.c_str(), "/memfd:", sizeof("/memfd:")) == 0 or in IsLegalFileName() 109 std::strncmp(fileName.c_str(), "//anon", sizeof("//anon")) == 0 or in IsLegalFileName() 110 StringEndsWith(fileName, ".ttf")) { in IsLegalFileName()
|
| /developtools/packing_tool/packing_tool/frameworks/include/ |
| D | app_log_wrapper.h | 57 #define FILENAME (__builtin_strrchr(__FILE__, '/') ? __builtin_strrchr(__FILE__, '/') + 1 : __FILE_… macro 60 "[%{public}s(%{public}s:%{public}d)]" fmt, FILENAME, __FUNCTION__, __LINE__, ##__VA_ARGS__)) 63 "[%{public}s(%{public}s:%{public}d)]" fmt, FILENAME, __FUNCTION__, __LINE__, ##__VA_ARGS__)) 66 "[%{public}s(%{public}s:%{public}d)]" fmt, FILENAME, __FUNCTION__, __LINE__, ##__VA_ARGS__)) 69 "[%{public}s(%{public}s:%{public}d)]" fmt, FILENAME, __FUNCTION__, __LINE__, ##__VA_ARGS__)) 72 "[%{public}s(%{public}s:%{public}d)]" fmt, FILENAME, __FUNCTION__, __LINE__, ##__VA_ARGS__))
|
| /developtools/hiperf/test/fuzztest/perffile_fuzzer/ |
| D | PerfFile_fuzzer.cpp | 23 explicit PerfFileReaderFuzzer(const std::string &fileName, FILE *fp) in PerfFileReaderFuzzer() argument 24 : PerfFileReader(fileName, fp) {} in PerfFileReaderFuzzer() 26 static std::unique_ptr<PerfFileReaderFuzzer> Instance(const std::string &fileName, in Instance() argument 29 std::string resolvedPath = CanonicalizeSpecPath(fileName.c_str()); in Instance() 32 printf("fail to append file %s\n", fileName.c_str()); in Instance() 41 printf("fail to open file %s\n", fileName.c_str()); in Instance()
|
| /developtools/profiler/hidebug/test/unittest/native/ |
| D | hidebug_test.cpp | 250 char fileName[256] = {0}; variable 255 … auto captureResult = OH_HiDebug_StartAppTraceCapture(flag, tags, limitSize, fileName, fileLength); 258 EXPECT_GT(sizeof(fileName) / sizeof(fileName[0]), 1); 274 char fileName[256] = {0}; variable 279 … auto captureResult = OH_HiDebug_StartAppTraceCapture(flag, tags, limitSize, fileName, fileLength); 282 …auto captureResult2 = OH_HiDebug_StartAppTraceCapture(flag, tags, limitSize, fileName, fileLength); 284 EXPECT_GT(sizeof(fileName) / sizeof(fileName[0]), 1); 300 char fileName[256] = {0}; variable 305 … auto captureResult = OH_HiDebug_StartAppTraceCapture(flag, tags, limitSize, fileName, fileLength); 308 EXPECT_GT(sizeof(fileName) / sizeof(fileName[0]), 1);
|
| /developtools/hiperf/script/ |
| D | recv_binary_cache.py | 86 filename = bin_file[bin_file.rfind('/') + 1:] 87 if file_dict.get(filename) is None: 88 file_dict[filename] = [bin_file] 90 file_dict[filename].append(bin_file) 93 for filename in files: 94 paths = file_dict.get(filename) 98 build_id = get_build_id(os.path.join(root, filename)) 106 os.path.join(root, filename), bin_file) 168 filename = device_path[device_path.rfind('/') + 1:] 172 os.path.join('/data/local/tmp/', filename), [all …]
|