Home
last modified time | relevance | path

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

12

/external/tensorflow/tensorflow/core/summary/
Dsummary_db_writer_test.cc57 if (writer_ != nullptr) { in TearDown()
58 writer_->Unref(); in TearDown()
59 writer_ = nullptr; in TearDown()
100 SummaryWriterInterface* writer_ = nullptr; member in tensorflow::__anon4ff30c150111::SummaryDbWriterTest
105 &writer_)); in TEST_F()
129 TF_ASSERT_OK(writer_->WriteEvent(std::move(e))); in TEST_F()
130 TF_ASSERT_OK(writer_->Flush()); in TEST_F()
131 writer_->Unref(); in TEST_F()
132 writer_ = nullptr; in TEST_F()
155 &writer_)); in TEST_F()
[all …]
/external/deqp-deps/SPIRV-Tools/source/comp/
Dmarkv_encoder.cpp37 writer_.WriteBits(bits, num_bits); in EncodeNonIdWord()
47 writer_.WriteBits(bits, num_bits); in EncodeNonIdWord()
55 writer_.WriteVariableWidthU32(word, chunk_length); in EncodeNonIdWord()
57 writer_.WriteUnencoded(word); in EncodeNonIdWord()
75 writer_.WriteBits(bits, num_bits); in EncodeOpcodeAndNumOperands()
86 writer_.WriteBits(bits, num_bits); in EncodeOpcodeAndNumOperands()
95 writer_.WriteBits(bits, num_bits); in EncodeOpcodeAndNumOperands()
104 writer_.WriteBits(bits, num_bits); in EncodeOpcodeAndNumOperands()
127 writer_.WriteBits(bits, num_bits); in EncodeMtfRankHuffman()
135 writer_.WriteBits(bits, num_bits); in EncodeMtfRankHuffman()
[all …]
Dmarkv_encoder.h63 writer_.SetCallback( in CreateLogger()
78 static_cast<uint32_t>(sizeof(header_) * 8 + writer_.GetNumBits()); in GetMarkvBinary()
82 const size_t num_bytes = sizeof(header_) + writer_.GetDataSizeBytes(); in GetMarkvBinary()
85 assert(writer_.GetData()); in GetMarkvBinary()
87 std::memcpy(markv.data() + sizeof(header_), writer_.GetData(), in GetMarkvBinary()
88 writer_.GetDataSizeBytes()); in GetMarkvBinary()
157 BitWriterWord64 writer_; variable
/external/swiftshader/third_party/SPIRV-Tools/source/comp/
Dmarkv_encoder.cpp37 writer_.WriteBits(bits, num_bits); in EncodeNonIdWord()
47 writer_.WriteBits(bits, num_bits); in EncodeNonIdWord()
55 writer_.WriteVariableWidthU32(word, chunk_length); in EncodeNonIdWord()
57 writer_.WriteUnencoded(word); in EncodeNonIdWord()
75 writer_.WriteBits(bits, num_bits); in EncodeOpcodeAndNumOperands()
86 writer_.WriteBits(bits, num_bits); in EncodeOpcodeAndNumOperands()
95 writer_.WriteBits(bits, num_bits); in EncodeOpcodeAndNumOperands()
104 writer_.WriteBits(bits, num_bits); in EncodeOpcodeAndNumOperands()
127 writer_.WriteBits(bits, num_bits); in EncodeMtfRankHuffman()
135 writer_.WriteBits(bits, num_bits); in EncodeMtfRankHuffman()
[all …]
Dmarkv_encoder.h63 writer_.SetCallback( in CreateLogger()
78 static_cast<uint32_t>(sizeof(header_) * 8 + writer_.GetNumBits()); in GetMarkvBinary()
82 const size_t num_bytes = sizeof(header_) + writer_.GetDataSizeBytes(); in GetMarkvBinary()
85 assert(writer_.GetData()); in GetMarkvBinary()
87 std::memcpy(markv.data() + sizeof(header_), writer_.GetData(), in GetMarkvBinary()
88 writer_.GetDataSizeBytes()); in GetMarkvBinary()
157 BitWriterWord64 writer_; variable
/external/tensorflow/tensorflow/python/lib/io/
Dpy_record_writer.cc41 writer->writer_.reset(new RecordWriter(writer->file_.get(), options)); in New()
47 writer_.reset(); in ~PyRecordWriter()
53 if (writer_ == nullptr) { in WriteRecord()
58 Status s = writer_->WriteRecord(record); in WriteRecord()
65 if (writer_ == nullptr) { in Flush()
70 Status s = writer_->Flush(); in Flush()
83 if (writer_ != nullptr) { in Close()
84 Status s = writer_->Close(); in Close()
89 writer_.reset(nullptr); in Close()
/external/perfetto/include/perfetto/protozero/
Dscattered_heap_buffer.h76 writer_ = writer; in set_writer()
88 protozero::ScatteredStreamWriter* writer_ = nullptr; variable
106 HeapBuffered() : shb_(4096, 4096), writer_(&shb_) { in HeapBuffered()
107 shb_.set_writer(&writer_); in HeapBuffered()
108 msg_.Reset(&writer_); in HeapBuffered()
130 ScatteredStreamWriter writer_; variable
/external/perfetto/src/traced/probes/ftrace/
Dftrace_data_source.cc38 writer_(std::move(writer)), in FtraceDataSource()
95 if (writer_) { in OnFtraceFlushComplete()
97 writer_->Flush(std::move(callback)); in OnFtraceFlushComplete()
103 auto before_packet = writer_->NewTracePacket(); in WriteStats()
111 auto after_packet = writer_->NewTracePacket(); in WriteStats()
Dftrace_data_source.h80 TraceWriter* trace_writer() { return writer_.get(); } in trace_writer()
96 std::unique_ptr<TraceWriter> writer_; variable
/external/v8/src/profiler/
Dheap-snapshot-generator.cc2640 DCHECK_NULL(writer_); in Serialize()
2641 writer_ = new OutputStreamWriter(stream); in Serialize()
2643 delete writer_; in Serialize()
2644 writer_ = nullptr; in Serialize()
2650 writer_->AddCharacter('{'); in SerializeImpl()
2651 writer_->AddString("\"snapshot\":{"); in SerializeImpl()
2653 if (writer_->aborted()) return; in SerializeImpl()
2654 writer_->AddString("},\n"); in SerializeImpl()
2655 writer_->AddString("\"nodes\":["); in SerializeImpl()
2657 if (writer_->aborted()) return; in SerializeImpl()
[all …]
/external/grpc-grpc/test/cpp/codegen/
Dproto_utils_test.cc33 explicit ProtoBufferWriterPeer(ProtoBufferWriter* writer) : writer_(writer) {} in ProtoBufferWriterPeer()
34 bool have_backup() const { return writer_->have_backup_; } in have_backup()
35 const grpc_slice& backup_slice() const { return writer_->backup_slice_; } in backup_slice()
36 const grpc_slice& slice() const { return writer_->slice_; } in slice()
39 ProtoBufferWriter* writer_; member in grpc::internal::ProtoBufferWriterPeer
/external/google-breakpad/src/client/mac/handler/
Dminidump_generator.cc73 : writer_(), in MinidumpGenerator()
91 : writer_(), in MinidumpGenerator()
221 if (writer_.Open(path)) { in Write()
222 TypedMDRVA<MDRawHeader> header(&writer_); in Write()
223 TypedMDRVA<MDRawDirectory> dir(&writer_); in Write()
319 UntypedMDRVA memory(&writer_); in WriteStackFromStartAddress()
470 TypedMDRVA<MDRawContextARM> context(&writer_); in WriteContextARM()
528 TypedMDRVA<MDRawContextARM64> context(&writer_); in WriteContextARM64()
619 TypedMDRVA<MDRawContextPPC> context(&writer_); in WriteContextPPC()
685 TypedMDRVA<MDRawContextPPC64> context(&writer_); in WriteContextPPC64()
[all …]
/external/perfetto/src/traced/probes/packages_list/
Dpackages_list_data_source.cc115 : ProbesDataSource(session_id, kTypeId), writer_(std::move(writer)) { in PackagesListDataSource()
124 auto trace_packet = writer_->NewTracePacket(); in Start()
130 writer_->Flush(); in Start()
143 writer_->Flush(); in Start()
/external/tensorflow/tensorflow/lite/tools/accuracy/ilsvrc/
Dimagenet_accuracy_eval.cc53 : writer_(std::move(writer)) {} in ResultsWriter()
63 std::unique_ptr<CSVWriter> writer_ GUARDED_BY(mu_);
71 TF_CHECK_OK(writer_->WriteRow(GetAccuracies(stats))); in OnSingleImageEvaluationComplete()
72 writer_->Flush(); in OnSingleImageEvaluationComplete()
/external/google-breakpad/src/client/
Dminidump_file_writer-inl.h74 return writer_->Copy( in CopyIndex()
84 return writer_->Copy( in CopyIndexAfterObject()
92 return writer_->Copy(position_, &data_, minidump_size<MDType>::size()); in Flush()
Dminidump_file_writer.h159 : writer_(writer), in UntypedMDRVA()
191 MinidumpFileWriter *writer_;
/external/libxcam/plugins/smart/dvs/libdvs/
Dtest-image-stabilization.cpp141 if (!dvs->writer_.isOpened()) { in main()
142 dvs->writer_.open(outputPath, VideoWriter::fourcc('X', '2', '6', '4'), in main()
145 dvs->writer_.write(croppedStabilizedFrame); in main()
/external/perfetto/src/traced/probes/power/
Dandroid_power_data_source.cc133 writer_(std::move(writer)), in AndroidPowerDataSource()
192 auto packet = writer_->NewTracePacket(); in WriteBatteryCounters()
232 auto packet = writer_->NewTracePacket(); in WritePowerRailsData()
266 writer_->Flush(callback); in Flush()
/external/perfetto/src/protozero/
Dscattered_heap_buffer.cc48 PERFETTO_CHECK(writer_); in GetNewBuffer()
70 slices_.back().set_unused_bytes(writer_->bytes_available()); in AdjustUsedSizeOfCurrentSlice()
/external/google-breakpad/src/common/mac/
DGTMLogger.m171 // Unlikely, but |writer_| may be an NSFileHandle, which can throw
175 [writer_ release];
184 return [[writer_ retain] autorelease];
189 [writer_ autorelease];
190 writer_ = nil;
194 writer_ = [[NSFileHandle fileHandleWithStandardOutput] retain];
197 // Leave |writer_| nil
200 writer_ = [writer retain];
324 [writer_ logMessage:msg level:level];
/external/tensorflow/tensorflow/core/lib/io/
Drecordio_test.cc111 RecordWriter* writer_; member in tensorflow::io::__anon3461d06d0111::RecordioTest
120 writer_(new RecordWriter(&dest_)), in RecordioTest()
124 delete writer_; in ~RecordioTest()
130 TF_ASSERT_OK(writer_->WriteRecord(StringPiece(msg))); in Write()
/external/perfetto/src/perfetto_cmd/
Dpacket_writer.cc93 std::unique_ptr<PacketWriter> writer_; member in perfetto::__anon0433f89c0111::ZipPacketWriter
128 : writer_(std::move(writer)), in ZipPacketWriter()
214 if (!writer_->WritePackets(out_packets)) in FinalizeCompressedPacket()
/external/google-breakpad/src/client/ios/handler/
Dios_exception_minidump_generator.mm93 TypedMDRVA<MDRawContextARM> context(&writer_);
111 TypedMDRVA<MDRawContextARM64> context(&writer_);
137 TypedMDRVA<MDRawExceptionStream> exception(&writer_);
171 UntypedMDRVA memory(&writer_);
/external/perfetto/src/traced/probes/android_log/
Dandroid_log_data_source.cc88 writer_(std::move(writer)), in AndroidLogDataSource()
249 packet = writer_->NewTracePacket(); in ReadLogSocket()
448 auto packet = writer_->NewTracePacket(); in Flush()
456 writer_->Flush(callback); in Flush()
/external/tensorflow/tensorflow/core/kernels/data/
Dcache_dataset_ops.cc216 TF_RETURN_IF_ERROR(writer_->status()); in GetNextInternal()
245 TF_RETURN_IF_ERROR(writer_->Add(key, t)); in GetNextInternal()
276 TF_RETURN_IF_ERROR(writer_->Finish()); in SaveInternal()
328 writer_ = absl::make_unique<BundleWriter>(dataset()->env_, filename_); in RestoreInternal()
388 writer_ = in EnsureLockFileExists()
398 TF_RETURN_IF_ERROR(writer_->Finish()); in Finish()
433 std::unique_ptr<BundleWriter> writer_ GUARDED_BY(mu_);

12