Home
last modified time | relevance | path

Searched refs:reader_ (Results 1 – 4 of 4) sorted by relevance

/frameworks/hardware/interfaces/sensorservice/utils/
Ddirect_channel_buffer_reader_test.cc99 DirectChannelBufferReaderTest() : buffer_{}, reader_(&buffer_[0], kBufferSize) {} in DirectChannelBufferReaderTest()
124 auto& samples = reader_.GetSampleContainer(); in ValidateReaderSamples()
135 reader_.BlockReads(); in StartReaderThread()
138 reader_.Read(); in StartReaderThread()
150 reader_.UnblockReads(); in StopAndJoinReaderThread()
157 TestableDirectChannelBufferReader reader_; member in __anonb64ca7aa0111::DirectChannelBufferReaderTest
167 EXPECT_EQ(reader_.Read(), 0); in TEST_F()
168 EXPECT_EQ(reader_.GetSampleContainer().size(), 0); in TEST_F()
173 EXPECT_EQ(reader_.Read(), 1); in TEST_F()
174 EXPECT_EQ(reader_.GetSampleContainer().size(), 1); in TEST_F()
[all …]
/frameworks/base/tools/aapt2/format/
DContainer.cpp175 ContainerReaderEntry::ContainerReaderEntry(ContainerReader* reader) : reader_(reader) { in ContainerReaderEntry()
186 reader_->error_ = StringPrintf("entry length %zu is too large", length_); in GetResTable()
190 CodedInputStream& coded_in = reader_->coded_in_; in GetResTable()
196 reader_->error_ = "failed to parse ResourceTable"; in GetResTable()
206 CodedInputStream& coded_in = reader_->coded_in_; in GetResFileOffsets()
212 error << "failed to read header length from input: " << reader_->in_->GetError(); in GetResFileOffsets()
213 reader_->error_ = error.str(); in GetResFileOffsets()
220 error << "failed to read data length from input: " << reader_->in_->GetError(); in GetResFileOffsets()
221 reader_->error_ = error.str(); in GetResFileOffsets()
228 reader_->error_ = error.str(); in GetResFileOffsets()
[all …]
DContainer.h75 ContainerReader* reader_; variable
/frameworks/native/libs/vr/libpdx/private/pdx/rpc/
Dargument_encoder.h110 explicit ArgumentDecoder(MessageReader* reader) : reader_{reader} {} in ArgumentDecoder()
115 *error = Deserialize(&value, reader_); in DecodeArguments()
120 MessageReader* reader_;
131 explicit ArgumentDecoder(MessageReader* reader) : reader_{reader} {} in ArgumentDecoder()
136 *error = Deserialize(&value, reader_); in DecodeArguments()
142 return Deserialize(value, reader_); in DecodeReturn()
146 MessageReader* reader_;