/libcore/luni/src/main/java/libcore/util/ |
H A D | CollectionUtils.java | 82 * 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 D | Support_ListTest.java | 27 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/libcore/io/ |
H A D | EventLogger.java | 47 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 D | NodeListImpl.java | 42 NodeListImpl(List<NodeImpl> list) { argument 43 children = list;
|
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
H A D | AdjacencyList.java | 41 * next sub-list in the process. If the index value is -1 then this 77 * the list. 90 // the original list, just for the toString method 97 * @param list a <code>List</code> of <code>List</code>s of 100 public AdjacencyList(List<List<Vertex>> list) { argument 102 mOrigList = list; 103 buildList(list, 0, null); 109 * the list through the remove method will fail. 118 * Recursive, private method which actually builds the step list from 119 * the given adjacency list [all...] |
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
H A D | TeeOpTest.java | 73 List<T> list; field in class:TeeOpTest.AbstractRecordingConsumer 77 list = Collections.synchronizedList(new ArrayList<>()); 84 assertContentsUnordered(list, td.into(new ArrayList<T>())); 92 list.add(t); 108 list.add(t); 124 list.add(t); 140 list.add(t);
|
/libcore/ojluni/src/main/java/java/lang/ref/ |
H A D | ReferenceQueue.java | 213 * Enqueue the given list of currently pending (unenqueued) references. 217 public static void enqueuePending(Reference<?> list) { argument 218 Reference<?> start = list; 220 ReferenceQueue queue = list.queue; 222 Reference<?> next = list.pendingNext; 227 list.pendingNext = list; 228 list = next; 232 // consecutive references in the list that have the same 236 Reference<?> next = list 259 add(Reference<?> list) argument [all...] |
/libcore/ojluni/src/main/java/sun/security/jca/ |
H A D | Providers.java | 35 * Collection of methods to get and set provider list. Also includes 36 * special code for the provider list during JAR verification. 50 // current system-wide provider list 55 // set providerList to empty list first in case initialization somehow 128 * Start JAR verification. This sets a special provider list for 136 // return the old thread-local provider list, usually null 144 // restore old thread-local provider list 149 * Return the current ProviderList. If the thread-local list is set, 150 * it is returned. Otherwise, the system wide list is returned. 153 ProviderList list 203 setSystemProviderList(ProviderList list) argument 219 changeThreadProviderList(ProviderList list) argument 239 beginThreadProviderList(ProviderList list) argument 249 endThreadProviderList(ProviderList list) argument [all...] |
/libcore/ojluni/src/main/java/sun/util/locale/ |
H A D | LocaleUtils.java | 221 static boolean isEmpty(List<?> list) { argument 222 return list == null || list.isEmpty();
|
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/ |
H A D | DoubleNodeTest.java | 65 private static void assertEqualsListDoubleArray(List<Double> list, double[] array) { argument 66 assertEquals(list.size(), array.length); 68 assertEquals(array[i], list.get(i));
|
H A D | IntNodeTest.java | 65 private static void assertEqualsListIntArray(List<Integer> list, int[] array) { argument 66 assertEquals(list.size(), array.length); 68 assertEquals(array[i], (int) list.get(i));
|
H A D | LongNodeTest.java | 65 private static void assertEqualsListLongArray(List<Long> list, long[] array) { argument 66 assertEquals(list.size(), array.length); 68 assertEquals(array[i], (long) list.get(i));
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/ |
H A D | MyCertificateFactorySpi.java | 47 // 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 D | ObjectInputStream2Test.java | 76 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 D | AbstractListTest.java | 61 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...] |
/libcore/luni/src/test/java/libcore/java/util/concurrent/ |
H A D | CopyOnWriteArrayListTest.java | 37 CopyOnWriteArrayList<String> list = new CopyOnWriteArrayList<String>(); 38 list.addAll(Arrays.asList("a", "b", "c", "d", "e")); 39 Iterator<String> abcde = list.iterator(); 41 list.set(1, "B"); 49 * The sub list throws on non-structural changes, even though that disagrees 54 CopyOnWriteArrayList<String> list = new CopyOnWriteArrayList<String>(); 55 list.addAll(Arrays.asList("a", "b", "c", "d", "e")); 56 List<String> bcd = list.subList(1, 4); 57 list.set(2, "C"); 66 CopyOnWriteArrayList<String> list 177 testAddAllIsAtomic(final List<Object> list) argument [all...] |
/libcore/ojluni/src/main/java/sun/nio/ch/ |
H A D | FileLockTable.java | 66 * @return The list of file locks removed 85 * SharedFileLockTable uses a list of file lock references to avoid keeping the 104 // The map value is a list of file locks represented by FileLockReferences. 105 // All access to the list must be synchronized on the list. 125 List<FileLockReference> list = lockMap.get(fileKey); 130 if (list == null) { 131 list = new ArrayList<FileLockReference>(2); 133 synchronized (list) { 134 prev = lockMap.putIfAbsent(fileKey, list); 165 removeKeyIfEmpty(FileKey fk, List<FileLockReference> list) argument 248 checkList(List<FileLockReference> list, long position, long size) argument [all...] |
/libcore/ojluni/src/main/java/java/io/ |
H A D | FileSystem.java | 177 public abstract String[] list(File f); method in class:FileSystem
|
H A D | UnixFileSystem.java | 299 public String[] list(File f) { method in class:UnixFileSystem
|
/libcore/ojluni/src/main/java/java/lang/ |
H A D | ThreadGroup.java | 379 * {@linkplain #enumerate(Thread[], boolean) enumerate}{@code (list, true)} 382 * @param list 383 * an array into which to put the list of threads 393 public int enumerate(Thread list[]) { argument 395 return enumerate(list, 0, true); 411 * int value is strictly less than the length of {@code list}. 416 * @param list 417 * an array into which to put the list of threads 431 public int enumerate(Thread list[], boolean recurse) { argument 433 return enumerate(list, 436 enumerate(Thread list[], int n, boolean recurse) argument 527 enumerate(ThreadGroup list[]) argument 565 enumerate(ThreadGroup list[], boolean recurse) argument 570 enumerate(ThreadGroup list[], int n, boolean recurse) argument 996 public void list() { method in class:ThreadGroup 999 void list(PrintStream out, int indent) { method in class:ThreadGroup [all...] |
/libcore/ojluni/src/main/java/java/util/ |
H A D | AbstractList.java | 32 * access data (such as a linked list), {@link AbstractSequentialList} should 35 * <p>To implement an unmodifiable list, the programmer needs only to extend 39 * <p>To implement a modifiable list, the programmer must additionally 41 * throws an {@code UnsupportedOperationException}). If the list is 51 * list iterator are implemented by this class, on top of the "random access" 80 * Appends the specified element to the end of this list (optional 84 * elements may be added to this list. In particular, some 96 * @param e element to be appended to this list 99 * is not supported by this list 101 * prevents it from being added to this list 618 SubList(AbstractList<E> list, int fromIndex, int toIndex) argument 774 RandomAccessSubList(AbstractList<E> list, int fromIndex, int toIndex) argument [all...] |
H A D | Properties.java | 43 * the property list is a string. 45 * A property list can contain another property list as its 46 * "defaults"; this second property list is searched if 47 * the property key is not found in the original property list. 57 * the call to the <code>propertyNames</code> or <code>list</code> method 125 * A property list that contains default values for any keys not 126 * found in this property list. 133 * Creates an empty property list with no default values. 140 * Creates an empty property list wit 1027 public void list(PrintStream out) { method in class:Properties 1055 public void list(PrintWriter out) { method in class:Properties [all...] |
/libcore/ojluni/src/main/java/java/util/stream/ |
H A D | SortedOps.java | 372 private ArrayList<T> list; field in class:SortedOps.RefSortingSink 382 list = (size >= 0) ? new ArrayList<T>((int) size) : new ArrayList<T>(); 387 list.sort(comparator); 388 downstream.begin(list.size()); 390 list.forEach(downstream::accept); 393 for (T t : list) { 399 list = null; 404 list.add(t);
|
/libcore/ojluni/src/main/java/sun/net/www/ |
H A D | MimeTable.java | 366 String[] getExtensions(String list) { argument 367 StringTokenizer tokenizer = new StringTokenizer(list, ","); 441 public void list(PrintStream out) {
|
/libcore/ojluni/src/main/native/ |
H A D | java_props_md.c | 197 * any of the names in the locale_aliases list, map it to the 199 * locale_aliases list are locales that include a language name but 437 char list[258]; local 438 sysinfo(SI_ISALIST, list, sizeof(list)); 439 sprops.cpu_isalist = strdup(list);
|