Lines Matching defs:parser
70 XmlPullParser parser = mFactory.newPullParser();
72 parser.setInput(getApplicationContext().getAssets().open(fileName), "utf-8");
73 config = readConfigFromXml(parser, id);
115 * @param parser an XmlPullParser pointing at the beginning of the document.
119 static PersistableBundle readConfigFromXml(XmlPullParser parser, CarrierIdentifier id)
123 if (parser == null) {
130 while (((event = parser.next()) != XmlPullParser.END_DOCUMENT)) {
131 if (event == XmlPullParser.START_TAG && "carrier_config".equals(parser.getName())) {
133 if (!checkFilters(parser, id)) {
136 PersistableBundle configFragment = PersistableBundle.restoreFromXml(parser);
147 * <p>This iterates over the attributes of the current tag pointed to by {@code parser} and
161 * @param parser an XmlPullParser pointing at a START_TAG with the attributes to check.
165 static boolean checkFilters(XmlPullParser parser, CarrierIdentifier id) {
167 for (int i = 0; i < parser.getAttributeCount(); ++i) {
168 String attribute = parser.getAttributeName(i);
169 String value = parser.getAttributeValue(i);