/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | CopyOnWriteArraySet.java | 103 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 …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | ConcurrentModTest.java | 35 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 …]
|
D | AbstractListTest.java | 159 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 …]
|
D | ArrayListTest.java | 62 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 …]
|
D | CollectionsTest.java | 328 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 …]
|
D | AbstractSequentialListTest.java | 60 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/ |
D | OldAndroidArrayListTest.java | 79 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()
|
D | OldCollectionsTest.java | 747 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/annotations/hiddenapi/java/util/concurrent/ |
D | CopyOnWriteArraySet.java | 125 private final java.util.concurrent.CopyOnWriteArrayList<E> al; field in CopyOnWriteArraySet 128 al = null;
|
/libcore/ojluni/src/main/java/java/util/ |
D | ArraysParallelSortHelpers.java | 213 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 …]
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
D | ExtendedKeyUsageExtension.java | 306 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/ |
D | TestCertUtils.java | 772 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/tools/testmapping/ |
D | README | 33 higher granularity. Given the way that atest et al are configured, that will
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | ForkJoinPoolTest.java | 428 ArrayList<ForkJoinTask> al = new ArrayList(); 429 p.drainTasksTo(al); 430 assertTrue(al.size() > 0); 431 for (ForkJoinTask r : al) {
|