Home
last modified time | relevance | path

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

12345678910>>...26

/external/libxml2/
Dxmlreader.c88 #define DUMP_READER xmlTextReaderDebug(reader);
198 #define CONSTSTR(str) xmlDictLookup(reader->dict, (str), -1)
199 #define CONSTQSTR(p, str) xmlDictQLookup(reader->dict, (p), (str))
201 static int xmlTextReaderReadTree(xmlTextReaderPtr reader);
202 static int xmlTextReaderNextTree(xmlTextReaderPtr reader);
221 static void xmlTextReaderFreeNode(xmlTextReaderPtr reader, xmlNodePtr cur);
222 static void xmlTextReaderFreeNodeList(xmlTextReaderPtr reader, xmlNodePtr cur);
286 xmlTextReaderFreeProp(xmlTextReaderPtr reader, xmlAttrPtr cur) { in xmlTextReaderFreeProp() argument
289 if ((reader != NULL) && (reader->ctxt != NULL)) in xmlTextReaderFreeProp()
290 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 …]
Dreader2.py44 reader = libxml2.newTextReaderFilename(file) variable
46 reader.SetParserProp(libxml2.PARSER_VALIDATE, 1)
47 ret = reader.Read()
49 ret = reader.Read()
92 reader = input.newTextReader("test2") variable
93 reader.SetParserProp(libxml2.PARSER_LOADDTD,1)
94 reader.SetParserProp(libxml2.PARSER_DEFAULTATTRS,1)
95 reader.SetParserProp(libxml2.PARSER_SUBST_ENTITIES,1)
96 reader.SetParserProp(libxml2.PARSER_VALIDATE,1)
97 while reader.Read() == 1:
[all …]
Dwalker.py12 def processNode(reader): argument
15 result = result + "%d %d %s %d\n" % (reader.Depth(), reader.NodeType(),
16 reader.Name(), reader.IsEmptyElement())
40 reader = doc.readerWalker(); variable
41 ret = reader.Read()
43 processNode(reader)
44 ret = reader.Read()
79 reader.NewWalker(doc)
81 ret = reader.Read()
83 processNode(reader)
[all …]
/external/google-breakpad/src/common/dwarf/
Dbytereader_unittest.cc62 ByteReader reader(ENDIANNESS_BIG); in TEST_F() local
63 reader.SetAddressSize(4); in TEST_F()
75 EXPECT_EQ(0xc0U, reader.ReadOneByte(data)); in TEST_F()
76 EXPECT_EQ(0xcf0dU, reader.ReadTwoBytes(data + 1)); in TEST_F()
77 EXPECT_EQ(0x96fdd219U, reader.ReadFourBytes(data + 3)); in TEST_F()
78 EXPECT_EQ(0xbbf55fef0825f117ULL, reader.ReadEightBytes(data + 7)); in TEST_F()
81 reader.ReadUnsignedLEB128(data + 15, &leb128_size)); in TEST_F()
84 reader.ReadSignedLEB128(data + 25, &leb128_size)); in TEST_F()
86 EXPECT_EQ(0xfec319c9, reader.ReadAddress(data + 35)); in TEST_F()
90 ByteReader reader(ENDIANNESS_LITTLE); in TEST_F() local
[all …]
/external/skia/src/core/
DSkPicturePlayback.cpp25 DrawType SkPicturePlayback::ReadOpAndSize(SkReader32* reader, uint32_t* size) { in ReadOpAndSize() argument
26 uint32_t temp = reader->readInt(); in ReadOpAndSize()
35 *size = reader->readInt(); in ReadOpAndSize()
42 static const SkRect* get_rect_ptr(SkReader32* reader) { in get_rect_ptr() argument
43 if (reader->readBool()) { in get_rect_ptr()
44 return &reader->skipT<SkRect>(); in get_rect_ptr()
58 void get_text(SkReader32* reader, TextContainer* text) { in get_text() argument
59 size_t length = text->fByteLength = reader->readInt(); in get_text()
60 text->fText = (const char*)reader->skip(length); in get_text()
72 SkReader32 reader(fPictureData->opData()->bytes(), fPictureData->opData()->size()); in draw() local
[all …]
/external/skia/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/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/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/google-breakpad/src/client/linux/minidump_writer/
Dproc_cpuinfo_reader_unittest.cc66 ProcCpuInfoReader reader(file.GetFd()); in TEST() local
69 ASSERT_FALSE(reader.GetNextField(&field)); in TEST()
75 ProcCpuInfoReader reader(file.GetFd()); in TEST() local
78 ASSERT_TRUE(reader.GetNextField(&field)); in TEST()
80 ASSERT_STREQ("bar", reader.GetValue()); in TEST()
82 ASSERT_FALSE(reader.GetNextField(&field)); in TEST()
88 ProcCpuInfoReader reader(file.GetFd()); in TEST() local
92 ASSERT_TRUE(reader.GetNextField(&field)); in TEST()
94 ASSERT_STREQ("bar", reader.GetValueAndLen(&value_len)); in TEST()
97 ASSERT_FALSE(reader.GetNextField(&field)); in TEST()
[all …]
Dline_reader_unittest.cc60 LineReader reader(file.GetFd()); in TEST() local
64 ASSERT_FALSE(reader.GetNextLine(&line, &len)); in TEST()
70 LineReader reader(file.GetFd()); in TEST() local
74 ASSERT_TRUE(reader.GetNextLine(&line, &len)); in TEST()
78 reader.PopLine(len); in TEST()
80 ASSERT_FALSE(reader.GetNextLine(&line, &len)); in TEST()
86 LineReader reader(file.GetFd()); in TEST() local
90 ASSERT_TRUE(reader.GetNextLine(&line, &len)); in TEST()
94 reader.PopLine(len); in TEST()
96 ASSERT_FALSE(reader.GetNextLine(&line, &len)); in TEST()
[all …]
/external/libvpx/libvpx/
Dvideo_reader.c31 VpxVideoReader *reader = NULL; in vpx_video_reader_open() local
45 reader = calloc(1, sizeof(*reader)); in vpx_video_reader_open()
46 if (!reader) in vpx_video_reader_open()
49 reader->file = file; in vpx_video_reader_open()
50 reader->info.codec_fourcc = mem_get_le32(header + 8); in vpx_video_reader_open()
51 reader->info.frame_width = mem_get_le16(header + 12); in vpx_video_reader_open()
52 reader->info.frame_height = mem_get_le16(header + 14); in vpx_video_reader_open()
53 reader->info.time_base.numerator = mem_get_le32(header + 16); in vpx_video_reader_open()
54 reader->info.time_base.denominator = mem_get_le32(header + 20); in vpx_video_reader_open()
56 return reader; in vpx_video_reader_open()
[all …]
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/raw/
DDebugInfoItem.java53 DexReader reader = dexFile.readerAt(out.getCursor()); in makeAnnotator() local
55 int lineStart = reader.readSmallUleb128(); in makeAnnotator()
56 out.annotateTo(reader.getOffset(), "line_start = %d", lineStart); in makeAnnotator()
58 int parametersSize = reader.readSmallUleb128(); in makeAnnotator()
59 out.annotateTo(reader.getOffset(), "parameters_size = %d", parametersSize); in makeAnnotator()
65 int paramaterIndex = reader.readSmallUleb128() - 1; in makeAnnotator()
66 out.annotateTo(reader.getOffset(), "%s", in makeAnnotator()
79 int opcode = reader.readUbyte(); in makeAnnotator()
82 out.annotateTo(reader.getOffset(), "DBG_END_SEQUENCE"); in makeAnnotator()
86 out.annotateTo(reader.getOffset(), "DBG_ADVANCE_PC"); in makeAnnotator()
[all …]
DEncodedValue.java41 … public static void annotateEncodedValue(@Nonnull AnnotatedBytes out, @Nonnull DexReader reader) { in annotateEncodedValue() argument
42 int valueArgType = reader.readUbyte(); in annotateEncodedValue()
50 int intValue = reader.readByte(); in annotateEncodedValue()
55 intValue = reader.readSizedInt(valueArg+1); in annotateEncodedValue()
60 intValue = reader.readSizedSmallUint(valueArg+1); in annotateEncodedValue()
65 intValue = reader.readSizedInt(valueArg+1); in annotateEncodedValue()
70 long longValue = reader.readSizedLong(valueArg+1); in annotateEncodedValue()
75 … float floatValue = Float.intBitsToFloat(reader.readSizedRightExtendedInt(valueArg + 1)); in annotateEncodedValue()
80 … double doubleValue = Double.longBitsToDouble(reader.readSizedRightExtendedLong(valueArg + 1)); in annotateEncodedValue()
85 int stringIndex = reader.readSizedSmallUint(valueArg + 1); in annotateEncodedValue()
[all …]
DClassDataItem.java61 DexReader reader = dexFile.readerAt(out.getCursor()); in makeAnnotator() local
63 int staticFieldsSize = reader.readSmallUleb128(); in makeAnnotator()
64 out.annotateTo(reader.getOffset(), "static_fields_size = %d", staticFieldsSize); in makeAnnotator()
66 int instanceFieldsSize = reader.readSmallUleb128(); in makeAnnotator()
67 out.annotateTo(reader.getOffset(), "instance_fields_size = %d", instanceFieldsSize); in makeAnnotator()
69 int directMethodsSize = reader.readSmallUleb128(); in makeAnnotator()
70 out.annotateTo(reader.getOffset(), "direct_methods_size = %d", directMethodsSize); in makeAnnotator()
72 int virtualMethodsSize = reader.readSmallUleb128(); in makeAnnotator()
73 out.annotateTo(reader.getOffset(), "virtual_methods_size = %d", virtualMethodsSize); in makeAnnotator()
82 previousIndex = annotateEncodedField(out, dexFile, reader, previousIndex); in makeAnnotator()
[all …]
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/h264/model/
DSeqParameterSet.java78 CAVLCReader reader = new CAVLCReader(is); in read() local
81 sps.profile_idc = (int) reader.readNBit(8, "SPS: profile_idc"); in read()
82 sps.constraint_set_0_flag = reader in read()
84 sps.constraint_set_1_flag = reader in read()
86 sps.constraint_set_2_flag = reader in read()
88 sps.constraint_set_3_flag = reader in read()
90 reader.readNBit(4, "SPS: reserved_zero_4bits"); in read()
91 sps.level_idc = (int) reader.readNBit(8, "SPS: level_idc"); in read()
92 sps.seq_parameter_set_id = reader.readUE("SPS: seq_parameter_set_id"); in read()
96 sps.chroma_format_idc = ChromaFormat.fromId(reader in read()
[all …]
/external/skia/src/pipe/
DSkGPipeRead.cpp110 void setReader(SkReadBuffer* reader) { in setReader() argument
111 fReader = reader; in setReader()
244 template <typename T> const T* skip(SkReader32* reader, size_t count = 1) { in skip() argument
247 return reinterpret_cast<const T*>(reader->skip(size)); in skip()
250 template <typename T> const T* skipAlign(SkReader32* reader, size_t count = 1) { in skipAlign() argument
252 return reinterpret_cast<const T*>(reader->skip(size)); in skipAlign()
258 static void clipPath_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32, in clipPath_rp() argument
261 reader->readPath(&path); in clipPath_rp()
266 static void clipRegion_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32, in clipRegion_rp() argument
269 reader->readRegion(&rgn); in clipRegion_rp()
[all …]
/external/vogar/src/vogar/
DExpectationStore.java127 JsonReader reader = null; in parse() local
129 reader = new JsonReader(new FileReader(expectationsFile)); in parse()
130 reader.setLenient(true); in parse()
131 reader.beginArray(); in parse()
132 while (reader.hasNext()) { in parse()
133 readExpectation(reader, mode, variant); in parse()
136 reader.endArray(); in parse()
140 if (reader != null) { in parse()
141 reader.close(); in parse()
146 private void readExpectation(JsonReader reader, ModeId mode, Variant variant) in readExpectation() argument
[all …]
/external/libxml2/python/
Ddrv_libxml2.py144 reader = libxml2.newTextReaderFilename(source)
148 reader = input.newTextReader(source.getSystemId())
149 reader.SetErrorHandler(self._errorHandler,None)
152 reader.SetParserProp(libxml2.PARSER_LOADDTD,1)
153 reader.SetParserProp(libxml2.PARSER_DEFAULTATTRS,1)
154 reader.SetParserProp(libxml2.PARSER_SUBST_ENTITIES,1)
155 reader.SetParserProp(libxml2.PARSER_VALIDATE,self.__validate)
157 reader.SetParserProp(libxml2.PARSER_LOADDTD, 0)
168 r = reader.Read()
185 nodeType = reader.NodeType()
[all …]
/external/proguard/src/proguard/
DDataEntryReaderFactory.java49 DataEntryReader reader) in createDataEntryReader() argument
86 reader = new FilteredDataEntryReader( in createDataEntryReader()
89 reader); in createDataEntryReader()
93 reader = wrapInJarReader(reader, isApk, apkFilter, ".apk"); in createDataEntryReader()
97 reader = wrapInJarReader(reader, isJar, jarFilter, ".jar"); in createDataEntryReader()
101 reader = wrapInJarReader(reader, isAar, aarFilter, ".aar"); in createDataEntryReader()
105 reader = wrapInJarReader(reader, isWar, warFilter, ".war"); in createDataEntryReader()
109 reader = wrapInJarReader(reader, isEar, earFilter, ".ear"); in createDataEntryReader()
113 reader = wrapInJarReader(reader, isZip, zipFilter, ".zip"); in createDataEntryReader()
120 return reader; in createDataEntryReader()
[all …]
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/value/
DDexBackedEncodedValue.java45 public static EncodedValue readFrom(@Nonnull DexReader reader) { in readFrom() argument
46 int startOffset = reader.getOffset(); in readFrom()
49 int b = reader.readUbyte(); in readFrom()
56 return new ImmutableByteEncodedValue((byte)reader.readByte()); in readFrom()
59 return new ImmutableShortEncodedValue((short)reader.readSizedInt(valueArg + 1)); in readFrom()
62 … return new ImmutableCharEncodedValue((char)reader.readSizedSmallUint(valueArg + 1)); in readFrom()
65 return new ImmutableIntEncodedValue(reader.readSizedInt(valueArg + 1)); in readFrom()
68 return new ImmutableLongEncodedValue(reader.readSizedLong(valueArg + 1)); in readFrom()
72 reader.readSizedRightExtendedInt(valueArg + 1))); in readFrom()
76 reader.readSizedRightExtendedLong(valueArg + 1))); in readFrom()
[all …]
/external/proguard/src/proguard/io/
DDataEntryCopier.java243 DataEntryReader reader = new DataEntryCopier(writer); in main() local
254 DataEntryReader apkReader = new JarReader(reader); in main()
258 reader = apkReader; in main()
263 reader = new FilteredDataEntryReader(new DataEntryNameFilter( in main()
266 reader); in main()
269 DataEntryReader jarReader = new JarReader(reader); in main()
273 reader = jarReader; in main()
278 reader = new FilteredDataEntryReader(new DataEntryNameFilter( in main()
281 reader); in main()
284 DataEntryReader aarReader = new JarReader(reader); in main()
[all …]
/external/libxml2/doc/examples/
Dreader2.c27 processNode(xmlTextReaderPtr reader) { in processNode() argument
30 name = xmlTextReaderConstName(reader); in processNode()
34 value = xmlTextReaderConstValue(reader); in processNode()
37 xmlTextReaderDepth(reader), in processNode()
38 xmlTextReaderNodeType(reader), in processNode()
40 xmlTextReaderIsEmptyElement(reader), in processNode()
41 xmlTextReaderHasValue(reader)); in processNode()
60 xmlTextReaderPtr reader; in streamFile() local
68 reader = xmlReaderForFile(filename, NULL, in streamFile()
72 if (reader != NULL) { in streamFile()
[all …]

12345678910>>...26