| /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 …]
|
| /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/syscap_codec/src/ |
| D | context_tool.c | 43 FILE *fp = NULL; in GetFileContext() local 74 fp = fopen(path, "rb"); in GetFileContext() 75 if (fp == NULL) { in GetFileContext() 80 size_t retFread = fread(contextBuffer, statBuf.st_size, 1, fp); in GetFileContext() 84 (void)fclose(fp); in GetFileContext() 88 (void)fclose(fp); in GetFileContext() 98 FILE *fp = NULL; in ConvertedContextSaveAsFile() local 128 fp = fopen(path, "wb"); in ConvertedContextSaveAsFile() 129 if (fp == NULL) { in ConvertedContextSaveAsFile() 134 if (fwrite(convertedBuffer, contextBufLen, 1, fp) != 1) { in ConvertedContextSaveAsFile() [all …]
|
| /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/hdc/hdcd_user_permit/src/ |
| D | connection.cpp | 30 FILE *fp; in GetSettingBundleName() local 35 fp = popen("bm dump -a | grep \"com.*.settings$\"", "r"); in GetSettingBundleName() 36 if (!fp) { in GetSettingBundleName() 40 bytesRead = fread(buf, sizeof(char), bufSize, fp); in GetSettingBundleName() 52 pclose(fp); in GetSettingBundleName()
|
| /developtools/profiler/host/smartperf/client/client_command/ |
| D | Network.cpp | 45 FILE *fp = fopen("/proc/net/dev", "r"); in GetNetworkInfo() local 46 if (fp == nullptr) { in GetNetworkInfo() 50 while (fgets(buff, LARGE_BUFF_MAX_LEN, fp)) { in GetNetworkInfo() 60 fclose(fp); in GetNetworkInfo()
|
| D | Capture.cpp | 85 FILE *fp = fopen(savePath.c_str(), "wb"); in TakeScreenCap() local 86 if (fp == nullptr) { in TakeScreenCap() 91 png_init_io(pngStruct, fp); in TakeScreenCap() 102 (void)fclose(fp); in TakeScreenCap()
|
| /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/hiperf/test/unittest/common/native/include/ |
| 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_daemon/test/unittest/common/native/include/ |
| D | callstack_test.h | 117 std::unique_ptr<FILE, decltype(&fclose)> fp(fp_cin, fclose); in LoadFromFile() 118 if (fp == nullptr) { in LoadFromFile() 123 ASSERT_NE(fstat(fileno(fp.get()), &sb), -1); in LoadFromFile() 128 if ((ret = fread(data.data(), sizeof(T), data.size(), fp.get())) < 0) { in LoadFromFile()
|
| /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 UNWIND_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/device/plugins/native_hook/src/ |
| D | runtime_stack_range.cpp | 106 static void GetAnUnlimitedLine(FILE* fp, std::string& buf) in GetAnUnlimitedLine() argument 108 if (!fp) { in GetAnUnlimitedLine() 123 retLine = fgets(&buf[0] + offset, buf.size() - offset, fp); in GetAnUnlimitedLine() 170 FILE* fp = fopen("/proc/self/maps", "re"); in GetMainThreadRuntimeStackRange() local 171 if (fp == nullptr) { in GetMainThreadRuntimeStackRange() 174 while (!feof(fp)) { in GetMainThreadRuntimeStackRange() 176 GetAnUnlimitedLine(fp, line); in GetMainThreadRuntimeStackRange() 190 if (fclose(fp) != 0) { in GetMainThreadRuntimeStackRange()
|
| /developtools/integration_verification/tools/startup_guard/config_parser_mgr/param/ |
| D | system_parameter_parser.py | 98 with open(file_name, encoding='utf-8') as fp: 99 line = fp.readline() 102 line = fp.readline() 106 line = fp.readline() 109 line = fp.readline()
|
| /developtools/profiler/device/base/src/ |
| D | common.cpp | 138 FILE* fp = fopen(filePath, "r"); in IsProcessExist() local 139 if (fp == nullptr) { in IsProcessExist() 144 if (fgets(buf, sizeof(buf) - 1, fp) == nullptr) { in IsProcessExist() 145 fclose(fp); in IsProcessExist() 158 fclose(fp); in IsProcessExist() 161 fclose(fp); in IsProcessExist() 233 inline int CustomFdFclose(FILE** fp) in CustomFdFclose() argument 235 int ret = fclose(*fp); in CustomFdFclose() 237 *fp = nullptr; in CustomFdFclose() 314 int CustomPclose(FILE* fp, int fds[], volatile pid_t& childPid, bool needUnblock) in CustomPclose() argument [all …]
|
| /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 | 362 FILE *fp = fopen(resolvedPath.c_str(), "rb"); in CompressFile() local 363 if (fp == nullptr) { in CompressFile() 372 fclose(fp); in CompressFile() 378 while ((len = fread(buf.data(), sizeof(uint8_t), buf.size(), fp))) { in CompressFile() 381 fclose(fp); in CompressFile() 385 if (!feof(fp)) { in CompressFile() 386 if (ferror(fp) != 0) { in CompressFile() 388 fclose(fp); in CompressFile() 392 if (fclose(fp) < 0) { in CompressFile() 402 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/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/profiler/device/plugins/hiperf_plugin/src/ |
| D | hiperf_module.cpp | 95 FILE* fp = COMMON::CustomPopen(cmdArg, "r", pipeFds, childPid); in RunCommand() local 96 CHECK_NOTNULL(fp, false, "HiperfPlugin::RunCommand CustomPopen FAILED!r"); in RunCommand() 101 while (fgets(buffer.data(), buffer.size(), fp) != nullptr) { in RunCommand() 108 COMMON::CustomPclose(fp, pipeFds, childPid); in RunCommand()
|
| /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(() => {
|
| D | ReportDetail.ets | 93 Text(`SP工具`).fontSize('15fp').margin({ top: '30vp' }) 94 Text(`应用版本:v1.0.2`).fontSize('15fp').margin({ top: '10vp' }) 102 .fontSize('13fp') 106 .fontSize('13fp') 110 .fontSize('13fp')
|
| /developtools/integration_verification/DeployDevice/src/func/liteOsUpgrade/ |
| D | liteOsUpgrade_L1_shequ_dv_app.py | 170 with open(push_suc, "a+") as fp: 171 fp.write("") 206 with open(push_suc, "a+") as fp: 207 fp.write("") 215 with open(push_fail, "a+") as fp: 216 fp.write("") 274 with open(failed_mark, "a+") as fp: 275 fp.write("") 343 with open(scriptfile, "r") as fp: 344 lines = fp.readlines()
|
| /developtools/global_resource_tool/src/ |
| D | resource_check.cpp | 141 void ResourceCheck::CloseFile(FILE *fp) in CloseFile() argument 143 if (fp != nullptr) { in CloseFile() 144 fclose(fp); in CloseFile()
|