Home
last modified time | relevance | path

Searched refs:fp_ (Results 1 – 19 of 19) sorted by relevance

/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/accessor/src/
H A Dfile_metadata_stream.cpp76 this->fp_ = nullptr; in Initialize()
105 if (fp_ == nullptr) { in Write()
121 if (fp_ == nullptr) { in Read()
140 if (fp_ == nullptr) { in ReadByte()
156 if (fp_ == nullptr) { in Seek()
182 return ftell(fp_); in Seek()
187 if (fp_ == nullptr) { in Tell()
200 return ftell(fp_); in Tell()
242 fclose(fp_); in Close()
243 fp_ = nullptr; in Close()
[all …]
/ohos5.0/foundation/multimedia/av_codec/services/media_engine/plugins/source/
H A Dfile_source_plugin.cpp91 if (fp_) { in ~FileSourcePlugin()
92 std::fclose(fp_); in ~FileSourcePlugin()
93 fp_ = nullptr; in ~FileSourcePlugin()
206 if (!fp_) { in GetSize()
227 std::clearerr(fp_); in SeekTo()
229 std::clearerr(fp_); in SeekTo()
235 if (std::feof(fp_)) { in SeekTo()
306 if (fp_ == nullptr) { in OpenFile()
318 if (fp_) { in CloseFile()
320 std::fclose(fp_); in CloseFile()
[all …]
H A Dfile_source_plugin.h60 std::FILE* fp_; variable
/ohos5.0/foundation/multimedia/media_foundation/engine/plugin/plugins/source/file_source/
H A Dfile_source_plugin.cpp81 if (fp_) { in ~FileSourcePlugin()
82 std::fclose(fp_); in ~FileSourcePlugin()
83 fp_ = nullptr; in ~FileSourcePlugin()
181 if (!fp_) { in GetSize()
202 std::clearerr(fp_); in SeekTo()
204 std::clearerr(fp_); in SeekTo()
210 if (std::feof(fp_)) { in SeekTo()
282 if (fp_ == nullptr) { in OpenFile()
294 if (fp_) { in CloseFile()
296 std::fclose(fp_); in CloseFile()
[all …]
H A Dfile_source_plugin.h57 std::FILE* fp_; variable
/ohos5.0/base/hiviewdfx/hidumper/frameworks/native/src/executor/
H A Dcmd_dumper.cpp23 CMDDumper::CMDDumper() : fp_(nullptr) in CMDDumper()
29 if (fp_ != nullptr) { in ~CMDDumper()
30 pclose(fp_); in ~CMDDumper()
31 fp_ = nullptr; in ~CMDDumper()
57 if (fp_ == nullptr) { in PreExecute()
58 if ((fp_ = popen((CMD_PREFIX + cmd_).c_str(), "r")) == nullptr) { in PreExecute()
105 if (fp_ != nullptr) { in AfterExecute()
106 pclose(fp_); in AfterExecute()
107 fp_ = nullptr; in AfterExecute()
161 if (fp_ == nullptr) { in ReadLineInCmd()
[all …]
H A Dfile_stream_dumper.cpp23 :fp_(nullptr), in FileStreamDumper()
82 if ((fp_ = fdopen(fd_, "r")) == nullptr) { in OpenNextFile()
103 if (fp_ == nullptr) { in ReadLineInFile()
109 read = getline(&line_buffer, &len, fp_); in ReadLineInFile()
119 if (feof(fp_) == 0) { // ferror() in ReadLineInFile()
124 if (feof(fp_) != 0) { in ReadLineInFile()
237 if (fp_ != nullptr) { in CloseFd()
238 fclose(fp_); in CloseFd()
239 fp_ = nullptr; in CloseFd()
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/cj/src/
H A Dstream_impl.cpp113 if (!fp_) { in Close()
117 fp_.reset(); in Close()
123 if (!fp_) { in Flush()
127 int ret = fflush(fp_.get()); in Flush()
153 if (!fp_) { in ReadCur()
159 filp = fp_.get(); in ReadCur()
172 if (!fp_) { in Read()
178 filp = fp_.get(); in Read()
199 filp = fp_.get(); in WriteCur()
220 filp = fp_.get(); in Write()
H A Dstream_impl.h34 explicit StreamImpl(std::unique_ptr<FILE, decltype(&fclose)> fp) : fp_(std::move(fp)) {} in StreamImpl()
52 std::unique_ptr<FILE, decltype(&fclose)> fp_;
/ohos5.0/foundation/arkui/ui_lite/frameworks/font/
H A Dglyphs_file.cpp35 fp_(-1),
61 int32_t ret = read(fp_, indexCache_, size); in CacheInit()
90 int32_t ret = lseek(fp_, offset, SEEK_SET); in GetNodeFromFile()
96 ret = read(fp_, &node, sizeof(GlyphNode)); in GetNodeFromFile()
136 fp_ = fp; in SetFile()
138 int32_t ret = lseek(fp_, start_, SEEK_SET); in SetFile()
143 ret = read(fp_, &binHeader_, sizeof(binHeader_)); in SetFile()
167 ret = read(fp_, fontHeaderCache_, size); in SetFile()
313 int32_t ret = lseek(fp_, offset, SEEK_SET); in GetBitmap()
319 int32_t readSize = read(fp_, bufInfo.virAddr, size); in GetBitmap()
H A Dui_line_break.h72 fp_ = fp; in SetRuleBinInfo()
74 int32_t fRet = lseek(fp_, offset, SEEK_SET); in SetRuleBinInfo()
128 …: initSuccess_(false), addr_(nullptr), size_(0), fp_(0), offset_(0), lineBreakTrie_(nullptr), stat… in UILineBreakEngine()
141 int32_t fp_; variable
H A Dui_line_break.cpp82 if ((fp_ < 0) || (addr_ == nullptr)) { in LoadRule()
90 int32_t ret = lseek(fp_, offset_, SEEK_SET); in LoadRule()
95 ret = read(fp_, buf, size_); in LoadRule()
H A Dglyphs_file.h85 int32_t fp_; variable
/ohos5.0/foundation/multimedia/media_foundation/engine/plugin/plugins/source/video_capture/
H A Dvideo_file_capture_plugin.cpp107 fp_ = fopen(filePath.c_str(), "rb"); in Prepare()
108 FALSE_RETURN_V(fp_ != nullptr, Status::ERROR_NULL_POINTER); in Prepare()
139 if (fp_ != nullptr) { in Stop()
140 fclose(fp_); in Stop()
141 fp_ = nullptr; in Stop()
258 …FALSE_RETURN_V_MSG_E(std::fread(static_cast<void*>(cacheFrame_), 1, bufferSize_, fp_) == bufferSiz… in Read()
H A Dvideo_file_capture_plugin.h68 std::FILE* fp_ {nullptr};
/ohos5.0/base/hiviewdfx/hidumper/frameworks/native/include/executor/
H A Dfile_stream_dumper.h43 FILE* fp_; variable
H A Dcmd_dumper.h41 FILE *fp_; variable
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/accessor/include/
H A Dfile_metadata_stream.h264 FILE *fp_; // File descriptor variable
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/image_source_test/
H A Dmetadata_stream_test.cpp1005 FileMetadataStream cloneStream(fileno(stream.fp_));
1049 ASSERT_TRUE(stream.fp_ != nullptr);
1137 FILE *fileStream = stream.fp_; // Change "rb" to "wb" for writing in binary mode