Lines Matching refs:parser
27 * Implements the layout parser with rules for internal layouts and partner layouts.
81 protected void parseContainerAndScreen(XmlResourceParser parser, long[] out) {
83 String strContainer = getAttributeValue(parser, ATTR_CONTAINER);
87 out[1] = Long.parseLong(getAttributeValue(parser, ATTR_SCREEN));
96 protected long invalidPackageOrClass(XmlResourceParser parser) {
97 final String uri = getAttributeValue(parser, ATTR_URI);
181 * Shortcut parser which allows any uri and not just web urls.
190 protected Intent parseIntent(XmlResourceParser parser) {
193 uri = getAttributeValue(parser, ATTR_URI);
210 public long parseAndAdd(XmlResourceParser parser) throws XmlPullParserException,
212 final int groupDepth = parser.getDepth();
215 while ((type = parser.next()) != XmlPullParser.END_TAG ||
216 parser.getDepth() > groupDepth) {
220 final String fallback_item_name = parser.getName();
222 addedId = mChildParser.parseAndAdd(parser);
233 * A parser which adds a folder whose contents come from partner apk.
238 public long parseAndAdd(XmlResourceParser parser) throws XmlPullParserException,
264 public long parseAndAdd(XmlResourceParser parser) throws XmlPullParserException,
266 final int resId = getAttributeResourceValue(parser, ATTR_FOLDER_ITEMS, 0);
268 parser = mSourceRes.getXml(resId);
269 beginDocument(parser, TAG_FOLDER);
271 return super.parseAndAdd(parser);