Searched refs:snapshot (Results 1 – 5 of 5) sorted by relevance
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | CopyOnWriteArrayList.java | 509 Object[] snapshot = getArray(); in remove() local 510 int index = indexOf(o, snapshot, 0, snapshot.length); in remove() 511 return (index < 0) ? false : remove(o, snapshot, index); in remove() 518 private boolean remove(Object o, Object[] snapshot, int index) { in remove() argument 522 if (snapshot != current) findIndex: { in remove() 525 if (current[i] != snapshot[i] in remove() 589 Object[] snapshot = getArray(); in addIfAbsent() local 590 return indexOf(e, snapshot, 0, snapshot.length) >= 0 ? false : in addIfAbsent() 591 addIfAbsent(e, snapshot); in addIfAbsent() 598 private boolean addIfAbsent(E e, Object[] snapshot) { in addIfAbsent() argument [all …]
|
D | CopyOnWriteArraySet.java | 290 private static int compareSets(Object[] snapshot, Set<?> set) { in compareSets() argument 297 final int len = snapshot.length; in compareSets() 305 if (!matched[i] && Objects.equals(x, snapshot[i])) { in compareSets()
|
/libcore/ojluni/src/main/java/sun/net/ |
D | ProgressMonitor.java | 67 ArrayList<ProgressSource> snapshot = new ArrayList<ProgressSource>(); in getProgressSources() local 75 snapshot.add((ProgressSource)pi.clone()); in getProgressSources() 83 return snapshot; in getProgressSources()
|
/libcore/luni/src/main/java/libcore/util/ |
D | BasicLruCache.java | 125 public synchronized final Map<K, V> snapshot() { in snapshot() method in BasicLruCache
|
/libcore/luni/src/test/java/libcore/util/ |
D | BasicLruCacheTest.java | 138 for (Map.Entry<T, T> entry : cache.snapshot().entrySet()) {
|