/developtools/hdc/src/common/ |
D | debug.cpp | 28 FILE *fp = fopen(resolvedPath.c_str(), "a+"); in WriteHexToDebugFile() local 29 if (fp == nullptr) { in WriteHexToDebugFile() 37 if ((fp = fopen(resolvedPath.c_str(), "a+")) == nullptr) { in WriteHexToDebugFile() 42 fwrite(buf, 1, bufLen, fp); in WriteHexToDebugFile() 43 fflush(fp); in WriteHexToDebugFile() 44 fclose(fp); in WriteHexToDebugFile() 54 FILE *fp = fopen(pathName, "r"); in ReadHexFromDebugFile() local 55 if (fp == nullptr) { in ReadHexFromDebugFile() 57 (fp = fopen(pathName, "r")) == nullptr) { in ReadHexFromDebugFile() 58 if (fp != nullptr) { in ReadHexFromDebugFile() [all …]
|
/developtools/bytrace/script/ |
D | bytrace_multi.py | 33 with codecs.open(file, 'r', encoding='utf-8') as fp: 34 for line in fp: 96 with codecs.open(file_name, 'w+', encoding='utf-8') as fp: 97 fp.write("# tracer: nop\n") 98 fp.write("#\n") 99 fp.write("# _-----=> irqs-off\n") 100 fp.write("# / _----=> need-resched\n") 101 fp.write("# | / _---=> hardirq/softirq\n") 102 fp.write("# || / _--=> preempt-depth\n") 103 fp.write("# ||| / delay\n") [all …]
|
/developtools/hiperf/test/unittest/common/native/ |
D | perf_file_reader_test.cpp | 48 FILE *fp = stdout; variable 49 PerfFileReader *hiperfFileReader = new PerfFileReader(filename, fp); 61 FILE *fp = nullptr; variable 62 PerfFileReader *hiperfFileReader = new PerfFileReader(filename, fp); 74 FILE *fp = stdout; variable 75 PerfFileReader *hiperfFileReader = new PerfFileReader(filename, fp); 83 FILE *fp = nullptr; variable 84 PerfFileReader *hiperfFileReader = new PerfFileReader(filename, fp); 92 FILE *fp = stdout; variable 93 PerfFileReader *hiperfFileReader = new PerfFileReader(filename, fp); [all …]
|
D | elf_parser_test.cpp | 45 static const std::string GetNextLine(FILE *fp, int *status) in GetNextLine() argument 53 if (fgets(buf, bufSize, fp) == nullptr) { in GetNextLine() 1017 std::unique_ptr<EhdrFromReadelf> EhdrFromReadelf::MakeUnique(FILE *fp) in MakeUnique() argument 1019 if (fp == nullptr) { in MakeUnique() 1028 if (!ehdr->Init(fp)) { in MakeUnique() 1036 bool EhdrFromReadelf::Init(FILE *fp) in Init() argument 1038 if (fp == nullptr) { in Init() 1044 GetNextLine(fp, &status); in Init() 1045 if (!GetMagic(fp)) { in Init() 1052 GetNextLine(fp, &status); in Init() [all …]
|
/developtools/profiler/device/plugins/hidump_plugin/test/unittest/ |
D | hidump_plugin_unittest.cpp | 206 FILE *fp = nullptr; variable 209 fp = plugin.CustomPopen("", "r"); 210 EXPECT_NE(fp, nullptr); 212 EXPECT_NE(plugin.CustomPclose(fp), -1); 222 std::unique_ptr<FILE, int (*)(FILE*)> fp(popen(cmd.c_str(), "r"), pclose); in RecordFileExist() local 223 if (!fp) { in RecordFileExist() 229 char* pRet = fgets(buff, BUF_MAX_LEN - 1, fp.get()); in RecordFileExist() 248 FILE *fp = nullptr; variable 253 fp = plugin.CustomPopen(cmd.c_str(), "w"); 254 EXPECT_NE(fp, nullptr); [all …]
|
/developtools/profiler/device/plugins/native_daemon/test/unittest/common/native/include/ |
D | elf_parser_test.h | 37 static std::unique_ptr<EhdrFromReadelf> MakeUnique(FILE *fp); 38 bool Init(FILE *fp); 54 bool GetMagic(FILE * const fp); 55 bool GetEntryAddr(FILE * const fp); 56 bool GetPrgOffset(FILE * const fp); 57 bool GetSecOffset(FILE * const fp); 58 bool GetFlag(FILE * const fp); 59 bool GetEhdrSize(FILE * const fp); 60 bool GetPhdrSize(FILE * const fp); 61 bool GetNumPhdrs(FILE * const fp); [all …]
|
D | callstack_test.h | 120 std::unique_ptr<FILE, decltype(&fclose)> fp(fp_cin, fclose); in LoadFromFile() 121 if (fp == nullptr) { in LoadFromFile() 126 ASSERT_NE(fstat(fileno(fp.get()), &sb), -1); in LoadFromFile() 131 if ((ret = fread(data.data(), sizeof(T), data.size(), fp.get())) < 0) { in LoadFromFile()
|
/developtools/hiperf/test/unittest/common/native/include/ |
D | elf_parser_test.h | 37 static std::unique_ptr<EhdrFromReadelf> MakeUnique(FILE *fp); 38 bool Init(FILE *fp); 54 bool GetMagic(FILE * const fp); 55 bool GetEntryAddr(FILE * const fp); 56 bool GetPrgOffset(FILE * const fp); 57 bool GetSecOffset(FILE * const fp); 58 bool GetFlag(FILE * const fp); 59 bool GetEhdrSize(FILE * const fp); 60 bool GetPhdrSize(FILE * const fp); 61 bool GetNumPhdrs(FILE * const fp); [all …]
|
D | callstack_test.h | 166 std::unique_ptr<FILE, decltype(&fclose)> fp(fp_, fclose); in LoadFromFile() 167 if (fp) { in LoadFromFile() 169 ASSERT_NE(fstat(fileno(fp.get()), &sb), -1); in LoadFromFile() 173 ASSERT_EQ(fread(data.data(), sizeof(T), data.size(), fp.get()), data.size()); in LoadFromFile()
|
/developtools/profiler/device/plugins/native_hook/src/ |
D | runtime_stack_range.cpp | 102 static void GetAnUnlimitedLine(FILE* fp, std::string& buf) in GetAnUnlimitedLine() argument 104 if (!fp) { in GetAnUnlimitedLine() 119 retLine = fgets(&buf[0] + offset, buf.size() - offset, fp); in GetAnUnlimitedLine() 134 FILE* fp = fopen("/proc/self/maps", "re"); in GetMainThreadRuntimeStackRange() local 135 if (fp == nullptr) { in GetMainThreadRuntimeStackRange() 138 while (!feof(fp)) { in GetMainThreadRuntimeStackRange() 139 GetAnUnlimitedLine(fp, line); in GetMainThreadRuntimeStackRange() 155 if (fclose(fp) != 0) { in GetMainThreadRuntimeStackRange()
|
/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() 39 FILE *fp = fopen(resolvedPath.c_str(), "rb"); in Instance() local 40 if (fp == nullptr) { in Instance() 46 std::make_unique<PerfFileReaderFuzzer>(resolvedPath, fp); in Instance()
|
/developtools/hiperf/test/fuzztest/elfparser_fuzzer/ |
D | ElfParser_fuzzer.cpp | 52 FILE *fp = fopen(testData.c_str(), "ab"); in FuzzElfFile() local 53 if (fp == nullptr) { in FuzzElfFile() 57 (void)fwrite(data, sizeof(uint8_t), size, fp); in FuzzElfFile() 58 (void)fclose(fp); in FuzzElfFile()
|
/developtools/profiler/device/plugins/native_daemon/test/unittest/common/native/ |
D | elf_parser_test.cpp | 45 static const std::string GetNextLine(FILE *fp, int *status) in GetNextLine() argument 52 if (fgets(buf, bufSize, fp) == nullptr) { in GetNextLine() 1016 std::unique_ptr<EhdrFromReadelf> EhdrFromReadelf::MakeUnique(FILE *fp) in MakeUnique() argument 1023 if (!ehdr->Init(fp)) { in MakeUnique() 1031 bool EhdrFromReadelf::Init(FILE *fp) in Init() argument 1035 GetNextLine(fp, &status); in Init() 1036 if (!GetMagic(fp)) { in Init() 1043 GetNextLine(fp, &status); in Init() 1045 if (!GetEntryAddr(fp)) { in Init() 1049 if (!GetPrgOffset(fp)) { in Init() [all …]
|
/developtools/profiler/device/plugins/native_daemon/src/ |
D | utilities.cpp | 304 FILE *fp = fopen(dataFile.c_str(), "rb"); in CompressFile() local 305 if (fp == nullptr) { in CompressFile() 314 fclose(fp); in CompressFile() 320 while ((len = fread(buf.data(), sizeof(uint8_t), buf.size(), fp))) { in CompressFile() 323 fclose(fp); in CompressFile() 327 if (!feof(fp)) { in CompressFile() 328 if (ferror(fp) != 0) { in CompressFile() 330 fclose(fp); in CompressFile() 337 CHECK_TRUE(fclose(fp) == 0, false, "fclose failed! errno(%d:%s)", errno, errBuf); in CompressFile() 344 FILE *fp = fopen(dataFile.c_str(), "wb"); in UncompressFile() local [all …]
|
/developtools/profiler/host/smartperf/client/client_ui/entry/src/main/ets/common/ui/detail/ |
D | PowerDubai.ets | 60 …}.fontWeight(FontWeight.Bold).fontColor($r("app.color.color_333")).fontSize('12fp').textAlign(Text… 67 .fontSize('12fp') 76 // .fontSize('12fp') 85 .fontSize('12fp') 93 .fontSize('12fp') 108 …}.fontWeight(FontWeight.Bold).fontColor($r("app.color.color_333")).fontSize('12fp').textAlign(Text… 116 .fontSize('12fp') 125 // .fontSize('12fp') 134 .fontSize('12fp') 143 .fontSize('12fp')
|
/developtools/profiler/device/base/src/ |
D | common.cpp | 120 FILE* fp = fopen(filePath, "r"); in IsProcessExist() local 121 if (fp == nullptr) { in IsProcessExist() 126 if (fgets(buf, sizeof(buf) - 1, fp) == nullptr) { in IsProcessExist() 127 fclose(fp); in IsProcessExist() 140 fclose(fp); in IsProcessExist() 143 fclose(fp); in IsProcessExist() 216 inline int CustomFdFclose(FILE** fp) in CustomFdFclose() argument 218 int ret = fclose(*fp); in CustomFdFclose() 220 *fp = nullptr; in CustomFdFclose() 297 int CustomPclose(FILE* fp, int fds[], volatile pid_t& childPid, bool needUnblock) in CustomPclose() argument [all …]
|
/developtools/integration_verification/tools/startup_guard/config_parser_mgr/param/ |
D | system_parameter_parser.py | 99 with open(file_name, encoding='utf-8') as fp: 100 line = fp.readline() 104 line = fp.readline() 108 line = fp.readline() 111 line = fp.readline()
|
/developtools/profiler/device/plugins/hiperf_plugin/test/unittest/ |
D | hiperf_plugin_unittest.cpp | 169 std::unique_ptr<FILE, int (*)(FILE*)> fp(fopen(fileName.c_str(), "rb"), fclose); in CheckRecordFile() local 170 ASSERT_NE(fp, nullptr); in CheckRecordFile() 173 fseek(fp.get(), 0, SEEK_END); in CheckRecordFile() 174 ASSERT_GE(ftell(fp.get()), perfDataHeaderLen) << "perf.data should have data"; in CheckRecordFile() 175 fseek(fp.get(), 0, SEEK_SET); in CheckRecordFile() 178 long rLen = fread(buff, 1, perfDataHeaderLen, fp.get()); in CheckRecordFile()
|
/developtools/hiperf/src/ |
D | utilities.cpp | 381 FILE *fp = fopen(resolvedPath.c_str(), "rb"); in CompressFile() local 382 if (fp == nullptr) { in CompressFile() 391 fclose(fp); in CompressFile() 397 while ((len = fread(buf.data(), sizeof(uint8_t), buf.size(), fp))) { in CompressFile() 400 fclose(fp); in CompressFile() 404 if (!feof(fp)) { in CompressFile() 405 if (ferror(fp) != 0) { in CompressFile() 407 fclose(fp); in CompressFile() 411 if (fclose(fp) < 0) { in CompressFile() 421 FILE *fp = fopen(resolvedPath.c_str(), "wb"); in UncompressFile() local [all …]
|
D | perf_file_reader.cpp | 37 FILE *fp = fopen(resolvedPath.c_str(), "rb"); in Instance() local 38 if (fp == nullptr) { in Instance() 43 std::unique_ptr<PerfFileReader> reader = std::make_unique<PerfFileReader>(fileName, fp); in Instance() 47 fclose(fp); in Instance() 80 PerfFileReader::PerfFileReader(const std::string &fileName, FILE *fp) : fp_(fp), fileName_(fileName) in PerfFileReader() argument 84 if (fp != nullptr) { in PerfFileReader() 85 if (fstat(fileno(fp), &fileStat) != -1 and fileStat.st_size > 0) { in PerfFileReader()
|
/developtools/profiler/device/plugins/hiperf_plugin/src/ |
D | hiperf_module.cpp | 92 FILE* fp = COMMON::CustomPopen(cmdArg, "r", pipeFds, childPid); in RunCommand() local 93 CHECK_NOTNULL(fp, false, "HiperfPlugin::RunCommand CustomPopen FAILED!r"); in RunCommand() 98 while (fgets(buffer.data(), buffer.size(), fp) != nullptr) { in RunCommand() 105 COMMON::CustomPclose(fp, pipeFds, childPid); in RunCommand()
|
/developtools/profiler/host/smartperf/client/client_ui/entry/src/main/ets/common/ui/main/ |
D | Report.ets | 57 Text(`${item.name}`).fontSize('15fp') 59 Text(`${item.appName}`).fontSize('15fp').backgroundColor(0xFFFFFF) 61 Text(`${item.startTime}`).fontSize('15fp').backgroundColor(0xFFFFFF) 63 … Text(secToTime(item.testDuration).toString()).fontSize('15fp').backgroundColor(0xFFFFFF)
|
/developtools/syscap_codec/src/ |
D | syscap_tool.c | 65 FILE *fp = NULL; in GetFileContext() local 96 fp = fopen(path, "rb"); in GetFileContext() 97 if (fp == NULL) { in GetFileContext() 102 size_t retFread = fread(contextBuffer, statBuf.st_size, 1, fp); in GetFileContext() 106 (void)fclose(fp); in GetFileContext() 110 (void)fclose(fp); in GetFileContext() 121 FILE *fp = NULL; in ConvertedContextSaveAsFile() local 152 fp = fopen(path, "wb"); in ConvertedContextSaveAsFile() 153 if (fp == NULL) { in ConvertedContextSaveAsFile() 158 size_t retFwrite = fwrite(convertedBuffer, bufferLen, 1, fp); in ConvertedContextSaveAsFile() [all …]
|
/developtools/profiler/host/smartperf/client/client_command/ |
D | CPU.cpp | 77 FILE *fp = fopen(realPath, "r"); in GetCpuLoad() local 78 if (fp == nullptr) { in GetCpuLoad() 87 while (fgets(buffer, sizeof(buffer), fp) != nullptr) { in GetCpuLoad() 106 if (fclose(fp) == EOF) { in GetCpuLoad()
|
/developtools/profiler/host/smartperf/client/client_ui/entry/src/main/ets/pages/ |
D | LightAdjust.ets | 54 Text("+").fontSize('25fp').fontWeight(FontWeight.Bold).onClick(() => { 62 Text(this.outSetValue.toFixed(0)).fontWeight(FontWeight.Bold).fontSize('25fp') 64 Text("-").fontSize('25fp').fontWeight(FontWeight.Bold).onClick(() => {
|