Home | History | Annotate | Download | only in packageinstaller

Lines Matching refs:parser

97      * Progress parser to the next element.
99 * @param parser The parser to progress
101 private static void nextElement(@NonNull XmlPullParser parser)
105 type = parser.next();
112 * @param parser The parser to read from
117 private static int readIntAttribute(@NonNull XmlPullParser parser, @NonNull String name) {
118 return Integer.parseInt(parser.getAttributeValue(null, name));
124 * @param parser The parser to read from
129 private static String readStringAttribute(@NonNull XmlPullParser parser, @NonNull String name) {
130 return parser.getAttributeValue(null, name);
143 XmlPullParser parser = Xml.newPullParser();
144 parser.setInput(stream, StandardCharsets.UTF_8.name());
146 nextElement(parser);
147 while (parser.getEventType() != XmlPullParser.END_DOCUMENT) {
148 String tagName = parser.getName();
150 mCounter = readIntAttribute(parser, "counter");
152 int id = readIntAttribute(parser, "id");
153 int status = readIntAttribute(parser, "status");
154 int legacyStatus = readIntAttribute(parser, "legacyStatus");
155 String statusMessage = readStringAttribute(parser, "statusMessage");
166 nextElement(parser);