Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/util/concurrent/
DCopyOnWriteArraySet.java102 private final CopyOnWriteArrayList<E> al; field in CopyOnWriteArraySet
108 al = new CopyOnWriteArrayList<E>(); in CopyOnWriteArraySet()
122 al = new CopyOnWriteArrayList<E>(cc.al); in CopyOnWriteArraySet()
125 al = new CopyOnWriteArrayList<E>(); in CopyOnWriteArraySet()
126 al.addAllAbsent(c); in CopyOnWriteArraySet()
136 return al.size(); in size()
145 return al.isEmpty(); in isEmpty()
157 return al.contains(o); in contains()
177 return al.toArray(); in toArray()
222 return al.toArray(a); in toArray()
[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(Integer.valueOf(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.java329 ArrayList al = new ArrayList(); in test_copyLjava_util_ListLjava_util_List() local
332 al.addAll(myReversedLinkedList); in test_copyLjava_util_ListLjava_util_List()
333 al.add(extraElement); in test_copyLjava_util_ListLjava_util_List()
334 al.add(extraElement2); in test_copyLjava_util_ListLjava_util_List()
335 Collections.copy(al, ll); in test_copyLjava_util_ListLjava_util_List()
338 .get(i), al.get(i)); in test_copyLjava_util_ListLjava_util_List()
341 extraElement == al.get(llSize) in test_copyLjava_util_ListLjava_util_List()
342 && extraElement2 == al.get(llSize + 1)); in test_copyLjava_util_ListLjava_util_List()
455 ArrayList al = new ArrayList(); in test_maxLjava_util_Collection() local
458 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/ojluni/src/main/java/jdk/random/
DL128X128MixRandom.java136 private final long ah, al; field in L128X128MixRandom
158 public L128X128MixRandom(long ah, long al, long sh, long sl, long x0, long x1) { in L128X128MixRandom() argument
161 this.al = al | 1; in L128X128MixRandom()
222 long ah = data[0], al = data[1], sh = data[2], sl = data[3], x0 = data[4], x1 = data[5]; in L128X128MixRandom() local
225 this.al = al | 1; in L128X128MixRandom()
261 sl = u + al; in nextLong()
DL128X256MixRandom.java145 private final long ah, al; field in L128X256MixRandom
169 … public L128X256MixRandom(long ah, long al, long sh, long sl, long x0, long x1, long x2, long x3) { in L128X256MixRandom() argument
172 this.al = al | 1; in L128X256MixRandom()
241 long ah = data[0], al = data[1], sh = data[2], sl = data[3], in L128X256MixRandom() local
245 this.al = al | 1; in L128X256MixRandom()
284 sl = u + al; in nextLong()
DL128X1024MixRandom.java146 private final long ah, al; field in L128X1024MixRandom
185 public L128X1024MixRandom(long ah, long al, long sh, long sl, in L128X1024MixRandom() argument
192 this.al = al | 1; in L128X1024MixRandom()
283 long ah = data[0], al = data[1], sh = data[2], sl = data[3]; in L128X1024MixRandom() local
286 this.al = al | 1; in L128X1024MixRandom()
337 sl = u + al; in nextLong()
/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/test/java/util/ArrayList/
DEnsureCapacity.java51 ArrayList<String> al = new ArrayList<String>(); in testArrayList() local
52 al.add("abc"); in testArrayList()
53 al.ensureCapacity(Integer.MIN_VALUE); in testArrayList()
/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/ojluni/src/main/java/java/util/
DArraysParallelSortHelpers.java221 T t, al, ar; in compute() local
222 if (c.compare((al = a[lb]), (ar = a[rb])) <= 0) { in compute()
223 lb++; t = al; in compute()
DFormatter.java2725 ArrayList<FormatString> al = new ArrayList<>(); in parse() local
2733 al.add(new FixedString(s, plainTextStart, plainTextEnd)); in parse()
2738 al.add(fsp.getFormatSpecifier()); in parse()
2742 return al; in parse()
/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/ojluni/src/test/java/util/concurrent/tck/
DForkJoinPoolTest.java428 ArrayList<ForkJoinTask> al = new ArrayList();
429 p.drainTasksTo(al);
430 assertTrue(al.size() > 0);
431 for (ForkJoinTask r : al) {
/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) {
/libcore/tools/testmapping/
DREADME33 higher granularity. Given the way that atest et al are configured, that will
/libcore/ojluni/src/test/java/nio/Buffer/
DBasicByte.java444 int al = b.limit() - b.alignmentOffset(b.limit(), 8); in testAlign() local
446 ByteBuffer ab = (ByteBuffer) b.position(ap).limit(al). in testAlign()
DBasic-X.java.template444 int al = b.limit() - b.alignmentOffset(b.limit(), 8);
446 ByteBuffer ab = (ByteBuffer) b.position(ap).limit(al).