Home
last modified time | relevance | path

Searched refs:FileWrapper (Results 1 – 25 of 70) sorted by relevance

123

/external/webrtc/rtc_base/system/
Dfile_wrapper.cc50 FileWrapper FileWrapper::OpenReadOnly(const char* file_name_utf8) { in OpenReadOnly()
51 return FileWrapper(FileOpen(file_name_utf8, true, nullptr)); in OpenReadOnly()
55 FileWrapper FileWrapper::OpenReadOnly(const std::string& file_name_utf8) { in OpenReadOnly()
60 FileWrapper FileWrapper::OpenWriteOnly(const char* file_name_utf8, in OpenWriteOnly()
62 return FileWrapper(FileOpen(file_name_utf8, false, error)); in OpenWriteOnly()
66 FileWrapper FileWrapper::OpenWriteOnly(const std::string& file_name_utf8, in OpenWriteOnly()
71 FileWrapper::FileWrapper(FileWrapper&& other) { in FileWrapper() function in webrtc::FileWrapper
75 FileWrapper& FileWrapper::operator=(FileWrapper&& other) { in operator =()
82 bool FileWrapper::SeekRelative(int64_t offset) { in SeekRelative()
87 bool FileWrapper::SeekTo(int64_t position) { in SeekTo()
[all …]
Dfile_wrapper.h31 class FileWrapper final {
37 static FileWrapper OpenReadOnly(const char* file_name_utf8);
38 static FileWrapper OpenReadOnly(const std::string& file_name_utf8);
39 static FileWrapper OpenWriteOnly(const char* file_name_utf8,
42 static FileWrapper OpenWriteOnly(const std::string& file_name_utf8,
45 FileWrapper() = default;
49 explicit FileWrapper(FILE* file) : file_(file) {} in FileWrapper() function
50 ~FileWrapper() { Close(); } in ~FileWrapper()
53 FileWrapper(const FileWrapper&) = delete;
54 FileWrapper& operator=(const FileWrapper&) = delete;
[all …]
/external/webrtc/modules/audio_processing/transient/
Dfile_utils.h56 size_t ReadInt16BufferFromFile(FileWrapper* file,
64 size_t ReadInt16FromFileToFloatBuffer(FileWrapper* file,
72 size_t ReadInt16FromFileToDoubleBuffer(FileWrapper* file,
80 size_t ReadFloatBufferFromFile(FileWrapper* file, size_t length, float* buffer);
86 size_t ReadDoubleBufferFromFile(FileWrapper* file,
95 size_t WriteInt16BufferToFile(FileWrapper* file,
103 size_t WriteFloatBufferToFile(FileWrapper* file,
111 size_t WriteDoubleBufferToFile(FileWrapper* file,
Dfile_utils_unittest.cc162 FileWrapper file = FileWrapper::OpenReadOnly(test_filename.c_str()); in TEST_F()
200 FileWrapper file = FileWrapper::OpenReadOnly(test_filename.c_str()); in TEST_F()
240 FileWrapper file = FileWrapper::OpenReadOnly(test_filename.c_str()); in TEST_F()
278 FileWrapper file = FileWrapper::OpenReadOnly(test_filename.c_str()); in TEST_F()
314 FileWrapper file = FileWrapper::OpenReadOnly(test_filename.c_str()); in TEST_F()
351 FileWrapper file = FileWrapper::OpenWriteOnly(kOutFileName.c_str()); in TEST_F()
368 file = FileWrapper::OpenReadOnly(kOutFileName.c_str()); in TEST_F()
387 FileWrapper file = FileWrapper::OpenWriteOnly(kOutFileName.c_str()); in TEST_F()
404 file = FileWrapper::OpenReadOnly(kOutFileName.c_str()); in TEST_F()
423 FileWrapper file = FileWrapper::OpenWriteOnly(kOutFileName.c_str()); in TEST_F()
[all …]
Dclick_annotate.cc21 using webrtc::FileWrapper;
42 FileWrapper pcm_file = FileWrapper::OpenReadOnly(argv[1]); in main()
48 FileWrapper dat_file = FileWrapper::OpenWriteOnly(argv[2]); in main()
Dfile_utils.cc79 size_t ReadInt16BufferFromFile(FileWrapper* file, in ReadInt16BufferFromFile()
105 size_t ReadInt16FromFileToFloatBuffer(FileWrapper* file, in ReadInt16FromFileToFloatBuffer()
123 size_t ReadInt16FromFileToDoubleBuffer(FileWrapper* file, in ReadInt16FromFileToDoubleBuffer()
141 size_t ReadFloatBufferFromFile(FileWrapper* file, in ReadFloatBufferFromFile()
164 size_t ReadDoubleBufferFromFile(FileWrapper* file, in ReadDoubleBufferFromFile()
187 size_t WriteInt16BufferToFile(FileWrapper* file, in WriteInt16BufferToFile()
211 size_t WriteFloatBufferToFile(FileWrapper* file, in WriteFloatBufferToFile()
234 size_t WriteDoubleBufferToFile(FileWrapper* file, in WriteDoubleBufferToFile()
Dtransient_detector_unittest.cc50 FileWrapper detect_file = FileWrapper::OpenReadOnly( in TEST()
62 FileWrapper audio_file = FileWrapper::OpenReadOnly( in TEST()
Dwpd_tree_unittest.cc83 FileWrapper matlab_files_data[kLeaves]; in TEST()
84 FileWrapper out_files_data[kLeaves]; in TEST()
91 matlab_files_data[i] = FileWrapper::OpenReadOnly(matlab_string.c_str()); in TEST()
101 out_files_data[i] = FileWrapper::OpenWriteOnly(out_string.c_str()); in TEST()
111 FileWrapper test_file = FileWrapper::OpenReadOnly(test_file_name.c_str()); in TEST()
/external/webrtc/modules/video_coding/utility/
Divf_file_writer_unittest.cc61 void VerifyIvfHeader(FileWrapper* file, in VerifyIvfHeader()
85 void VerifyDummyTestFrames(FileWrapper* file, uint32_t num_frames) { in VerifyDummyTestFrames()
109 IvfFileWriter::Wrap(FileWrapper::OpenWriteOnly(file_name_), 0); in RunBasicFileStructureTest()
118 FileWrapper out_file = FileWrapper::OpenReadOnly(file_name_); in RunBasicFileStructureTest()
168 FileWrapper::OpenWriteOnly(file_name_), in TEST_F()
177 FileWrapper out_file = FileWrapper::OpenReadOnly(file_name_); in TEST_F()
Divf_file_writer.h33 static std::unique_ptr<IvfFileWriter> Wrap(FileWrapper file,
41 explicit IvfFileWriter(FileWrapper file, size_t byte_limit);
59 FileWrapper file_;
Divf_file_reader.h27 static std::unique_ptr<IvfFileReader> Create(FileWrapper file);
55 explicit IvfFileReader(FileWrapper file) : file_(std::move(file)) {} in IvfFileReader()
70 FileWrapper file_;
/external/webrtc/api/
Drtc_event_log_output_file.cc30 : RtcEventLogOutputFile(FileWrapper::OpenWriteOnly(file_name), in RtcEventLogOutputFile()
38 : RtcEventLogOutputFile(FileWrapper::OpenWriteOnly(file_name), in RtcEventLogOutputFile()
42 : RtcEventLogOutputFile(FileWrapper(file), max_size_bytes) {} in RtcEventLogOutputFile()
44 RtcEventLogOutputFile::RtcEventLogOutputFile(FileWrapper file, in RtcEventLogOutputFile()
Drtc_event_log_output_file.h43 RtcEventLogOutputFile(FileWrapper file, size_t max_size_bytes);
53 FileWrapper file_;
/external/webrtc/common_audio/
Dwav_file.h46 WavWriter(FileWrapper file,
73 FileWrapper file_;
81 explicit WavReader(FileWrapper file);
108 FileWrapper file_;
Dwav_file.cc40 explicit WavHeaderFileReader(FileWrapper* file) : file_(file) {} in WavHeaderFileReader()
60 FileWrapper* file_;
69 : WavReader(FileWrapper::OpenReadOnly(filename)) {} in WavReader()
71 WavReader::WavReader(FileWrapper file) : file_(std::move(file)) { in WavReader()
187 : WavWriter(FileWrapper::OpenWriteOnly(filename), in WavWriter()
192 WavWriter::WavWriter(FileWrapper file, in WavWriter()
/external/webrtc/video/
Dframe_dumping_decoder.cc24 FrameDumpingDecoder(std::unique_ptr<VideoDecoder> decoder, FileWrapper file);
45 FileWrapper file) in FrameDumpingDecoder()
88 FileWrapper file) { in CreateFrameDumpingDecoderWrapper()
/external/webrtc/modules/audio_processing/aec_dump/
Dwrite_to_file_task.h37 WriteToFileTask(webrtc::FileWrapper* debug_file, in RTC_POP_IGNORING_WUNDEF()
50 webrtc::FileWrapper* const debug_file_; in RTC_POP_IGNORING_WUNDEF()
Daec_dump_impl.h47 AecDumpImpl(FileWrapper debug_file,
80 FileWrapper debug_file_;
Daec_dump_impl.cc58 AecDumpImpl::AecDumpImpl(FileWrapper debug_file, in AecDumpImpl()
232 std::unique_ptr<AecDump> AecDumpFactory::Create(webrtc::FileWrapper file, in Create()
246 return Create(FileWrapper::OpenWriteOnly(file_name.c_str()), in Create()
253 return Create(FileWrapper(handle), max_log_size_bytes, worker_queue); in Create()
/external/libxaac/test/
Dixheaacd_fileifc.h41 typedef struct FileWrapper { struct
56 } FileWrapper, *FileWrapperPtr; argument
/external/webrtc/test/testsupport/
Dtest_artifacts.cc58 FileWrapper output = FileWrapper::OpenWriteOnly( in WriteToTestArtifactsDir()
Dtest_artifacts_unittest.cc47 FileWrapper input = FileWrapper::OpenReadOnly(out_file); in TEST()
/external/webrtc/modules/audio_coding/audio_network_adaptor/
Ddebug_dump_writer.cc40 void DumpEventToFile(const Event& event, FileWrapper* dump_file) { in DumpEventToFile()
71 FileWrapper dump_file_;
76 dump_file_ = FileWrapper(file_handle); in DebugDumpWriterImpl()
/external/zlib/google/
Dzip_reader_unittest.cc40 class FileWrapper { class
47 FileWrapper(const base::FilePath& path, AccessMode mode) { in FileWrapper() function in __anon37bf8b5c0111::FileWrapper
57 ~FileWrapper() {} in ~FileWrapper()
228 FileWrapper zip_fd_wrapper(test_zip_file_, FileWrapper::READ_ONLY); in TEST_F()
265 FileWrapper zip_fd_wrapper(test_zip_file_, FileWrapper::READ_ONLY); in TEST_F()
570 FileWrapper zip_fd_wrapper(test_zip_file_, FileWrapper::READ_ONLY); in TEST_F()
/external/angle/third_party/zlib/google/
Dzip_reader_unittest.cc40 class FileWrapper { class
47 FileWrapper(const base::FilePath& path, AccessMode mode) { in FileWrapper() function in __anonaa7dc4cb0111::FileWrapper
57 ~FileWrapper() {} in ~FileWrapper()
228 FileWrapper zip_fd_wrapper(test_zip_file_, FileWrapper::READ_ONLY); in TEST_F()
265 FileWrapper zip_fd_wrapper(test_zip_file_, FileWrapper::READ_ONLY); in TEST_F()
570 FileWrapper zip_fd_wrapper(test_zip_file_, FileWrapper::READ_ONLY); in TEST_F()

123