/prebuilts/go/linux-x86/src/encoding/binary/ |
binary_test.go | 126 err := Read(bytes.NewReader(b), order, &s2) 127 checkResult(t, "Read", order, err, s2, s1) 146 err := Read(bytes.NewReader(src), BigEndian, slice) 159 err = Read(bytes.NewReader([]byte{0}), BigEndian, &res) 162 err = Read(bytes.NewReader([]byte{1}), BigEndian, &res) 165 err = Read(bytes.NewReader([]byte{2}), BigEndian, &res) 171 err := Read(bytes.NewReader([]byte{0, 1, 2, 255}), BigEndian, slice) 211 err = Read(buf, BigEndian, dstSlice.Interface()) 275 if err := Read(buf, LittleEndian, &p); err != nil { 289 // read should ignore blank fields in b [all...] |
/external/libchrome/base/json/ |
json_reader_unittest.cc | 268 ListValue::From(JSONReader::Read("[true, false, null]")); 274 JSONReader::Read("[true, false, null, ]", JSON_ALLOW_TRAILING_COMMAS); 280 std::unique_ptr<ListValue> list = ListValue::From(JSONReader::Read("[]")); 288 JSONReader::Read("[[true], [], [false, [], [null]], null]")); 294 JSONReader::Read("[[true], [], [false, [], [null, ] , ], null,]", 301 EXPECT_FALSE(JSONReader::Read("[[true], [], [false, [], [null]], null")); 304 EXPECT_FALSE(JSONReader::Read("[true,, null]")); 305 EXPECT_FALSE(JSONReader::Read("[true,, null]", JSON_ALLOW_TRAILING_COMMAS)); 308 EXPECT_FALSE(JSONReader::Read("[true null]")); 311 EXPECT_FALSE(JSONReader::Read("[true,]")) [all...] |
/external/webrtc/webrtc/base/ |
stream_unittest.cc | 27 virtual StreamResult Read(void* buffer, size_t buffer_len, 28 size_t* read, int* error) { 33 if (read) 34 *read = buffer_len; 82 EXPECT_EQ(stream->Read(buffer, kBufSize, &bytes, NULL), SR_SUCCESS); 90 EXPECT_EQ(stream->Read(buffer, kBufSize, &bytes, NULL), SR_SUCCESS); 109 EXPECT_EQ(SR_BLOCK, stream->Read(out, kSize, &bytes, NULL)); 124 // Try a full read 125 EXPECT_EQ(SR_SUCCESS, stream->Read(out, kSize, &bytes, NULL)); 129 // Try a read that should bloc 361 size_t read; local [all...] |
/art/libartbase/base/unix_file/ |
random_access_file_test.h | 59 while ((n = f->Read(buf, sizeof(buf), offset)) > 0) { 72 ASSERT_EQ(0, file->Read(buf, 0, 0)); 73 ASSERT_EQ(0, file->Read(buf, 123, 0)); 86 // Can't read from a negative offset. 87 ASSERT_EQ(-EINVAL, file->Read(buf.get(), 0, -123)); 90 ASSERT_EQ(content.size(), static_cast<uint64_t>(file->Read(buf.get(), buf_size, 0))); 96 ASSERT_EQ(short_request, static_cast<uint64_t>(file->Read(buf.get(), short_request, 0))); 103 ASSERT_EQ(short_request, static_cast<uint64_t>(file->Read(buf.get(), short_request, 109 ASSERT_EQ(0, file->Read(buf.get(), buf_size, file->GetLength())); 110 ASSERT_EQ(0, file->Read(buf.get(), buf_size, file->GetLength() + 1)) [all...] |
/device/linaro/bootloader/edk2/BaseTools/Source/C/LzmaCompress/Sdk/C/ |
7zStream.c | 15 RINOK(stream->Read(stream, buf, &processed));
32 RINOK(stream->Read(stream, buf, &processed));
57 RINOK(stream->Read(stream, buf, &processed));
80 res = p->realStream->Read(p->realStream, p->buf, &size2);
99 res = p->realStream->Read(p->realStream, p->buf, size);
120 return p->realStream->Read(p->realStream, buf, size);
142 p->s.Read = LookToRead_Read;
159 p->s.Read = SecToLook_Read;
165 return p->realStream->Read(p->realStream, buf, size);
170 p->s.Read = SecToRead_Read; [all...] |
/external/libmojo/ui/gfx/geometry/mojo/ |
geometry_struct_traits.h | 28 static bool Read(gfx::mojom::InsetsDataView data, gfx::Insets* out) { 40 static bool Read(gfx::mojom::InsetsFDataView data, gfx::InsetsF* out) { 50 static bool Read(gfx::mojom::PointDataView data, gfx::Point* out) { 60 static bool Read(gfx::mojom::PointFDataView data, gfx::PointF* out) { 72 static bool Read(gfx::mojom::RectDataView data, gfx::Rect* out) { 87 static bool Read(gfx::mojom::RectFDataView data, gfx::RectF* out) { 100 static bool Read(gfx::mojom::SizeDataView data, gfx::Size* out) { 113 static bool Read(gfx::mojom::SizeFDataView data, gfx::SizeF* out) { 126 static bool Read(gfx::mojom::Vector2dDataView data, gfx::Vector2d* out) { 137 static bool Read(gfx::mojom::Vector2dFDataView data, gfx::Vector2dF* out) [all...] |
/external/lzma/C/ |
7zStream.c | 15 RINOK(stream->Read(stream, buf, &processed));
32 RINOK(stream->Read(stream, buf, &processed));
57 RINOK(stream->Read(stream, buf, &processed));
80 res = p->realStream->Read(p->realStream, p->buf, &size2);
99 res = p->realStream->Read(p->realStream, p->buf, size);
120 return p->realStream->Read(p->realStream, buf, size);
142 p->s.Read = LookToRead_Read;
159 p->s.Read = SecToLook_Read;
165 return p->realStream->Read(p->realStream, buf, size);
170 p->s.Read = SecToRead_Read; [all...] |
/external/rmi4utils/rmidevice/ |
rmidevice.cpp | 88 rc = Read(queryAddr, basicQuery, RMI_DEVICE_F01_BASIC_QUERY_LEN); 90 fprintf(stderr, "Failed to read the basic query: %s\n", strerror(errno)); 108 rc = Read(queryAddr, m_productID, RMI_PRODUCT_ID_LENGTH); 110 fprintf(stderr, "Failed to read the product id: %s\n", strerror(errno)); 122 rc = Read(queryAddr++, &m_sensorID, 1); 124 fprintf(stderr, "Failed to read sensor id: %s\n", strerror(errno)); 133 rc = Read(queryAddr++, infoBuf, 1); 135 fprintf(stderr, "Failed to read query 42: %s\n", strerror(errno)); 144 rc = Read(queryAddr++, &m_ds4QueryLength, 1); 146 fprintf(stderr, "Failed to read DS4 query length: %s\n", strerror(errno)) [all...] |
/prebuilts/go/darwin-x86/src/debug/elf/ |
reader.go | 17 func (r errorReader) Read(p []byte) (n int, err error) { 54 func (r *readSeekerFromReader) Read(p []byte) (n int, err error) { 58 n, err = r.r.Read(p) 94 // Read until we reach offset. 101 if _, err := r.Read(b); err != nil {
|
/prebuilts/go/darwin-x86/src/syscall/ |
net.go | 15 // Read invokes f on the underlying connection's file 16 // descriptor or handle; f is expected to try to read from the 18 // If f returns true, Read returns. Otherwise Read blocks 23 Read(f func(fd uintptr) (done bool)) error 25 // Write is like Read but for writing.
|
/prebuilts/go/linux-x86/src/debug/elf/ |
reader.go | 17 func (r errorReader) Read(p []byte) (n int, err error) { 54 func (r *readSeekerFromReader) Read(p []byte) (n int, err error) { 58 n, err = r.r.Read(p) 94 // Read until we reach offset. 101 if _, err := r.Read(b); err != nil {
|
/prebuilts/go/linux-x86/src/syscall/ |
net.go | 15 // Read invokes f on the underlying connection's file 16 // descriptor or handle; f is expected to try to read from the 18 // If f returns true, Read returns. Otherwise Read blocks 23 Read(f func(fd uintptr) (done bool)) error 25 // Write is like Read but for writing.
|
/device/linaro/bootloader/OpenPlatformPkg/Drivers/Net/Phy/MvPhyDxe/ |
MvPhyDxe.c | 73 Mdio->Read(Mdio, PhyAddr, MII_BMCR, &Reg);
78 Mdio->Read(Mdio, PhyAddr, MII_BMCR, &Reg);
102 Mdio->Read(Mdio, PhyDev->Addr, MIIM_88E1111_PHY_EXT_CR, &Reg);
117 Mdio->Read(Mdio, PhyDev->Addr, MIIM_88E1111_PHY_EXT_SR, &Reg);
130 Mdio->Read(Mdio, PhyDev->Addr, MIIM_88E1111_PHY_EXT_SR, &Reg);
140 Mdio->Read(Mdio, PhyDev->Addr, MIIM_88E1111_PHY_EXT_CR, &Reg);
144 Mdio->Read(Mdio, PhyDev->Addr, MIIM_88E1111_PHY_EXT_SR, &Reg);
153 Mdio->Read(Mdio, PhyDev->Addr, MIIM_88E1111_PHY_EXT_SR, &Reg);
161 Mdio->Read(Mdio, PhyDev->Addr, MII_BMCR, &Reg);
182 Mdio->Read(Mdio, PhyDev->Addr, MIIM_88E1xxx_PHY_STATUS, &Data); [all...] |
/external/libxml2/python/tests/ |
reader2.py | 47 ret = reader.Read() 49 ret = reader.Read() 97 while reader.Read() == 1: 147 while reader.Read() == 1: 201 while reader.Read() == 1: 243 while reader.Read() == 1:
|
/external/llvm/lib/AsmParser/ |
Parser.cpp | 84 unsigned Read; 85 Type *Ty = parseTypeAtBeginning(Asm, Read, Err, M, Slots); 88 if (Read != Asm.size()) { 92 Err = SM.GetMessage(SMLoc::getFromPointer(Asm.begin() + Read), 98 Type *llvm::parseTypeAtBeginning(StringRef Asm, unsigned &Read, 106 .parseTypeAtBeginning(Ty, Read, Slots))
|
/prebuilts/go/darwin-x86/src/crypto/rand/ |
rand.go | 20 // Read is a helper function that calls Reader.Read using io.ReadFull. 22 func Read(b []byte) (n int, err error) {
|
/prebuilts/go/linux-x86/src/crypto/rand/ |
rand.go | 20 // Read is a helper function that calls Reader.Read using io.ReadFull. 22 func Read(b []byte) (n int, err error) {
|
/device/google/cuttlefish_common/common/vsoc/lib/ |
input_events_region_view.cpp | 71 intptr_t ret = this->data()->touch_screen_queue.Read( 81 intptr_t ret = this->data()->keyboard_queue.Read( 91 intptr_t ret = this->data()->power_button_queue.Read(
|
/external/lzma/CPP/7zip/Common/ |
LimitedStreams.cpp | 9 STDMETHODIMP CLimitedSequentialInStream::Read(void *data, UInt32 size, UInt32 *processedSize)
20 result = _stream->Read(data, size, &realProcessedSize);
30 STDMETHODIMP CLimitedInStream::Read(void *data, UInt32 size, UInt32 *processedSize)
36 // 9.31: Fixed. Windows doesn't return error in ReadFile and IStream->Read in that case.
51 HRESULT res = _stream->Read(data, size, &size);
88 STDMETHODIMP CClusterInStream::Read(void *data, UInt32 size, UInt32 *processedSize)
124 HRESULT res = Stream->Read(data, size, &size);
153 STDMETHODIMP CExtentsStream::Read(void *data, UInt32 size, UInt32 *processedSize)
187 HRESULT res = Stream->Read(data, size, &size);
240 STDMETHODIMP CTailInStream::Read(void *data, UInt32 size, UInt32 *processedSize) [all...] |
/external/tensorflow/tensorflow/compiler/xla/ |
packed_literal_reader.cc | 42 StatusOr<std::unique_ptr<Literal>> PackedLiteralReader::Read( 68 auto s = file_->Read(offset_, bytes, &sp, data); 73 // Success: make sure we move the data into the right place if the Read 80 VLOG(3) << "read shape from file: " << ShapeUtil::HumanString(shape); 85 // Try to read a single byte from offset_. If we can't, we've 89 auto s = file_->Read(offset_, sizeof(single_byte), &sp, single_byte);
|
/external/tensorflow/tensorflow/core/lib/io/ |
random_inputstream.cc | 35 return errors::InvalidArgument("Cannot read negative number of bytes"); 41 Status s = file_->Read(pos_, bytes_to_read, &data, result_buffer); 51 // If the amount of data we read is less than what we wanted, we return an 52 // out of range error. We need to catch this explicitly since file_->Read() 53 // would not do so if at least 1 byte is read (b/30839063). 69 // Try to read 1 bytes first, if we could complete the read then EOF is 73 Status s = file_->Read(pos_ + bytes_to_skip - 1, 1, &data, scratch.get()); 79 // Read kDefaultSkipSize at a time till bytes_to_skip. 83 Status s = file_->Read(pos_, bytes_to_read, &data, scratch.get()) [all...] |
/external/webrtc/webrtc/modules/audio_coding/test/ |
RTPFile.h | 35 virtual size_t Read(WebRtcRTPHeader* rtpInfo, uint8_t* payloadData, 75 size_t Read(WebRtcRTPHeader* rtpInfo, 112 size_t Read(WebRtcRTPHeader* rtpInfo,
|
/art/runtime/ |
gc_root-inl.h | 31 inline MirrorType* GcRoot<MirrorType>::Read(GcRootSource* gc_root_source) const {
|
/device/linaro/bootloader/OpenPlatformPkg/Platforms/Marvell/Include/Protocol/ |
Mdio.h | 61 MARVELL_MDIO_READ Read;
|
/device/linaro/bootloader/edk2/DuetPkg/PciBusNoEnumerationDxe/ |
PciPowerManagement.c | 69 // Read PMCSR
71 Status = PciIoDevice->PciIo.Pci.Read (
|