/libcore/luni/src/main/java/java/security/ |
H A D | PermissionsHash.java | 53 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 D | AllPermissionCollection.java | 28 @Override public Enumeration<Permission> elements() { return null; } method in class:AllPermissionCollection
|
H A D | PermissionCollection.java | 32 public abstract Enumeration<Permission> elements(); method in class:PermissionCollection
|
H A D | Permissions.java | 29 public Enumeration<Permission> elements() { return null; } method in class:Permissions
|
/libcore/luni/src/main/java/java/util/ |
H A D | ArrayDeque.java | 17 * 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 D | PriorityQueue.java | 24 * 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 D | Dictionary.java | 38 * 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 D | EnumSet.java | 34 * 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<E>, 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 325 private E[] elements; field in class:EnumSet.SerializationProxy [all...] |
/libcore/luni/src/main/java/java/util/concurrent/ |
H A D | CopyOnWriteArrayList.java | 77 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 D | CopyOnWriteArraySet.java | 58 * @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 {@code true} if this set contains no elements. 97 * @return {@code true} 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/libcore/reflect/ |
H A D | AnnotationFactory.java | 89 * @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/luni/src/test/java/tests/api/java/util/ |
H A D | AbstractQueueTest.java | 39 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 D | NoSuchElementExceptionTest.java | 35 v.elements().nextElement();
|
H A D | EnumSetTest.java | 101 // 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 D | HashtableTest.java | 159 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 D | Subject.java | 502 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 D | MethodOverridesTest.java | 174 private <T> void assertContains(Collection<T> elements, T value) { argument 175 assertTrue("Expected " + value + " in " + elements, elements.contains(value));
|
/libcore/luni/src/main/java/java/io/ |
H A D | SequenceInputStream.java | 57 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/dalvik/src/main/java/dalvik/system/ |
H A D | DexPathList.java | 58 * List of dex/resource (class path) elements. 77 * @param dexPath list of dex/resource path elements, separated by 79 * @param libraryPath list of native library directory path elements, 136 * Splits the given dex path string into elements using the path 137 * separator, pruning out any elements that do not refer to existing 146 * Splits the given library directory path string into elements 148 * defaults to {@code ":"} on Android, appending on the elements 149 * from the system library path, and pruning out any elements that 165 * Splits the given path strings into file elements using the path 166 * separator, combining the results and filtering out elements [all...] |
/libcore/luni/src/main/java/java/util/logging/ |
H A D | XMLFormatter.java | 119 StackTraceElement[] elements = t.getStackTrace(); 120 for (StackTraceElement e : elements) {
|
/libcore/support/src/test/java/tests/support/ |
H A D | Support_Exec.java | 63 * 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 D | SystemScope.java | 156 return names.elements();
|
/libcore/luni/src/test/java/libcore/xml/ |
H A D | DomTest.java | 1466 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 D | libcore_io_Memory.cpp | 174 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 D | Connection.java | 827 * 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
|