/external/image_io/src/utils/ |
D | file_utils.cc | 32 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/ |
D | parse_utils.c | 26 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()
|
D | parse_utils.h | 16 FILE *file_stream; /* Input stream handle */ member
|
/external/google-breakpad/src/processor/ |
D | microdump_stackwalk.cc | 84 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()
|
D | microdump_processor_unittest.cc | 66 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()
|
D | minidump_unittest.cc | 110 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/ |
D | logging_util.py | 14 def CaptureLogs(file_stream): argument 15 if not file_stream: 20 fh = logging.StreamHandler(file_stream)
|
/external/webrtc/modules/audio_coding/test/ |
D | opus_test.cc | 389 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()
|
D | TestRedFec.cc | 224 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()
|
D | EncodeDecodeTest.cc | 138 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()
|
D | TestStereo.cc | 592 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/ |
D | test-data-test-utils.h | 34 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/ |
D | manifest_checking_test.cc | 46 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/ |
D | annotator.cc | 32 std::ifstream file_stream(file_name); in ReadFile() local 33 return std::string(std::istreambuf_iterator<char>(file_stream), {}); in ReadFile()
|
/external/puffin/ |
D | Makefile | 9 file_stream.cc \
|
D | Android.bp | 74 "src/file_stream.cc",
|
D | BUILD.gn | 98 "src/file_stream.cc",
|
/external/tensorflow/tensorflow/lite/delegates/coreml/ |
D | coreml_executor.mm | 194 std::ofstream file_stream([modelPath UTF8String], std::ios::out | std::ios::binary); 195 model->SerializeToOstream(&file_stream);
|
/external/libtextclassifier/native/annotator/datetime/ |
D | grammar-parser_test.cc | 39 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/ |
D | createfont.py | 271 with open(file_path) as file_stream: 272 for line in file_stream:
|
/external/protobuf/src/google/protobuf/compiler/objectivec/ |
D | objectivec_helpers.cc | 1536 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/ |
D | Android.bp | 97 "brillo/streams/file_stream.cc",
|
D | BUILD.gn | 153 "brillo/streams/file_stream.cc",
|
/external/python/dateutil/dateutil/tz/ |
D | tz.py | 471 with fileobj as file_stream: 472 tzobj = self._read_tzfile(file_stream)
|
/external/protobuf/src/google/protobuf/compiler/ |
D | command_line_interface.cc | 1231 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()
|