Home
last modified time | relevance | path

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

1234

/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()
162 elements = a; in doubleCapacity()
172 elements = new Object[16]; in ArrayDeque()
213 elements[head = (head - 1) & (elements.length - 1)] = e; in addFirst()
229 elements[tail] = e; in addLast()
230 if ( (tail = (tail + 1) & (elements.length - 1)) == head) in addLast()
[all …]
/libcore/ojluni/src/main/java/java/util/concurrent/
DCopyOnWriteArrayList.java104 private transient volatile Object[] elements; field in CopyOnWriteArrayList
111 return elements; in getArray()
118 elements = a; in setArray()
137 Object[] elements; in CopyOnWriteArrayList() local
139 elements = ((CopyOnWriteArrayList<?>)c).getArray(); in CopyOnWriteArrayList()
141 elements = c.toArray(); in CopyOnWriteArrayList()
144 if (elements.getClass() != Object[].class) in CopyOnWriteArrayList()
145 elements = Arrays.copyOf(elements, elements.length, Object[].class); in CopyOnWriteArrayList()
147 setArray(elements); in CopyOnWriteArrayList()
188 private static int indexOf(Object o, Object[] elements, in indexOf() 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.java287 Element[] elements = new Element[dexFiles.length]; in makeInMemoryDexElements() local
292 elements[elementPos++] = new Element(dex); in makeInMemoryDexElements()
298 if (elementPos != elements.length) { in makeInMemoryDexElements()
299 elements = Arrays.copyOf(elements, elementPos); in makeInMemoryDexElements()
301 return elements; in makeInMemoryDexElements()
310 Element[] elements = new Element[files.size()]; in makeDexElements() local
319 elements[elementsPos++] = new Element(file); in makeDexElements()
326 DexFile dex = loadDexFile(file, optimizedDirectory, loader, elements); in makeDexElements()
328 elements[elementsPos++] = new Element(dex, null); in makeDexElements()
337 dex = loadDexFile(file, optimizedDirectory, loader, elements); in makeDexElements()
[all …]
DDexFile.java72 DexFile(File file, ClassLoader loader, DexPathList.Element[] elements) in DexFile() argument
74 this(file.getPath(), loader, elements); in DexFile()
99 … DexFile(String fileName, ClassLoader loader, DexPathList.Element[] elements) throws IOException { in DexFile() argument
100 mCookie = openDexFile(fileName, null, 0, loader, elements); in DexFile()
128 DexPathList.Element[] elements) throws IOException { in DexFile() argument
142 mCookie = openDexFile(sourceName, outputName, flags, loader, elements); in DexFile()
192 int flags, ClassLoader loader, DexPathList.Element[] elements) throws IOException { in loadDex() argument
201 return new DexFile(sourcePathName, outputPathName, flags, loader, elements); in loadDex()
351 ClassLoader loader, DexPathList.Element[] elements) throws IOException { in openDexFile() argument
359 elements); in openDexFile()
[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/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 …]
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()
DCertificateSerialNumber.java170 AttributeNameEnumeration elements = new AttributeNameEnumeration(); in getElements() local
171 elements.addElement(NUMBER); in getElements()
173 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()
DCertificateSubjectName.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()
DCRLReasonCodeExtension.java178 AttributeNameEnumeration elements = new AttributeNameEnumeration(); in getElements() local
179 elements.addElement(REASON); in getElements()
181 return elements.elements(); in getElements()
DIssuingDistributionPointExtension.java366 AttributeNameEnumeration elements = new AttributeNameEnumeration(); in getElements() local
367 elements.addElement(POINT); in getElements()
368 elements.addElement(REASONS); in getElements()
369 elements.addElement(ONLY_USER_CERTS); in getElements()
370 elements.addElement(ONLY_CA_CERTS); in getElements()
371 elements.addElement(ONLY_ATTRIBUTE_CERTS); in getElements()
372 elements.addElement(INDIRECT_CRL); in getElements()
373 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/ojluni/src/main/java/sun/nio/fs/
DUtil.java97 static <E> Set<E> newSet(E... elements) { in newSet() argument
99 for (E e: elements) { in newSet()
110 static <E> Set<E> newSet(Set<E> other, E... elements) { in newSet() argument
112 for (E e: elements) { in newSet()
/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 …]

1234