Lines Matching refs:parser
66 CrossProfileIntentFilter(XmlPullParser parser) throws XmlPullParserException, IOException {
67 mTargetUserId = getIntFromXml(parser, ATTR_TARGET_USER_ID, UserHandle.USER_NULL);
68 mOwnerPackage = getStringFromXml(parser, ATTR_OWNER_PACKAGE, "");
69 mFlags = getIntFromXml(parser, ATTR_FLAGS, 0);
71 int outerDepth = parser.getDepth();
72 String tagName = parser.getName();
74 while ((type = parser.next()) != XmlPullParser.END_DOCUMENT
75 && (type != XmlPullParser.END_TAG || parser.getDepth() > outerDepth)) {
76 tagName = parser.getName();
85 + parser.getPositionDescription();
87 XmlUtils.skipCurrentTag(parser);
92 readFromXml(parser);
95 " at " + parser.getPositionDescription();
97 XmlUtils.skipCurrentTag(parser);
101 String getStringFromXml(XmlPullParser parser, String attribute, String defaultValue) {
102 String value = parser.getAttributeValue(null, attribute);
105 parser.getPositionDescription();
113 int getIntFromXml(XmlPullParser parser, String attribute, int defaultValue) {
114 String stringValue = getStringFromXml(parser, attribute, null);