Home
last modified time | relevance | path

Searched refs:clone (Results 1 – 25 of 418) sorted by relevance

12345678910>>...17

/libcore/ojluni/src/test/java/lang/ref/
DReferenceCloneTest.java54 ref.clone(); in test()
60 ref.clone(); in assertCloneNotSupported()
67 public Object clone() throws CloneNotSupportedException; in clone() method
74 public Object clone() throws CloneNotSupportedException { in clone() method in ReferenceCloneTest.SoftRef
75 return super.clone(); in clone()
83 public Object clone() throws CloneNotSupportedException { in clone() method in ReferenceCloneTest.WeakRef
84 return super.clone(); in clone()
93 public Object clone() throws CloneNotSupportedException { in clone() method in ReferenceCloneTest.PhantomRef
94 return super.clone(); in clone()
104 public Object clone() throws CloneNotSupportedException { in clone() method in ReferenceCloneTest.CloneableReference
/libcore/ojluni/src/test/java/util/LinkedHashSet/
DBasic.java55 Set intersection = clone(s1); in main()
57 Set diff1 = clone(s1); diff1.removeAll(s2); in main()
58 Set diff2 = clone(s2); diff2.removeAll(s1); in main()
59 Set union = clone(s1); union.addAll(s2); in main()
107 static Set clone(Set s) throws Exception { in clone() method in Basic
108 Set clone; in clone() local
110 clone = (method==0 ? (Set) ((LinkedHashSet)s).clone() : in clone()
113 if (!s.equals(clone)) in clone()
115 if (!s.containsAll(clone)) in clone()
117 if (!clone.containsAll(s)) in clone()
[all …]
/libcore/ojluni/src/main/java/javax/crypto/spec/
DPBEKeySpec.java84 this.password = password.clone(); in PBEKeySpec()
113 this.password = password.clone(); in PBEKeySpec()
122 this.salt = salt.clone(); in PBEKeySpec()
155 this.password = password.clone(); in PBEKeySpec()
164 this.salt = salt.clone(); in PBEKeySpec()
198 return password.clone(); in getPassword()
212 return salt.clone(); in getSalt()
DPBEParameterSpec.java56 this.salt = salt.clone(); in PBEParameterSpec()
75 this.salt = salt.clone(); in PBEParameterSpec()
87 return this.salt.clone(); in getSalt()
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/
DFlagOpTest.java98 known.clone(), in testFlagsClearAllSet()
100 notKnown.clone())); in testFlagsClearAllSet()
106 known.clone(), in testFlagsClearAllSet()
108 notKnown.clone())); in testFlagsClearAllSet()
138 known.clone(), in testFlagsSetAllClear()
140 notKnown.clone())); in testFlagsSetAllClear()
145 known.clone(), in testFlagsSetAllClear()
147 notKnown.clone())); in testFlagsSetAllClear()
171 known.clone(), in testFlagsSetSequence()
172 preserve.clone(), in testFlagsSetSequence()
[all …]
/libcore/ojluni/src/main/java/java/security/
DSignedObject.java194 return this.signature.clone(); in getSignature()
224 verificationEngine.update(this.content.clone()); in verify()
225 return verificationEngine.verify(this.signature.clone()); in verify()
242 signingEngine.update(this.content.clone()); in sign()
243 this.signature = signingEngine.sign().clone(); in sign()
254 content = ((byte[])fields.get("content", null)).clone(); in readObject()
255 signature = ((byte[])fields.get("signature", null)).clone(); in readObject()
DDrbgParameters.java383 null : personalizationString.clone(); in getPersonalizationString()
395 null : personalizationString.clone(); in Instantiation()
452 return additionalInput == null? null: additionalInput.clone(); in getAdditionalInput()
464 null : additionalInput.clone(); in NextBytes()
496 return additionalInput == null ? null : additionalInput.clone(); in getAdditionalInput()
502 null : additionalInput.clone(); in Reseed()
/libcore/ojluni/src/test/java/util/Collections/
DCheckedListBash.java56 List intersection = clone(s1); intersection.retainAll(s2); in main()
57 List diff1 = clone(s1); diff1.removeAll(s2); in main()
58 List diff2 = clone(s2); diff2.removeAll(s1); in main()
59 List union = clone(s1); union.addAll(s2); in main()
118 List even = clone(s); in main()
128 List odd = clone(s); in main()
135 List all = clone(odd); in main()
141 all = clone(odd); in main()
195 static List clone(List s) { in clone() method in CheckedListBash
200 List clone = newList(); in clone() local
[all …]
DCheckedSetBash.java72 Set<Integer> intersection = clone(s1, supplier); in testCheckedSet()
74 Set<Integer> diff1 = clone(s1, supplier); diff1.removeAll(s2); in testCheckedSet()
75 Set<Integer> diff2 = clone(s2, supplier); diff2.removeAll(s1); in testCheckedSet()
76 Set<Integer> union = clone(s1, supplier); union.addAll(s2); in testCheckedSet()
123 static <T> Set<T> clone(Set<T> s, Supplier<Set<T>> supplier) { in clone() method in CheckedSetBash
124 Set<T> clone = supplier.get(); in clone() local
126 clone.addAll(arrayList); in clone()
127 if (!s.equals(clone)) in clone()
129 if (!s.containsAll(clone)) in clone()
131 if (!clone.containsAll(s)) in clone()
[all …]
DReverseOrder.java61 T clone = (T) ois.readObject(); in serialClone() local
62 return clone; in serialClone()
79 Comparator clone = serialClone(cmp); in main() local
81 Collections.sort(list2, clone); in main()
/libcore/ojluni/src/main/java/java/beans/
DChangeListenerMap.java86 L[] clone = newArray(size + 1); in add() local
87 clone[size] = listener; in add()
89 System.arraycopy(array, 0, clone, 0, size); in add()
91 this.map.put(name, clone); in add()
110 L[] clone = newArray(size); in remove() local
111 System.arraycopy(array, 0, clone, 0, i); in remove()
112 System.arraycopy(array, i + 1, clone, i, size - i); in remove()
113 this.map.put(name, clone); in remove()
199 return listeners.clone(); in getListeners()
/libcore/ojluni/src/main/java/javax/net/ssl/
DSSLParameters.java121 private static String[] clone(String[] s) { in clone() method in SSLParameters
122 return (s == null) ? null : s.clone(); in clone()
133 return clone(cipherSuites); in getCipherSuites()
142 this.cipherSuites = clone(cipherSuites); in setCipherSuites()
153 return clone(protocols); in getProtocols()
162 this.protocols = clone(protocols); in setProtocols()
489 return applicationProtocols.clone(); in getApplicationProtocols()
532 String[] tempProtocols = protocols.clone(); in setApplicationProtocols()
/libcore/ojluni/src/test/java/util/Map/
DBasicSerialization.java126 Map<IntegerEnum, String> clone = mapClone(map); in testSerialization() local
130 assertEquals(clone, map, description + ":should equal clone"); in testSerialization()
131 assertEquals(map, clone, description + ": should equal original map"); in testSerialization()
134 assertEquals(serialClone, clone, description + ": deserialized clone should equal clone"); in testSerialization()
135 assertEquals(clone, serialClone, description + ": clone should equal deserialized clone"); in testSerialization()
138 assertFalse(clone.containsKey(EXTRA_KEY), description + ":unexpected key"); in testSerialization()
141 clone.put(EXTRA_KEY, EXTRA_VALUE); in testSerialization()
144 assertTrue(clone.containsKey(EXTRA_KEY), description + ":missing key"); in testSerialization()
147 assertSame(clone.get(EXTRA_KEY), EXTRA_VALUE, description + ":wrong value"); in testSerialization()
151 assertEquals(clone, map, description + ":should equal clone"); in testSerialization()
[all …]
/libcore/benchmarks/src/benchmarks/regression/
DExpensiveObjectsBenchmark.java42 ((DateFormat) df.clone()).format(System.currentTimeMillis()); in timeClonedDateFormatTimeInstance()
64 c.clone(); in timeClonedCollator()
77 dfs.clone(); in timeClonedDateFormatSymbols()
90 dfs.clone(); in timeClonedDecimalFormatSymbols()
103 nf.clone(); in timeClonedNumberFormat()
136 sdf.clone(); in timeClonedSimpleDateFormat()
149 gc.clone(); in timeClonedGregorianCalendar()
/libcore/ojluni/src/main/java/java/security/cert/
DPKIXParameters.java488 return (Date) this.date.clone(); in getDate()
504 this.date = (Date) date.clone(); in setDate()
549 tmpList.add((PKIXCertPathChecker)checker.clone()); in setCertPathCheckers()
571 tmpList.add((PKIXCertPathChecker)ck.clone()); in getCertPathCheckers()
589 certPathCheckers.add((PKIXCertPathChecker)checker.clone()); in addCertPathChecker()
631 return (CertSelector) certSelector.clone(); in getTargetCertConstraints()
652 certSelector = (CertSelector) selector.clone(); in setTargetCertConstraints()
663 public Object clone() { in clone() method in PKIXParameters
665 PKIXParameters copy = (PKIXParameters)super.clone(); in clone()
676 (PKIXCertPathChecker)checker.clone()); in clone()
DPKIXRevocationChecker.java203 copy.put(e.getKey(), e.getValue().clone()); in setOcspResponses()
222 copy.put(e.getKey(), e.getValue().clone()); in getOcspResponses()
266 public PKIXRevocationChecker clone() { in clone() method in PKIXRevocationChecker
267 PKIXRevocationChecker copy = (PKIXRevocationChecker)super.clone(); in clone()
275 entry.setValue(encoded.clone()); in clone()
DPolicyQualifierInfo.java101 mEncoded = encoded.clone(); in PolicyQualifierInfo()
138 return mEncoded.clone(); in getEncoded()
150 return (mData == null ? null : mData.clone()); in getPolicyQualifier()
/libcore/luni/src/test/java/libcore/java/lang/
DOldObjectTest.java52 assertFalse(mco.equals(mco.clone())); in test_clone()
53 assertEquals(mco.getClass(), mco.clone().getClass()); in test_clone()
60 mo.clone(); in test_clone()
68 public Object clone() throws CloneNotSupportedException { in clone() method in OldObjectTest.MockCloneableObject
69 return super.clone(); in clone()
82 public Object clone() throws CloneNotSupportedException { in clone() method in OldObjectTest.MockObject
83 return super.clone(); in clone()
/libcore/ojluni/src/main/java/java/text/
DCollator.java440 public Object clone() in clone() method in Collator
444 Collator clone = (Collator) super.clone(); in clone() local
445 clone.icuColl = (android.icu.text.Collator) icuColl.clone(); in clone()
446 return clone; in clone()
/libcore/luni/src/test/java/tests/security/cert/
DPKIXCertPathBuilderResultTest.java195 PKIXCertPathBuilderResult clone = (PKIXCertPathBuilderResult) init in test_clone() local
196 .clone(); in test_clone()
197 assertSame(init.getCertPath(), clone.getCertPath()); in test_clone()
198 assertSame(init.getPolicyTree(), clone.getPolicyTree()); in test_clone()
199 assertSame(init.getPublicKey(), clone.getPublicKey()); in test_clone()
200 assertSame(init.getTrustAnchor(), clone.getTrustAnchor()); in test_clone()
/libcore/ojluni/src/main/java/java/security/spec/
DEncodedKeySpec.java70 this.encodedKey = encodedKey.clone(); in EncodedKeySpec()
100 this.encodedKey = encodedKey.clone(); in EncodedKeySpec()
122 return this.encodedKey.clone(); in getEncoded()
/libcore/luni/src/main/java/libcore/reflect/
DAnnotationMember.java369 return ((int[])value).clone(); in copyValue()
371 return ((byte[])value).clone(); in copyValue()
373 return ((short[])value).clone(); in copyValue()
375 return ((long[])value).clone(); in copyValue()
377 return ((char[])value).clone(); in copyValue()
379 return ((boolean[])value).clone(); in copyValue()
381 return ((float[])value).clone(); in copyValue()
383 return ((double[])value).clone(); in copyValue()
385 return ((Object[])value).clone(); in copyValue()
/libcore/ojluni/src/test/java/util/BitSet/
DStickySize.java38 equal(expectedSize, clone(s).size()); in equalClones()
41 equal(clone(s), serialClone(s)); in equalClones()
65 equalClones(clone(s), 8*64); in realMain()
73 static BitSet clone(BitSet s) { in clone() method in StickySize
74 return (BitSet) s.clone(); in clone()
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DAdaptableX509CertSelector.java247 public Object clone() { in clone() method in AdaptableX509CertSelector
249 (AdaptableX509CertSelector)super.clone(); in clone()
251 copy.startDate = (Date)startDate.clone(); in clone()
255 copy.endDate = (Date)endDate.clone(); in clone()
259 copy.ski = ski.clone(); in clone()
/libcore/ojluni/src/main/java/java/util/
DTreeSet.java498 public Object clone() { in clone() method in TreeSet
499 TreeSet<E> clone; in clone() local
501 clone = (TreeSet<E>) super.clone(); in clone()
506 clone.m = new TreeMap<>(m); in clone()
507 return clone; in clone()

12345678910>>...17