Lines Matching refs:parser
70 XmlPullParser parser = mFactory.newPullParser(); in onLoadConfig() local
72 parser.setInput(getApplicationContext().getAssets().open(fileName), "utf-8"); in onLoadConfig()
73 config = readConfigFromXml(parser, id); in onLoadConfig()
119 static PersistableBundle readConfigFromXml(XmlPullParser parser, CarrierIdentifier id) in readConfigFromXml() argument
123 if (parser == null) { in readConfigFromXml()
130 while (((event = parser.next()) != XmlPullParser.END_DOCUMENT)) { in readConfigFromXml()
131 if (event == XmlPullParser.START_TAG && "carrier_config".equals(parser.getName())) { in readConfigFromXml()
133 if (!checkFilters(parser, id)) { in readConfigFromXml()
136 PersistableBundle configFragment = PersistableBundle.restoreFromXml(parser); in readConfigFromXml()
165 static boolean checkFilters(XmlPullParser parser, CarrierIdentifier id) { in checkFilters() argument
167 for (int i = 0; i < parser.getAttributeCount(); ++i) { in checkFilters()
168 String attribute = parser.getAttributeName(i); in checkFilters()
169 String value = parser.getAttributeValue(i); in checkFilters()