Home
last modified time | relevance | path

Searched refs:file_stream (Results 1 – 25 of 27) sorted by relevance

12

/external/image_io/src/utils/
Dfile_utils.cc32 auto* file_stream = new fstream(file_name, std::ios::out | std::ios::binary); in OpenOutputFile() local
33 if (file_stream && !file_stream->is_open()) { in OpenOutputFile()
34 delete file_stream; in OpenOutputFile()
35 file_stream = nullptr; in OpenOutputFile()
40 return unique_ptr<ostream>(file_stream); in OpenOutputFile()
45 auto* file_stream = new fstream(file_name, std::ios::in | std::ios::binary); in OpenInputFile() local
46 if (file_stream && !file_stream->is_open()) { in OpenInputFile()
47 delete file_stream; in OpenInputFile()
48 file_stream = nullptr; in OpenInputFile()
53 return unique_ptr<istream>(file_stream); in OpenInputFile()
/external/selinux/libsemanage/src/
Dparse_utils.c26 tmp_info->file_stream = NULL; in parse_init()
48 info->file_stream = fopen(info->filename, "r"); in parse_open()
49 if (!info->file_stream && (errno != ENOENT)) { in parse_open()
54 if (info->file_stream) in parse_open()
55 __fsetlocking(info->file_stream, FSETLOCKING_BYCALLER); in parse_open()
63 if (info->file_stream) in parse_close()
64 fclose(info->file_stream); in parse_close()
65 info->file_stream = NULL; in parse_close()
102 while (info->file_stream && in parse_skip_space()
103 ((len = getline(&buffer, &buf_len, info->file_stream)) > 0)) { in parse_skip_space()
Dparse_utils.h16 FILE *file_stream; /* Input stream handle */ member
/external/google-breakpad/src/processor/
Dmicrodump_stackwalk.cc84 std::ifstream file_stream(options.microdump_file); in PrintMicrodumpProcess() local
86 file_stream.seekg(0, std::ios_base::end); in PrintMicrodumpProcess()
87 bytes.resize(file_stream.tellg()); in PrintMicrodumpProcess()
92 file_stream.seekg(0, std::ios_base::beg); in PrintMicrodumpProcess()
93 file_stream.read(&bytes[0], bytes.size()); in PrintMicrodumpProcess()
Dmicrodump_processor_unittest.cc66 std::ifstream file_stream(file_name.c_str(), std::ios::in); in ReadFile() local
67 ASSERT_TRUE(file_stream.good()); in ReadFile()
69 file_stream.seekg(0, std::ios_base::end); in ReadFile()
70 ASSERT_TRUE(file_stream.good()); in ReadFile()
71 bytes.resize(file_stream.tellg()); in ReadFile()
72 file_stream.seekg(0, std::ios_base::beg); in ReadFile()
73 ASSERT_TRUE(file_stream.good()); in ReadFile()
74 file_stream.read(&bytes[0], bytes.size()); in ReadFile()
75 ASSERT_TRUE(file_stream.good()); in ReadFile()
Dminidump_unittest.cc110 ifstream file_stream(minidump_file_.c_str(), std::ios::in); in TEST_F() local
111 ASSERT_TRUE(file_stream.good()); in TEST_F()
113 file_stream.seekg(0, std::ios_base::end); in TEST_F()
114 ASSERT_TRUE(file_stream.good()); in TEST_F()
115 bytes.resize(file_stream.tellg()); in TEST_F()
116 file_stream.seekg(0, std::ios_base::beg); in TEST_F()
117 ASSERT_TRUE(file_stream.good()); in TEST_F()
118 file_stream.read(&bytes[0], bytes.size()); in TEST_F()
119 ASSERT_TRUE(file_stream.good()); in TEST_F()
/external/chromium-trace/catapult/common/py_utils/py_utils/
Dlogging_util.py14 def CaptureLogs(file_stream): argument
15 if not file_stream:
20 fh = logging.StreamHandler(file_stream)
/external/webrtc/modules/audio_coding/test/
Dopus_test.cc389 std::stringstream file_stream; in OpenOutFile() local
390 file_stream << webrtc::test::OutputPath() << "opustest_out_" << test_number in OpenOutFile()
392 file_name = file_stream.str(); in OpenOutFile()
394 file_stream.str(""); in OpenOutFile()
395 file_name = file_stream.str(); in OpenOutFile()
396 file_stream << webrtc::test::OutputPath() << "opusstandalone_out_" in OpenOutFile()
398 file_name = file_stream.str(); in OpenOutFile()
DTestRedFec.cc224 rtc::StringBuilder file_stream; in OpenOutFile() local
225 file_stream << webrtc::test::OutputPath(); in OpenOutFile()
226 file_stream << "TestRedFec_outFile_"; in OpenOutFile()
227 file_stream << test_number << ".pcm"; in OpenOutFile()
228 file_name = file_stream.str(); in OpenOutFile()
DEncodeDecodeTest.cc138 rtc::StringBuilder file_stream; in Setup() local
139 file_stream << webrtc::test::OutputPath() << out_file_name << file_num in Setup()
141 file_name = file_stream.str(); in Setup()
DTestStereo.cc592 rtc::StringBuilder file_stream; in OpenOutFile() local
593 file_stream << webrtc::test::OutputPath() << "teststereo_out_" << test_number in OpenOutFile()
595 file_name = file_stream.str(); in OpenOutFile()
/external/libtextclassifier/native/utils/
Dtest-data-test-utils.h34 std::ifstream file_stream(full_path); in GetTestFileContent()
35 return std::string(std::istreambuf_iterator<char>(file_stream), {}); in GetTestFileContent()
/external/tensorflow/tensorflow/compiler/xla/tests/
Dmanifest_checking_test.cc46 std::ifstream file_stream((std::string(path))); in ReadManifest()
47 std::string contents((std::istreambuf_iterator<char>(file_stream)), in ReadManifest()
/external/libtextclassifier/native/utils/testing/
Dannotator.cc32 std::ifstream file_stream(file_name); in ReadFile() local
33 return std::string(std::istreambuf_iterator<char>(file_stream), {}); in ReadFile()
/external/puffin/
DMakefile9 file_stream.cc \
DAndroid.bp74 "src/file_stream.cc",
DBUILD.gn98 "src/file_stream.cc",
/external/tensorflow/tensorflow/lite/delegates/coreml/
Dcoreml_executor.mm194 std::ofstream file_stream([modelPath UTF8String], std::ios::out | std::ios::binary);
195 model->SerializeToOstream(&file_stream);
/external/libtextclassifier/native/annotator/datetime/
Dgrammar-parser_test.cc39 std::ifstream file_stream(file_name); in ReadFile() local
40 return std::string(std::istreambuf_iterator<char>(file_stream), {}); in ReadFile()
/external/noto-fonts/emoji-compat/
Dcreatefont.py271 with open(file_path) as file_stream:
272 for line in file_stream:
/external/protobuf/src/google/protobuf/compiler/objectivec/
Dobjectivec_helpers.cc1536 io::FileInputStream file_stream(fd); in ParseSimpleFile() local
1537 file_stream.SetCloseOnDelete(true); in ParseSimpleFile()
1542 while (file_stream.Next(&buf, &buf_len)) { in ParseSimpleFile()
/external/libbrillo/
DAndroid.bp97 "brillo/streams/file_stream.cc",
DBUILD.gn153 "brillo/streams/file_stream.cc",
/external/python/dateutil/dateutil/tz/
Dtz.py471 with fileobj as file_stream:
472 tzobj = self._read_tzfile(file_stream)
/external/protobuf/src/google/protobuf/compiler/
Dcommand_line_interface.cc1231 std::ifstream file_stream(file.c_str()); in ExpandArgumentFile() local
1232 if (!file_stream.is_open()) { in ExpandArgumentFile()
1237 while (std::getline(file_stream, argument)) { in ExpandArgumentFile()

12