Home
last modified time | relevance | path

Searched refs:mCacheFile (Results 1 – 2 of 2) sorted by relevance

/packages/services/BuiltInPrintService/src/com/android/bips/discovery/
DSavedDiscovery.java49 private final File mCacheFile; field in SavedDiscovery
54 mCacheFile = new File(printService.getCacheDir(), getClass().getSimpleName() + ".json"); in SavedDiscovery()
115 if (!mCacheFile.exists()) { in load()
119 try (JsonReader reader = new JsonReader(new BufferedReader(new FileReader(mCacheFile)))) { in load()
133 Log.w(TAG, "Error while loading from " + mCacheFile, ignored); in load()
135 if (DEBUG) Log.d(TAG, "Loaded size=" + printers.size() + " from " + mCacheFile); in load()
143 if (mCacheFile.exists()) { in save()
144 mCacheFile.delete(); in save()
147 try (JsonWriter writer = new JsonWriter(new BufferedWriter(new FileWriter(mCacheFile)))) { in save()
157 Log.w(TAG, "Error while storing to " + mCacheFile, e); in save()
/packages/services/BuiltInPrintService/src/com/android/bips/
DLocalDiscoverySessionInfo.java46 private final File mCacheFile; field in LocalDiscoverySessionInfo
52 mCacheFile = new File(service.getCacheDir(), CACHE_FILE); in LocalDiscoverySessionInfo()
60 if (!mCacheFile.exists()) { in load()
63 try (JsonReader reader = new JsonReader(new FileReader(mCacheFile))) { in load()
99 try (JsonWriter writer = new JsonWriter(new FileWriter(mCacheFile))) { in save()