Lines Matching refs:writer
99 try (JsonWriter writer = new JsonWriter(new FileWriter(mCacheFile))) { in save() argument
100 writer.beginObject(); in save()
102 writer.name(NAME_KNOWN_GOOD); in save()
103 savePrinterIds(writer, mKnownGood, KNOWN_GOOD_MAX); in save()
105 writer.name(NAME_PRIORITY); in save()
106 savePrinterIds(writer, mPriority, mPriority.size()); in save()
108 writer.endObject(); in save()
114 private void savePrinterIds(JsonWriter writer, List<PrinterId> ids, int max) in savePrinterIds() argument
116 writer.beginArray(); in savePrinterIds()
119 writer.value(ids.get(i).getLocalId()); in savePrinterIds()
121 writer.endArray(); in savePrinterIds()