Searched refs:generation (Results 1 - 2 of 2) sorted by relevance

/packages/apps/Dialer/java/com/android/dialer/util/
H A DExpirableCache.java94 * The current generation of items added to the cache.
96 * <p>Items in the cache can belong to a previous generation, but in that case they would be
101 private final AtomicInteger generation; field in class:ExpirableCache
107 generation = new AtomicInteger(0);
204 generation.incrementAndGet();
213 return new GenerationalCachedValue<V>(value, generation);
237 /** Cached values storing the generation at which they were added. */
243 /** The generation at which the value was added to the cache. */
244 private final int generation; field in class:ExpirableCache.GenerationalCachedValue
245 /** The atomic integer storing the current generation o
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
H A DMtpDeviceIndex.java434 * @param generation
435 * @return whether the index is at the given generation and the given device is connected
437 protected boolean isAtGeneration(MtpDevice device, long generation) { argument
438 return (mGeneration == generation) && (mDevice == device);
441 protected synchronized boolean setIndexingResults(MtpDevice device, long generation, argument
443 if (!isAtGeneration(device, generation)) {

Completed in 242 milliseconds