Home
last modified time | relevance | path

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

/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_processor_unittest.cc64 std::ifstream file_stream(file_name.c_str(), std::ios::in); in ReadFile() local
65 ASSERT_TRUE(file_stream.good()); in ReadFile()
67 file_stream.seekg(0, std::ios_base::end); in ReadFile()
68 ASSERT_TRUE(file_stream.good()); in ReadFile()
69 bytes.resize(file_stream.tellg()); in ReadFile()
70 file_stream.seekg(0, std::ios_base::beg); in ReadFile()
71 ASSERT_TRUE(file_stream.good()); in ReadFile()
72 file_stream.read(&bytes[0], bytes.size()); in ReadFile()
73 ASSERT_TRUE(file_stream.good()); in ReadFile()
Dmicrodump_stackwalk.cc73 std::ifstream file_stream(microdump_file); in PrintMicrodumpProcess() local
75 file_stream.seekg(0, std::ios_base::end); in PrintMicrodumpProcess()
76 bytes.resize(file_stream.tellg()); in PrintMicrodumpProcess()
77 file_stream.seekg(0, std::ios_base::beg); in PrintMicrodumpProcess()
78 file_stream.read(&bytes[0], bytes.size()); in PrintMicrodumpProcess()
Dminidump_unittest.cc98 ifstream file_stream(minidump_file_.c_str(), std::ios::in); in TEST_F() local
99 ASSERT_TRUE(file_stream.good()); in TEST_F()
101 file_stream.seekg(0, std::ios_base::end); in TEST_F()
102 ASSERT_TRUE(file_stream.good()); in TEST_F()
103 bytes.resize(file_stream.tellg()); in TEST_F()
104 file_stream.seekg(0, std::ios_base::beg); in TEST_F()
105 ASSERT_TRUE(file_stream.good()); in TEST_F()
106 file_stream.read(&bytes[0], bytes.size()); in TEST_F()
107 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/webrtc/modules/audio_coding/test/
Dopus_test.cc370 std::stringstream file_stream; in OpenOutFile() local
371 file_stream << webrtc::test::OutputPath() << "opustest_out_" in OpenOutFile()
373 file_name = file_stream.str(); in OpenOutFile()
375 file_stream.str(""); in OpenOutFile()
376 file_name = file_stream.str(); in OpenOutFile()
377 file_stream << webrtc::test::OutputPath() << "opusstandalone_out_" in OpenOutFile()
379 file_name = file_stream.str(); in OpenOutFile()
Ddelay_test.cc168 std::stringstream file_stream; in OpenOutFile() local
169 file_stream << "delay_test_" << FLAGS_codec << "_" << FLAGS_sample_rate_hz in OpenOutFile()
171 std::cout << "Output file: " << file_stream.str() << std::endl << std::endl; in OpenOutFile()
172 std::string file_name = webrtc::test::OutputPath() + file_stream.str(); in OpenOutFile()
DTestRedFec.cc472 std::stringstream file_stream; in OpenOutFile() local
473 file_stream << webrtc::test::OutputPath(); in OpenOutFile()
474 file_stream << "TestRedFec_outFile_"; in OpenOutFile()
475 file_stream << test_number << ".pcm"; in OpenOutFile()
476 file_name = file_stream.str(); in OpenOutFile()
DEncodeDecodeTest.cc145 std::stringstream file_stream; in Setup() local
146 file_stream << webrtc::test::OutputPath() << out_file_name in Setup()
148 file_name = file_stream.str(); in Setup()
DTestStereo.cc824 std::stringstream file_stream; in OpenOutFile() local
825 file_stream << webrtc::test::OutputPath() << "teststereo_out_" << test_number in OpenOutFile()
827 file_name = file_stream.str(); in OpenOutFile()
/external/v8/src/torque/
Dtorque-compiler.cc22 std::ifstream file_stream(path); in ReadFile() local
23 if (!file_stream.good()) return base::nullopt; in ReadFile()
25 return std::string{std::istreambuf_iterator<char>(file_stream), in ReadFile()
/external/tensorflow/tensorflow/compiler/xla/tests/
Dtest_macros.cc43 std::ifstream file_stream(path); in ReadManifest() local
45 string contents((std::istreambuf_iterator<char>(file_stream)), in ReadManifest()
/external/webrtc/talk/media/devices/
Dlinuxdevicemanager.cc185 rtc::FileStream* file_stream = in GetVideoDeviceNameK2_4() local
188 if (file_stream == NULL) return ""; in GetVideoDeviceNameK2_4()
190 config_parser.Attach(file_stream); in GetVideoDeviceNameK2_4()
/external/puffin/
DMakefile9 file_stream.cc \
DAndroid.bp57 "src/file_stream.cc",
DBUILD.gn98 "src/file_stream.cc",
/external/webrtc/webrtc/call/
Drtc_event_log.cc212 FILE* file_stream = rtc::FdopenPlatformFileForWriting(log_file);
213 if (!file_stream) {
218 if (file_->OpenFromFileHandle(file_stream, true, false) != 0) {
/external/noto-fonts/emoji-compat/
Dcreatefont.py262 with open(file_path) as file_stream:
263 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.bp68 "brillo/streams/file_stream.cc",
Dlibbrillo.gypi163 '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()