Home
last modified time | relevance | path

Searched refs:CopyOnWriteArrayList (Results 1 – 25 of 27) sorted by relevance

12

/libcore/ojluni/src/test/java/util/concurrent/tck/
DCopyOnWriteArrayListTest.java45 import java.util.concurrent.CopyOnWriteArrayList;
58 public Class<?> klazz() { return CopyOnWriteArrayList.class; } in suite()
59 public List emptyCollection() { return new CopyOnWriteArrayList(); } in suite()
75 static CopyOnWriteArrayList<Integer> populatedArray(int n) { in populatedArray()
76 CopyOnWriteArrayList<Integer> a = new CopyOnWriteArrayList<>(); in populatedArray()
85 static CopyOnWriteArrayList<Integer> populatedArray(Integer[] elements) { in populatedArray()
86 CopyOnWriteArrayList<Integer> a = new CopyOnWriteArrayList<>(); in populatedArray()
99 CopyOnWriteArrayList a = new CopyOnWriteArrayList(); in testConstructor()
110 CopyOnWriteArrayList a = new CopyOnWriteArrayList(ints); in testConstructor2()
122 CopyOnWriteArrayList a = new CopyOnWriteArrayList(Arrays.asList(ints)); in testConstructor3()
[all …]
/libcore/luni/src/test/java/libcore/java/util/concurrent/
DCopyOnWriteArrayListTest.java26 import java.util.concurrent.CopyOnWriteArrayList;
37 CopyOnWriteArrayList<String> list = new CopyOnWriteArrayList<String>(); in testIteratorAndNonStructuralChanges()
54 CopyOnWriteArrayList<String> list = new CopyOnWriteArrayList<String>(); in testSubListAndNonStructuralChanges()
66 CopyOnWriteArrayList<String> list = new CopyOnWriteArrayList<String>(); in testSubListAndStructuralChanges()
78 CopyOnWriteArrayList<String> list = new CopyOnWriteArrayList<String>(); in testSubListAndSizePreservingStructuralChanges()
91 CopyOnWriteArrayList<String> list = new CopyOnWriteArrayList<String>(); in testRemoveAll()
105 CopyOnWriteArrayList<String> list = new CopyOnWriteArrayList<String>(); in testRetainAll()
114 CopyOnWriteArrayList<String> list = new CopyOnWriteArrayList<String>(); in testSubListClear()
124 new CopyOnWriteArrayList<String>().subList(0, 0).clear(); // the RI fails here in testSubListClearWhenEmpty()
128 CopyOnWriteArrayList<String> list = new CopyOnWriteArrayList<String>(); in testSubListIteratorGetsSnapshot()
[all …]
/libcore/jsr166-tests/src/test/java/jsr166/
DCopyOnWriteArrayListTest.java20 import java.util.concurrent.CopyOnWriteArrayList;
37 static CopyOnWriteArrayList<Integer> populatedArray(int n) { in populatedArray()
38 CopyOnWriteArrayList<Integer> a = new CopyOnWriteArrayList<Integer>(); in populatedArray()
47 static CopyOnWriteArrayList<Integer> populatedArray(Integer[] elements) { in populatedArray()
48 CopyOnWriteArrayList<Integer> a = new CopyOnWriteArrayList<Integer>(); in populatedArray()
61 CopyOnWriteArrayList a = new CopyOnWriteArrayList(); in testConstructor()
72 CopyOnWriteArrayList a = new CopyOnWriteArrayList(ints); in testConstructor2()
84 CopyOnWriteArrayList a = new CopyOnWriteArrayList(Arrays.asList(ints)); in testConstructor3()
93 CopyOnWriteArrayList full = populatedArray(3); in testAddAll()
105 CopyOnWriteArrayList full = populatedArray(3); in testAddAllAbsent()
[all …]
/libcore/ojluni/src/main/java/java/util/concurrent/
DCopyOnWriteArraySet.java102 private final CopyOnWriteArrayList<E> al;
108 al = new CopyOnWriteArrayList<E>(); in CopyOnWriteArraySet()
122 al = new CopyOnWriteArrayList<E>(cc.al); in CopyOnWriteArraySet()
125 al = new CopyOnWriteArrayList<E>(); in CopyOnWriteArraySet()
DCopyOnWriteArrayList.java100 public class CopyOnWriteArrayList<E> class
131 public CopyOnWriteArrayList() { in CopyOnWriteArrayList() method in CopyOnWriteArrayList
143 public CopyOnWriteArrayList(Collection<? extends E> c) { in CopyOnWriteArrayList() method in CopyOnWriteArrayList
145 if (c.getClass() == CopyOnWriteArrayList.class) in CopyOnWriteArrayList()
146 es = ((CopyOnWriteArrayList<?>)c).getArray(); in CopyOnWriteArrayList()
165 public CopyOnWriteArrayList(E[] toCopyIn) { in CopyOnWriteArrayList() method in CopyOnWriteArrayList
308 CopyOnWriteArrayList<E> clone = in clone()
309 (CopyOnWriteArrayList<E>) super.clone(); in clone()
826 Object[] cs = (c.getClass() == CopyOnWriteArrayList.class) ? in addAll()
827 ((CopyOnWriteArrayList<?>)c).getArray() : c.toArray(); in addAll()
[all …]
/libcore/ojluni/src/main/java/java/time/zone/
DZoneRulesProvider.java79 import java.util.concurrent.CopyOnWriteArrayList;
136 …private static final CopyOnWriteArrayList<ZoneRulesProvider> PROVIDERS = new CopyOnWriteArrayList<…
/libcore/luni/src/main/java/libcore/net/event/
DNetworkEventDispatcher.java24 import java.util.concurrent.CopyOnWriteArrayList;
37 new CopyOnWriteArrayList<NetworkEventListener>();
/libcore/ojluni/annotations/flagged_api/java/util/concurrent/
DCopyOnWriteArrayList.annotated.java39 public class CopyOnWriteArrayList<E> implements java.util.List<E>, java.util.RandomAccess, java.lan… class
41 public CopyOnWriteArrayList() { throw new RuntimeException("Stub!"); } in CopyOnWriteArrayList() method in CopyOnWriteArrayList
43 public CopyOnWriteArrayList(java.util.Collection<? extends E> c) { throw new RuntimeException("Stub… in CopyOnWriteArrayList() method in CopyOnWriteArrayList
45 public CopyOnWriteArrayList(E[] toCopyIn) { throw new RuntimeException("Stub!"); } in CopyOnWriteArrayList() method in CopyOnWriteArrayList
/libcore/ojluni/src/main/java/java/security/
DUnresolvedPermissionCollection.java34 import java.util.concurrent.CopyOnWriteArrayList;
92 new CopyOnWriteArrayList<>(); in add()
212 List<UnresolvedPermission> list = new CopyOnWriteArrayList<>(vec); in readObject()
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/
DCopyOnWriteArrayList.java40 public class CopyOnWriteArrayList<E> class
46 public CopyOnWriteArrayList() { in CopyOnWriteArrayList() method in CopyOnWriteArrayList
50 public CopyOnWriteArrayList(java.util.Collection<? extends E> c) { in CopyOnWriteArrayList() method in CopyOnWriteArrayList
54 public CopyOnWriteArrayList(E[] toCopyIn) { in CopyOnWriteArrayList() method in CopyOnWriteArrayList
335 COWSubList(java.util.concurrent.CopyOnWriteArrayList<E> list, int fromIndex, int toIndex) { in COWSubList()
417 private final java.util.concurrent.CopyOnWriteArrayList<E> l;
DCopyOnWriteArraySet.java125 private final java.util.concurrent.CopyOnWriteArrayList<E> al;
/libcore/ojluni/annotations/sdk/nullability/java/util/concurrent/
DCopyOnWriteArrayList.annotated.java46 public class CopyOnWriteArrayList<E> implements java.util.List<E>, java.util.RandomAccess, java.lan… class
48 public CopyOnWriteArrayList() { throw new RuntimeException("Stub!"); } in CopyOnWriteArrayList() method in CopyOnWriteArrayList
50 public CopyOnWriteArrayList(@libcore.util.NonNull java.util.Collection<? extends @libcore.util.Null… in CopyOnWriteArrayList() method in CopyOnWriteArrayList
52 public CopyOnWriteArrayList(E @libcore.util.NonNull [] toCopyIn) { throw new RuntimeException("Stub… in CopyOnWriteArrayList() method in CopyOnWriteArrayList
/libcore/ojluni/src/test/java/util/Collection/
DHotPotatoes.java40 import java.util.concurrent.CopyOnWriteArrayList;
70 testPotato(implClazz, CopyOnWriteArrayList.class); in testImplementation()
DBiggernYours.java47 import java.util.concurrent.CopyOnWriteArrayList;
236 new CopyOnWriteArrayList(),
237 new CopyOnWriteArrayList() {
DIteratorAtEnd.java56 import java.util.concurrent.CopyOnWriteArrayList;
95 testCollection(new CopyOnWriteArrayList()); in testCopyOnWriteArrayList()
DCollectionDefaults.java88 java.util.concurrent.CopyOnWriteArrayList<Integer>::new,
DMOAT.java103 testCollection(new CopyOnWriteArrayList<Integer>()); in realMain()
104 testCollection(new CopyOnWriteArrayList<Integer>().subList(0,0)); in realMain()
1054 checkListIndexOf(new CopyOnWriteArrayList(l), index, lastIndex); in testListIndexOf()
/libcore/ojluni/src/main/java/java/sql/
DDriverManager.java33 import java.util.concurrent.CopyOnWriteArrayList;
87 …private final static CopyOnWriteArrayList<DriverInfo> registeredDrivers = new CopyOnWriteArrayList
/libcore/ojluni/src/test/java/util/SequencedCollection/
DBasic.java28 import java.util.concurrent.CopyOnWriteArrayList;
113 new Object[] { "COWAL", new CopyOnWriteArrayList<>(ORIGINAL), ORIGINAL }, in populated()
133 new Object[] { "COWAL", new CopyOnWriteArrayList<>(), List.of() }, in empties()
155 new Object[] { "COWAL", new CopyOnWriteArrayList<>(ORIGINAL), ORIGINAL }, in adds()
176 new Object[] { "COWAL", new CopyOnWriteArrayList<>(ORIGINAL), ORIGINAL }, in removes()
192 new Object[] { "COWAL", new CopyOnWriteArrayList<>(), List.of() }, in emptyRemoves()
209 new Object[] { "COWAL", new CopyOnWriteArrayList<>(ORIGINAL), ORIGINAL }, in serializable()
226 new Object[] { "COWAL", new CopyOnWriteArrayList<>(ORIGINAL).reversed() }, in notSerializable()
242 new Object[] { "COWAL", new CopyOnWriteArrayList<>(ORIGINAL) }, in doubleReverse()
314 new Object[] { "COWAL", mode, new CopyOnWriteArrayList<>(ORIGINAL), ORIGINAL }, in subListMods()
/libcore/luni/src/test/java/libcore/java/net/
DConcurrentCloseTest.java35 import java.util.concurrent.CopyOnWriteArrayList;
127 final List<Throwable> thrownExceptions = new CopyOnWriteArrayList<Throwable>(); in test_read_multiple()
/libcore/ojluni/src/test/java/util/Collections/
DRacingCollections.java56 import java.util.concurrent.CopyOnWriteArrayList;
264 list.add(new CopyOnWriteArrayList<Integer>()); in newConcurrentLists()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DCollectionAndMapModifyStreamTest.java33 import java.util.concurrent.CopyOnWriteArrayList;
/libcore/ojluni/src/main/java/java/util/logging/
DLogger.java37 import java.util.concurrent.CopyOnWriteArrayList;
258 private final CopyOnWriteArrayList<Handler> handlers =
259 new CopyOnWriteArrayList<>();
/libcore/ojluni/annotations/hiddenapi/java/util/logging/
DLogger.java489 private final java.util.concurrent.CopyOnWriteArrayList<java.util.logging.Handler> handlers;
/libcore/
Dopenjdk_java_files.bp988 "ojluni/src/main/java/java/util/concurrent/CopyOnWriteArrayList.java",

12