Home
last modified time | relevance | path

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

1234567891011

/external/libxml2/
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/skia/tests/
DReader32Test.cpp21 static void assert_eof(skiatest::Reporter* reporter, const SkReader32& reader) { in assert_eof() argument
22 REPORTER_ASSERT(reporter, reader.eof()); in assert_eof()
23 REPORTER_ASSERT(reporter, reader.size() == reader.offset()); in assert_eof()
24 REPORTER_ASSERT(reporter, (const char*)reader.peek() == in assert_eof()
25 (const char*)reader.base() + reader.size()); in assert_eof()
28 static void assert_start(skiatest::Reporter* reporter, const SkReader32& reader) { in assert_start() argument
29 REPORTER_ASSERT(reporter, 0 == reader.offset()); in assert_start()
30 REPORTER_ASSERT(reporter, reader.size() == reader.available()); in assert_start()
31 REPORTER_ASSERT(reporter, reader.isAvailable(reader.size())); in assert_start()
32 REPORTER_ASSERT(reporter, !reader.isAvailable(reader.size() + 1)); in assert_start()
[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/dbus/dbus/
Ddbus-marshal-recursive.c64 DBusTypeReader *reader) in apply_and_free_fixups() argument
81 if (reader) in apply_and_free_fixups()
89 reader, f->len_pos_in_reader, f->new_len, in apply_and_free_fixups()
90 _dbus_marshal_read_uint32 (reader->value_str, in apply_and_free_fixups()
92 reader->byte_order, NULL)); in apply_and_free_fixups()
95 _dbus_marshal_set_uint32 ((DBusString*) reader->value_str, in apply_and_free_fixups()
98 reader->byte_order); in apply_and_free_fixups()
120 …dbus_bool_t (* check_finished) (const DBusTypeReader *reader); /**< check whether reader is at …
121 void (* next) (DBusTypeReader *reader,
133 reader_init (DBusTypeReader *reader, in reader_init() argument
[all …]
Ddbus-marshal-recursive-util.c282 DBusTypeReader *reader, in data_block_init_reader_writer() argument
285 if (reader) in data_block_init_reader_writer()
286 _dbus_type_reader_init (reader, in data_block_init_reader_writer()
303 real_check_expected_type (DBusTypeReader *reader, in real_check_expected_type() argument
310 t = _dbus_type_reader_get_current_type (reader); in real_check_expected_type()
323 #define check_expected_type(reader, expected) real_check_expected_type (reader, expected, _DBUS_FUN… argument
325 #define NEXT_EXPECTING_TRUE(reader) do { if (!_dbus_type_reader_next (reader)) \ argument
333 #define NEXT_EXPECTING_FALSE(reader) do { if (_dbus_type_reader_next (reader)) \ argument
339 check_expected_type (reader, DBUS_TYPE_INVALID); \
374 DBusTypeReader *reader,
[all …]
Ddbus-marshal-recursive.h99 void _dbus_type_reader_init (DBusTypeReader *reader,
105 void _dbus_type_reader_init_types_only (DBusTypeReader *reader,
108 int _dbus_type_reader_get_current_type (const DBusTypeReader *reader);
109 int _dbus_type_reader_get_element_type (const DBusTypeReader *reader);
110 int _dbus_type_reader_get_value_pos (const DBusTypeReader *reader);
111 void _dbus_type_reader_read_basic (const DBusTypeReader *reader,
113 int _dbus_type_reader_get_array_length (const DBusTypeReader *reader);
114 void _dbus_type_reader_read_fixed_multi (const DBusTypeReader *reader,
117 void _dbus_type_reader_read_raw (const DBusTypeReader *reader,
119 void _dbus_type_reader_recurse (DBusTypeReader *reader,
[all …]
Ddbus-marshal-header.c176 DBusTypeReader reader; in _dbus_header_cache_revalidate() local
186 _dbus_type_reader_init (&reader, in _dbus_header_cache_revalidate()
193 _dbus_type_reader_recurse (&reader, &array); in _dbus_header_cache_revalidate()
331 set_basic_field (DBusTypeReader *reader, in set_basic_field() argument
340 _dbus_type_reader_recurse (reader, &sub); in set_basic_field()
967 DBusTypeReader reader; in _dbus_header_load() local
1033 _dbus_type_reader_init (&reader, in _dbus_header_load()
1039 _dbus_assert (_dbus_type_reader_get_current_type (&reader) == DBUS_TYPE_BYTE); in _dbus_header_load()
1040 _dbus_assert (_dbus_type_reader_get_value_pos (&reader) == BYTE_ORDER_OFFSET); in _dbus_header_load()
1041 _dbus_type_reader_read_basic (&reader, &v_byte); in _dbus_header_load()
[all …]
/external/skia/src/pipe/
DSkGPipeRead.cpp73 void setReader(SkFlattenableReadBuffer* reader) { in setReader() argument
74 fReader = reader; in setReader()
125 template <typename T> const T* skip(SkReader32* reader, int count = 1) { in skip() argument
129 return reinterpret_cast<const T*>(reader->skip(size)); in skip()
132 template <typename T> const T* skipAlign(SkReader32* reader, int count = 1) { in skipAlign() argument
135 return reinterpret_cast<const T*>(reader->skip(size)); in skipAlign()
141 static void clipPath_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32, in clipPath_rp() argument
144 path.unflatten(*reader); in clipPath_rp()
148 static void clipRegion_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32, in clipRegion_rp() argument
151 SkReadRegion(reader, &rgn); in clipRegion_rp()
[all …]
/external/chromium/chrome/browser/importer/
Dtoolbar_importer.cc255 XmlReader reader; in GetBookmarksFromServerDataResponse() local
256 if (reader.Load(response) && !cancelled()) { in GetBookmarksFromServerDataResponse()
259 if (ParseBookmarksFromReader(&reader, &bookmarks, in GetBookmarksFromServerDataResponse()
287 XmlReader* reader, in ParseBookmarksFromReader() argument
290 DCHECK(reader); in ParseBookmarksFromReader()
300 if (!reader->SkipToElement()) in ParseBookmarksFromReader()
303 if (!LocateNextTagByName(reader, kBookmarksXmlTag)) in ParseBookmarksFromReader()
307 while (LocateNextTagWithStopByName(reader, kBookmarkXmlTag, in ParseBookmarksFromReader()
311 if (ExtractBookmarkInformation(reader, &bookmark_entry, &folders, in ParseBookmarksFromReader()
330 bool Toolbar5Importer::LocateNextOpenTag(XmlReader* reader) { in LocateNextOpenTag() argument
[all …]
Dtoolbar_importer.h122 XmlReader* reader,
126 static bool LocateNextOpenTag(XmlReader* reader);
127 static bool LocateNextTagByName(XmlReader* reader, const std::string& tag);
129 XmlReader* reader,
134 XmlReader* reader,
138 static bool ExtractNamedValueFromXmlReader(XmlReader* reader,
141 static bool ExtractTitleFromXmlReader(XmlReader* reader,
143 static bool ExtractUrlFromXmlReader(XmlReader* reader,
145 static bool ExtractTimeFromXmlReader(XmlReader* reader,
148 XmlReader* reader,
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/
DInputStreamReaderTest.java99 private InputStreamReader reader; field in InputStreamReaderTest
111 reader = new InputStreamReader(in, "UTF-8"); in setUp()
151 reader.close(); in test_close()
153 reader.ready(); in test_close()
160 reader.close(); in test_close()
169 reader = new InputStreamReader(in, "utf-8"); in test_close()
172 int count = reader.read(new char[1]); in test_close()
178 reader.read(); in test_close()
184 assertFalse(reader.ready()); in test_close()
186 assertEquals(cs, Charset.forName(reader.getEncoding())); in test_close()
[all …]
DPipedOutputStreamTest.java30 PipedInputStream reader; field in PipedOutputStreamTest.PReader
33 return reader; in getReader()
38 reader = new PipedInputStream(out); in PReader()
46 return reader.available(); in available()
65 reader.read(buf, 0, nbytes); in read()
76 PReader reader; field in PipedOutputStreamTest
100 rt = new Thread(reader = new PReader(out)); in test_close()
126 rt = new Thread(reader = new PReader(out)); in test_connectLjava_io_PipedInputStream()
140 rt = new Thread(reader = new PReader(out)); in test_flush()
143 assertTrue("Bytes written before flush", reader.available() != 0); in test_flush()
[all …]
/external/apache-xml/src/main/java/org/apache/xml/utils/
DXMLReaderManager.java81 XMLReader reader; in getXMLReader() local
96 reader = (XMLReader) m_readers.get(); in getXMLReader()
97 boolean threadHasReader = (reader != null); in getXMLReader()
98 if (!threadHasReader || m_inUse.get(reader) == Boolean.TRUE) { in getXMLReader()
105 reader = XMLReaderFactory.createXMLReader(); in getXMLReader()
115 reader = m_parserFactory.newSAXParser().getXMLReader(); in getXMLReader()
121 reader.setFeature(NAMESPACES_FEATURE, true); in getXMLReader()
122 reader.setFeature(NAMESPACE_PREFIXES_FEATURE, false); in getXMLReader()
138 m_readers.set(reader); in getXMLReader()
139 m_inUse.put(reader, Boolean.TRUE); in getXMLReader()
[all …]
/external/javassist/sample/preproc/
DCompiler.java90 CommentSkipper reader = new CommentSkipper(input, output); in process() local
91 while ((c = reader.read()) != -1) { in process()
94 if (skipPackage(reader)) in process()
98 readImport(reader); in process()
110 private boolean skipPackage(CommentSkipper reader) throws IOException { in skipPackage() argument
112 c = reader.read(); in skipPackage()
117 while ((c = reader.read()) != -1) { in skipPackage()
126 private void readImport(CommentSkipper reader) in readImport() argument
132 word[i] = reader.read(); in readImport()
140 c = skipSpaces(reader, ' '); in readImport()
[all …]
/external/proguard/src/proguard/
DDataEntryReaderFactory.java49 DataEntryReader reader) in createDataEntryReader() argument
79 reader = new FilteredDataEntryReader( in createDataEntryReader()
82 reader); in createDataEntryReader()
86 reader = wrapInJarReader(reader, isJar, jarFilter, ".jar"); in createDataEntryReader()
90 reader = wrapInJarReader(reader, isWar, warFilter, ".war"); in createDataEntryReader()
94 reader = wrapInJarReader(reader, isEar, earFilter, ".ear"); in createDataEntryReader()
98 reader = wrapInJarReader(reader, isZip, zipFilter, ".zip"); in createDataEntryReader()
103 return reader; in createDataEntryReader()
110 private static DataEntryReader wrapInJarReader(DataEntryReader reader, in wrapInJarReader() argument
116 DataEntryReader jarReader = new JarReader(reader); in wrapInJarReader()
[all …]
DFileWordReader.java35 private LineNumberReader reader; field in FileWordReader
46 this.reader = new LineNumberReader( in FileWordReader()
60 this.reader = new LineNumberReader( in FileWordReader()
70 return reader.readLine(); in nextLine()
76 return "line " + reader.getLineNumber() + " of file '" + name + "'"; in lineLocationDescription()
84 if (reader != null) in close()
86 reader.close(); in close()
/external/dbus/bus/
Dconfig-loader-libxml.c47 xmlTextReader *reader, in xml_text_start_element() argument
62 name = xmlTextReaderConstName (reader); in xml_text_start_element()
63 n_attributes = xmlTextReaderAttributeCount (reader); in xml_text_start_element()
64 is_empty = xmlTextReaderIsEmptyElement (reader); in xml_text_start_element()
80 while ((status = xmlTextReaderMoveToNextAttribute (reader)) == 1) in xml_text_start_element()
83 attribute_names[i] = xmlTextReaderConstName (reader); in xml_text_start_element()
84 attribute_values[i] = xmlTextReaderConstValue (reader); in xml_text_start_element()
148 xmlTextReader *reader; in bus_config_load() local
157 reader = NULL; in bus_config_load()
199 reader = xmlReaderForMemory (_dbus_string_get_const_data (&data), in bus_config_load()
[all …]
/external/collada/src/modules/LIBXMLPlugin/
DdaeLIBXMLPlugin.cpp36 daeInt getCurrentLineNumber(xmlTextReaderPtr reader) { in getCurrentLineNumber() argument
38 return xmlTextReaderGetParserLineNumber(reader); in getCurrentLineNumber()
78 void packageCurrentAttributes(xmlTextReaderPtr reader, in packageCurrentAttributes() argument
81 int numAttributes = xmlTextReaderAttributeCount(reader); in packageCurrentAttributes()
86 while (xmlTextReaderMoveToNextAttribute(reader) == 1) { in packageCurrentAttributes()
87 const xmlChar* xmlName = xmlTextReaderConstName(reader); in packageCurrentAttributes()
88 const xmlChar* xmlValue = xmlTextReaderConstValue(reader); in packageCurrentAttributes()
165 if((reader = xmlReaderForFile(cdom::fixUriForLibxml(uri.str()).c_str(), NULL, 0))) in xmlTextReaderHelper()
166 xmlTextReaderSetErrorHandler(reader, libxmlErrorHandler, NULL); in xmlTextReaderHelper()
170 …if((reader = xmlReaderForDoc((xmlChar*)buffer, cdom::fixUriForLibxml(baseUri.str()).c_str(), NULL,… in xmlTextReaderHelper()
[all …]
/external/proguard/src/proguard/io/
DDataEntryCopier.java181 DataEntryReader reader = new DataEntryCopier(writer); in main() local
189 DataEntryReader jarReader = new JarReader(reader); in main()
193 reader = jarReader; in main()
198 reader = new FilteredDataEntryReader(new DataEntryNameFilter( in main()
201 reader); in main()
204 DataEntryReader warReader = new JarReader(reader); in main()
208 reader = warReader; in main()
213 reader = new FilteredDataEntryReader(new DataEntryNameFilter( in main()
216 reader); in main()
220 DataEntryReader zipReader = new JarReader(reader); in main()
[all …]
/external/opencv/cv/src/
Dcvshapedescr.cpp57 CvSeqReader reader; in cvArcLength() local
82 cvStartReadSeq( contour, &reader, 0 ); in cvArcLength()
83 cvSetSeqReaderPos( &reader, slice.start_index ); in cvArcLength()
89 reader.prev_elem = reader.ptr; in cvArcLength()
90 CV_NEXT_SEQ_ELEM( sizeof(CvPoint), reader ); in cvArcLength()
98 CvPoint* pt = (CvPoint*)reader.ptr; in cvArcLength()
99 CvPoint* prev_pt = (CvPoint*)reader.prev_elem; in cvArcLength()
106 CvPoint2D32f* pt = (CvPoint2D32f*)reader.ptr; in cvArcLength()
107 CvPoint2D32f* prev_pt = (CvPoint2D32f*)reader.prev_elem; in cvArcLength()
113 reader.prev_elem = reader.ptr; in cvArcLength()
[all …]
Dcvapprox.cpp76 CvChainPtReader reader; in icvApproximateChainTC89() local
101 cvStartReadChainPoints( chain, &reader ); in icvApproximateChainTC89()
122 int prev_code = *reader.prev_elem; in icvApproximateChainTC89()
124 reader.prev_elem = reader.ptr; in icvApproximateChainTC89()
125 CV_READ_CHAIN_POINT( pt, reader ); in icvApproximateChainTC89()
128 s = abs_diff[reader.code - prev_code + 7]; in icvApproximateChainTC89()
524 CvSeqReader reader, reader2; in icvApproxPolyDP_32s() local
547 cvStartReadSeq( src_contour, &reader, 0 ); in icvApproxPolyDP_32s()
552 end_pt = *(CvPoint*)(reader.ptr); in icvApproxPolyDP_32s()
576 cvSetSeqReaderPos( &reader, right_slice.start_index, 1 ); in icvApproxPolyDP_32s()
[all …]
/external/apache-xml/src/main/java/org/apache/xml/dtm/ref/
DDTMManagerDefault.java273 XMLReader reader = null; in getDTM() local
282 reader = getXMLReader(source); in getDTM()
330 (null != reader) in getDTM()
331 && (reader.getClass() in getDTM()
358 if (null == reader) { in getDTM()
363 filter.setXMLReader(reader); in getDTM()
396 if (null == reader.getErrorHandler()) { in getDTM()
397 reader.setErrorHandler(dtm); in getDTM()
399 reader.setDTDHandler(dtm); in getDTM()
418 if (null == reader) { in getDTM()
[all …]
/external/opencv/cxcore/src/
Dcxdatastructs.cpp646 CvSeqReader reader; in cvCvtSeqToArray() local
658 cvStartReadSeq( seq, &reader, 0 ); in cvCvtSeqToArray()
659 CV_CALL( cvSetSeqReaderPos( &reader, slice.start_index, 0 )); in cvCvtSeqToArray()
663 int count = (int)(reader.block_max - reader.ptr); in cvCvtSeqToArray()
667 memcpy( dst, reader.ptr, count ); in cvCvtSeqToArray()
669 reader.block = reader.block->next; in cvCvtSeqToArray()
670 reader.ptr = reader.block->data; in cvCvtSeqToArray()
671 reader.block_max = reader.ptr + reader.block->count*elem_size; in cvCvtSeqToArray()
1090 cvStartReadSeq( const CvSeq *seq, CvSeqReader * reader, int reverse ) in cvStartReadSeq() argument
1097 if( reader ) in cvStartReadSeq()
[all …]
/external/v8/tools/
Dgrokdump.py498 field_value = self.heap.reader.ReadU32(self.address + offset)
502 field_value = self.heap.reader.ReadU32(self.address + offset)
513 heap.reader.ReadU8(self.address + Map.INSTANCE_TYPE_OFFSET)
538 self.chars = heap.reader.ReadBytes(self.address + SeqString.CHARS_OFFSET,
553 reader = heap.reader
555 reader.ReadU32(self.address + ExternalString.RESOURCE_OFFSET)
557 if not reader.IsValidAddress(self.resource): return
560 if not reader.IsValidAddress(string_impl_address): return
561 string_impl = reader.ReadU32(string_impl_address)
564 if not reader.IsValidAddress(chars_ptr_address): return
[all …]
/external/jsilver/src/com/google/clearsilver/jsilver/resourceloader/
DCompositeResourceLoader.java55 Reader reader = loader.open(name); in open() local
56 if (reader != null) { in open()
57 return new ReaderTracer(reader, loader); in open()
65 Reader reader = open(name); in openOrFail() local
66 if (reader == null) { in openOrFail()
69 return reader; in openOrFail()
73 public void close(Reader reader) throws IOException { in close() argument
74 if (!(reader instanceof ReaderTracer)) { in close()
77 reader.close(); in close()

1234567891011