Home
last modified time | relevance | path

Searched refs:dumpFile (Results 1 – 12 of 12) sorted by relevance

/ohos5.0/foundation/distributedhardware/distributed_camera/common/src/utils/
H A Ddcamera_utils_tools.cpp315 FILE *dumpFile = nullptr; in OpenDumpFileInner() local
319 return dumpFile; in OpenDumpFileInner()
325 return dumpFile; in OpenDumpFileInner()
330 CHECK_AND_RETURN_RET_LOG(dumpFile == nullptr, dumpFile, "Error opening dump file!"); in OpenDumpFileInner()
333 CHECK_AND_RETURN_RET_LOG(dumpFile == nullptr, dumpFile, "Error opening dump file!"); in OpenDumpFileInner()
336 return dumpFile; in OpenDumpFileInner()
341 if (dumpFile == nullptr) { in WriteDumpFile()
351 if (*dumpFile) { in CloseDumpFile()
352 fclose(*dumpFile); in CloseDumpFile()
353 *dumpFile = nullptr; in CloseDumpFile()
[all …]
/ohos5.0/foundation/distributedhardware/distributed_camera/common/test/unittest/common/utils/
H A Ddcamera_utils_tools_test.cpp233 FILE *dumpFile = nullptr; variable
236 DumpFileUtil::WriteDumpFile(dumpFile, buffer, bufferSize);
239 DumpFileUtil::OpenDumpFile(DUMP_SERVER_PARA_TEST, DUMP_DCAMERA_TEST_FILENAME, &dumpFile);
240 DumpFileUtil::WriteDumpFile(dumpFile, buffer, bufferSize);
243 DumpFileUtil::OpenDumpFile(DUMP_SERVER_PARA_TEST_1, DUMP_DCAMERA_TEST_FILENAME_1, &dumpFile);
244 DumpFileUtil::WriteDumpFile(dumpFile, buffer, bufferSize);
245 DumpFileUtil::CloseDumpFile(&dumpFile);
246 EXPECT_EQ(true, dumpFile == nullptr);
/ohos5.0/foundation/distributedhardware/distributed_audio/common/src/
H A Ddaudio_util.cpp547 FILE *dumpFile = nullptr; in OpenDumpFileInner() local
552 return dumpFile; in OpenDumpFileInner()
557 CHECK_AND_RETURN_RET_LOG(dumpFile == nullptr, dumpFile, "Error opening dump file!"); in OpenDumpFileInner()
560 CHECK_AND_RETURN_RET_LOG(dumpFile == nullptr, dumpFile, "Error opening dump file!"); in OpenDumpFileInner()
563 return dumpFile; in OpenDumpFileInner()
568 if (dumpFile == nullptr) { in WriteDumpFile()
578 if (*dumpFile) { in CloseDumpFile()
579 fclose(*dumpFile); in CloseDumpFile()
580 *dumpFile = nullptr; in CloseDumpFile()
596 CloseDumpFile(dumpFile); in ChangeDumpFileState()
[all …]
/ohos5.0/foundation/multimedia/media_foundation/services/media_monitor/server/src/
H A Dmedia_monitor_service.cpp389 FILE *dumpFile = fopen(realFilePath.c_str(), "a"); in WriteBufferFromQueue() local
391 if (fseek(dumpFile, 0, SEEK_END)) { in WriteBufferFromQueue()
392 (void)fclose(dumpFile); in WriteBufferFromQueue()
395 int filelen = ftell(dumpFile); in WriteBufferFromQueue()
397 (void)fclose(dumpFile); in WriteBufferFromQueue()
399 dumpFile = fopen(realFilePath.c_str(), "a"); in WriteBufferFromQueue()
405 (void)fclose(dumpFile); in WriteBufferFromQueue()
406 dumpFile = nullptr; in WriteBufferFromQueue()
409 (void)fwrite(bufferAddr, 1, bufferSize, dumpFile); in WriteBufferFromQueue()
410 (void)fclose(dumpFile); in WriteBufferFromQueue()
[all …]
/ohos5.0/foundation/multimedia/media_foundation/src/osal/utils/
H A Ddump_buffer.cpp48 FILE* dumpFile = std::fopen(filePath.c_str(), mode.c_str()); in DumpAVBufferToFile() local
49 if (dumpFile == nullptr) { in DumpAVBufferToFile()
54 …e(reinterpret_cast<const char*>(buffer->memory_->GetAddr()), DUMP_DATA_UNIT, bufferSize, dumpFile); in DumpAVBufferToFile()
58 std::fclose(dumpFile); in DumpAVBufferToFile()
/ohos5.0/foundation/graphic/graphic_surface/surface/test/unittest/
H A Dbuffer_utils_test.cpp103 std::ifstream dumpFile(entry.path(), std::ios::binary); variable
104 std::vector<uint8_t> file_data((std::istreambuf_iterator<char>(dumpFile)),
108 dumpFile.close();
149 std::ifstream dumpFile(entry.path(), std::ios::binary); variable
150 std::vector<uint8_t> file_data((std::istreambuf_iterator<char>(dumpFile)),
154 dumpFile.close();
/ohos5.0/foundation/multimedia/audio_framework/frameworks/native/audioutils/src/
H A Daudio_utils.cpp792 FILE *dumpFile = nullptr; in OpenDumpFileInner() local
797 return dumpFile; in OpenDumpFileInner()
802 CHECK_AND_RETURN_RET_LOG(dumpFile != nullptr, dumpFile, in OpenDumpFileInner()
806 CHECK_AND_RETURN_RET_LOG(dumpFile != nullptr, dumpFile, in OpenDumpFileInner()
809 if (dumpFile != nullptr) { in OpenDumpFileInner()
813 return dumpFile; in OpenDumpFileInner()
818 if (dumpFile == nullptr) { in WriteDumpFile()
828 if (*dumpFile) { in CloseDumpFile()
829 fclose(*dumpFile); in CloseDumpFile()
830 *dumpFile = nullptr; in CloseDumpFile()
[all …]
/ohos5.0/foundation/distributedhardware/distributed_camera/common/include/utils/
H A Ddcamera_utils_tools.h70 static void WriteDumpFile(FILE *dumpFile, void *buffer, size_t bufferSize);
71 static void CloseDumpFile(FILE **dumpFile);
76 static void ChangeDumpFileState(std::string para, FILE **dumpFile, std::string fileName);
/ohos5.0/foundation/distributedhardware/distributed_audio/common/include/
H A Ddaudio_util.h66 static void CloseDumpFile(FILE **dumpFile);
67 static void WriteDumpFile(FILE *dumpFile, void *buffer, size_t bufferSize);
73 …static void ChangeDumpFileState(const std::string &para, FILE **dumpFile, const std::string &fileN…
/ohos5.0/foundation/multimedia/audio_framework/frameworks/native/hdiadapter/sink/remote/
H A Dremote_audio_renderer_sink.cpp231 FILE *dumpFile = dumpFileMap_[audioRender.first]; in ClearRender() local
232 DumpFileUtil::CloseDumpFile(&dumpFile); in ClearRender()
476 FILE *dumpFile = dumpFileMap_[splitStreamMap_[streamType]]; in RenderFrameLogic() local
478 DumpFileUtil::WriteDumpFile(dumpFile, static_cast<void *>(&data), len); in RenderFrameLogic()
526 FILE *dumpFile = nullptr; in Start() local
530 DumpFileUtil::OpenDumpFile(DUMP_SERVER_PARA, dumpFileName, &dumpFile); in Start()
531 dumpFileMap_[audioPort.first] = dumpFile; in Start()
/ohos5.0/foundation/multimedia/audio_framework/frameworks/native/audioutils/include/
H A Daudio_utils.h228 static void WriteDumpFile(FILE *dumpFile, void *buffer, size_t bufferSize);
229 static void CloseDumpFile(FILE **dumpFile);
234 static void ChangeDumpFileState(std::string para, FILE **dumpFile, std::string fileName);
/ohos5.0/foundation/window/window_manager/wmserver/test/unittest/
H A Dwindow_manager_service_test.cpp139 const std::string dumpFile = "data/window_dump_test.txt"; variable
140 int fd = open(dumpFile.c_str(), O_RDWR | O_CREAT | O_TRUNC, 0666);
151 unlink(dumpFile.c_str());