Home
last modified time | relevance | path

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

12345

/libcore/ojluni/src/test/java/util/Map/
DMapFactories.java56 Map<Integer, String> copy = Map.copyOf(orig); in copyOfResultsEqual() local
58 assertEquals(orig, copy); in copyOfResultsEqual()
59 assertEquals(copy, orig); in copyOfResultsEqual()
65 Map<Integer, String> copy = Map.copyOf(orig); in copyOfModifiedUnequal() local
68 assertNotEquals(orig, copy); in copyOfModifiedUnequal()
69 assertNotEquals(copy, orig); in copyOfModifiedUnequal()
91 Map<Integer, String> copy = Map.copyOf(map); in copyOfRejectsNullKey() local
98 Map<Integer, String> copy = Map.copyOf(map); in copyOfRejectsNullValue() local
/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/Collection/
DSetFactories.java54 Set<Integer> copy = Set.copyOf(orig); in copyOfResultsEqual() local
56 assertEquals(orig, copy); in copyOfResultsEqual()
57 assertEquals(copy, orig); in copyOfResultsEqual()
63 Set<Integer> copy = Set.copyOf(orig); in copyOfModifiedUnequal() local
66 assertNotEquals(orig, copy); in copyOfModifiedUnequal()
67 assertNotEquals(copy, orig); in copyOfModifiedUnequal()
/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/test/java/util/List/
DListFactories.java282 List<String> copy = serialClone(act); in serialEquality() local
283 assertEquals(act, copy); in serialEquality()
284 assertEquals(copy, exp); in serialEquality()
309 List<Integer> copy = List.copyOf(orig); in copyOfResultsEqual() local
311 assertEquals(orig, copy); in copyOfResultsEqual()
312 assertEquals(copy, orig); in copyOfResultsEqual()
318 List<Integer> copy = List.copyOf(orig); in copyOfModifiedUnequal() local
321 assertNotEquals(orig, copy); in copyOfModifiedUnequal()
322 assertNotEquals(copy, orig); in copyOfModifiedUnequal()
339 List<Integer> copy = List.copyOf(sub); in copyOfSubList() local
[all …]
/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
36 name: "libcore-copy-upstream-files",
38 manifest: "src/main/libcore-copy-upstream-files.mf",
/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/security/cert/
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/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/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/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/luni/src/main/java/libcore/io/
DIoUtils.java72 FileDescriptor copy = fd.release$(); in acquireRawFd() local
75 int rawFd = copy.getInt$(); in acquireRawFd()
76 long previousOwnerId = copy.getOwnerId$(); in acquireRawFd()
79 Libcore.os.android_fdsan_exchange_owner_tag(copy, previousOwnerId, in acquireRawFd()
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/
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()
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()
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()
/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/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/ojluni/src/main/resources/sun/util/logging/resources/
Dlogging_sv.properties14 # version 2 for more details (a copy is included in the LICENSE file that
17 # You should have received a copy of the GNU General Public License version

12345