Searched defs:elements (Results 1 - 25 of 32) sorted by relevance

12

/libcore/ojluni/src/main/java/java/security/
H A DPermissions.java43 public Enumeration<Permission> elements() { return null; } method in class:Permissions
H A DPermissionCollection.java40 public abstract Enumeration<Permission> elements(); method in class:PermissionCollection
H A DUnresolvedPermissionCollection.java120 public Enumeration<Permission> elements() { method in class:UnresolvedPermissionCollection
H A DPolicy.java113 @Override public Enumeration<Permission> elements() { method in class:Policy.UnsupportedEmptyCollection
/libcore/ojluni/src/main/java/java/util/
H A DDictionary.java82 * @see java.util.Dictionary#elements()
89 * contract for the <tt>elements</tt> method is that an
90 * <tt>Enumeration</tt> is returned that will generate all the elements
97 abstract public Enumeration<V> elements(); method in class:Dictionary
H A DEnumSet.java31 * the elements in an enum set must come from a single enum type that is
41 * elements in their <i>natural order</i> (the order in which the enum
47 * <p>Null elements are not permitted. Attempts to insert a null element
83 * The class of all the elements of this set.
118 * Creates an enum set containing all of the elements in the specified
132 * Adds all of the elements from the appropriate enum type to this enum
139 * set, initially containing the same elements (if any).
157 * <tt>EnumSet</tt> instance and contains no elements
177 * set, initially containing all the elements of this type that are
193 * one through five elements
416 private final Enum[] elements; field in class:EnumSet.SerializationProxy
[all...]
H A DJumboEnumSet.java30 * (i.e., those with more than 64 elements).
44 private long elements[]; field in class:JumboEnumSet
51 elements = new long[(universe.length + 63) >>> 6];
59 elements[fromIndex] = (-1L >>> (from.ordinal() - to.ordinal() - 1))
62 elements[fromIndex] = (-1L << from.ordinal());
64 elements[i] = -1;
65 elements[toIndex] = -1L >>> (63 - to.ordinal());
71 for (int i = 0; i < elements.length; i++)
72 elements[i] = -1;
73 elements[element
[all...]
H A DRegularEnumSet.java42 private long elements = 0L; field in class:RegularEnumSet
49 elements = (-1L >>> (from.ordinal() - to.ordinal() - 1)) << from.ordinal();
54 elements = -1L >>> -universe.length;
59 elements = ~elements;
60 elements &= -1L >>> -universe.length; // Mask unused bits
65 * Returns an iterator over the elements contained in this set. The
66 * iterator traverses the elements in their <i>natural order</i> (which is
69 * ConcurrentModificationException}; the elements are traversed as they
72 * @return an iterator over the elements containe
[all...]
H A DArrayDeque.java48 * Null elements are prohibited. This class is likely to be faster than
84 * @param <E> the type of elements held in this deque
90 * The array in which the elements of the deque are stored.
97 * deque elements are always null.
99 transient Object[] elements; // non-private to simplify nested class access field in class:ArrayDeque
123 * Allocates empty array to hold the given number of elements.
125 * @param numElements the number of elements to hold
129 // Find the best power of two to hold elements.
140 if (initialCapacity < 0) // Too many elements, must back off
141 initialCapacity >>>= 1; // Good luck allocating 2^30 elements
[all...]
/libcore/ojluni/src/main/java/javax/crypto/
H A DCryptoPermissions.java53 public Enumeration elements() { return null; } method in class:CryptoPermissions
/libcore/support/src/test/java/tests/support/
H A DSupport_Exec.java63 * Returns a command-line ready path formed by joining the path elements
66 public static String createPath(String... elements) { argument
68 for (String element : elements) {
/libcore/jsr166-tests/src/test/java/jsr166/
H A DCopyOnWriteArraySetTest.java44 static CopyOnWriteArraySet populatedSet(Integer[] elements) { argument
47 for (int i = 0; i < elements.length; i++)
48 a.add(elements[i]);
50 assertEquals(elements.length, a.size());
63 * Collection-constructed set holds all of its elements
116 * clear removes all elements from the set
126 * contains returns true for added elements
135 * Sets with equal elements are equal
185 * containsAll returns true for collections with subset of elements
218 * iterator() returns an iterator containing the elements o
[all...]
H A DCopyOnWriteArrayListTest.java47 static CopyOnWriteArrayList<Integer> populatedArray(Integer[] elements) { argument
50 for (int i = 0; i < elements.length; i++)
51 a.add(elements[i]);
53 assertEquals(elements.length, a.size());
66 * new list contains all elements of initializing array
78 * new list contains all elements of initializing collection
132 * clear removes all elements from the list
152 * contains is true for added elements
177 * lists with same elements are equal and have same hashCode
203 * containsAll returns true for collections with subset of elements
[all...]
/libcore/luni/src/main/java/libcore/reflect/
H A DAnnotationFactory.java89 * @param elements name-value pairs representing elements of the annotation
93 AnnotationMember[] elements) {
94 AnnotationFactory factory = new AnnotationFactory(annotationType, elements);
100 private AnnotationMember[] elements; field in class:AnnotationFactory
114 elements = defs;
117 elements = new AnnotationMember[defs.length];
118 next: for (int i = elements.length - 1; i >= 0; i--) {
121 elements[i] = val.setDefinition(defs[i]);
125 elements[
92 createAnnotation(Class<? extends Annotation> annotationType, AnnotationMember[] elements) argument
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DAbstractQueueTest.java39 private Object[] elements = new Object[CAPACITY]; field in class:AbstractQueueTest.MockAbstractQueue
55 return (E) elements[currentIndex];
63 elements[i] = elements[i + 1];
83 elements[size++] = o;
91 E e = (E) elements[0];
93 elements[i] = elements[i + 1];
103 return (E) elements[0];
H A DArrayListTest.java84 "arrayList created from collection has incorrect elements",
204 assertTrue("Manipulated elements < index",
207 assertTrue("Failed to ad elements properly",
210 assertTrue("Failed to ad elements properly",
289 // Inserted elements should be equal to integers array
294 // be equals to related elements in strings array
374 assertTrue("Failed to add elements properly", l.get(i).equals(
497 assertTrue("Cloned list contains incorrect elements",
506 assertTrue("nulls test - Cloned list contains incorrect elements",
600 assertTrue("Returned true for existing list with elements", !alis
1213 shrinksOnSize(T... elements) argument
[all...]
/libcore/json/src/test/java/org/json/
H A DParsingTest.java220 private JSONArray array(Object... elements) { argument
221 return new JSONArray(Arrays.asList(elements));
/libcore/luni/src/test/java/libcore/java/lang/reflect/
H A DMethodOverridesTest.java174 private <T> void assertContains(Collection<T> elements, T value) { argument
175 assertTrue("Expected " + value + " in " + elements, elements.contains(value));
/libcore/support/src/test/java/libcore/javax/net/ssl/
H A DSSLConfigurationAsserts.java241 * Asserts that the {@code container} contains all the {@code elements}.
243 private static void assertContainsAll(String message, String[] container, String[] elements) { argument
244 Set<String> elementsNotInContainer = new HashSet<String>(Arrays.asList(elements));
/libcore/dalvik/src/main/java/dalvik/system/
H A DDexFile.java72 * @param elements
73 * the temporary dex path list elements from DexPathList.makeElements
75 DexFile(File file, ClassLoader loader, DexPathList.Element[] elements) argument
77 this(file.getPath(), loader, elements);
108 * @param elements
109 * the temporary dex path list elements from DexPathList.makeElements
111 DexFile(String fileName, ClassLoader loader, DexPathList.Element[] elements) throws IOException { argument
112 mCookie = openDexFile(fileName, null, 0, loader, elements);
130 * @param elements
131 * The temporary dex path list elements fro
133 DexFile(String sourceName, String outputName, int flags, ClassLoader loader, DexPathList.Element[] elements) argument
209 loadDex(String sourcePathName, String outputPathName, int flags, ClassLoader loader, DexPathList.Element[] elements) argument
364 openDexFile(String sourceName, String outputName, int flags, ClassLoader loader, DexPathList.Element[] elements) argument
396 openDexFileNative(String sourceName, String outputName, int flags, ClassLoader loader, DexPathList.Element[] elements) argument
[all...]
H A DDexPathList.java58 * List of dex/resource (class path) elements.
64 /** List of native library path elements. */
83 * @param dexPath list of dex/resource path elements, separated by
85 * @param librarySearchPath list of native library directory path elements,
217 * Splits the given dex path string into elements using the path
218 * separator, pruning out any elements that do not refer to existing
226 * Splits the given path strings into file elements using the path
227 * separator, combining the results and filtering out elements
231 * are empty or {@code null}, or all elements get pruned out, then
257 * Makes an array of dex/resource path elements, on
355 loadDexFile(File file, File optimizedDirectory, ClassLoader loader, Element[] elements) argument
[all...]
/libcore/ojluni/src/main/java/java/sql/
H A DConnection.java1268 * <b>Note: </b>The JDBC driver is responsible for mapping the elements
1276 * @param typeName the SQL name of the type the elements of the array map to. The typeName is a
1279 * @param elements the elements that populate the returned object
1280 * @return an Array object whose elements map to the specified SQL type
1286 Array createArrayOf(String typeName, Object[] elements) throws argument
/libcore/ojluni/src/main/java/javax/security/auth/
H A DSubject.java970 * @serialField elements LinkedList The elements in this set.
974 new ObjectStreamField("elements", LinkedList.class),
979 LinkedList<E> elements; field in class:Subject.SecureSet
984 * this is a Principal set and all the elements are
987 * set and all the elements are of type <code>Object</code>.
989 * set and all the elements are of type <code>Object</code>.
996 this.elements = new LinkedList<E>();
1002 this.elements = new LinkedList<E>(set);
1006 return elements
[all...]
/libcore/ojluni/src/main/java/sun/net/www/
H A DMimeTable.java158 Enumeration<MimeEntry> e = entries.elements();
204 Enumeration<MimeEntry> e = elements();
220 public synchronized Enumeration<MimeEntry> elements() { method in class:MimeTable
221 return entries.elements();
401 Enumeration<MimeEntry> e = elements();
453 Enumeration e = testTable.elements();
/libcore/luni/src/main/java/java/util/concurrent/
H A DCopyOnWriteArrayList.java81 private transient volatile Object[] elements; field in class:CopyOnWriteArrayList
87 elements = EmptyArray.OBJECT;
91 * Creates a new instance containing the elements of {@code collection}.
99 * Creates a new instance containing the elements of {@code array}.
102 this.elements = Arrays.copyOf(array, array.length, Object[].class);
108 result.elements = result.elements.clone();
116 return elements.length;
121 return (E) elements[index];
129 Object[] snapshot = elements;
[all...]

Completed in 771 milliseconds

12