Home | History | Annotate | Download | only in carrierconfig

Lines Matching defs:parser

75             XmlPullParser parser = mFactory.newPullParser();
77 parser.setInput(getApplicationContext().getAssets().open(fileName), "utf-8");
78 config = readConfigFromXml(parser, id);
120 * @param parser an XmlPullParser pointing at the beginning of the document.
124 static PersistableBundle readConfigFromXml(XmlPullParser parser, CarrierIdentifier id)
128 if (parser == null) {
135 while (((event = parser.next()) != XmlPullParser.END_DOCUMENT)) {
136 if (event == XmlPullParser.START_TAG && "carrier_config".equals(parser.getName())) {
138 if (!checkFilters(parser, id)) {
141 PersistableBundle configFragment = PersistableBundle.restoreFromXml(parser);
152 * <p>This iterates over the attributes of the current tag pointed to by {@code parser} and
173 * @param parser an XmlPullParser pointing at a START_TAG with the attributes to check.
177 static boolean checkFilters(XmlPullParser parser, CarrierIdentifier id) {
179 for (int i = 0; i < parser.getAttributeCount(); ++i) {
180 String attribute = parser.getAttributeName(i);
181 String value = parser.getAttributeValue(i);