Home
last modified time | relevance | path

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

12345678910>>...38

/external/libxml2/
Dxmlreader.c84 #define DUMP_READER xmlTextReaderDebug(reader);
194 #define CONSTSTR(str) xmlDictLookup(reader->dict, (str), -1)
195 #define CONSTQSTR(p, str) xmlDictQLookup(reader->dict, (p), (str))
197 static int xmlTextReaderReadTree(xmlTextReaderPtr reader);
198 static int xmlTextReaderNextTree(xmlTextReaderPtr reader);
217 static void xmlTextReaderFreeNode(xmlTextReaderPtr reader, xmlNodePtr cur);
218 static void xmlTextReaderFreeNodeList(xmlTextReaderPtr reader, xmlNodePtr cur);
282 xmlTextReaderFreeProp(xmlTextReaderPtr reader, xmlAttrPtr cur) { in xmlTextReaderFreeProp() argument
285 dict = reader->ctxt->dict; in xmlTextReaderFreeProp()
299 xmlTextReaderFreeNodeList(reader, cur->children); in xmlTextReaderFreeProp()
[all …]
/external/chromium_org/third_party/libxml/src/
Dxmlreader.c82 #define DUMP_READER xmlTextReaderDebug(reader);
191 #define CONSTSTR(str) xmlDictLookup(reader->dict, (str), -1)
192 #define CONSTQSTR(p, str) xmlDictQLookup(reader->dict, (p), (str))
194 static int xmlTextReaderReadTree(xmlTextReaderPtr reader);
195 static int xmlTextReaderNextTree(xmlTextReaderPtr reader);
214 static void xmlTextReaderFreeNode(xmlTextReaderPtr reader, xmlNodePtr cur);
215 static void xmlTextReaderFreeNodeList(xmlTextReaderPtr reader, xmlNodePtr cur);
279 xmlTextReaderFreeProp(xmlTextReaderPtr reader, xmlAttrPtr cur) { in xmlTextReaderFreeProp() argument
282 dict = reader->ctxt->dict; in xmlTextReaderFreeProp()
296 xmlTextReaderFreeNodeList(reader, cur->children); in xmlTextReaderFreeProp()
[all …]
/external/chromium_org/media/formats/mp4/
Dbox_definitions.cc18 bool FileType::Parse(BoxReader* reader) { in Parse() argument
19 RCHECK(reader->ReadFourCC(&major_brand) && reader->Read4(&minor_version)); in Parse()
20 size_t num_brands = (reader->size() - reader->pos()) / sizeof(FourCC); in Parse()
21 return reader->SkipBytes(sizeof(FourCC) * num_brands); // compatible_brands in Parse()
28 bool ProtectionSystemSpecificHeader::Parse(BoxReader* reader) { in Parse() argument
31 RCHECK(reader->ReadFullBoxHeader() && in Parse()
32 reader->ReadVec(&system_id, 16) && in Parse()
33 reader->Read4(&size) && in Parse()
34 reader->HasBytes(size)); in Parse()
38 raw_box.assign(reader->data(), reader->data() + reader->size()); in Parse()
[all …]
Dbox_reader_unittest.cc34 virtual bool Parse(BoxReader* reader) OVERRIDE { in Parse()
43 virtual bool Parse(BoxReader* reader) OVERRIDE { in Parse()
44 return reader->Read4(&val); in Parse()
58 virtual bool Parse(BoxReader* reader) OVERRIDE { in Parse()
59 RCHECK(reader->ReadFullBoxHeader() && in Parse()
60 reader->Read1(&a) && in Parse()
61 reader->Read1(&b) && in Parse()
62 reader->Read2(&c) && in Parse()
63 reader->Read4s(&d) && in Parse()
64 reader->Read4sInto8s(&e)); in Parse()
[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/chromium_org/third_party/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/chromium_org/third_party/skia/src/core/
DSkPicturePlayback.cpp26 DrawType SkPicturePlayback::ReadOpAndSize(SkReader32* reader, uint32_t* size) { in ReadOpAndSize() argument
27 uint32_t temp = reader->readInt(); in ReadOpAndSize()
36 *size = reader->readInt(); in ReadOpAndSize()
43 static const SkRect* get_rect_ptr(SkReader32* reader) { in get_rect_ptr() argument
44 if (reader->readBool()) { in get_rect_ptr()
45 return &reader->skipT<SkRect>(); in get_rect_ptr()
59 void get_text(SkReader32* reader, TextContainer* text) { in get_text() argument
60 size_t length = text->fByteLength = reader->readInt(); in get_text()
61 text->fText = (const char*)reader->skip(length); in get_text()
98 void SkPicturePlayback::StepIterator(SkPictureStateTree::Iterator* iter, SkReader32* reader) { in StepIterator() argument
[all …]
/external/chromium_org/third_party/WebKit/Source/core/html/track/vtt/
DBufferedLineReaderTest.cpp46 BufferedLineReader reader; in TEST() local
47 ASSERT_FALSE(reader.isAtEndOfStream()); in TEST()
49 ASSERT_FALSE(reader.getLine(line)); in TEST()
54 BufferedLineReader reader; in TEST() local
56 ASSERT_FALSE(reader.getLine(line)); in TEST()
57 reader.setEndOfStream(); in TEST()
59 ASSERT_FALSE(reader.getLine(line)); in TEST()
64 BufferedLineReader reader; in TEST() local
65 reader.append("A"); in TEST()
66 reader.setEndOfStream(); in TEST()
[all …]
/external/chromium_org/ui/file_manager/file_manager/foreground/js/metadata/
Did3_parser.js34 Id3Parser.readSynchSafe_ = function(reader, length) { argument
39 rv = reader.readScalar(1, false) << 21;
41 rv |= reader.readScalar(1, false) << 14;
43 rv |= reader.readScalar(1, false) << 7;
45 rv |= reader.readScalar(1, false);
58 Id3Parser.readUInt24_ = function(reader) { argument
59 return reader.readScalar(2, false) << 16 | reader.readScalar(1, false);
71 Id3Parser.prototype.readString_ = function(reader, encoding, size) { argument
74 return reader.readNullTerminatedString(size);
77 return reader.readNullTerminatedStringUTF16(true, size);
[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/chromium_org/third_party/libxml/src/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/chromium_org/media/base/
Dcontainer_names.cc73 static uint64 ReadBits(BitReader* reader, int num_bits) { in ReadBits() argument
74 DCHECK_GE(reader->bits_available(), num_bits); in ReadBits()
77 reader->ReadBits(num_bits, &value); in ReadBits()
103 BitReader reader(buffer + offset, 6); in CheckAac() local
106 RCHECK(ReadBits(&reader, 12) == 0xfff); in CheckAac()
109 reader.SkipBits(1); in CheckAac()
112 RCHECK(ReadBits(&reader, 2) == 0); in CheckAac()
115 reader.SkipBits(1 + 2); in CheckAac()
118 RCHECK(ReadBits(&reader, 4) != 15); // Forbidden. in CheckAac()
122 reader.SkipBits(1 + 3 + 1 + 1 + 1 + 1); in CheckAac()
[all …]
/external/chromium_org/net/spdy/
Dspdy_prefixed_buffer_reader_test.cc29 SpdyPrefixedBufferReader reader = Build("foobar", ""); in TEST_F() local
30 EXPECT_EQ(6u, reader.Available()); in TEST_F()
33 EXPECT_FALSE(reader.ReadN(10, buffer)); // Not enough buffer. in TEST_F()
34 EXPECT_TRUE(reader.ReadN(6, buffer)); in TEST_F()
36 EXPECT_EQ(0u, reader.Available()); in TEST_F()
40 SpdyPrefixedBufferReader reader = Build("foobar", ""); in TEST_F() local
41 EXPECT_EQ(6u, reader.Available()); in TEST_F()
44 EXPECT_FALSE(reader.ReadN(10, &piece)); // Not enough buffer. in TEST_F()
45 EXPECT_TRUE(reader.ReadN(6, &piece)); in TEST_F()
48 EXPECT_EQ(0u, reader.Available()); in TEST_F()
[all …]
/external/chromium_org/media/filters/
Dh264_bit_reader_unittest.cc11 H264BitReader reader; in TEST() local
15 EXPECT_TRUE(reader.Initialize(rbsp, sizeof(rbsp))); in TEST()
17 EXPECT_TRUE(reader.ReadBits(1, &dummy)); in TEST()
19 EXPECT_EQ(reader.NumBitsLeft(), 47); in TEST()
20 EXPECT_TRUE(reader.HasMoreRBSPData()); in TEST()
22 EXPECT_TRUE(reader.ReadBits(8, &dummy)); in TEST()
24 EXPECT_EQ(reader.NumBitsLeft(), 39); in TEST()
25 EXPECT_TRUE(reader.HasMoreRBSPData()); in TEST()
27 EXPECT_TRUE(reader.ReadBits(31, &dummy)); in TEST()
29 EXPECT_EQ(reader.NumBitsLeft(), 8); in TEST()
[all …]
/external/chromium_org/media/cast/net/rtcp/
Drtcp_utility.cc24 bool RtcpParser::Parse(base::BigEndianReader* reader) { in Parse() argument
25 while (reader->remaining()) { in Parse()
27 if (!ParseCommonHeader(reader, &header)) in Parse()
31 if (!reader->ReadPiece(&tmp, header.length_in_octets - 4)) in Parse()
65 bool RtcpParser::ParseCommonHeader(base::BigEndianReader* reader, in ParseCommonHeader() argument
76 if (!reader->ReadU8(&byte)) in ParseCommonHeader()
86 if (!reader->ReadU8(&parsed_header->PT)) in ParseCommonHeader()
90 if (!reader->ReadU16(&bytes)) in ParseCommonHeader()
101 bool RtcpParser::ParseSR(base::BigEndianReader* reader, in ParseSR() argument
104 if (!reader->ReadU32(&sender_ssrc)) in ParseSR()
[all …]
/external/chromium_org/third_party/android_crazy_linker/src/src/
Dcrazy_linker_line_reader_unittest.cpp16 LineReader reader; in TEST() local
17 EXPECT_FALSE(reader.GetNextLine()); in TEST()
24 LineReader reader(kFilePath); in TEST() local
25 EXPECT_FALSE(reader.GetNextLine()); in TEST()
34 LineReader reader(kFilePath); in TEST() local
35 EXPECT_TRUE(reader.GetNextLine()); in TEST()
36 EXPECT_EQ(kFileSize, reader.length()); in TEST()
37 EXPECT_MEMEQ(kFile, kFileSize, reader.line(), reader.length()); in TEST()
38 EXPECT_FALSE(reader.GetNextLine()); in TEST()
47 LineReader reader(kFilePath); in TEST() local
[all …]
/external/chromium_org/third_party/libvpx/source/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/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 …]
/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/chromium_org/third_party/zlib/google/
Dzip_reader_unittest.cc178 ZipReader reader; in TEST_F() local
179 ASSERT_TRUE(reader.Open(test_zip_file_)); in TEST_F()
183 ZipReader reader; in TEST_F() local
185 ASSERT_TRUE(reader.OpenFromPlatformFile(zip_fd_wrapper.platform_file())); in TEST_F()
189 ZipReader reader; in TEST_F() local
190 ASSERT_FALSE(reader.Open(test_data_dir_.AppendASCII("nonexistent.zip"))); in TEST_F()
194 ZipReader reader; in TEST_F() local
195 ASSERT_FALSE(reader.Open(test_data_dir_.AppendASCII("create_test_zip.sh"))); in TEST_F()
202 ZipReader reader; in TEST_F() local
203 ASSERT_TRUE(reader.Open(test_zip_file_)); in TEST_F()
[all …]
/external/chromium_org/third_party/leveldatabase/src/table/
Dfilter_block_test.cc50 FilterBlockReader reader(&policy_, block); in TEST() local
51 ASSERT_TRUE(reader.KeyMayMatch(0, "foo")); in TEST()
52 ASSERT_TRUE(reader.KeyMayMatch(100000, "foo")); in TEST()
66 FilterBlockReader reader(&policy_, block); in TEST() local
67 ASSERT_TRUE(reader.KeyMayMatch(100, "foo")); in TEST()
68 ASSERT_TRUE(reader.KeyMayMatch(100, "bar")); in TEST()
69 ASSERT_TRUE(reader.KeyMayMatch(100, "box")); in TEST()
70 ASSERT_TRUE(reader.KeyMayMatch(100, "hello")); in TEST()
71 ASSERT_TRUE(reader.KeyMayMatch(100, "foo")); in TEST()
72 ASSERT_TRUE(! reader.KeyMayMatch(100, "missing")); in TEST()
[all …]
/external/chromium_org/chrome/utility/media_galleries/
Diapps_xml_utils.cc14 bool SkipToNextElement(XmlReader* reader) { in SkipToNextElement() argument
15 if (!reader->SkipToElement()) { in SkipToNextElement()
18 if (!reader->Read() || !reader->SkipToElement()) in SkipToNextElement()
24 bool SeekToNodeAtCurrentDepth(XmlReader* reader, const std::string& name) { in SeekToNodeAtCurrentDepth() argument
25 int depth = reader->Depth(); in SeekToNodeAtCurrentDepth()
27 if (!SkipToNextElement(reader) || reader->Depth() < depth) in SeekToNodeAtCurrentDepth()
29 DCHECK_EQ(depth, reader->Depth()); in SeekToNodeAtCurrentDepth()
30 if (reader->NodeName() == name) in SeekToNodeAtCurrentDepth()
32 } while (reader->Next()); in SeekToNodeAtCurrentDepth()
37 bool SeekInDict(XmlReader* reader, const std::string& key) { in SeekInDict() argument
[all …]
/external/chromium_org/mojo/system/
Doptions_validation_unittest.cc35 UserOptionsReader<TestOptions> reader(MakeUserPointer(&kOptions)); in TEST() local
36 EXPECT_TRUE(reader.is_valid()); in TEST()
37 EXPECT_TRUE(OPTIONS_STRUCT_HAS_MEMBER(TestOptions, flags, reader)); in TEST()
38 EXPECT_TRUE(OPTIONS_STRUCT_HAS_MEMBER(TestOptions, member1, reader)); in TEST()
39 EXPECT_TRUE(OPTIONS_STRUCT_HAS_MEMBER(TestOptions, member2, reader)); in TEST()
44 UserOptionsReader<TestOptions> reader(MakeUserPointer(&kOptions)); in TEST() local
45 EXPECT_TRUE(reader.is_valid()); in TEST()
46 EXPECT_FALSE(OPTIONS_STRUCT_HAS_MEMBER(TestOptions, flags, reader)); in TEST()
47 EXPECT_FALSE(OPTIONS_STRUCT_HAS_MEMBER(TestOptions, member1, reader)); in TEST()
48 EXPECT_FALSE(OPTIONS_STRUCT_HAS_MEMBER(TestOptions, member2, reader)); in TEST()
[all …]

12345678910>>...38