Home
last modified time | relevance | path

Searched refs:fileName (Results 1 – 25 of 148) sorted by relevance

123456

/developtools/ace_js2bundle/ace-loader/src/
Dcard-loader.js37 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/profiler/device/plugins/hiebpf_plugin/tools/src/
Debpf_converter.cpp209 char fileName[maps.fileNameLen + 1]; in EventMapsParsing() local
210 (void)memset_s(fileName, sizeof(fileName), 0, sizeof(fileName)); in EventMapsParsing()
212 size_t dataLen = sizeof(fileName) > 1 ? sizeof(fileName) - 1 : 0; in EventMapsParsing()
213 CHK(Read(reinterpret_cast<void*>(fileName), dataLen)); in EventMapsParsing()
214 maps.fileName = fileName; in EventMapsParsing()
233 << " fileName: " << maps.fileName << '\n'; in EventMapsParsing()
268 char fileName[info.fileNameSize + 1]; in SymbolInfoParsing() local
269 (void)memset_s(fileName, sizeof(fileName), 0, sizeof(fileName)); in SymbolInfoParsing()
271 size_t dataLen = sizeof(fileName) > 1 ? sizeof(fileName) - 1 : 0; in SymbolInfoParsing()
272 CHK(Read(reinterpret_cast<void*>(&fileName), dataLen)); in SymbolInfoParsing()
[all …]
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/codesigning/sign/
DCentralDirectory.java58 private final byte[] fileName; field in CentralDirectory
66 this.fileName = builder.fileName; in CentralDirectory()
88 return Strings.fromByteArray(this.fileName); in getFileName()
135 private byte[] fileName; field in CentralDirectory.Builder
162 public Builder setFileName(byte[] fileName) { in setFileName() argument
163 this.fileName = fileName; in setFileName()
/developtools/profiler/device/base/test/unittest/
Dcommon_test.cpp134 std::string fileName = "/data/local/tmp/config.txt"; variable
136 EXPECT_TRUE(WriteFile(fileName, fileContent));
141 bool ret = ReadFile(fileName, validPaths, readContent);
146 fileName = "config.txt";
149 ret = ReadFile(fileName, validPaths, readContent);
154 fileName = "configtmp.txt";
157 ret = ReadFile(fileName, validPaths, readContent);
162 fileName = "/data/local/tmp/config.txt";
165 ret = ReadFile(fileName, validPaths, readContent);
170 fileName = "/data/local/tmp/config.txt";
[all …]
/developtools/hiperf/test/unittest/common/native/
Dsubcommand_record_test.cpp82 size_t GetFileSize(const char* fileName);
146 size_t SubCommandRecordTest::GetFileSize(const char* fileName) in GetFileSize() argument
148 if (fileName == nullptr) { in GetFileSize()
152 stat(fileName, &statbuf); in GetFileSize()
889 std::string fileName = TEST_FILE; variable
890 size_t fileSize = GetFileSize(fileName.c_str());
902 std::string fileName = TEST_FILE; variable
903 size_t fileSize = GetFileSize(fileName.c_str());
915 std::string fileName = TEST_FILE; variable
916 size_t fileSize = GetFileSize(fileName.c_str());
[all …]
Dreport_protobuf_file_test.cpp80 std::string fileName = "perf.proto"; variable
81 ASSERT_EQ(protobufOutputFileWriter_->Create(fileName), true);
82 EXPECT_EQ(access(fileName.c_str(), F_OK), 0);
85 EXPECT_EQ(protobufOutputFileWriter_->Create(fileName), false);
96 std::string fileName = "perf.proto"; variable
98 ASSERT_EQ(protobufOutputFileWriter_->Create(fileName), true);
111 std::string fileName = "perf.proto"; variable
153 std::string fileName = "perf.proto"; variable
155 ASSERT_EQ(protobufOutputFileWriter_->Create(fileName), true);
173 protobufInputFileReader_->Dump(fileName, protobufReadBack);
[all …]
/developtools/profiler/hiebpf/include/
Delf_symbol_info.h40 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/ace_ets2bundle/compiler/test/ark_compiler_ut/common/
Dprocess_kit_import.test.ts120 fileName: "kitTest.ts",
129 fileName: "kitTest.ts",
138 fileName: "kitTest.ts",
147 fileName: "kitTest.ts",
156 fileName: "kitTest.ts",
165 fileName: "kitTest.ts",
174 fileName: "kitTest.ts",
183 fileName: "kitTest.ts",
217 fileName: "kitTest.ts",
/developtools/hiperf/test/fuzztest/perffile_fuzzer/
DPerfFile_fuzzer.cpp23 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/ace_ets2bundle/compiler/src/
Dets_checker.ts110 .forEach((fileName: string) => {
111 if (/\.d\.ts$/.test(fileName)) {
112 declarationsFileNames.push(path.resolve(__dirname, '../declarations', fileName));
118 const buildInfoWriteFile: ts.WriteFileCallback = (fileName: string, data: string) => {
119 if (fileName.includes(TS_BUILD_INFO_SUFFIX)) {
120 const fd: number = fs.openSync(fileName, 'w');
276 export const fileHashScriptVersion: (fileName: string) => string = (fileName: string) => {
277 if (!fs.existsSync(fileName)) {
281 let fileContent: string = fs.readFileSync(fileName).toString();
282 let cacheInfo: CacheFileName = cache[path.resolve(fileName)];
[all …]
Dprocess_module_files.ts50 …let temporaryFile: string = genTemporaryPath(moduleId ? moduleId : node.fileName, projectConfig.pr…
58 …let relativeSourceFilePath = toUnixPath(moduleId ? moduleId : node.fileName).replace(toUnixPath(pr…
75 originSourceFilePath: node.fileName,
100 const fileName: string = moduleId ? moduleId : node.fileName; constant
105 ts.getBaseFileName(fileName),
116 …sourceMapJson['sources'] = [toUnixPath(fileName).replace(toUnixPath(projectConfig.projectRootPath)…
119 content = transformModuleSpecifier(fileName, processSystemApi(content, true), projectConfig);
/developtools/smartperf_host/ide/src/base-ui/utils/
DCSVFormater.ts28 let fileName = (obj.fileName || 'UserExport') + '.csv'; variable
75 this.saveCsvFile(fileName, csv);
118 static saveCsvFile(fileName: unknown, csvData: unknown): void {
133 linkDom.setAttribute('download', fileName);
145 fileName
154 oWin.document.execCommand('SaveAs', true, fileName);
246 fileName: string;
264 fileName: `${dataSource.fileName}_${childIndex}`,
273 fileName: dataSource.fileName,
/developtools/profiler/hiebpf/src/
Dmaps_info.cpp103 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()
Dlibbpf_logger.cpp70 auto fileName = GetLogFileName(); in OpenLogFile() local
71 if (fileName.length() == 0) { in OpenLogFile()
74 fileName = "/data/local/tmp/" + fileName; in OpenLogFile()
75 fd_ = open(fileName.c_str(), O_WRONLY | O_CREAT, FILE_MODE); in OpenLogFile()
80 if (link(fileName.c_str(), logFile.c_str()) != 0) { in OpenLogFile()
/developtools/hdc/src/common/
Ddebug.cpp20 int WriteHexToDebugFile(const char *fileName, const uint8_t *buf, const int bufLen) in WriteHexToDebugFile() argument
23 …(snprintf_s(pathName, sizeof(pathName), sizeof(pathName) - 1, "/mnt/hgfs/vtmp/%s", fileName) < 0) { in WriteHexToDebugFile()
30 … if (snprintf_s(pathName, sizeof(pathName), sizeof(pathName) - 1, "/tmp/%s", fileName) < 0) { in WriteHexToDebugFile()
48 int ReadHexFromDebugFile(const char *fileName, uint8_t *buf, const int bufLen) in ReadHexFromDebugFile() argument
51 …(snprintf_s(pathName, sizeof(pathName), sizeof(pathName) - 1, "/mnt/hgfs/vtmp/%s", fileName) < 0) { in ReadHexFromDebugFile()
56 … if (snprintf_s(pathName, sizeof(pathName), sizeof(pathName) - 1, "/tmp/%s", fileName) < 0 || in ReadHexFromDebugFile()
/developtools/profiler/hiebpf/test/unittest/
Dlibbpf_logger_test.cpp87 std::string fileName = "/data/local/tmp/libebpf.log"; variable
88 ret = logger.OpenLogFile(fileName);
90 std::string cmd = "rm " + fileName;
102 std::string fileName = logger.GetLogFileName(); variable
103 EXPECT_STRNE(fileName.c_str(), "");
Dhhlog_test.cpp44 std::string fileName = HHLogger::GetInstance().GetLogFileName(); variable
45 EXPECT_STRNE(fileName.c_str(), "");
83 std::string fileName = "/data/local/tmp/libebpf.log"; variable
84 ret = HHLogger::GetInstance().InitLogger(HHLOG_DEBUG, fileName);
86 std::string cmd = "rm " + fileName;
/developtools/hiperf/src/
Dhiperf_libreport.cpp98 static std::unique_ptr<PerfFileReader> GetReader(const std::string &fileName) in GetReader() argument
101 if (access(fileName.c_str(), F_OK) != 0) { in GetReader()
103 printf("Can not access data file %s\n", fileName.c_str()); in GetReader()
107 auto reader = PerfFileReader::Instance(fileName); in GetReader()
109 printf("%s format not correct\n", fileName.c_str()); in GetReader()
187 int Dump(const char *fileName) in Dump() argument
190 HLOGD("dump the file %s\n", fileName); in Dump()
191 if (fileName != nullptr) { in Dump()
193 args.emplace_back(fileName); in Dump()
/developtools/profiler/device/plugins/api/src/
Dplugin_watcher.cpp75 std::string fileName = entry->d_name; in ScanPlugins() local
77 size_t pos = fileName.rfind(".so"); in ScanPlugins()
78 if (pos != std::string::npos && (pos == fileName.length() - strlen(".so"))) { in ScanPlugins()
79 OnPluginAdded(std::string(fullpath) + '/' + fileName); in ScanPlugins()
121 std::string fileName = event->name; in MonitorIsSet() local
122 size_t pos = fileName.rfind(".so"); in MonitorIsSet()
123 if ((pos == std::string::npos) || (pos != fileName.length() - strlen(".so"))) { in MonitorIsSet()
129 OnPluginAdded(pluginDir + '/' + fileName); in MonitorIsSet()
133 OnPluginRemoved(pluginDir + '/' + fileName); in MonitorIsSet()
/developtools/ace_ets2bundle/compiler/src/fast_build/system_api/
Dapi_check_utils.ts213 const fileName: string = transformLog.sourceFile.fileName; constant
215 if (/(?<!\.d)\.ts$/g.test(fileName)) {
230 const sourceBaseName: string = path.basename(sourceFile.fileName);
231 if (isArkuiDependence(sourceFile.fileName) &&
242 ohosSystemModulePaths.includes(sourceFile.fileName.replace(/\//g, '\\'))) {
303 export function getJsDocNodeCheckConfig(fileName: string, sourceFileName: string): ts.JsDocNodeChec…
304 …leName: Map<string, ts.JsDocNodeCheckConfig> | undefined = jsDocNodeCheckConfigCache.get(fileName);
307 jsDocNodeCheckConfigCache.set(fileName, byFileName);
315 const apiName: string = path.basename(fileName);
317 if (/(?<!\.d)\.ts$/g.test(fileName) && isArkuiDependence(sourceFileName) &&
[all …]
/developtools/ace_ets2bundle/compiler/test/
Dtest.ts48 fileName: `${name}.ts`,
62 const fileName: string = path.basename(item, '.ts'); constant
63 it(fileName, () => {
64 expectActual(fileName, item);
/developtools/smartperf_host/ide/src/trace/
DSpApplication.ts455 fileName: string,
464 let firstLastIndexOf = fileName.lastIndexOf('.');
465 let firstText = fileName.slice(0, firstLastIndexOf);
513 let fileName = file.name as string; variable
515 let specialMatch = fileName.match(/_(arkts|ebpf|hiperf)\.htrace$/);
516 let normalMatch = fileName.match(/_\d{8}_\d{6}_\d+\.htrace$/);
518 normalTraceNames.push(fileName);
519 let fileNameStr = fileName.split('.')[0];
525 specialTraceNames.push(fileName);
592 let fileName = ev.name; variable
[all …]
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/zip/
DZipEntryHeader.java107 private String fileName; field in ZipEntryHeader
155 this.fileName = new String(nameBytes, StandardCharsets.UTF_8); in readFileName()
193 bf.put(fileName.getBytes(StandardCharsets.UTF_8)); in toBytes()
290 return fileName; in getFileName()
293 public void setFileName(String fileName) { in setFileName() argument
294 this.fileName = fileName; in setFileName()
/developtools/smartperf_host/ide/src/trace/bean/
DPerfProfile.ts22 fileName: string = ''; property in PerfFile
28 perfData.fileName = perfData.path.substring(number + 1);
32 perfData.fileName = perfData.path;
63 fileName: string = ''; property in PerfCallChain
/developtools/packing_tool/adapter/ohos/
DHapZipInfo.java109 public void pushResourceMap(String fileName, String fileContent) { in pushResourceMap() argument
110 if (fileName == null || fileContent == null) { in pushResourceMap()
113 resourcemMap.put(fileName, fileContent); in pushResourceMap()

123456