Searched defs:list (Results 1 - 23 of 23) sorted by relevance

/libcore/luni/src/main/java/java/util/prefs/
H A DNodeSet.java10 ArrayList<Node> list = new ArrayList<Node>(); field in class:NodeSet
14 list.add(nodes.next());
19 return list.size();
25 result = list.get(index);
/libcore/luni/src/main/java/libcore/util/
H A DCollectionUtils.java82 * Sorts and removes duplicate elements from {@code list}. This method does
85 public static <T> void removeDuplicates(List<T> list, Comparator<? super T> comparator) { argument
86 Collections.sort(list, comparator);
88 for (int i = 1; i < list.size(); i++) {
89 if (comparator.compare(list.get(j - 1), list.get(i)) != 0) {
90 T object = list.get(i);
91 list.set(j++, object);
94 if (j < list.size()) {
95 list
[all...]
/libcore/support/src/test/java/tests/support/
H A DSupport_ListTest.java27 List<Integer> list; // must contain the Integers 0 to 99 in order field in class:Support_ListTest
35 list = l;
43 elem = list.get(counter);
48 assertTrue("ListTest - hashCode failed", hashCode == list.hashCode());
50 list.add(50, new Integer(1000));
51 assertTrue("ListTest - a) add with index failed--did not insert", list
55 list.get(51).equals(new Integer(50)));
58 list.get(49).equals(new Integer(49)));
60 list.set(50, new Integer(2000));
61 assertTrue("ListTest - a) set failed--did not set", list
128 t_listIterator(List<Integer> list) argument
[all...]
/libcore/luni/src/main/java/java/lang/ref/
H A DReferenceQueue.java151 static void add(Reference<?> list) { argument
154 unenqueued = list;
161 // Add our list to the end. Update the pendingNext to point back to enqueued.
162 last.pendingNext = list;
163 last = list;
164 while (last.pendingNext != list) {
/libcore/luni/src/main/java/java/util/regex/
H A DSplitter.java117 ArrayList<String> list = new ArrayList<String>();
120 while (list.size() + 1 != limit && matcher.find()) {
121 list.add(input.substring(begin, matcher.start()));
124 return finishSplit(list, input, begin, limit);
127 private static String[] finishSplit(List<String> list, String input, int begin, int limit) { argument
130 list.add(input.substring(begin));
132 list.add("");
135 int i = list.size() - 1;
136 while (i >= 0 && list.get(i).isEmpty()) {
137 list
[all...]
/libcore/luni/src/main/java/libcore/io/
H A DEventLogger.java47 public void report (int code, Object... list); argument
55 public void report (int code, Object... list) { argument
58 for (Object o : list) {
66 public static void writeEvent(int code, Object... list) { argument
67 getReporter().report(code, list);
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
H A DNodeListImpl.java42 NodeListImpl(List<NodeImpl> list) { argument
43 children = list;
/libcore/luni/src/test/java/libcore/java/util/concurrent/
H A DCopyOnWriteArrayListTest.java36 CopyOnWriteArrayList<String> list = new CopyOnWriteArrayList<String>();
37 list.addAll(Arrays.asList("a", "b", "c", "d", "e"));
38 Iterator<String> abcde = list.iterator();
40 list.set(1, "B");
48 * The sub list throws on non-structural changes, even though that disagrees
53 CopyOnWriteArrayList<String> list = new CopyOnWriteArrayList<String>();
54 list.addAll(Arrays.asList("a", "b", "c", "d", "e"));
55 List<String> bcd = list.subList(1, 4);
56 list.set(2, "C");
65 CopyOnWriteArrayList<String> list
176 testAddAllIsAtomic(final List<Object> list) argument
[all...]
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/
H A DMyCertificateFactorySpi.java47 // mode: false - list of encodings is empty
48 // mode: true - list of encodings consists of 2 elements
52 private Set<String> list; field in class:MyCertificateFactorySpi
57 list = new HashSet<String>();
58 list.add("aa");
59 list.add("bb");
135 list.clear();
137 return list.iterator();
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DObjectInputStream2Test.java76 assertTrue("should construct super", A.list.contains(b));
77 assertFalse("should not construct self", B.list.contains(b));
122 static final ArrayList<A> list = new ArrayList<A>(); field in class:ObjectInputStream2Test.A
128 list.add(this);
134 static final ArrayList<A> list = new ArrayList<A>(); field in class:ObjectInputStream2Test.B
139 list.add(this);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DAbstractListTest.java61 List list = new ArrayList();
62 list.add(new Integer(3));
63 list.add(new Integer(15));
64 list.add(new Integer(5));
65 list.add(new Integer(1));
66 list.add(new Integer(7));
68 Iterator i = list.iterator();
74 + " got: " + list.hashCode(), hashCode == list.hashCode());
81 SimpleList list
214 ArrayList<E> list = new ArrayList<E>(); field in class:AbstractListTest.MockArrayList
[all...]
H A DCollectionsTest.java104 // ensure the list either contains the numbers from 0 to size-1 or
142 // answer true iff the list is filled with a counting sequence
144 // else the list with be filled starting at 0 to size - 1
154 // answer the number of checks that have been performed on the list
184 // ensure the list either contains the numbers from 0 to size-1 or
229 // answer true iff the list is filled with a counting sequence
231 // else the list with be filled starting at 0 to size - 1
241 // answer the number of checks that have been performed on the list
263 // Ensure a NPE is thrown if the list is NULL
266 fail("Expected NullPointerException for null list paramete
615 testShuffle(List list, String type, boolean random) argument
948 testRotate(List list, String type) argument
995 getString(List list) argument
[all...]
/libcore/libart/src/main/java/java/lang/
H A DDaemons.java132 * pending list to the managed reference queue.
143 Reference<?> list;
149 list = ReferenceQueue.unenqueued;
155 enqueue(list);
159 private void enqueue(Reference<?> list) { argument
160 Reference<?> start = list;
163 Reference<?> next = list.pendingNext;
164 list.pendingNext = null;
165 list.enqueueInternal();
166 list
[all...]
H A DThreadGroup.java453 public void list() { method in class:ThreadGroup
456 list(0);
467 private void list(int levels) { method in class:ThreadGroup
480 group.list(levels);
/libcore/luni/src/main/java/java/util/
H A DAbstractList.java33 * A counter for changes to the list.
155 SubAbstractListRandomAccess(AbstractList<E> list, int start, int end) { argument
156 super(list, start, end);
178 SubAbstractList<E> list, int offset, int length) {
180 subList = list;
236 SubAbstractList(AbstractList<E> list, int start, int end) { argument
237 fullList = list;
440 * if adding to this list is not supported.
442 * if the class of an object is inappropriate for this list.
444 * if an object cannot be added to this list
177 SubAbstractListIterator(ListIterator<E> it, SubAbstractList<E> list, int offset, int length) argument
[all...]
H A DProperties.java51 * {@code Properties} list which specifies the default
192 public void list(PrintStream out) { method in class:Properties
200 public void list(PrintWriter out) { method in class:Properties
452 * @return a set of keys in the property list
H A DLinkedList.java27 * LinkedList is an implementation of {@link List}, backed by a doubly-linked list.
33 * as a list if you expect your lists to contain zero or one element, but still require the
63 final LinkedList<ET> list; field in class:LinkedList.LinkIterator
68 list = object;
69 expectedModCount = list.modCount;
70 if (location >= 0 && location <= list.size) {
71 // pos ends up as -1 if list is empty, it ranges from -1 to
72 // list.size - 1
74 link = list.voidLink;
75 if (location < list
191 private final LinkedList<ET> list; field in class:LinkedList.ReverseLinkIterator
[all...]
H A DResourceBundle.java169 * in a list of possible bundle names.
172 * German part of Switzerland (de_CH) and the default {@code Locale} en_US the list
183 * This list also shows the order in which the bundles will be searched for a requested
663 public NoFallbackControl(List<String> list) { argument
664 super.format = list;
712 * a list defines default format
718 * a list defines java class format
724 * a list defines property format
806 * Returns a list of candidate locales according to {@code baseName} in
833 * Returns a list o
[all...]
H A DCollections.java487 return new SynchronizedRandomAccessList<E>(list.subList(start, end), mutex);
503 return new SynchronizedList<E>(list);
509 final List<E> list; field in class:Collections.SynchronizedList
513 list = l;
518 list = l;
523 list.add(location, object);
529 return list.addAll(location, collection);
535 return list.equals(object);
541 return list.get(location);
547 return list
1034 final List<E> list; field in class:Collections.UnmodifiableList
1417 binarySearch(List<? extends Comparable<? super T>> list, T object) argument
1475 binarySearch(List<? extends T> list, T object, Comparator<? super T> comparator) argument
1576 fill(List<? super T> list, T object) argument
1722 reverse(List<?> list) argument
1778 shuffle(List<?> list) argument
1793 shuffle(List<?> list, Random random) argument
1866 sort(List<T> list) argument
1895 sort(List<T> list, Comparator<? super T> comparator) argument
1931 swap(List<?> list, int index1, int index2) argument
1963 replaceAll(List<T> list, T obj, T obj2) argument
2045 indexOfSubList(List<?> list, List<?> sublist) argument
2112 lastIndexOfSubList(List<?> list, List<?> sublist) argument
2172 public static <T> ArrayList<T> list(Enumeration<T> enumeration) { method in class:Collections
2204 synchronizedList(List<T> list) argument
2303 unmodifiableList(List<? extends E> list) argument
2524 checkedList(List<E> list, Class<E> type) argument
[all...]
/libcore/luni/src/test/java/libcore/java/lang/reflect/
H A DReflectionTest.java413 private int count(List<?> list, Object element) { argument
415 for (Object o : list) {
/libcore/luni/src/main/java/java/io/
H A DFile.java49 * various {@code list} methods) are converted to strings by decoding them as UTF-8
735 * directory are not returned as part of the list.
739 public String[] list() { method in class:File
746 * Gets a list of the files in the directory represented by this file. This
747 * list is then filtered through a FilenameFilter and the names of files
753 * directories are not returned as part of the list.
759 public String[] list(FilenameFilter filter) { method in class:File
760 String[] filenames = list();
782 return filenamesToFiles(list());
786 * Gets a list o
[all...]
/libcore/luni/src/test/java/libcore/java/net/
H A DURLConnectionTest.java2522 private void assertContains(List<String> list, String value) { argument
2523 assertTrue(list.toString(), list.contains(value));
2526 private void assertContainsNoneMatching(List<String> list, String pattern) { argument
2527 for (String header : list) {
/libcore/benchmarks/libs/
H A Dcaliper.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/caliper/ com/google/caliper/AllocationMeasurer ...

Completed in 1170 milliseconds