Home
last modified time | relevance | path

Searched refs:al (Results 1 – 15 of 15) sorted by relevance

/libcore/ojluni/src/main/java/java/util/concurrent/
DCopyOnWriteArraySet.java103 private final CopyOnWriteArrayList<E> al; field in CopyOnWriteArraySet
109 al = new CopyOnWriteArrayList<E>(); in CopyOnWriteArraySet()
123 al = new CopyOnWriteArrayList<E>(cc.al); in CopyOnWriteArraySet()
126 al = new CopyOnWriteArrayList<E>(); in CopyOnWriteArraySet()
127 al.addAllAbsent(c); in CopyOnWriteArraySet()
137 return al.size(); in size()
146 return al.isEmpty(); in isEmpty()
158 return al.contains(o); in contains()
178 return al.toArray(); in toArray()
223 return al.toArray(a); in toArray()
[all …]
DForkJoinPool.java857 ForkJoinTask<?>[] a; int n, al, s; in isEmpty() local
860 (al = a.length) == 0 || in isEmpty()
861 a[(al - 1) & (s - 1)] == null))); in isEmpty()
872 int s = top, al, d; ForkJoinTask<?>[] a; in push() local
873 if ((a = array) != null && (al = a.length) > 0) { in push()
874 a[(al - 1) & s] = task; // relaxed writes OK in push()
881 else if (al + d == 1) in push()
920 int b = base, s = top, al, i; ForkJoinTask<?>[] a; in pop() local
921 if ((a = array) != null && b != s && (al = a.length) > 0) { in pop()
922 int index = (al - 1) & --s; in pop()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DConcurrentModTest.java35 AbstractList al = new ArrayList(); in testGet() local
40 al.add(one); in testGet()
41 al.add(two); in testGet()
42 al.add(three); in testGet()
43 al.add(four); in testGet()
44 List sub = al.subList(1, 3); in testGet()
50 al.remove(1); // remove the 2.0 in testGet()
61 al.get(-1); in testGet()
68 al.get(al.size()+1); in testGet()
79 AbstractList al = new ArrayList(); in testSet() local
[all …]
DAbstractListTest.java159 List al = new ArrayList(); in test_subListII() local
161 al.add(new Integer(i)); in test_subListII()
165 al.subList(3, 7) instanceof RandomAccess); in test_subListII()
182 List al = new ArrayList(); in test_subList_empty() local
183 al.add("one"); in test_subList_empty()
184 List emptySubList = al.subList(0, 0); in test_subList_empty()
307 AbstractList al = new ArrayList(); in test_indexOfLjava_lang_Object() local
308 al.add(0); in test_indexOfLjava_lang_Object()
309 al.add(1); in test_indexOfLjava_lang_Object()
310 al.add(2); in test_indexOfLjava_lang_Object()
[all …]
DArrayListTest.java62 ArrayList al = new ArrayList(5); in test_ConstructorI() local
63 assertEquals("Incorrect arrayList created", 0, al.size()); in test_ConstructorI()
65 al = new ArrayList(0); in test_ConstructorI()
66 assertEquals("Incorrect arrayList created", 0, al.size()); in test_ConstructorI()
80 ArrayList al = new ArrayList(Arrays.asList(objArray)); in test_ConstructorLjava_util_Collection() local
81 assertTrue("arrayList created from collection has incorrect size", al in test_ConstructorLjava_util_Collection()
86 al.get(counter) == objArray[counter]); in test_ConstructorLjava_util_Collection()
541 ArrayList al = new ArrayList(capacity); in test_ensureCapacityI() local
544 al.add(i, new Object()); in test_ensureCapacityI()
546 al.add(i, testObject); in test_ensureCapacityI()
[all …]
DCollectionsTest.java328 ArrayList al = new ArrayList(); in test_copyLjava_util_ListLjava_util_List() local
331 al.addAll(myReversedLinkedList); in test_copyLjava_util_ListLjava_util_List()
332 al.add(extraElement); in test_copyLjava_util_ListLjava_util_List()
333 al.add(extraElement2); in test_copyLjava_util_ListLjava_util_List()
334 Collections.copy(al, ll); in test_copyLjava_util_ListLjava_util_List()
337 .get(i), al.get(i)); in test_copyLjava_util_ListLjava_util_List()
340 extraElement == al.get(llSize) in test_copyLjava_util_ListLjava_util_List()
341 && extraElement2 == al.get(llSize + 1)); in test_copyLjava_util_ListLjava_util_List()
454 ArrayList al = new ArrayList(); in test_maxLjava_util_Collection() local
457 Collections.max(al); in test_maxLjava_util_Collection()
[all …]
DAbstractSequentialListTest.java60 AbstractSequentialList<String> al = new ASLT<String>(); in test_addAll_ILCollection() local
66 al.addAll(c); in test_addAll_ILCollection()
67 assertTrue("Should return true", al.addAll(2, c)); in test_addAll_ILCollection()
/libcore/luni/src/test/java/libcore/java/util/
DOldAndroidArrayListTest.java79 ArrayList al = new ArrayList(); in testArrayList()
81 assertFalse(al.remove(null)); in testArrayList()
82 assertFalse(al.remove("string")); in testArrayList()
84 al.add("string"); in testArrayList()
85 al.add(null); in testArrayList()
87 assertTrue(al.remove(null)); in testArrayList()
88 assertTrue(al.remove("string")); in testArrayList()
DOldCollectionsTest.java747 ArrayList al = new ArrayList<Integer>(); in test_checkedCollectionLjava_util_CollectionLjava_lang_Class() local
749 Collection c = Collections.checkedCollection(al, Integer.class); in test_checkedCollectionLjava_util_CollectionLjava_lang_Class()
762 ArrayList al = new ArrayList<Integer>(); in test_checkedListLjava_util_ListLjava_lang_Class() local
764 List l = Collections.checkedList(al, Integer.class); in test_checkedListLjava_util_ListLjava_lang_Class()
/libcore/ojluni/src/main/java/java/util/
DArraysParallelSortHelpers.java213 T t, al, ar; in compute() local
214 if (c.compare((al = a[lb]), (ar = a[rb])) <= 0) { in compute()
215 lb++; t = al; in compute()
326 byte t, al, ar; in compute()
327 if ((al = a[lb]) <= (ar = a[rb])) { in compute()
328 lb++; t = al; in compute()
437 char t, al, ar; in compute() local
438 if ((al = a[lb]) <= (ar = a[rb])) { in compute()
439 lb++; t = al; in compute()
548 short t, al, ar; in compute() local
[all …]
DFormatter.java2545 ArrayList<FormatString> al = new ArrayList<>(); in parse() local
2553 al.add(new FixedString(s.substring(plainTextStart, in parse()
2559 al.add(fsp.getFormatSpecifier()); in parse()
2563 return al.toArray(new FormatString[al.size()]); in parse()
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/
DCopyOnWriteArraySet.java125 private final java.util.concurrent.CopyOnWriteArrayList<E> al; field in CopyOnWriteArraySet
128 al = null;
/libcore/ojluni/src/main/java/sun/security/x509/
DExtendedKeyUsageExtension.java306 List<String> al = new ArrayList<String>(keyUsages.size()); in getExtendedKeyUsage() local
308 al.add(oid.toString()); in getExtendedKeyUsage()
310 return al; in getExtendedKeyUsage()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DTestCertUtils.java772 ArrayList<String> al = new ArrayList<String>(); in genNames() local
796 if (!(rootName.equals(name) || al.contains(name))) { in genNames()
798 al.add(name); in genNames()
810 return (String[]) al.toArray(new String[al.size()]); in genNames()
/libcore/jsr166-tests/src/test/java/jsr166/
DForkJoinPoolTest.java410 ArrayList<ForkJoinTask> al = new ArrayList();
411 p.drainTasksTo(al);
412 assertTrue(al.size() > 0);
413 for (ForkJoinTask r : al) {