/libcore/ojluni/src/main/java/sun/security/util/ |
D | AlgorithmDecomposer.java | 44 Set<String> elements = new HashSet<>(); in decomposeImpl() local 67 elements.add(token); in decomposeImpl() 70 return elements; in decomposeImpl() 87 Set<String> elements = decomposeImpl(algorithm); in decompose() local 97 if (elements.contains("SHA1") && !elements.contains("SHA-1")) { in decompose() 98 elements.add("SHA-1"); in decompose() 100 if (elements.contains("SHA-1") && !elements.contains("SHA1")) { in decompose() 101 elements.add("SHA1"); in decompose() 105 if (elements.contains("SHA224") && !elements.contains("SHA-224")) { in decompose() 106 elements.add("SHA-224"); in decompose() [all …]
|
D | AbstractAlgorithmConstraints.java | 83 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/ |
D | RegularEnumSet.java | 43 private long elements = 0L; field in RegularEnumSet 50 elements = (-1L >>> (from.ordinal() - to.ordinal() - 1)) << from.ordinal(); in addRange() 55 elements = -1L >>> -universe.length; in addAll() 60 elements = ~elements; in complement() 61 elements &= -1L >>> -universe.length; // Mask unused bits in complement() 93 unseen = elements; in EnumSetIterator() 112 elements &= ~lastReturned; in remove() 123 return Long.bitCount(elements); in size() 132 return elements == 0; in isEmpty() 148 return (elements & (1L << ((Enum<?>)e).ordinal())) != 0; in contains() [all …]
|
D | JumboEnumSet.java | 45 private long elements[]; field in JumboEnumSet 52 elements = new long[(universe.length + 63) >>> 6]; in JumboEnumSet() 60 elements[fromIndex] = (-1L >>> (from.ordinal() - to.ordinal() - 1)) in addRange() 63 elements[fromIndex] = (-1L << from.ordinal()); in addRange() 65 elements[i] = -1; in addRange() 66 elements[toIndex] = -1L >>> (63 - to.ordinal()); in addRange() 72 for (int i = 0; i < elements.length; i++) in addAll() 73 elements[i] = -1; in addAll() 74 elements[elements.length - 1] >>>= -universe.length; in addAll() 79 for (int i = 0; i < elements.length; i++) in complement() [all …]
|
D | ArrayDeque.java | 109 transient Object[] elements; field in ArrayDeque 141 final int oldCapacity = elements.length; in grow() 149 final Object[] oldElements = elements; in grow() 150 final Object[] es = elements = Arrays.copyOf(elements, newCapacity); in grow() 171 final int oldCapacity = elements.length, minCapacity; in newCapacity() 189 elements = new Object[16 + 1]; in ArrayDeque() 199 elements = in ArrayDeque() 294 final Object[] es = elements; in addFirst() 311 final Object[] es = elements; in addLast() 329 if ((needed = (s = size()) + c.size() + 1 - elements.length) > 0) in addAll() [all …]
|
/libcore/luni/src/main/java/libcore/reflect/ |
D | AnnotationFactory.java | 93 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/ |
D | DexPathList.java | 339 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 …]
|
D | DexFile.java | 99 DexFile(File file, ClassLoader loader, DexPathList.Element[] elements) in DexFile() argument 101 this(file.getPath(), loader, elements); in DexFile() 126 DexFile(String fileName, ClassLoader loader, DexPathList.Element[] elements) in DexFile() argument 128 mCookie = openDexFile(fileName, null, 0, loader, elements); in DexFile() 134 DexFile(ByteBuffer[] bufs, ClassLoader loader, DexPathList.Element[] elements) in DexFile() argument 136 mCookie = openInMemoryDexFiles(bufs, loader, elements); in DexFile() 157 DexPathList.Element[] elements) throws IOException { in DexFile() argument 171 mCookie = openDexFile(sourceName, outputName, flags, loader, elements); in DexFile() 222 int flags, ClassLoader loader, DexPathList.Element[] elements) throws IOException { in loadDex() argument 231 return new DexFile(sourcePathName, outputPathName, flags, loader, elements); in loadDex() [all …]
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | CopyOnWriteArraySetTest.java | 44 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 …]
|
D | CopyOnWriteArrayListTest.java | 47 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/ |
D | CopyOnWriteArraySetTest.java | 66 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 …]
|
D | CopyOnWriteArrayListTest.java | 85 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/ |
D | KeyUsageExtension.java | 338 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 …]
|
D | CertificateX509Key.java | 151 AttributeNameEnumeration elements = new AttributeNameEnumeration(); in getElements() local 152 elements.addElement(KEY); in getElements() 154 return(elements.elements()); in getElements()
|
D | CertificateSerialNumber.java | 170 AttributeNameEnumeration elements = new AttributeNameEnumeration(); in getElements() local 171 elements.addElement(NUMBER); in getElements() 173 return (elements.elements()); in getElements()
|
D | CertificateAlgorithmId.java | 159 AttributeNameEnumeration elements = new AttributeNameEnumeration(); in getElements() local 160 elements.addElement(ALGORITHM); in getElements() 161 return (elements.elements()); in getElements()
|
D | CertificateIssuerName.java | 168 AttributeNameEnumeration elements = new AttributeNameEnumeration(); in getElements() local 169 elements.addElement(DN_NAME); in getElements() 171 return (elements.elements()); in getElements()
|
D | CertificateSubjectName.java | 168 AttributeNameEnumeration elements = new AttributeNameEnumeration(); in getElements() local 169 elements.addElement(DN_NAME); in getElements() 171 return(elements.elements()); in getElements()
|
D | CertificateIssuerExtension.java | 198 AttributeNameEnumeration elements = new AttributeNameEnumeration(); in getElements() local 199 elements.addElement(ISSUER); in getElements() 200 return elements.elements(); in getElements()
|
D | SubjectKeyIdentifierExtension.java | 186 AttributeNameEnumeration elements = new AttributeNameEnumeration(); in getElements() local 187 elements.addElement(KEY_ID); in getElements() 189 return (elements.elements()); in getElements()
|
D | IssuingDistributionPointExtension.java | 366 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/ |
D | AbstractQueueTest.java | 39 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/test/java/text/Format/MessageFormat/ |
D | Bug7003643.java | 39 private static final String[] elements = { field in Bug7003643 46 int max = (int) (Math.pow((double)elements.length, (double)N)/0.52); in main() 52 sb.append(elements[rand.nextInt(elements.length)]); in main()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | SpliteratorTester.java | 193 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 …]
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | Util.java | 99 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()
|