Home
last modified time | relevance | path

Searched refs:copy (Results 1 – 25 of 123) sorted by relevance

12345

/libcore/ojluni/src/main/java/java/security/cert/
DPKIXRevocationChecker.java199 Map<X509Certificate, byte[]> copy = new HashMap<>(responses.size()); in setOcspResponses() local
201 copy.put(e.getKey(), e.getValue().clone()); in setOcspResponses()
203 this.ocspResponses = copy; in setOcspResponses()
218 Map<X509Certificate, byte[]> copy = new HashMap<>(ocspResponses.size()); in getOcspResponses() local
220 copy.put(e.getKey(), e.getValue().clone()); in getOcspResponses()
222 return copy; in getOcspResponses()
265 PKIXRevocationChecker copy = (PKIXRevocationChecker)super.clone(); in clone() local
266 copy.ocspExtensions = new ArrayList<>(ocspExtensions); in clone()
267 copy.ocspResponses = new HashMap<>(ocspResponses); in clone()
270 copy.ocspResponses.entrySet()) in clone()
[all …]
DPKIXParameters.java666 PKIXParameters copy = (PKIXParameters)super.clone(); in clone() local
670 copy.certStores = new ArrayList<CertStore>(certStores); in clone()
673 copy.certPathCheckers = in clone()
676 copy.certPathCheckers.add( in clone()
683 return copy; in clone()
DX509CRLSelector.java705 X509CRLSelector copy = (X509CRLSelector)super.clone(); in clone() local
707 copy.issuerNames = in clone()
709 copy.issuerX500Principals = in clone()
712 return copy; in clone()
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestChronoLocalDate.java101 List<ChronoLocalDate> copy = new ArrayList<>(dates); in test_date_comparator_checkGenerics_ISO() local
102 Collections.shuffle(copy); in test_date_comparator_checkGenerics_ISO()
103 Collections.sort(copy, ChronoLocalDate.timeLineOrder()); in test_date_comparator_checkGenerics_ISO()
104 assertEquals(copy, dates); in test_date_comparator_checkGenerics_ISO()
105 assertTrue(ChronoLocalDate.timeLineOrder().compare(copy.get(0), copy.get(1)) < 0); in test_date_comparator_checkGenerics_ISO()
125 List<LocalDate> copy = new ArrayList<>(dates);
126 Collections.shuffle(copy);
127 Collections.sort(copy, ChronoLocalDate.timeLineOrder());
128 assertEquals(copy, dates);
129 assertTrue(ChronoLocalDate.timeLineOrder().compare(copy.get(0), copy.get(1)) < 0);
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DTeeOpTest.java58 List<Integer> copy = new ArrayList<>(); in testTee() local
60 assertCountSum(countTo(0).stream().peek(copy::add), 0, 0); in testTee()
61 assertCountSum(copy.iterator(), 0, 0); in testTee()
63 copy.clear(); in testTee()
64 assertCountSum(countTo(10).stream().peek(copy::add), 10, 55); in testTee()
65 assertCountSum(copy.iterator(), 10, 55); in testTee()
67 copy.clear(); in testTee()
68 assertCountSum(countTo(10).stream().map(mDoubler).peek(copy::add), 10, 110); in testTee()
69 assertCountSum(copy.iterator(), 10, 110); in testTee()
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DAdaptableX509CertSelector.java248 AdaptableX509CertSelector copy = in clone() local
251 copy.startDate = (Date)startDate.clone(); in clone()
255 copy.endDate = (Date)endDate.clone(); in clone()
259 copy.ski = ski.clone(); in clone()
261 return copy; in clone()
/libcore/ojluni/src/main/java/java/util/
DArrays.java3135 T[] copy = ((Object)newType == (Object)Object[].class) in copyOf() local
3138 System.arraycopy(original, 0, copy, 0, in copyOf()
3140 return copy; in copyOf()
3161 byte[] copy = new byte[newLength]; in copyOf()
3162 System.arraycopy(original, 0, copy, 0, in copyOf()
3164 return copy; in copyOf()
3185 short[] copy = new short[newLength]; in copyOf() local
3186 System.arraycopy(original, 0, copy, 0, in copyOf()
3188 return copy; in copyOf()
3209 int[] copy = new int[newLength]; in copyOf() local
[all …]
/libcore/tools/upstream/
DAndroid.bp6 // You may obtain a copy of the License at
28 name: "libcore-copy-upstream-files",
30 manifest: "src/main/libcore-copy-upstream-files.mf",
/libcore/ojluni/
DNOTICE294 Everyone is permitted to copy and distribute verbatim copies of this license
326 offer you this license which gives you legal permission to copy, distribute
362 1. You may copy and distribute verbatim copies of the Program's source code as
364 appropriately publish on each copy an appropriate copyright notice and
367 Program a copy of this License along with the Program.
369 You may charge a fee for the physical act of transferring a copy, and you may
372 2. You may modify your copy or copies of the Program or any portion of it, thus
373 forming a work based on the Program, and copy and distribute such modifications
390 the program under these conditions, and telling the user how to view a copy
414 3. You may copy and distribute the Program (or a work based on it, under
[all …]
DAndroid.bp5 // You may obtain a copy of the License at
16 // directory, detect that it is a GPL license and then copy all the files
/libcore/luni/src/test/java/libcore/java/nio/file/
DDefaultFileSystemProviderTest.java608 provider.copy(filesSetup.getDataFilePath(), filesSetup.getTestPath()); in test_copy()
615 provider.copy(filesSetup.getDataFilePath(), filesSetup.getTestPath()); in test_copy()
621 provider.copy(filesSetup.getDataFilePath(), filesSetup.getTestPath(), REPLACE_EXISTING); in test_copy()
627 provider.copy(filesSetup.getDataFilePath(), filesSetup.getDataFilePath()); in test_copy()
638 provider.copy(filesSetup.getDataFilePath(), symlink); in test_copy()
644 provider.copy(filesSetup.getTestPath(), filesSetup.getDataFilePath(), REPLACE_EXISTING); in test_copy()
654 provider.copy((Path) null, filesSetup.getTestPath()); in test_copy_NPE()
659 provider.copy(filesSetup.getDataFilePath(), (Path) null); in test_copy_NPE()
664 provider.copy(filesSetup.getDataFilePath(), filesSetup.getTestPath(), in test_copy_NPE()
675 provider.copy(filesSetup.getDataFilePath(), filesSetup.getTestPath(), COPY_ATTRIBUTES); in test_copy_CopyOption()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DGenericSignatureFormatErrorTest.java60 copy(is, fos); in test_signatureFormatError()
86 private void copy(InputStream is, OutputStream os) { in copy() method in GenericSignatureFormatErrorTest
/libcore/ojluni/src/main/java/java/nio/file/
DTempFileHelper.java112 FileAttribute<?>[] copy = new FileAttribute<?>[attrs.length+1]; in create() local
113 System.arraycopy(attrs, 0, copy, 0, attrs.length); in create()
114 attrs = copy; in create()
/libcore/luni/src/main/java/libcore/io/
DIoUtils.java62 FileDescriptor copy = fd.release$(); in acquireRawFd() local
65 int rawFd = copy.getInt$(); in acquireRawFd()
66 long previousOwnerId = copy.getOwnerId$(); in acquireRawFd()
69 Libcore.os.android_fdsan_exchange_owner_tag(copy, previousOwnerId, in acquireRawFd()
/libcore/luni/
Dbouncycastle-license.txt5 a copy of this software and associated documentation files (the
7 without limitation the rights to use, copy, modify, merge, publish,
/libcore/
DNOTICE40 a copy of this software and associated documentation files (the
42 without limitation the rights to use, copy, modify, merge, publish,
75 a copy of this software and associated documentation files (the
77 without limitation the rights to use, copy, modify, merge, publish,
115 Permission to use, copy, modify, and distribute this
DLICENSE8 Everyone is permitted to copy and distribute verbatim copies of this license
40 offer you this license which gives you legal permission to copy, distribute
76 1. You may copy and distribute verbatim copies of the Program's source code as
78 appropriately publish on each copy an appropriate copyright notice and
81 Program a copy of this License along with the Program.
83 You may charge a fee for the physical act of transferring a copy, and you may
86 2. You may modify your copy or copies of the Program or any portion of it, thus
87 forming a work based on the Program, and copy and distribute such modifications
104 the program under these conditions, and telling the user how to view a copy
128 3. You may copy and distribute the Program (or a work based on it, under
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DControlTest.java383 File copy = new File(copyName); in copyFile() local
384 if (copy.exists()) { in copyFile()
385 copy.delete(); in copyFile()
387 copy.createNewFile(); in copyFile()
388 copy.deleteOnExit(); in copyFile()
391 Writer out = new FileWriter(copy); in copyFile()
398 return copy; in copyFile()
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/
DNodeTest.java113 Integer[] copy = new Integer[(int) n.count()]; in testCopyTo() local
114 n.copyInto(copy, 0); in testCopyTo()
116 assertEquals(copy, array); in testCopyTo()
DDoubleNodeTest.java135 double[] copy = new double[(int) n.count()]; in testCopyTo() local
136 n.copyInto(copy, 0); in testCopyTo()
138 assertEquals(copy, array); in testCopyTo()
DLongNodeTest.java135 long[] copy = new long[(int) n.count()]; in testCopyTo() local
136 n.copyInto(copy, 0); in testCopyTo()
138 assertEquals(copy, array); in testCopyTo()
DIntNodeTest.java135 int[] copy = new int[(int) n.count()]; in testCopyTo() local
136 n.copyInto(copy, 0); in testCopyTo()
138 assertEquals(copy, array); in testCopyTo()
/libcore/luni/src/main/java/libcore/reflect/
DAnnotationMember.java158 protected AnnotationMember setDefinition(AnnotationMember copy) { in setDefinition() argument
159 definingMethod = copy.definingMethod; in setDefinition()
160 elementType = copy.elementType; in setDefinition()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DStringBuffer2Test.java515 String copy = sb.toString(); in reverseTest() local
516 assertEquals(org, copy); in reverseTest()
522 copy = sb.toString(); in reverseTest()
523 assertEquals(rev, copy); in reverseTest()
/libcore/json/src/test/java/libcore/org/json/
DJSONObjectTest.java760 JSONObject copy = new JSONObject(source, new String[] { "a", "c" }); in testCopyConstructor() local
761 assertEquals(2, copy.length()); in testCopyConstructor()
762 assertEquals(JSONObject.NULL, copy.get("a")); in testCopyConstructor()
763 assertEquals(5, copy.get("c")); in testCopyConstructor()
764 assertEquals(null, copy.opt("b")); in testCopyConstructor()
773 JSONObject copy = new JSONObject(source, new String[]{ "a", "c", "d" }); in testCopyConstructorMissingName() local
774 assertEquals(2, copy.length()); in testCopyConstructorMissingName()
775 assertEquals(JSONObject.NULL, copy.get("a")); in testCopyConstructorMissingName()
776 assertEquals(5, copy.get("c")); in testCopyConstructorMissingName()
777 assertEquals(0, copy.optInt("b")); in testCopyConstructorMissingName()

12345