/external/guava/guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/ |
D | CacheBuilder.java | 223 long expireAfterAccessNanos = UNSET_INT; field in CacheBuilder 344 if (expireAfterWriteNanos == 0 || expireAfterAccessNanos == 0) { in getMaximumWeight() 430 checkState(expireAfterAccessNanos == UNSET_INT, "expireAfterAccess was already set to %s ns", in expireAfterAccess() 431 expireAfterAccessNanos); in expireAfterAccess() 433 this.expireAfterAccessNanos = unit.toNanos(duration); in expireAfterAccess() 438 return (expireAfterAccessNanos == UNSET_INT) in getExpireAfterAccessNanos() 439 ? DEFAULT_EXPIRATION_NANOS : expireAfterAccessNanos; in getExpireAfterAccessNanos() 605 if (expireAfterAccessNanos != UNSET_INT) { in toString() 606 s.add("expireAfterAccess", expireAfterAccessNanos + "ns"); in toString()
|
D | LocalCache.java | 67 this.expireAfterAccess = builder.expireAfterAccessNanos; in LocalCache()
|
/external/guava/guava/src/com/google/common/cache/ |
D | CacheBuilder.java | 229 long expireAfterAccessNanos = UNSET_INT; field in CacheBuilder 491 if (expireAfterWriteNanos == 0 || expireAfterAccessNanos == 0) { in getMaximumWeight() 640 checkState(expireAfterAccessNanos == UNSET_INT, "expireAfterAccess was already set to %s ns", in expireAfterAccess() 641 expireAfterAccessNanos); in expireAfterAccess() 643 this.expireAfterAccessNanos = unit.toNanos(duration); in expireAfterAccess() 648 return (expireAfterAccessNanos == UNSET_INT) in getExpireAfterAccessNanos() 649 ? DEFAULT_EXPIRATION_NANOS : expireAfterAccessNanos; in getExpireAfterAccessNanos() 850 if (expireAfterAccessNanos != UNSET_INT) { in toString() 851 s.add("expireAfterAccess", expireAfterAccessNanos + "ns"); in toString()
|
D | LocalCache.java | 196 final long expireAfterAccessNanos; field in LocalCache 247 expireAfterAccessNanos = builder.getExpireAfterAccessNanos(); in LocalCache() 329 return expireAfterAccessNanos > 0; in expiresAfterAccess() 1909 && (now - entry.getAccessTime() >= expireAfterAccessNanos)) { in isExpired() 4568 final long expireAfterAccessNanos; 4585 cache.expireAfterAccessNanos, 4597 long expireAfterWriteNanos, long expireAfterAccessNanos, long maxWeight, 4606 this.expireAfterAccessNanos = expireAfterAccessNanos; 4628 if (expireAfterAccessNanos > 0) { 4629 builder.expireAfterAccess(expireAfterAccessNanos, TimeUnit.NANOSECONDS);
|
/external/guava/guava/src/com/google/common/collect/ |
D | MapMaker.java | 124 long expireAfterAccessNanos = UNSET_INT; field in MapMaker 393 checkState(expireAfterAccessNanos == UNSET_INT, "expireAfterAccess was already set to %s ns", in checkExpiration() 394 expireAfterAccessNanos); in checkExpiration() 432 this.expireAfterAccessNanos = unit.toNanos(duration); in expireAfterAccess() 442 return (expireAfterAccessNanos == UNSET_INT) in getExpireAfterAccessNanos() 443 ? DEFAULT_EXPIRATION_NANOS : expireAfterAccessNanos; in getExpireAfterAccessNanos() 609 if (expireAfterAccessNanos != UNSET_INT) { in toString() 610 s.add("expireAfterAccess", expireAfterAccessNanos + "ns"); in toString()
|
D | ComputingConcurrentHashMap.java | 383 valueEquivalence, expireAfterWriteNanos, expireAfterAccessNanos, maximumSize, in writeReplace() 393 long expireAfterWriteNanos, long expireAfterAccessNanos, int maximumSize, in ComputingSerializationProxy() argument 397 expireAfterAccessNanos, maximumSize, concurrencyLevel, removalListener, delegate); in ComputingSerializationProxy()
|
D | MapMakerInternalMap.java | 171 final long expireAfterAccessNanos; field in MapMakerInternalMap 205 expireAfterAccessNanos = builder.getExpireAfterAccessNanos(); in MapMakerInternalMap() 278 return expireAfterAccessNanos > 0; in expiresAfterAccess() 2253 recordExpirationTime(entry, map.expireAfterAccessNanos); in recordRead() 2269 recordExpirationTime(entry, map.expireAfterAccessNanos); in recordLockedRead() 2287 ? map.expireAfterAccessNanos in recordWrite() 3888 valueEquivalence, expireAfterWriteNanos, expireAfterAccessNanos, maximumSize, 3905 final long expireAfterAccessNanos; 3914 long expireAfterWriteNanos, long expireAfterAccessNanos, int maximumSize, 3922 this.expireAfterAccessNanos = expireAfterAccessNanos; [all …]
|
/external/guava/guava-tests/test/com/google/common/cache/ |
D | CacheBuilderSpecTest.java | 549 assertEquals("expireAfterAccessNanos", a.expireAfterAccessNanos, b.expireAfterAccessNanos); in assertCacheBuilderEquivalence()
|
D | LocalCacheTest.java | 159 assertEquals(0, map.expireAfterAccessNanos); in testDefaults() 386 assertEquals(unit.toNanos(duration), map.expireAfterAccessNanos); in testSetExpireAfterAccess() 2423 assertEquals(localCacheOne.expireAfterAccessNanos, localCacheTwo.expireAfterAccessNanos); in testSerializationProxyLoading() 2440 assertEquals(localCacheTwo.expireAfterAccessNanos, localCacheThree.expireAfterAccessNanos); in testSerializationProxyLoading() 2478 assertEquals(localCacheOne.expireAfterAccessNanos, localCacheTwo.expireAfterAccessNanos); in testSerializationProxyManual() 2493 assertEquals(localCacheTwo.expireAfterAccessNanos, localCacheThree.expireAfterAccessNanos); in testSerializationProxyManual()
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | MapMakerInternalMapTest.java | 84 assertEquals(0, map.expireAfterAccessNanos); in testDefaults() 263 assertEquals(unit.toNanos(duration), map.expireAfterAccessNanos); in testSetExpireAfterAccess()
|