Searched refs:mCacheFile (Results 1 – 2 of 2) sorted by relevance
49 private final File mCacheFile; field in SavedDiscovery54 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()
46 private final File mCacheFile; field in LocalDiscoverySessionInfo52 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()