Lines Matching refs:parser

73         XmlResourceParser parser = null;
75 parser = context.getResources().getAnimation(id);
76 return createAnimationFromXml(context, parser);
88 if (parser != null) parser.close();
92 private static Animation createAnimationFromXml(Context c, XmlPullParser parser)
95 return createAnimationFromXml(c, parser, null, Xml.asAttributeSet(parser));
98 private static Animation createAnimationFromXml(Context c, XmlPullParser parser,
105 int depth = parser.getDepth();
107 while (((type=parser.next()) != XmlPullParser.END_TAG || parser.getDepth() > depth)
114 String name = parser.getName();
118 createAnimationFromXml(c, parser, (AnimationSet)anim, attrs);
128 throw new RuntimeException("Unknown animation name: " + parser.getName());
151 XmlResourceParser parser = null;
153 parser = context.getResources().getAnimation(id);
154 return createLayoutAnimationFromXml(context, parser);
166 if (parser != null) parser.close();
171 XmlPullParser parser) throws XmlPullParserException, IOException {
173 return createLayoutAnimationFromXml(c, parser, Xml.asAttributeSet(parser));
177 XmlPullParser parser, AttributeSet attrs) throws XmlPullParserException, IOException {
182 int depth = parser.getDepth();
184 while (((type = parser.next()) != XmlPullParser.END_TAG || parser.getDepth() > depth)
191 String name = parser.getName();
273 XmlResourceParser parser = null;
275 parser = context.getResources().getAnimation(id);
276 return createInterpolatorFromXml(context.getResources(), context.getTheme(), parser);
288 if (parser != null) parser.close();
303 XmlResourceParser parser = null;
305 parser = res.getAnimation(id);
306 return createInterpolatorFromXml(res, theme, parser);
318 if (parser != null)
319 parser.close();
324 private static Interpolator createInterpolatorFromXml(Resources res, Theme theme, XmlPullParser parser)
331 int depth = parser.getDepth();
333 while (((type = parser.next()) != XmlPullParser.END_TAG || parser.getDepth() > depth)
340 AttributeSet attrs = Xml.asAttributeSet(parser);
342 String name = parser.getName();
365 throw new RuntimeException("Unknown interpolator name: " + parser.getName());