/developtools/ace-js2bundle/ace-loader/src/ |
D | card-loader.js | 37 const fileName = resourcePath.replace(path.extname(resourcePath).toString(), '') 40 const styleInfo = findStyleFile(fileName) 44 output = addJson(this, output, fileName, '') 89 compResourcepath + `?${customElementName}#${fileName}`) 93 compStyleInfo.styleFileName + `?${customElementName}#${fileName}`) 95 … output = addJson(this, output, compFileName, `?${customElementName}#${fileName}`, elementLastName) 102 function findStyleFile (fileName) { argument 104 let styleFileName = fileName + '.css' 110 styleFileName = fileName + '.less' 115 styleFileName = fileName + '.sass' [all …]
|
/developtools/profiler/host/ohosprofiler/src/main/java/ohos/devtools/services/memory/nativebean/ |
D | NativeFrame.java | 29 private String fileName; field in NativeFrame 34 …public NativeFrame(String pc, String fileName, String functionName, String offsetAddress, String l… in NativeFrame() argument 36 this.fileName = fileName; in NativeFrame() 52 return fileName; in getFileName() 55 public void setFileName(String fileName) { in setFileName() argument 56 this.fileName = fileName; in setFileName() 93 + ", fileName='" + fileName + '\'' in toString() 100 return Objects.hash(pc, fileName, functionName); in hashCode()
|
D | NativeInstanceObject.java | 33 private String fileName; field in NativeInstanceObject 96 return fileName; in getFileName() 99 public void setFileName(String fileName) { in setFileName() argument 100 this.fileName = fileName; in setFileName() 128 + ", fileName='" + fileName + '\'' in toString() 137 …return Objects.hash(addr, size, instanceCount, isAdd, fileName, functionName, nativeFrames, isDeAl… in hashCode()
|
/developtools/hiperf/test/unittest/common/native/ |
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/ace-ets2bundle/compiler/src/ |
D | ets_checker.ts | 51 .forEach((fileName: string) => { 52 if (/\.d\.ts$/.test(fileName)) { 53 declarationsFileNames.push(path.resolve(__dirname, '../declarations', fileName)); 94 getScriptVersion: fileName => 95 files[fileName] && files[fileName].version.toString(), 96 getScriptSnapshot: fileName => { 97 if (!fs.existsSync(fileName)) { 100 if (/(?<!\.d)\.(ets|ts)$/.test(fileName)) { 101 const content: string = processContent(fs.readFileSync(fileName).toString()); 102 checkUISyntax(content, fileName); [all …]
|
D | result_process.ts | 57 item.fileName = item.fileName || sourceFile.fileName;
|
D | utils.ts | 45 fileName?: string property 74 loader.emitError(getMessage(item.fileName || loader.resourcePath, item)); 95 fileName: sourceFile.fileName 99 export function getMessage(fileName: string, info: LogInfo): string { 102 message = `BUILD${info.type} File: ${fileName}:${info.line}:${info.column}\n ${info.message}`; 104 message = `BUILD${info.type} File: ${fileName}\n ${info.message}`;
|
/developtools/profiler/host/ohosprofiler/src/main/java/ohos/devtools/views/perftrace/bean/ |
D | PrefFile.java | 35 private String fileName = ""; field in PrefFile 43 return fileName; in getFileName() 101 this.fileName = path.substring(lastSplitIndex + 1); in setPath() 105 this.fileName = path; in setPath()
|
/developtools/hdc_standard/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()
|
D | debug.h | 21 int WriteHexToDebugFile(const char *fileName, const uint8_t *buf, const int bufLen); 22 int ReadHexFromDebugFile(const char *fileName, uint8_t *buf, const int bufLen);
|
/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/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 | 52 fileName: `${name}.ets`, property 66 const fileName = path.basename(item, '.ts'); constant 67 mocha.it(fileName, () => { 68 expectActual(fileName, item);
|
/developtools/hiperf/test/fuzztest/PerfFile_fuzzer/ |
D | PerfFile_fuzzer.cpp | 60 explicit PerfFileReaderFuzzer(const std::string &fileName, FILE *fp) in PerfFileReaderFuzzer() argument 61 : PerfFileReader(fileName, fp) {}; in PerfFileReaderFuzzer() 63 static std::unique_ptr<PerfFileReaderFuzzer> Instance(const std::string &fileName, in Instance() argument 66 FILE *fp_ = fopen(fileName.c_str(), "rb"); in Instance() 72 HLOGE("fail to open file %s", fileName.c_str()); in Instance() 77 std::make_unique<PerfFileReaderFuzzer>(fileName, fp.get()); in Instance()
|
/developtools/hiperf/test/unittest/common/native/include/ |
D | callstack_test.h | 45 std::string fileName; member 110 void LoadFromFile(const std::string &fileName, std::vector<T> &data) in LoadFromFile() argument 112 FILE* fp_ = fopen(fileName.c_str(), "r"); in LoadFromFile() 130 thread.CreateMapItem(mmap.fileName, mmap.begin, mmap.len, mmap.pgoff); in MakeMaps()
|
/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() 277 int Dump(const char *fileName) in Dump() argument 280 HLOGD("dump the file %s\n", fileName); in Dump() 281 if (fileName != nullptr) { in Dump() 283 args.emplace_back(fileName); in Dump()
|
D | virtual_thread.cpp | 184 bool VirtualThread::IsLegalFileName(const std::string &fileName) in IsLegalFileName() argument 187 if (fileName == "[vdso]") { in IsLegalFileName() 190 if (fileName.empty() or fileName.find(':') != std::string::npos or fileName.front() == '[' or in IsLegalFileName() 191 fileName.back() == ']' or std::strncmp(fileName.c_str(), "/dev/", sizeof("/dev/")) == 0 or in IsLegalFileName() 192 std::strncmp(fileName.c_str(), "/memfd:", sizeof("/memfd:")) == 0 or in IsLegalFileName() 193 std::strncmp(fileName.c_str(), "//anon", sizeof("//anon")) == 0 or in IsLegalFileName() 194 StringEndsWith(fileName, ".ttf")) { in IsLegalFileName()
|
D | utilities.cpp | 64 std::string fileName(src); in CanonicalizeSpecPath() local 65 if (fileName.find("..") == std::string::npos) { in CanonicalizeSpecPath() 160 std::string fileName = "temp.stdout"; in Start() local 161 std::string resolvedPath = CanonicalizeSpecPath(fileName.c_str()); in Start() 164 HLOGF("tmpfile create failed '%s'", fileName.c_str()); in Start() 258 bool IsPath(const std::string &fileName) in IsPath() argument 260 HLOG_ASSERT(!fileName.empty()); in IsPath() 261 if (fileName[0] == PATH_SEPARATOR) { in IsPath() 265 if (fileName.substr(0, prefixPathLen) == "./") { in IsPath() 280 std::string ReadFileToString(const std::string &fileName) in ReadFileToString() argument [all …]
|
/developtools/profiler/device/plugins/memory_plugin/src/ |
D | memory_data_plugin.cpp | 88 char fileName[PATH_MAX + 1] = {0}; in InitMemVmemFd() local 90 … if (snprintf_s(fileName, sizeof(fileName), sizeof(fileName) - 1, "%s/meminfo", testpath_) < 0) { in InitMemVmemFd() 94 if (realpath(fileName, realPath) == nullptr) { in InitMemVmemFd() 112 char fileName[PATH_MAX + 1] = {0}; in InitMemVmemFd() local 114 … if (snprintf_s(fileName, sizeof(fileName), sizeof(fileName) - 1, "%s/vmstat", testpath_) < 0) { in InitMemVmemFd() 118 if (realpath(fileName, realPath) == nullptr) { in InitMemVmemFd() 440 char fileName[PATH_MAX + 1] = {0}; in OpenProcPidFiles() local 446 if (snprintf_s(fileName, sizeof(fileName), sizeof(fileName) - 1, in OpenProcPidFiles() 450 if (realpath(fileName, realPath) == nullptr) { in OpenProcPidFiles() 461 … HILOG_ERROR(LOG_CORE, "%s:failed to open(%s), errno(%d:%s)", __func__, fileName, errno, buf); in OpenProcPidFiles() [all …]
|
/developtools/profiler/device/plugins/cpu_plugin/src/ |
D | cpu_data_plugin.cpp | 126 int32_t CpuDataPlugin::ReadFile(std::string& fileName) in ReadFile() argument 133 if (snprintf_s(filePath, sizeof(filePath), sizeof(filePath) - 1, "%s", fileName.c_str()) < 0) { in ReadFile() 137 HILOG_ERROR(LOG_CORE, "snprintf_s(%s) error, errno(%d:%s)", fileName.c_str(), errno, buf); in ReadFile() 144 HILOG_ERROR(LOG_CORE, "realpath(%s) failed, errno(%d:%s)", fileName.c_str(), errno, buf); in ReadFile() 242 int32_t CpuDataPlugin::GetCpuFrequency(std::string fileName) in GetCpuFrequency() argument 245 int32_t ret = ReadFile(fileName); in GetCpuFrequency() 281 std::string fileName = freqPath_ + "/cpu" + std::to_string(i) + FREQUENCY_MAX_PATH; in GetMaxCpuFrequencyIndex() local 282 int32_t maxFrequency = GetCpuFrequency(fileName); in GetMaxCpuFrequencyIndex() 284 fileName = freqPath_ + "/cpu" + std::to_string(i) + FREQUENCY_MIN_PATH; in GetMaxCpuFrequencyIndex() 285 int32_t minFrequency = GetCpuFrequency(fileName); in GetMaxCpuFrequencyIndex() [all …]
|
/developtools/profiler/device/plugins/native_daemon/test/unittest/common/native/include/ |
D | callstack_test.h | 42 std::string fileName; member 116 void LoadFromFile(const std::string &fileName, std::vector<T> &data) in LoadFromFile() argument 119 FILE *originalPtr = fopen(fileName.c_str(), "r"); in LoadFromFile()
|
/developtools/profiler/device/plugins/process_plugin/src/ |
D | process_data_plugin.cpp | 135 char fileName[PATH_MAX + 1] = {0}; in ReadProcPidFile() local 140 …if (snprintf_s(fileName, sizeof(fileName), sizeof(fileName) - 1, "%s/%d/%s", testpath_, pid, pFile… in ReadProcPidFile() 143 if (realpath(fileName, realPath) == nullptr) { in ReadProcPidFile() 149 HILOG_INFO(LOG_CORE, "%s:failed to open(%s), errno=%d", __func__, fileName, errno); in ReadProcPidFile() 162 HILOG_INFO(LOG_CORE, "%s:failed to read(%s), errno=%d", __func__, fileName, errno); in ReadProcPidFile()
|
/developtools/hiperf/include/ |
D | elf_parser.h | 92 const std::string fileName {"ehdr_buffer_dump"}; in DumpEhdrBuf() 93 std::ofstream ofs {fileName, std::ios::binary}; in DumpEhdrBuf() 130 const std::string fileName {"phdr_buffer_dump"}; in DumpPhdrBuf() 131 std::ofstream ofs {fileName, std::ios::binary}; in DumpPhdrBuf() 175 const std::string fileName {"shdr_buffer_dump"}; in DumpShdrBuf() 176 std::ofstream ofs {fileName, std::ios::binary}; in DumpShdrBuf() 211 const std::string fileName {"shdr_buffer_dump"}; in DumpSymBuf() 212 std::ofstream ofs {fileName, std::ios::binary}; in DumpSymBuf()
|
/developtools/profiler/device/plugins/native_daemon/include/ |
D | elf_parser.h | 92 const std::string fileName {"ehdr_buffer_dump"}; in DumpEhdrBuf() 93 std::ofstream ofs {fileName, std::ios::binary}; in DumpEhdrBuf() 130 const std::string fileName {"phdr_buffer_dump"}; in DumpPhdrBuf() 131 std::ofstream ofs {fileName, std::ios::binary}; in DumpPhdrBuf() 175 const std::string fileName {"shdr_buffer_dump"}; in DumpShdrBuf() 176 std::ofstream ofs {fileName, std::ios::binary}; in DumpShdrBuf() 211 const std::string fileName {"shdr_buffer_dump"}; in DumpSymBuf() 212 std::ofstream ofs {fileName, std::ios::binary}; in DumpSymBuf()
|
/developtools/profiler/device/plugins/diskio_plugin/src/ |
D | diskio_data_plugin.cpp | 91 int32_t DiskioDataPlugin::ReadFile(std::string& fileName) in ReadFile() argument 97 if ((fileName.length() > PATH_MAX) || (realpath(fileName.c_str(), realPath) == nullptr)) { in ReadFile() 102 HILOG_ERROR(LOG_CORE, "%s:failed to open(%s), errno=%d", __func__, fileName.c_str(), errno); in ReadFile() 115 HILOG_ERROR(LOG_CORE, "%s:failed to read(%s), errno=%d", __func__, fileName.c_str(), errno); in ReadFile()
|