Home
last modified time | relevance | path

Searched refs:elements (Results 1 – 25 of 129) sorted by relevance

123456

/libcore/ojluni/src/main/java/sun/security/util/
DAlgorithmDecomposer.java46 Set<String> elements = new HashSet<>(); in decomposeImpl() local
64 elements.add(token); in decomposeImpl()
67 return elements; in decomposeImpl()
84 Set<String> elements = decomposeImpl(algorithm); in decompose() local
94 if (elements.contains("SHA1") && !elements.contains("SHA-1")) { in decompose()
95 elements.add("SHA-1"); in decompose()
97 if (elements.contains("SHA-1") && !elements.contains("SHA1")) { in decompose()
98 elements.add("SHA1"); in decompose()
102 if (elements.contains("SHA224") && !elements.contains("SHA-224")) { in decompose()
103 elements.add("SHA-224"); in decompose()
[all …]
DAbstractAlgorithmConstraints.java83 Set<String> elements = null; in checkAlgorithm() local
95 if (elements == null) { in checkAlgorithm()
96 elements = decomposer.decompose(algorithm); in checkAlgorithm()
100 for (String element : elements) { in checkAlgorithm()
/libcore/ojluni/src/main/java/java/util/
DRegularEnumSet.java42 private long elements = 0L; field in RegularEnumSet
49 elements = (-1L >>> (from.ordinal() - to.ordinal() - 1)) << from.ordinal(); in addRange()
54 elements = -1L >>> -universe.length; in addAll()
59 elements = ~elements; in complement()
60 elements &= -1L >>> -universe.length; // Mask unused bits in complement()
92 unseen = elements; in EnumSetIterator()
111 elements &= ~lastReturned; in remove()
122 return Long.bitCount(elements); in size()
131 return elements == 0; in isEmpty()
147 return (elements & (1L << ((Enum<?>)e).ordinal())) != 0; in contains()
[all …]
DJumboEnumSet.java44 private long elements[]; field in JumboEnumSet
51 elements = new long[(universe.length + 63) >>> 6]; in JumboEnumSet()
59 elements[fromIndex] = (-1L >>> (from.ordinal() - to.ordinal() - 1)) in addRange()
62 elements[fromIndex] = (-1L << from.ordinal()); in addRange()
64 elements[i] = -1; in addRange()
65 elements[toIndex] = -1L >>> (63 - to.ordinal()); in addRange()
71 for (int i = 0; i < elements.length; i++) in addAll()
72 elements[i] = -1; in addAll()
73 elements[elements.length - 1] >>>= -universe.length; in addAll()
78 for (int i = 0; i < elements.length; i++) in complement()
[all …]
DArrayDeque.java100 transient Object[] elements; // non-private to simplify nested class access field in ArrayDeque
144 elements = new Object[initialCapacity]; in allocateElements()
154 int n = elements.length; in doubleCapacity()
160 System.arraycopy(elements, p, a, 0, r); in doubleCapacity()
161 System.arraycopy(elements, 0, a, r, p); in doubleCapacity()
167 Arrays.fill(elements, null); in doubleCapacity()
168 elements = a; in doubleCapacity()
178 elements = new Object[16]; in ArrayDeque()
219 elements[head = (head - 1) & (elements.length - 1)] = e; in addFirst()
235 elements[tail] = e; in addLast()
[all …]
/libcore/ojluni/src/main/java/java/util/concurrent/
DCopyOnWriteArrayList.java132 Object[] elements; in CopyOnWriteArrayList() local
134 elements = ((CopyOnWriteArrayList<?>)c).getArray(); in CopyOnWriteArrayList()
136 elements = c.toArray(); in CopyOnWriteArrayList()
139 if (elements.getClass() != Object[].class) in CopyOnWriteArrayList()
140 elements = Arrays.copyOf(elements, elements.length, Object[].class); in CopyOnWriteArrayList()
142 setArray(elements); in CopyOnWriteArrayList()
183 private static int indexOf(Object o, Object[] elements, in indexOf() argument
187 if (elements[i] == null) in indexOf()
191 if (o.equals(elements[i])) in indexOf()
204 private static int lastIndexOf(Object o, Object[] elements, int index) { in lastIndexOf() argument
[all …]
/libcore/luni/src/main/java/libcore/reflect/
DAnnotationFactory.java93 AnnotationMember[] elements) { in createAnnotation() argument
94 AnnotationFactory factory = new AnnotationFactory(annotationType, elements); in createAnnotation()
100 private AnnotationMember[] elements; field in AnnotationFactory
114 elements = defs; in AnnotationFactory()
117 elements = new AnnotationMember[defs.length]; in AnnotationFactory()
118 next: for (int i = elements.length - 1; i >= 0; i--) { in AnnotationFactory()
121 elements[i] = val.setDefinition(defs[i]); in AnnotationFactory()
125 elements[i] = defs[i]; in AnnotationFactory()
143 AnnotationMember[] old = elements; in readObject()
164 elements = merged.toArray(new AnnotationMember[merged.size()]); in readObject()
[all …]
/libcore/dalvik/src/main/java/dalvik/system/
DDexPathList.java339 Element[] elements = new Element[dexFiles.length]; in makeInMemoryDexElements() local
345 elements[elementPos++] = new Element(dex); in makeInMemoryDexElements()
351 if (elementPos != elements.length) { in makeInMemoryDexElements()
352 elements = Arrays.copyOf(elements, elementPos); in makeInMemoryDexElements()
354 return elements; in makeInMemoryDexElements()
370 Element[] elements = new Element[files.size()]; in makeDexElements() local
379 elements[elementsPos++] = new Element(file); in makeDexElements()
387 dex = loadDexFile(file, optimizedDirectory, loader, elements); in makeDexElements()
389 elements[elementsPos++] = new Element(dex, null); in makeDexElements()
397 dex = loadDexFile(file, optimizedDirectory, loader, elements); in makeDexElements()
[all …]
DDexFile.java84 DexFile(File file, ClassLoader loader, DexPathList.Element[] elements) in DexFile() argument
86 this(file.getPath(), loader, elements); in DexFile()
111 DexFile(String fileName, ClassLoader loader, DexPathList.Element[] elements) in DexFile() argument
113 mCookie = openDexFile(fileName, null, 0, loader, elements); in DexFile()
119 DexFile(ByteBuffer[] bufs, ClassLoader loader, DexPathList.Element[] elements) in DexFile() argument
121 mCookie = openInMemoryDexFiles(bufs, loader, elements); in DexFile()
142 DexPathList.Element[] elements) throws IOException { in DexFile() argument
156 mCookie = openDexFile(sourceName, outputName, flags, loader, elements); in DexFile()
207 int flags, ClassLoader loader, DexPathList.Element[] elements) throws IOException { in loadDex() argument
216 return new DexFile(sourcePathName, outputPathName, flags, loader, elements); in loadDex()
[all …]
/libcore/jsr166-tests/src/test/java/jsr166/
DCopyOnWriteArraySetTest.java44 static CopyOnWriteArraySet populatedSet(Integer[] elements) { in populatedSet() argument
47 for (int i = 0; i < elements.length; i++) in populatedSet()
48 a.add(elements[i]); in populatedSet()
50 assertEquals(elements.length, a.size()); in populatedSet()
229 Integer[] elements = new Integer[SIZE]; in testIterator() local
231 elements[i] = i; in testIterator()
232 Collections.shuffle(Arrays.asList(elements)); in testIterator()
233 Collection<Integer> full = populatedSet(elements); in testIterator()
238 assertEquals(elements[j], it.next()); in testIterator()
316 Integer[] elements = new Integer[SIZE]; in testToArray() local
[all …]
DCopyOnWriteArrayListTest.java47 static CopyOnWriteArrayList<Integer> populatedArray(Integer[] elements) { in populatedArray() argument
50 for (int i = 0; i < elements.length; i++) in populatedArray()
51 a.add(elements[i]); in populatedArray()
53 assertEquals(elements.length, a.size()); in populatedArray()
268 Integer[] elements = new Integer[SIZE]; in testIterator() local
270 elements[i] = i; in testIterator()
271 Collections.shuffle(Arrays.asList(elements)); in testIterator()
272 Collection<Integer> full = populatedArray(elements); in testIterator()
277 assertEquals(elements[j], it.next()); in testIterator()
436 Integer[] elements = new Integer[SIZE]; in testToArray() local
[all …]
/libcore/ojluni/src/test/java/util/concurrent/tck/
DCopyOnWriteArraySetTest.java66 static CopyOnWriteArraySet populatedSet(Integer[] elements) { in populatedSet() argument
69 for (int i = 0; i < elements.length; i++) in populatedSet()
70 a.add(elements[i]); in populatedSet()
72 assertEquals(elements.length, a.size()); in populatedSet()
251 Integer[] elements = new Integer[SIZE]; in testIterator() local
253 elements[i] = i; in testIterator()
254 shuffle(elements); in testIterator()
255 Collection<Integer> full = populatedSet(elements); in testIterator()
260 assertEquals(elements[j], it.next()); in testIterator()
338 Integer[] elements = new Integer[SIZE]; in testToArray() local
[all …]
DCopyOnWriteArrayListTest.java85 static CopyOnWriteArrayList<Integer> populatedArray(Integer[] elements) { in populatedArray() argument
88 for (int i = 0; i < elements.length; i++) in populatedArray()
89 a.add(elements[i]); in populatedArray()
91 assertEquals(elements.length, a.size()); in populatedArray()
306 Integer[] elements = new Integer[SIZE]; in testIterator() local
308 elements[i] = i; in testIterator()
309 shuffle(elements); in testIterator()
310 Collection<Integer> full = populatedArray(elements); in testIterator()
315 assertEquals(elements[j], it.next()); in testIterator()
474 Integer[] elements = new Integer[SIZE]; in testToArray() local
[all …]
/libcore/ojluni/src/main/java/sun/security/x509/
DKeyUsageExtension.java338 AttributeNameEnumeration elements = new AttributeNameEnumeration(); in getElements() local
339 elements.addElement(DIGITAL_SIGNATURE); in getElements()
340 elements.addElement(NON_REPUDIATION); in getElements()
341 elements.addElement(KEY_ENCIPHERMENT); in getElements()
342 elements.addElement(DATA_ENCIPHERMENT); in getElements()
343 elements.addElement(KEY_AGREEMENT); in getElements()
344 elements.addElement(KEY_CERTSIGN); in getElements()
345 elements.addElement(CRL_SIGN); in getElements()
346 elements.addElement(ENCIPHER_ONLY); in getElements()
347 elements.addElement(DECIPHER_ONLY); in getElements()
[all …]
DCertificateSerialNumber.java170 AttributeNameEnumeration elements = new AttributeNameEnumeration(); in getElements() local
171 elements.addElement(NUMBER); in getElements()
173 return (elements.elements()); in getElements()
DCertificateX509Key.java151 AttributeNameEnumeration elements = new AttributeNameEnumeration(); in getElements() local
152 elements.addElement(KEY); in getElements()
154 return(elements.elements()); in getElements()
DCertificateAlgorithmId.java159 AttributeNameEnumeration elements = new AttributeNameEnumeration(); in getElements() local
160 elements.addElement(ALGORITHM); in getElements()
161 return (elements.elements()); in getElements()
DCertificateSubjectName.java168 AttributeNameEnumeration elements = new AttributeNameEnumeration(); in getElements() local
169 elements.addElement(DN_NAME); in getElements()
171 return(elements.elements()); in getElements()
DCertificateIssuerName.java168 AttributeNameEnumeration elements = new AttributeNameEnumeration(); in getElements() local
169 elements.addElement(DN_NAME); in getElements()
171 return (elements.elements()); in getElements()
DCertificateIssuerExtension.java198 AttributeNameEnumeration elements = new AttributeNameEnumeration(); in getElements() local
199 elements.addElement(ISSUER); in getElements()
200 return elements.elements(); in getElements()
DSubjectKeyIdentifierExtension.java186 AttributeNameEnumeration elements = new AttributeNameEnumeration(); in getElements() local
187 elements.addElement(KEY_ID); in getElements()
189 return (elements.elements()); in getElements()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DAbstractQueueTest.java39 private Object[] elements = new Object[CAPACITY]; field in AbstractQueueTest.MockAbstractQueue
55 return (E) elements[currentIndex]; in iterator()
63 elements[i] = elements[i + 1]; in iterator()
83 elements[size++] = o; in offer()
91 E e = (E) elements[0]; in poll()
93 elements[i] = elements[i + 1]; in poll()
103 return (E) elements[0]; in peek()
/libcore/luni/src/test/java/libcore/java/util/
DSpliteratorTester.java193 List<T> elements = toList(spliterable.spliterator()); in runOrderedTests() local
194 assertEquals("Ordering should be consistent", elements, toList(spliterable.spliterator())); in runOrderedTests()
201 + spliterable.getClass(), elements, toList(spliterable.iterator())); in runOrderedTests()
224 assertEquals(elements, toList(sa)); in runOrderedTests()
225 assertEquals(elements, toList(sb)); in runOrderedTests()
310 ArrayList<T> elements = new ArrayList<>(); in runSortedTests() local
311 spliterator.forEachRemaining(value -> elements.add(value)); in runSortedTests()
313 ArrayList<T> sortedElements = new ArrayList<>(elements); in runSortedTests()
315 assertEquals(elements, sortedElements); in runSortedTests()
317 elements.clear(); in runSortedTests()
[all …]
DSpliteratorsTest.java212 int[] elements = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 }; in test_spliterator_int() local
214 Spliterator.OfInt intSp = Spliterators.spliterator(elements, 0); in test_spliterator_int()
245 assertEquals(Arrays.toString(elements), Arrays.toString(recorded)); in test_spliterator_int()
249 int[] elements = { 123123, 131321312, 1, 2, 3, 4, 32323232, 45454}; in test_spliterator_intOffsetBasic() local
250 Spliterator.OfInt sp = Spliterators.spliterator(elements, 2, 6, 0); in test_spliterator_intOffsetBasic()
262 long[] elements = { 123123, 131321312, 1, 2, 3, 4, 32323232, 45454}; in test_spliterator_longOffsetBasic() local
263 Spliterator.OfLong sp = Spliterators.spliterator(elements, 2, 6, 0); in test_spliterator_longOffsetBasic()
275 double[] elements = { 123123, 131321312, 1, 2, 3, 4, 32323232, 45454}; in test_spliterator_doubleOffsetBasic() local
276 Spliterator.OfDouble sp = Spliterators.spliterator(elements, 2, 6, 0); in test_spliterator_doubleOffsetBasic()
288 long[] elements = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 }; in test_spliterator_long() local
[all …]
/libcore/ojluni/src/main/java/sun/nio/fs/
DUtil.java99 static <E> Set<E> newSet(E... elements) { in newSet() argument
101 for (E e: elements) { in newSet()
112 static <E> Set<E> newSet(Set<E> other, E... elements) { in newSet() argument
114 for (E e: elements) { in newSet()

123456