Lines Matching refs:serializer
202 XmlSerializer serializer = new FastXmlSerializer();
203 serializer.setOutput(new BufferedOutputStream(os), "utf-8");
204 saveToXml(serializer);
205 serializer.flush();
273 private void saveToXml(XmlSerializer serializer) throws IOException {
274 serializer.startDocument(null, true);
275 serializer.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true);
276 serializer.startTag(null, TAG_TV_INPUT_MANAGER_STATE);
277 serializer.startTag(null, TAG_BLOCKED_RATINGS);
280 serializer.startTag(null, TAG_RATING);
281 serializer.attribute(null, ATTR_STRING, rating.flattenToString());
282 serializer.endTag(null, TAG_RATING);
285 serializer.endTag(null, TAG_BLOCKED_RATINGS);
286 serializer.startTag(null, TAG_PARENTAL_CONTROLS);
287 serializer.attribute(null, ATTR_ENABLED, Boolean.toString(mParentalControlsEnabled));
288 serializer.endTag(null, TAG_PARENTAL_CONTROLS);
289 serializer.endTag(null, TAG_TV_INPUT_MANAGER_STATE);
290 serializer.endDocument();