Home
last modified time | relevance | path

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

12345678910>>...78

/external/grpc-grpc/src/core/lib/json/
Djson_reader.cc27 static void json_reader_string_clear(grpc_json_reader* reader) { in json_reader_string_clear() argument
28 reader->vtable->string_clear(reader->userdata); in json_reader_string_clear()
31 static void json_reader_string_add_char(grpc_json_reader* reader, uint32_t c) { in json_reader_string_add_char() argument
32 reader->vtable->string_add_char(reader->userdata, c); in json_reader_string_add_char()
35 static void json_reader_string_add_utf32(grpc_json_reader* reader, in json_reader_string_add_utf32() argument
37 reader->vtable->string_add_utf32(reader->userdata, utf32); in json_reader_string_add_utf32()
40 static uint32_t grpc_json_reader_read_char(grpc_json_reader* reader) { in grpc_json_reader_read_char() argument
41 return reader->vtable->read_char(reader->userdata); in grpc_json_reader_read_char()
44 static void json_reader_container_begins(grpc_json_reader* reader, in json_reader_container_begins() argument
46 reader->vtable->container_begins(reader->userdata, type); in json_reader_container_begins()
[all …]
/external/libxml2/
Dxmlreader.c95 #define DUMP_READER xmlTextReaderDebug(reader);
205 #define CONSTSTR(str) xmlDictLookup(reader->dict, (str), -1)
206 #define CONSTQSTR(p, str) xmlDictQLookup(reader->dict, (p), (str))
208 static int xmlTextReaderReadTree(xmlTextReaderPtr reader);
209 static int xmlTextReaderNextTree(xmlTextReaderPtr reader);
228 static void xmlTextReaderFreeNode(xmlTextReaderPtr reader, xmlNodePtr cur);
229 static void xmlTextReaderFreeNodeList(xmlTextReaderPtr reader, xmlNodePtr cur);
349 xmlTextReaderFreeProp(xmlTextReaderPtr reader, xmlAttrPtr cur) { in xmlTextReaderFreeProp() argument
352 if ((reader != NULL) && (reader->ctxt != NULL)) in xmlTextReaderFreeProp()
353 dict = reader->ctxt->dict; in xmlTextReaderFreeProp()
[all …]
/external/libxml2/python/tests/
Dreader.py20 reader = input.newTextReader("test1") variable
21 ret = reader.Read()
25 if reader.Name() != "a" or reader.IsEmptyElement() != 0 or \
26 reader.NodeType() != 1 or reader.HasAttributes() != 0:
29 ret = reader.Read()
33 if reader.Name() != "b" or reader.IsEmptyElement() != 1 or \
34 reader.NodeType() != 1 or reader.HasAttributes() != 1:
37 ret = reader.Read()
41 if reader.Name() != "c" or reader.IsEmptyElement() != 0 or \
42 reader.NodeType() != 1 or reader.HasAttributes() != 0:
[all …]
Dreader3.py28 reader = input.newTextReader("test_noent") variable
29 ret = reader.Read()
33 if reader.Name() == "doc" or reader.NodeType() == 10:
34 ret = reader.Read()
38 if reader.Name() != "doc" or reader.NodeType() != 1:
41 ret = reader.Read()
45 if reader.Name() != "tst" or reader.NodeType() != 5:
48 ret = reader.Read()
52 if reader.Name() != "doc" or reader.NodeType() != 15:
55 ret = reader.Read()
[all …]
Dreadernext.py20 reader = input.newTextReader("test_next") variable
21 ret = reader.Read()
25 if reader.Name() != "a" or reader.IsEmptyElement() != 0 or \
26 reader.NodeType() != 1 or reader.HasAttributes() != 0:
29 ret = reader.Read()
33 if reader.Name() != "b" or reader.IsEmptyElement() != 0 or \
34 reader.NodeType() != 1 or reader.HasAttributes() != 0:
37 ret = reader.Read()
41 if reader.Name() != "c" or reader.NodeType() != 1 or \
42 reader.HasAttributes() != 0:
[all …]
/external/libaom/libaom/common/
Dvideo_reader.c34 AvxVideoReader *reader = NULL; in aom_video_reader_open() local
38 reader = (AvxVideoReader *)calloc(1, sizeof(*reader)); in aom_video_reader_open()
39 if (!reader) { in aom_video_reader_open()
44 reader->input_ctx.filename = filename; in aom_video_reader_open()
45 reader->input_ctx.file = file; in aom_video_reader_open()
46 reader->obu_ctx.avx_ctx = &reader->input_ctx; in aom_video_reader_open()
47 reader->obu_ctx.is_annexb = 1; in aom_video_reader_open()
49 if (file_is_ivf(&reader->input_ctx)) { in aom_video_reader_open()
50 reader->input_ctx.file_type = FILE_TYPE_IVF; in aom_video_reader_open()
51 reader->info.codec_fourcc = reader->input_ctx.fourcc; in aom_video_reader_open()
[all …]
/external/skia/src/core/
DSkPicturePlayback.cpp33 static const SkRect* get_rect_ptr(SkReadBuffer* reader, SkRect* storage) { in get_rect_ptr() argument
34 if (reader->readBool()) { in get_rect_ptr()
35 reader->readRect(storage); in get_rect_ptr()
48 SkReadBuffer reader(fPictureData->opData()->bytes(), in draw() local
56 while (!reader.eof() && reader.isValid()) { in draw()
61 fCurOffset = reader.offset(); in draw()
63 uint32_t bits = reader.readInt(); in draw()
67 size = reader.readInt(); in draw()
70 if (!reader.validate(size > 0 && op > UNUSED && op <= LAST_DRAWTYPE_ENUM)) { in draw()
74 this->handleOp(&reader, (DrawType)op, size, canvas, initialMatrix); in draw()
[all …]
/external/google-breakpad/src/common/dwarf/
Dbytereader_unittest.cc64 ByteReader reader(ENDIANNESS_BIG); in TEST_F() local
65 reader.SetAddressSize(4); in TEST_F()
77 EXPECT_EQ(0xc0U, reader.ReadOneByte(data)); in TEST_F()
78 EXPECT_EQ(0xcf0dU, reader.ReadTwoBytes(data + 1)); in TEST_F()
79 EXPECT_EQ(0x96fdd219U, reader.ReadFourBytes(data + 3)); in TEST_F()
80 EXPECT_EQ(0xbbf55fef0825f117ULL, reader.ReadEightBytes(data + 7)); in TEST_F()
83 reader.ReadUnsignedLEB128(data + 15, &leb128_size)); in TEST_F()
86 reader.ReadSignedLEB128(data + 25, &leb128_size)); in TEST_F()
88 EXPECT_EQ(0xfec319c9, reader.ReadAddress(data + 35)); in TEST_F()
92 ByteReader reader(ENDIANNESS_LITTLE); in TEST_F() local
[all …]
/external/skqp/src/core/
DSkPicturePlayback.cpp45 DrawType SkPicturePlayback::ReadOpAndSize(SkReadBuffer* reader, uint32_t* size) { in ReadOpAndSize() argument
46 uint32_t temp = reader->readInt(); in ReadOpAndSize()
55 *size = reader->readInt(); in ReadOpAndSize()
62 static const SkRect* get_rect_ptr(SkReadBuffer* reader, SkRect* storage) { in get_rect_ptr() argument
63 if (reader->readBool()) { in get_rect_ptr()
64 reader->readRect(storage); in get_rect_ptr()
77 SkReadBuffer reader(fPictureData->opData()->bytes(), in draw() local
85 while (!reader.eof()) { in draw()
90 fCurOffset = reader.offset(); in draw()
92 DrawType op = ReadOpAndSize(&reader, &size); in draw()
[all …]
/external/protobuf/js/binary/
Dreader_test.js89 var reader = jspb.BinaryReader.alloc(buffer);
95 reader.nextField();
96 assertEquals(1, reader.getFieldNumber());
97 reader.readMessage(dummyMessage, function() {
101 reader.nextField();
102 assertEquals(2, reader.getFieldNumber());
103 reader.readMessage(dummyMessage, function() {
107 assertEquals(false, reader.nextField());
113 reader.free();
137 var reader = jspb.BinaryReader.alloc([8, 1]);
[all …]
/external/protobuf/js/compatibility_tests/v3.1.0/binary/
Dreader_test.js89 var reader = jspb.BinaryReader.alloc(buffer);
95 reader.nextField();
96 assertEquals(1, reader.getFieldNumber());
97 reader.readMessage(dummyMessage, function() {
101 reader.nextField();
102 assertEquals(2, reader.getFieldNumber());
103 reader.readMessage(dummyMessage, function() {
107 assertEquals(false, reader.nextField());
113 reader.free();
137 var reader = jspb.BinaryReader.alloc([8, 1]);
[all …]
/external/protobuf/js/compatibility_tests/v3.0.0/binary/
Dreader_test.js89 var reader = jspb.BinaryReader.alloc(buffer);
95 reader.nextField();
96 assertEquals(1, reader.getFieldNumber());
97 reader.readMessage(dummyMessage, function() {
101 reader.nextField();
102 assertEquals(2, reader.getFieldNumber());
103 reader.readMessage(dummyMessage, function() {
107 assertEquals(false, reader.nextField());
113 reader.free();
137 var reader = jspb.BinaryReader.alloc([8, 1]);
[all …]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/reader/
DReaderBomTest.java16 package org.yaml.snakeyaml.reader;
33 StreamReader reader = new StreamReader(input); in testReader() local
34 assertEquals('t', reader.peek()); in testReader()
35 reader.forward(1); in testReader()
36 assertEquals('e', reader.peek()); in testReader()
37 reader.forward(1); in testReader()
38 assertEquals('s', reader.peek()); in testReader()
39 reader.forward(1); in testReader()
40 assertEquals('t', reader.peek()); in testReader()
41 reader.forward(1); in testReader()
[all …]
/external/skqp/tests/
DReader32Test.cpp11 static void assert_eof(skiatest::Reporter* reporter, const SkReader32& reader) { in assert_eof() argument
12 REPORTER_ASSERT(reporter, reader.eof()); in assert_eof()
13 REPORTER_ASSERT(reporter, reader.size() == reader.offset()); in assert_eof()
14 REPORTER_ASSERT(reporter, (const char*)reader.peek() == in assert_eof()
15 (const char*)reader.base() + reader.size()); in assert_eof()
18 static void assert_start(skiatest::Reporter* reporter, const SkReader32& reader) { in assert_start() argument
19 REPORTER_ASSERT(reporter, 0 == reader.offset()); in assert_start()
20 REPORTER_ASSERT(reporter, reader.size() == reader.available()); in assert_start()
21 REPORTER_ASSERT(reporter, reader.isAvailable(reader.size())); in assert_start()
22 REPORTER_ASSERT(reporter, !reader.isAvailable(reader.size() + 1)); in assert_start()
[all …]
/external/cpu_features/src/
Dstack_line_reader.c23 void StackLineReader_Initialize(StackLineReader* reader, int fd) { in StackLineReader_Initialize() argument
24 reader->view.ptr = reader->buffer; in StackLineReader_Initialize()
25 reader->view.size = 0; in StackLineReader_Initialize()
26 reader->skip_mode = false; in StackLineReader_Initialize()
27 reader->fd = fd; in StackLineReader_Initialize()
31 static int LoadFullBuffer(StackLineReader* reader) { in LoadFullBuffer() argument
32 const int read = CpuFeatures_ReadFile(reader->fd, reader->buffer, in LoadFullBuffer()
35 reader->view.ptr = reader->buffer; in LoadFullBuffer()
36 reader->view.size = read; in LoadFullBuffer()
41 static int LoadMore(StackLineReader* reader) { in LoadMore() argument
[all …]
/external/lottie/lottie/src/main/java/com/airbnb/lottie/parser/
DJsonUtils.java21 @ColorInt static int jsonToColor(JsonReader reader) throws IOException { in jsonToColor() argument
22 reader.beginArray(); in jsonToColor()
23 int r = (int) (reader.nextDouble() * 255); in jsonToColor()
24 int g = (int) (reader.nextDouble() * 255); in jsonToColor()
25 int b = (int) (reader.nextDouble() * 255); in jsonToColor()
26 while (reader.hasNext()) { in jsonToColor()
27 reader.skipValue(); in jsonToColor()
29 reader.endArray(); in jsonToColor()
33 static List<PointF> jsonToPoints(JsonReader reader, float scale) throws IOException { in jsonToPoints() argument
36 reader.beginArray(); in jsonToPoints()
[all …]
DLottieCompositionMoshiParser.java41 public static LottieComposition parse(JsonReader reader) throws IOException { in parse() argument
57 reader.beginObject(); in parse()
58 while (reader.hasNext()) { in parse()
59 switch (reader.selectName(NAMES)) { in parse()
61 width = reader.nextInt(); in parse()
64 height = reader.nextInt(); in parse()
67 startFrame = (float) reader.nextDouble(); in parse()
70 endFrame = (float) reader.nextDouble() - 0.01f; in parse()
73 frameRate = (float) reader.nextDouble(); in parse()
76 String version = reader.nextString(); in parse()
[all …]
/external/guava/android/guava-tests/test/com/google/common/io/
DCharSequenceReaderTest.java48 CharSequenceReader reader = new CharSequenceReader(string); in testMarkAndReset() local
49 assertTrue(reader.markSupported()); in testMarkAndReset()
51 assertEquals(string, readFully(reader)); in testMarkAndReset()
52 assertFullyRead(reader); in testMarkAndReset()
55 reader.reset(); in testMarkAndReset()
56 assertEquals(string, readFully(reader)); in testMarkAndReset()
57 assertFullyRead(reader); in testMarkAndReset()
60 reader.reset(); in testMarkAndReset()
61 assertEquals(5, reader.skip(5)); in testMarkAndReset()
62 reader.mark(Integer.MAX_VALUE); in testMarkAndReset()
[all …]
/external/guava/guava-tests/test/com/google/common/io/
DCharSequenceReaderTest.java48 CharSequenceReader reader = new CharSequenceReader(string); in testMarkAndReset() local
49 assertTrue(reader.markSupported()); in testMarkAndReset()
51 assertEquals(string, readFully(reader)); in testMarkAndReset()
52 assertFullyRead(reader); in testMarkAndReset()
55 reader.reset(); in testMarkAndReset()
56 assertEquals(string, readFully(reader)); in testMarkAndReset()
57 assertFullyRead(reader); in testMarkAndReset()
60 reader.reset(); in testMarkAndReset()
61 assertEquals(5, reader.skip(5)); in testMarkAndReset()
62 reader.mark(Integer.MAX_VALUE); in testMarkAndReset()
[all …]
/external/exoplayer/tree/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mkv/
DVarintReaderTest.java89 VarintReader reader = new VarintReader(); in readVarintEndOfInputAtStart() local
95 long result = reader.readUnsignedVarint(input, true, false, 8); in readVarintEndOfInputAtStart()
99 reader.readUnsignedVarint(input, false, false, 8); in readVarintEndOfInputAtStart()
108 VarintReader reader = new VarintReader(); in readVarintExceedsMaximumAllowedLength() local
113 long result = reader.readUnsignedVarint(input, false, true, 4); in readVarintExceedsMaximumAllowedLength()
119 VarintReader reader = new VarintReader(); in readVarint() local
120 testReadVarint(reader, true, DATA_1_BYTE_0, 1, 0); in readVarint()
121 testReadVarint(reader, true, DATA_2_BYTE_0, 2, 0); in readVarint()
122 testReadVarint(reader, true, DATA_3_BYTE_0, 3, 0); in readVarint()
123 testReadVarint(reader, true, DATA_4_BYTE_0, 4, 0); in readVarint()
[all …]
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/scanner/
DScannerImpl.java30 import org.yaml.snakeyaml.reader.StreamReader;
157 private final StreamReader reader; field in ScannerImpl
212 public ScannerImpl(StreamReader reader) { in ScannerImpl() argument
213 this.reader = reader; in ScannerImpl()
294 unwindIndent(reader.getColumn()); in fetchMoreTokens()
297 char ch = reader.peek(); in fetchMoreTokens()
421 reader.getMark()); in fetchMoreTokens()
456 if ((key.getLine() != reader.getLine()) in stalePossibleSimpleKeys()
457 || (reader.getIndex() - key.getIndex() > 1024)) { in stalePossibleSimpleKeys()
466 "could not find expected ':'", reader.getMark()); in stalePossibleSimpleKeys()
[all …]
/external/libbrillo/brillo/dbus/
Ddata_serialization.cc76 bool PopValueFromReader(dbus::MessageReader* reader, bool* value) { in PopValueFromReader() argument
78 return details::DescendIntoVariantIfPresent(&reader, &variant_reader) && in PopValueFromReader()
79 reader->PopBool(value); in PopValueFromReader()
82 bool PopValueFromReader(dbus::MessageReader* reader, uint8_t* value) { in PopValueFromReader() argument
84 return details::DescendIntoVariantIfPresent(&reader, &variant_reader) && in PopValueFromReader()
85 reader->PopByte(value); in PopValueFromReader()
88 bool PopValueFromReader(dbus::MessageReader* reader, int16_t* value) { in PopValueFromReader() argument
90 return details::DescendIntoVariantIfPresent(&reader, &variant_reader) && in PopValueFromReader()
91 reader->PopInt16(value); in PopValueFromReader()
94 bool PopValueFromReader(dbus::MessageReader* reader, uint16_t* value) { in PopValueFromReader() argument
[all …]
/external/libxml2/include/libxml/
Dxmlreader.h118 xmlFreeTextReader (xmlTextReaderPtr reader);
121 xmlTextReaderSetup(xmlTextReaderPtr reader,
129 xmlTextReaderRead (xmlTextReaderPtr reader);
133 xmlTextReaderReadInnerXml(xmlTextReaderPtr reader);
136 xmlTextReaderReadOuterXml(xmlTextReaderPtr reader);
140 xmlTextReaderReadString (xmlTextReaderPtr reader);
142 xmlTextReaderReadAttributeValue(xmlTextReaderPtr reader);
148 xmlTextReaderAttributeCount(xmlTextReaderPtr reader);
150 xmlTextReaderDepth (xmlTextReaderPtr reader);
152 xmlTextReaderHasAttributes(xmlTextReaderPtr reader);
[all …]
/external/bcc/src/cc/
Dperf_reader.c56 struct perf_reader *reader = calloc(1, sizeof(struct perf_reader)); in perf_reader_new() local
57 if (!reader) in perf_reader_new()
59 reader->raw_cb = raw_cb; in perf_reader_new()
60 reader->lost_cb = lost_cb; in perf_reader_new()
61 reader->cb_cookie = cb_cookie; in perf_reader_new()
62 reader->fd = -1; in perf_reader_new()
63 reader->page_size = getpagesize(); in perf_reader_new()
64 reader->page_cnt = page_cnt; in perf_reader_new()
65 return reader; in perf_reader_new()
70 struct perf_reader *reader = ptr; in perf_reader_free() local
[all …]
/external/libbrillo/install_attributes/tests/
Dlibinstallattributes_test.cc22 MockInstallAttributesReader reader; in TEST() local
23 reader.SetPath("non-existing.pb"); in TEST()
24 ASSERT_FALSE(reader.IsLocked()); in TEST()
25 ASSERT_EQ(0, reader.GetAttributesCount()); in TEST()
30 MockInstallAttributesReader reader; in TEST() local
31 reader.SetPath("install_attributes/tests/corrupt.pb"); in TEST()
32 ASSERT_TRUE(reader.IsLocked()); in TEST()
33 ASSERT_EQ(0, reader.GetAttributesCount()); in TEST()
38 MockInstallAttributesReader reader; in TEST() local
39 reader.SetPath("install_attributes/tests/consumer.pb"); in TEST()
[all …]

12345678910>>...78