Home
last modified time | relevance | path

Searched refs:ofs (Results 1 – 25 of 37) sorted by relevance

12

/ohos5.0/base/hiviewdfx/faultloggerd/test/resource/testdata/
H A Ddwarf_test_aarch64_elf_result14 DW_CFA_def_cfa: r31 ofs 0
50 DW_CFA_def_cfa: r29 ofs 96
64 DW_CFA_def_cfa: r31 ofs 96
87 DW_CFA_def_cfa: r29 ofs 96
100 DW_CFA_def_cfa: r31 ofs 400
132 DW_CFA_def_cfa: r29 ofs 32
138 DW_CFA_def_cfa: r31 ofs 32
147 DW_CFA_def_cfa: r31 ofs 32
161 DW_CFA_def_cfa: r29 ofs 32
166 DW_CFA_def_cfa: r31 ofs 32
[all …]
/ohos5.0/foundation/distributedhardware/distributed_camera/services/cameraservice/cameraoperator/client/test/sample/
H A Ddcamera_client_demo.h117 std::ofstream ofs; in SaveFile() local
121 if (!ofs.is_open()) { in SaveFile()
125 ofs.write(address_, dataSize_); in SaveFile()
126 ofs.close(); in SaveFile()
148 std::ofstream ofs; in SaveFile() local
153 if (!ofs.is_open()) { in SaveFile()
157 ofs.write(address_, actualSize_); in SaveFile()
158 ofs.close(); in SaveFile()
180 std::ofstream ofs; in SaveFile() local
185 if (!ofs.is_open()) { in SaveFile()
[all …]
/ohos5.0/foundation/distributedhardware/distributed_camera/test/distributedcameraclienttest/
H A Ddcamera_client_demo.h117 std::ofstream ofs; in SaveFile() local
121 if (!ofs.is_open()) { in SaveFile()
125 ofs.write(address_, dataSize_); in SaveFile()
126 ofs.close(); in SaveFile()
148 std::ofstream ofs; in SaveFile() local
153 if (!ofs.is_open()) { in SaveFile()
157 ofs.write(address_, actualSize_); in SaveFile()
158 ofs.close(); in SaveFile()
180 std::ofstream ofs; in SaveFile() local
185 if (!ofs.is_open()) { in SaveFile()
[all …]
/ohos5.0/base/update/updater/services/ui/
H A Dupdater_ui_env.cpp121 std::ofstream ofs { brightnessFile }; in InitBrightness() local
122 if (!ofs.is_open()) { in InitBrightness()
129 ofs << (static_cast<std::size_t>(maxValue) >> SHIFT_WIDTH); in InitBrightness()
130 if (ofs.fail() || ofs.bad()) { in InitBrightness()
/ohos5.0/base/update/updater/test/fuzztest/applypatch_fuzzer/
H A Dapplypatch_fuzzer.cpp32 std::ofstream ofs(filePath, std::ios::app | std::ios::binary); in WriteDataToFile() local
33 if (!ofs.is_open()) { in WriteDataToFile()
37 ofs.write(data, size); in WriteDataToFile()
38 ofs.close(); in WriteDataToFile()
/ohos5.0/foundation/distributedhardware/distributed_screen/services/common/utils/src/
H A Ddscreen_hidumper.cpp230 std::ofstream ofs(fileName, std::ios::binary | std::ios::out | std::ios::app); in SaveFile() local
232 if (!ofs.is_open()) { in SaveFile()
237 ofs.seekp(0, std::ios::end); in SaveFile()
238 std::ofstream::pos_type fileSize = ofs.tellp(); in SaveFile()
245 ofs.write(reinterpret_cast<const char *>(video.data), video.size); in SaveFile()
249 ofs.close(); in SaveFile()
/ohos5.0/base/hiviewdfx/hicollie/frameworks/native/test/unittest/common/
H A Dwatchdog_inner_test.cpp245 std::ofstream ofs(path, std::ios::trunc);
246 if (!ofs.is_open()) {
250 ofs << "aync 1:1 to 2:2 code 9 wait:4 s test" << std::endl;
251 ofs << "12000:12000 to 12001:12001 code 9 wait:1 s test" << std::endl;
252 ofs << "22000:22000 to 12001:12001 code 9 wait:1 s test" << std::endl;
253 ofs << "12000:12000 to 12001:12001 code 9 wait:4 s test" << std::endl;
254 ofs.close();
266 ofs.open(path.c_str(), std::ios::trunc);
267 if (!ofs.is_open()) {
271 ofs << "context" << std::endl;
[all …]
/ohos5.0/drivers/hdf_core/adapter/khdf/liteos/model/storage/src/mtd/
H A Dmtd_legacy_lite.c230 int hinand_yaffs_nand_block_isbad(loff_t ofs) in hinand_yaffs_nand_block_isbad() argument
232 return MtdDeviceIsBadBlock(g_nandMtd, ofs); in hinand_yaffs_nand_block_isbad()
235 int hinand_yaffs_nand_block_markbad(loff_t ofs) in hinand_yaffs_nand_block_markbad() argument
237 return MtdDeviceMarkBadBlock(g_nandMtd, ofs); in hinand_yaffs_nand_block_markbad()
320 static int MtdDeviceLegacyBlockIsBad(MtdInfoLegacy *mtd, off_t ofs) in MtdDeviceLegacyBlockIsBad() argument
327 return (int)MtdDeviceIsBadBlock((struct MtdDevice *)mtd->priv, ofs); in MtdDeviceLegacyBlockIsBad()
330 static int MtdDeviceLegacyBlockMarkBad(MtdInfoLegacy *mtd, off_t ofs) in MtdDeviceLegacyBlockMarkBad() argument
337 return (int)MtdDeviceMarkBadBlock((struct MtdDevice *)mtd->priv, ofs); in MtdDeviceLegacyBlockMarkBad()
/ohos5.0/foundation/distributedhardware/distributed_camera/common/src/utils/
H A Ddcamera_utils_tools.cpp209 std::ofstream ofs(path, std::ios::binary | std::ios::out | std::ios::app); in DumpBufferToFile() local
210 if (!ofs.is_open()) { in DumpBufferToFile()
214 ofs.write(reinterpret_cast<const char*>(buffer), bufSize); in DumpBufferToFile()
215 ofs.close(); in DumpBufferToFile()
230 std::ofstream ofs(path, std::ios::binary | std::ios::out | std::ios::app); in IsUnderDumpMaxSize() local
231 if (!ofs.is_open()) { in IsUnderDumpMaxSize()
235 ofs.seekp(0, std::ios::end); in IsUnderDumpMaxSize()
236 std::ofstream::pos_type fileSize = ofs.tellp(); in IsUnderDumpMaxSize()
242 ofs.close(); in IsUnderDumpMaxSize()
/ohos5.0/base/hiviewdfx/hiview/plugins/reliability/bbox_detectors/test/unittest/
H A Dbbox_detector_unit_test.cpp51 std::ofstream ofs; in GenerateFile() local
52 ofs.open(path, std::ios::out | std::ios::trunc); in GenerateFile()
55 ofs << static_cast<char>(rand() % charSize + 'a'); in GenerateFile()
58 ofs << std::endl; in GenerateFile()
59 ofs.close(); in GenerateFile()
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/hardware/imagecodec/
H A Dimage_codec_dfx.cpp204 ofstream ofs(name, ios::binary); in DumpSurfaceBuffer() local
205 if (ofs.is_open()) { in DumpSurfaceBuffer()
206 ofs.write(va, totalSize); in DumpSurfaceBuffer()
243 ofstream ofs(name, mode); in DumpLinearBuffer() local
244 if (ofs.is_open()) { in DumpLinearBuffer()
245 ofs.write(va, omxBuffer->filledLen); in DumpLinearBuffer()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/texgine/src/utils/
H A Dlogger.cpp140 std::ofstream ofs(data->filename, std::ofstream::out | std::ofstream::app); in OutputByFileLog() local
141 if (!ofs) { in OutputByFileLog()
147 ofs << GetLevelStr(logger.GetLevel()) << " "; in OutputByFileLog()
150 ofs << logger.str(); in OutputByFileLog()
152 ofs << std::endl; in OutputByFileLog()
154 ofs.close(); in OutputByFileLog()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/importfile_fuzzer/
H A Dimportfile_fuzzer.cpp58 std::ofstream ofs(realPath, std::ofstream::out); in MakeImportFile() local
59 if (!ofs.is_open()) { in MakeImportFile()
63 ofs.write(reinterpret_cast<const char *>(data), size); in MakeImportFile()
/ohos5.0/foundation/distributeddatamgr/udmf/framework/common/
H A Dcustom_utd_store.cpp101 std::ofstream ofs; in SavaCfgFile() local
103 ofs.open(cfgFilePath, 0x02); in SavaCfgFile()
104 if (!ofs.is_open()) { in SavaCfgFile()
107 ofs << jsonData << std::endl; in SavaCfgFile()
108 ofs.close(); in SavaCfgFile()
/ohos5.0/base/update/updater/services/
H A Dupdater_utils.cpp55 std::ofstream ofs; in WriteInstallTime() local
56ofs.open(std::string(UPDATER_PATH) + "/" + std::string(INSTALL_TIME_FILE), std::ios::app | std::io… in WriteInstallTime()
57 if (!ofs.is_open()) { in WriteInstallTime()
61 ofs << DurationToString(upParams.installTime, upParams.pkgLocation) << "\n"; in WriteInstallTime()
/ohos5.0/foundation/multimedia/av_codec/test/unittest/hcodec_test/unittest/
H A Dhencoder_buffer_unit_test.cpp47 ofstream ofs(dstPath, ios::binary); in CreateFakeYuv() local
48 if (!ofs.is_open()) { in CreateFakeYuv()
56 ofs.write(line.data(), line.size()); in CreateFakeYuv()
59 ofs.write(line.data(), line.size()); in CreateFakeYuv()
/ohos5.0/drivers/hdf_core/adapter/khdf/liteos/model/storage/include/mtd/
H A Dmtd_legacy_lite.h68 int (*block_isbad)(struct mtd_info *mtd, off_t ofs);
69 int (*block_markbad)(struct mtd_info *mtd, off_t ofs);
/ohos5.0/drivers/peripheral/distributed_audio/hdi_service/common/utils/src/
H A Ddaudio_utils.cpp232 std::ofstream ofs(path, std::ios::binary | std::ios::out | std::ios::app); in SaveFile() local
233 if (!ofs.is_open()) { in SaveFile()
236 ofs.write(reinterpret_cast<char *>(audioData), size); in SaveFile()
237 ofs.close(); in SaveFile()
/ohos5.0/foundation/multimedia/av_codec/services/engine/codec/video/hcodec/
H A Dhcodec_dfx.cpp390 ofstream ofs(name, ios::binary | ios::app); in DumpSurfaceBuffer() local
391 if (ofs.is_open()) { in DumpSurfaceBuffer()
392 ofs.write(va, totalSize); in DumpSurfaceBuffer()
457 ofstream ofs(name, ios::binary | ios::app); in DumpLinearBuffer() local
458 if (ofs.is_open()) { in DumpLinearBuffer()
459 ofs.write(va, omxBuffer->filledLen); in DumpLinearBuffer()
/ohos5.0/drivers/peripheral/camera/vdi_base/common/dump/src/
H A Dcamera_dump.cpp251 std::ofstream ofs(ss.str(), std::ios::app); in SaveDataToFile() local
253 if (!ofs.good()) { in SaveDataToFile()
258 ofs.write(static_cast<const char *>(data), size); in SaveDataToFile()
259 ofs.close(); in SaveDataToFile()
/ohos5.0/drivers/peripheral/codec/test/demo/heif/src/
H A Dbuffer_helper.cpp215 ofstream ofs(outputFilePath, ios::binary); in DumpBuffer() local
216 IF_TRUE_RETURN_WITH_MSG(!ofs.is_open(), "cannot open %{public}s", outputFilePath); in DumpBuffer()
219 ofs.write(static_cast<char*>(addr), static_cast<streamsize>(buffer.filledLen)); in DumpBuffer()
220 ofs.close(); in DumpBuffer()
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/av_transport/common/src/
H A Dav_trans_utils.cpp245 std::ofstream ofs(path, std::ios::binary | std::ios::out | std::ios::app); in DumpBufferToFile() local
246 if (!ofs.is_open()) { in DumpBufferToFile()
250 ofs.write((const char*)(buffer), bufSize); in DumpBufferToFile()
251 ofs.close(); in DumpBufferToFile()
/ohos5.0/base/update/updater/test/unittest/utils/json/
H A Dutils_json_test.cpp208 std::ofstream ofs(Fs::path {invalidJsonPath});
209 ofs << invalidContent;
210 ofs.flush();
/ohos5.0/base/update/updater/test/fuzztest/updaterutils_fuzzer/
H A Dupdater_utils_fuzzer.cpp291 std::ofstream ofs(Fs::path {invalidJsonPath}); in TestJsonNodeFileType() local
292 ofs << invalidContent; in TestJsonNodeFileType()
293 ofs.flush(); in TestJsonNodeFileType()
/ohos5.0/base/hiviewdfx/hitrace/test/unittest/hitrace_dump/
H A Dhitrace_dump_test.cpp63 std::ofstream ofs; in CreateFile() local
64 ofs.open(outputFileName, std::ios::out | std::ios::trunc); in CreateFile()
65 bool openRes = ofs.is_open(); in CreateFile()
66 ofs.close(); in CreateFile()

12