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());
147 XmlResourceParser parser = null;
149 parser = context.getResources().getAnimation(id);
150 return createLayoutAnimationFromXml(context, parser);
162 if (parser != null) parser.close();
167 XmlPullParser parser) throws XmlPullParserException, IOException {
169 return createLayoutAnimationFromXml(c, parser, Xml.asAttributeSet(parser));
173 XmlPullParser parser, AttributeSet attrs) throws XmlPullParserException, IOException {
178 int depth = parser.getDepth();
180 while (((type = parser.next()) != XmlPullParser.END_TAG || parser.getDepth() > depth)
187 String name = parser.getName();
268 XmlResourceParser parser = null;
270 parser = context.getResources().getAnimation(id);
271 return createInterpolatorFromXml(context, parser);
283 if (parser != null) parser.close();
288 private static Interpolator createInterpolatorFromXml(Context c, XmlPullParser parser)
295 int depth = parser.getDepth();
297 while (((type=parser.next()) != XmlPullParser.END_TAG || parser.getDepth() > depth)
304 AttributeSet attrs = Xml.asAttributeSet(parser);
306 String name = parser.getName();
328 throw new RuntimeException("Unknown interpolator name: " + parser.getName());