Searched refs:elements (Results 1 - 25 of 34) sorted by relevance

12

/libcore/luni/src/main/java/java/security/
H A DPermissionsHash.java53 public Enumeration elements() { method in class:PermissionsHash
54 return perms.elements();
68 for (Enumeration elements = elements(); elements.hasMoreElements();) {
69 if (((Permission)elements.nextElement()).implies(permission)) {
H A DAllPermissionCollection.java28 @Override public Enumeration<Permission> elements() { return null; } method in class:AllPermissionCollection
H A DPermissionCollection.java32 public abstract Enumeration<Permission> elements(); method in class:PermissionCollection
H A DPermissions.java29 public Enumeration<Permission> elements() { return null; } method in class:Permissions
/libcore/luni/src/main/java/java/util/
H A DArrayDeque.java17 * Null elements are prohibited. This class is likely to be faster than
51 * @param <E> the type of elements held in this collection
57 * The array in which the elements of the deque are stored.
64 * deque elements are always null.
66 private transient Object[] elements; field in class:ArrayDeque
90 * Allocate empty array to hold the given number of elements.
92 * @param numElements the number of elements to hold
96 // Find the best power of two to hold elements.
107 if (initialCapacity < 0) // Too many elements, must back off
108 initialCapacity >>>= 1;// Good luck allocating 2 ^ 30 elements
[all...]
H A DPriorityQueue.java24 * A PriorityQueue holds elements on a priority heap, which orders the elements
26 * construction time. If the queue uses natural ordering, only elements that are
49 private transient E[] elements; field in class:PriorityQueue
87 elements = newElementArray(initialCapacity);
92 * Constructs a priority queue that contains the elements of a collection.
95 * elements.
98 * the collection whose elements will be added to the priority
101 * if any of the elements in the collection are not comparable.
103 * if any of the elements i
[all...]
H A DDictionary.java38 * Returns an enumeration on the elements of this dictionary.
45 public abstract Enumeration<V> elements(); method in class:Dictionary
71 * @see #elements
88 * @see #elements
111 * @see #elements
H A DEnumSet.java34 * Creates an empty enum set. The permitted elements are of type
38 * the class object for the elements contained.
39 * @return an empty enum set, with permitted elements of type {@code
56 * Creates an enum set filled with all the enum elements of the specified
60 * the class object for the elements contained.
61 * @return an enum set with elements solely from the specified element type.
72 * Creates an enum set. All the contained elements are of type
73 * Class&lt;E&gt;, and the contained elements are the same as those
78 * @return an enum set with all the elements from the specified enum set.
89 * Creates an enum set. The contained elements ar
324 private E[] elements; field in class:EnumSet.SerializationProxy
[all...]
/libcore/luni/src/main/java/java/util/concurrent/
H A DCopyOnWriteArrayList.java77 private transient volatile Object[] elements; field in class:CopyOnWriteArrayList
83 elements = EmptyArray.OBJECT;
87 * Creates a new instance containing the elements of {@code collection}.
95 * Creates a new instance containing the elements of {@code array}.
98 this.elements = Arrays.copyOf(array, array.length, Object[].class);
104 result.elements = result.elements.clone();
112 return elements.length;
117 return (E) elements[index];
125 Object[] snapshot = elements;
[all...]
H A DCopyOnWriteArraySet.java58 * @param <E> the type of elements held in this collection
74 * Creates a set containing all of the elements of the specified
77 * @param c the collection of elements to initially contain
86 * Returns the number of elements in this set.
88 * @return the number of elements in this set
95 * Returns <tt>true</tt> if this set contains no elements.
97 * @return <tt>true</tt> if this set contains no elements
117 * Returns an array containing all of the elements in this set.
118 * If this set makes any guarantees as to what order its elements
120 * elements i
[all...]
/libcore/luni/src/main/java/org/apache/harmony/lang/annotation/
H A DAnnotationFactory.java90 * @param elements name-value pairs representing elements of the annotation
95 AnnotationMember[] elements)
97 AnnotationFactory antn = new AnnotationFactory(annotationType, elements);
103 private AnnotationMember[] elements; field in class:AnnotationFactory
117 elements = defs;
120 elements = new AnnotationMember[defs.length];
121 next: for (int i = elements.length - 1; i >= 0; i-- ){
124 elements[i] = val.setDefinition(defs[i]);
128 elements[
93 createAnnotation( Class<? extends Annotation> annotationType, AnnotationMember[] elements) argument
[all...]
/libcore/luni/src/test/java/tests/api/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 DNoSuchElementExceptionTest.java35 v.elements().nextElement();
H A DEnumSetTest.java101 // test enum type with more than 64 elements
123 // Test HugeEnumSet with 65 elements
131 // Test HugeEnumSet with 130 elements
195 // test enum with more than 64 elements
228 // test enum type with more than 64 elements
278 // test enum type with more than 64 elements
333 Enum[] elements = EmptyEnum.class.getEnumConstants();
334 for(int i = 0; i < elements.length; i++) {
335 emptySet.add(elements[i]);
375 elements
[all...]
H A DHashtableTest.java159 Enumeration el = h.elements();
229 Enumeration e = elmVector.elements();
245 * java.util.Hashtable#elements()
248 // Test for method java.util.Enumeration java.util.Hashtable.elements()
249 Enumeration elms = ht10.elements();
263 // * java.util.Hashtable#elements()
269 // // these three elements hash to the same bucket in a 7 element Hashtable
276 // Enumeration en = ht.elements();
308 Enumeration e = elmVector.elements();
467 Enumeration e = keyVector.elements();
[all...]
/libcore/luni/src/main/java/javax/security/auth/
H A DSubject.java502 private LinkedList<SST> elements; field in class:Subject.SecureSet
537 elements = new LinkedList<SST>();
541 // all collection elements are verified before adding
551 if (trust || !elements.contains(o)) {
552 elements.add(o);
579 if (!elements.contains(o)) {
580 elements.add(o);
595 return new SecureIterator(elements.iterator()) {
607 return new SecureIterator(elements.iterator());
621 return elements
[all...]
/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/dalvik/src/main/java/dalvik/system/
H A DDexPathList.java51 /** list of dex/resource (class path) elements */
54 /** list of native library directory elements */
62 * @param dexPath list of dex/resource path elements, separated by
64 * @param libraryPath list of native library directory path elements,
102 * Splits the given dex path string into elements using the path
103 * separator, pruning out any elements that do not refer to existing
112 * Splits the given library directory path string into elements
114 * defaults to {@code ":"} on Android, appending on the elements
115 * from the system library path, and pruning out any elements that
136 * Splits the given path strings into file elements usin
[all...]
/libcore/luni/src/main/java/java/io/
H A DSequenceInputStream.java57 e = inVector.elements();
62 * Constructs a new SequenceInputStream using the elements returned from
69 * if any of the elements in {@code e} is {@code null}.
/libcore/luni/src/main/java/java/util/logging/
H A DXMLFormatter.java119 StackTraceElement[] elements = t.getStackTrace();
120 for (StackTraceElement e : elements) {
/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/luni/src/main/java/org/apache/harmony/security/
H A DSystemScope.java156 return names.elements();
/libcore/luni/src/test/java/libcore/xml/
H A DDomTest.java1466 NodeList elements = item.getElementsByTagNameNS("http://addons", "option");
1467 assertEquals(option1, elements.item(0));
1468 assertEquals(option2, elements.item(1));
1469 assertEquals(2, elements.getLength());
1473 NodeList elements = item.getElementsByTagName("a:option");
1474 assertEquals(option1, elements.item(0));
1475 assertEquals(option2, elements.item(1));
1476 assertEquals(2, elements.getLength());
1481 NodeList elements = item.getElementsByTagName("nutrition");
1482 assertEquals(nutrition, elements
[all...]
/libcore/luni/src/main/native/
H A Dlibcore_io_Memory.cpp174 Scoped ## JNI_NAME ## ArrayRW elements(env, dst); \
175 if (elements.get() == NULL) { \
179 SWAP_FN(reinterpret_cast<SWAP_TYPE*>(elements.get()) + dstOffset, src, count); \
227 Scoped ## JNI_NAME ## ArrayRO elements(env, src); \
228 if (elements.get() == NULL) { \
231 const SWAP_TYPE* src = reinterpret_cast<const SWAP_TYPE*>(elements.get()) + srcOffset; \
/libcore/luni/src/main/java/java/sql/
H A DConnection.java827 * Returns a new {@link Array} containing the given {@code elements}.
828 * @param typeName the SQL name of the type of the array elements
832 public Array createArrayOf(String typeName, Object[] elements) throws SQLException; argument

Completed in 882 milliseconds

12