Lines Matching refs:parser

69         XmlResourceParser parser = null;
71 parser = context.getResources().getAnimation(id);
72 return createAnimationFromXml(context, parser);
84 if (parser != null) parser.close();
88 private static Animation createAnimationFromXml(Context c, XmlPullParser parser)
91 return createAnimationFromXml(c, parser, null, Xml.asAttributeSet(parser));
94 private static Animation createAnimationFromXml(Context c, XmlPullParser parser,
101 int depth = parser.getDepth();
103 while (((type=parser.next()) != XmlPullParser.END_TAG || parser.getDepth() > depth)
110 String name = parser.getName();
114 createAnimationFromXml(c, parser, (AnimationSet)anim, attrs);
124 throw new RuntimeException("Unknown animation name: " + parser.getName());
139 XmlResourceParser parser = null;
141 parser = context.getResources().getAnimation(id);
142 return createLayoutAnimationFromXml(context, parser);
154 if (parser != null) parser.close();
159 XmlPullParser parser) throws XmlPullParserException, IOException {
161 return createLayoutAnimationFromXml(c, parser, Xml.asAttributeSet(parser));
165 XmlPullParser parser, AttributeSet attrs) throws XmlPullParserException, IOException {
170 int depth = parser.getDepth();
172 while (((type = parser.next()) != XmlPullParser.END_TAG || parser.getDepth() > depth)
179 String name = parser.getName();
260 XmlResourceParser parser = null;
262 parser = context.getResources().getAnimation(id);
263 return createInterpolatorFromXml(context, parser);
275 if (parser != null) parser.close();
280 private static Interpolator createInterpolatorFromXml(Context c, XmlPullParser parser)
287 int depth = parser.getDepth();
289 while (((type=parser.next()) != XmlPullParser.END_TAG || parser.getDepth() > depth)
296 AttributeSet attrs = Xml.asAttributeSet(parser);
298 String name = parser.getName();
320 throw new RuntimeException("Unknown interpolator name: " + parser.getName());