| /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 | subcommand_record_test.cpp | 54 size_t GetFileSize(const char* fileName); 127 size_t SubCommandRecordTest::GetFileSize(const char* fileName) in GetFileSize() argument 129 if (fileName == nullptr) { in GetFileSize() 133 stat(fileName, &statbuf); in GetFileSize() 854 std::string fileName = TEST_FILE; variable 855 size_t fileSize = GetFileSize(fileName.c_str()); 867 std::string fileName = TEST_FILE; variable 868 size_t fileSize = GetFileSize(fileName.c_str()); 880 std::string fileName = TEST_FILE; variable 881 size_t fileSize = GetFileSize(fileName.c_str()); [all …]
|
| D | report_protobuf_file_test.cpp | 80 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/device/base/test/unittest/ |
| D | common_test.cpp | 134 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/profiler/device/plugins/hiebpf_plugin/tools/src/ |
| D | ebpf_converter.cpp | 208 char fileName[maps.fileNameLen + 1]; in EventMapsParsing() local 209 (void)memset_s(fileName, sizeof(fileName), 0, sizeof(fileName)); in EventMapsParsing() 211 CHK(Read(reinterpret_cast<void*>(fileName), sizeof(fileName) - 1)); in EventMapsParsing() 212 maps.fileName = fileName; in EventMapsParsing() 231 << " fileName: " << maps.fileName << '\n'; in EventMapsParsing() 266 char fileName[info.fileNameSize + 1]; in SymbolInfoParsing() local 267 (void)memset_s(fileName, sizeof(fileName), 0, sizeof(fileName)); in SymbolInfoParsing() 269 CHK(Read(reinterpret_cast<void*>(&fileName), sizeof(fileName) - 1)); in SymbolInfoParsing() 270 info.fileName = fileName; in SymbolInfoParsing() 272 record_[std::string(fileName)] = Record(fileName, symAddr, strAddr); in SymbolInfoParsing() [all …]
|
| /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/ace_ets2bundle/compiler/src/ |
| D | ets_checker.ts | 71 SOURCE_FILES.set(path.normalize(sourceFile.fileName), sourceFile); 78 .forEach((fileName: string) => { 79 if (/\.d\.ts$/.test(fileName)) { 80 declarationsFileNames.push(path.resolve(__dirname, '../declarations', fileName)); 166 function getCheckJSDocTagNameConfig(fileName: string, sourceFileName: string): CheckJSDocTagNameCon… 170 if (isCardFile(fileName)) { 196 rootFileNames.forEach((fileName: string) => { 197 files[fileName] = {version: 0}; 201 getScriptVersion: fileName => { 202 if (!files[path.resolve(fileName)]) { [all …]
|
| D | process_module_files.ts | 43 …let temporaryFile: string = genTemporaryPath(node.fileName, projectConfig.projectPath, process.env… 54 …let relativeSourceFilePath = toUnixPath(node.fileName).replace(toUnixPath(projectConfig.projectRoo… 84 const fileName: string = node.fileName; constant 89 ts.getBaseFileName(fileName), 100 …sourceMapJson['sources'] = [toUnixPath(fileName).replace(toUnixPath(projectConfig.projectRootPath)… 103 content = transformModuleSpecifier(fileName, processSystemApi(content, true), projectConfig);
|
| /developtools/smartperf_host/ide/src/base-ui/utils/ |
| D | CSVFormater.ts | 23 let fileName = (obj['fileName'] || 'UserExport') + '.csv'; 79 this.saveCsvFile(fileName, csv); 82 static saveCsvFile(fileName: any, csvData: any) { 90 linkDom.setAttribute('download', fileName); 96 }), fileName); 101 oWin.document.execCommand('SaveAs', true, fileName); 180 …static async csvExport(dataSource: { columns: any[]; tables: any[]; fileName: string }): Promise<s… 193 fileName: `${dataSource.fileName}_${childIndex}`, 201 fileName: dataSource.fileName,
|
| /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/hiebpf/src/ |
| D | maps_info.cpp | 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()
|
| D | libbpf_logger.cpp | 70 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/ |
| D | debug.cpp | 20 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/ |
| D | libbpf_logger_test.cpp | 87 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(), "");
|
| D | hhlog_test.cpp | 44 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/profiler/device/plugins/api/src/ |
| D | plugin_watcher.cpp | 75 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/profiler/host/smartperf/ide/src/trace/ |
| D | SpApplication.ts | 624 fileName: filename, 636 fileName: string, 666 that.vsDownload(mainMenu, fileName, isServer, dbName); 668 that.download(mainMenu, fileName, isServer, dbName); 681 that.vsDownloadDB(mainMenu, fileName); 683 that.downloadDB(mainMenu, fileName); 756 fileName: string, 816 children: getTraceOptionMenus(showFileName, fileSize, fileName, true, dbName), 833 function handleWasmMode(ev: any, showFileName: string, fileSize: string, fileName: string) { 888 children: getTraceOptionMenus(showFileName, fileSize, fileName, false), [all …]
|
| /developtools/smartperf_host/ide/src/trace/ |
| D | SpApplication.ts | 633 fileName: filename, 645 fileName: string, 675 that.vsDownload(mainMenu, fileName, isServer, dbName); 677 that.download(mainMenu, fileName, isServer, dbName); 690 that.vsDownloadDB(mainMenu, fileName); 692 that.downloadDB(mainMenu, fileName); 765 fileName: string, 825 children: getTraceOptionMenus(showFileName, fileSize, fileName, true, dbName), 843 function handleWasmMode(ev: any, showFileName: string, fileSize: string, fileName: string) { 902 children: getTraceOptionMenus(showFileName, fileSize, fileName, false), [all …]
|
| /developtools/profiler/host/smartperf/ide/src/base-ui/utils/ |
| D | CSVFormater.ts | 23 fileName = (obj['fileName'] || 'UserExport') + '.csv', 81 this.SaveAs(fileName, CSV); 84 static SaveAs(fileName: any, csvData: any) { 92 linkDom.setAttribute('download', fileName); 100 (navigator as any).msSaveBlob(_csvData, fileName); 105 oWin.document.execCommand('SaveAs', true, fileName); 186 …static async csvExport(dataSource: { columns: any[]; tables: any[]; fileName: string }): Promise<s… 192 fileName: dataSource.fileName,
|
| /developtools/ace_ets2bundle/compiler/test/ |
| D | test.ts | 48 fileName: `${name}.ts`, 62 const fileName: string = path.basename(item, '.ts'); constant 63 it(fileName, () => { 64 expectActual(fileName, item);
|
| D | test.js | 63 fileName: `${name}.ets`, property 89 const fileName = path.basename(item, '.ts'); constant 90 mocha.it(fileName, () => { 92 expectActual(fileName, item, true); 94 expectActual(fileName, item);
|
| /developtools/profiler/host/smartperf/ide/src/trace/bean/ |
| D | PerfProfile.ts | 22 fileName: string = ''; property in PerfFile 28 data.fileName = data.path.substring(number + 1); 32 data.fileName = data.path; 53 fileName: string = ''; property in PerfCallChain
|
| /developtools/smartperf_host/ide/src/trace/bean/ |
| D | PerfProfile.ts | 22 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/profiler/host/smartperf/trace_streamer/src/rpc/ |
| D | rpc_server.cpp | 188 int32_t RpcServer::DownloadELFCallback(const std::string& fileName, in DownloadELFCallback() argument 197 TS_LOGI("fileName = %s", fileName.c_str()); in DownloadELFCallback() 198 std::string symbolsPath = fileName.substr(0, fileName.find("/")); in DownloadELFCallback() 200 filePath = fileName.substr(0, fileName.find_last_of("/")); in DownloadELFCallback() 213 g_importFileFd = fopen(fileName.c_str(), "a+"); in DownloadELFCallback() 229 g_importFileFd = fopen(fileName.c_str(), "a+"); in DownloadELFCallback() 242 TS_LOGI("symbolsPath = %s, fileName = %s", symbolsPath.c_str(), fileName.c_str()); in DownloadELFCallback() 243 symbolsPathFiles_.emplace_back(fileName); in DownloadELFCallback()
|
| /developtools/hiperf/src/ |
| D | hiperf_libreport.cpp | 104 static std::unique_ptr<PerfFileReader> GetReader(const std::string &fileName) in GetReader() argument 107 if (access(fileName.c_str(), F_OK) != 0) { in GetReader() 109 printf("Can not access data file %s\n", fileName.c_str()); in GetReader() 113 auto reader = PerfFileReader::Instance(fileName); in GetReader() 115 printf("%s format not correct\n", fileName.c_str()); in GetReader() 280 int Dump(const char *fileName) in Dump() argument 283 HLOGD("dump the file %s\n", fileName); in Dump() 284 if (fileName != nullptr) { in Dump() 286 args.emplace_back(fileName); in Dump()
|