Searched refs:clone (Results 1 - 25 of 323) sorted by path

1234567891011>>

/libcore/benchmarks/src/benchmarks/regression/
H A DDateToStringBenchmark.java53 ((SimpleDateFormat) format.clone()).format(date);
H A DExpensiveObjectsBenchmark.java42 ((DateFormat) df.clone()).format(System.currentTimeMillis());
64 c.clone();
77 dfs.clone();
90 dfs.clone();
103 nf.clone();
136 sdf.clone();
149 gc.clone();
/libcore/dalvik/src/main/java/dalvik/system/profiler/
H A DSamplingProfiler.java371 currentThreads = newThreads.clone();
406 StackTraceElement[] stackFramesCopy = stackFrames.clone();
/libcore/dom/src/test/java/org/w3c/domts/
H A DDOMTestDocumentBuilderFactory.java47 this.settings = (DocumentBuilderSetting[]) settings.clone();
87 * return clone of existing settings.
92 return (DocumentBuilderSetting[]) settings.clone();
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
H A DEnumTest.java52 super.clone();
195 * java.lang.Enum#clone()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
H A DBigIntegerTest.java850 myBigInteger = (MyBigInteger) myBigInteger.clone();
857 public Object clone() { method in class:BigIntegerTest.MyBigInteger
859 return super.clone();
H A DOldBigIntegerTest.java334 myBigInteger = (MyBigInteger) myBigInteger.clone();
341 public Object clone() { method in class:OldBigIntegerTest.MyBigInteger
343 return super.clone();
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
H A DHttpCookieTest.java461 * java.net.HttpCookie#clone()
468 HttpCookie cloneCookie = (HttpCookie) cookie.clone();
H A DProxySelectorTest.java551 originalSystemProperties = (Properties) System.getProperties().clone();
H A DServerSocketTest.java105 Properties props = (Properties) System.getProperties().clone();
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
H A DAttributedStringTest.java87 public Object clone() { method in class:AttributedStringTest.testAttributedCharacterIterator
H A DBreakIteratorTest.java67 BreakIterator cloned = (BreakIterator) iterator.clone();
H A DChoiceFormatTest.java142 ChoiceFormat f = (ChoiceFormat) f1.clone();
195 * @tests java.text.ChoiceFormat#clone()
198 // Test for method java.lang.Object java.text.ChoiceFormat.clone()
199 ChoiceFormat f = (ChoiceFormat) f1.clone();
301 String[] orgFormats = (String[]) formats.clone();
313 double[] orgLimits = (double[]) limits.clone();
398 ChoiceFormat f = (ChoiceFormat) f1.clone();
H A DCollatorTest.java28 Collator c2 = (Collator) c.clone();
118 Collator c2 = (Collator) c.clone();
H A DDateFormatSymbolsTest.java92 * @tests java.text.DateFormatSymbols#clone()
95 // Test for method java.lang.Object java.text.DateFormatSymbols.clone()
97 DateFormatSymbols clone = (DateFormatSymbols) symbols.clone();
98 assertTrue("Not equal", symbols.equals(clone));
107 assertTrue("Equal object returned true", dfs.equals(dfs.clone()));
226 dfs.hashCode() == dfs.clone().hashCode());
H A DDateFormatTest.java31 * @tests java.text.DateFormat#clone()
35 DateFormat clone = (DateFormat) format.clone();
36 assertTrue("Clone not equal", format.equals(clone));
37 clone.getNumberFormat().setMinimumFractionDigits(123);
38 assertTrue("Clone shares NumberFormat", !format.equals(clone));
H A DDecimalFormatSymbolsTest.java107 assertTrue("Equal objects returned false", dfs.equals(dfs.clone()));
H A DDecimalFormatTest.java647 DecimalFormat cloned = (DecimalFormat) format.clone();
993 DecimalFormat df2 = (DecimalFormat) df1.clone();
999 DecimalFormat cloned = (DecimalFormat) format.clone();
1003 DecimalFormat format1 = (DecimalFormat) (format.clone());
1005 assertTrue("Object's clone isn't equal!", format.equals(format1));
1006 // change the content of the clone and make sure it's not equal anymore
1009 assertTrue("Object's changed clone should not be equal!", !format.equals(format1));
H A DMessageFormatTest.java115 MessageFormat f1 = (MessageFormat) format1.clone();
225 MessageFormat f1 = (MessageFormat) format1.clone();
529 MessageFormat clone = (MessageFormat) format.clone();
530 assertTrue("Clone not equal", format.equals(clone));
533 clone.setFormat(0, DateFormat.getInstance());
534 assertTrue("Clone shares format data", !format.equals(clone));
535 format = (MessageFormat) clone.clone();
536 Format[] formats = clone
[all...]
H A DRuleBasedCollatorTest.java52 RuleBasedCollator clone = (RuleBasedCollator) coll.clone();
53 assertNotSame(coll, clone);
54 assertEquals(coll.getRules(), clone.getRules());
55 assertEquals(coll.getDecomposition(), clone.getDecomposition());
56 assertEquals(coll.getStrength(), clone.getStrength());
H A DSimpleDateFormatTest.java189 // Test for method java.lang.Object java.text.SimpleDateFormat.clone()
191 SimpleDateFormat clone = (SimpleDateFormat) f2.clone();
192 assertTrue("Invalid clone", f2.equals(clone));
193 clone.applyPattern("y");
194 assertTrue("Format modified", !f2.equals(clone));
195 clone = (SimpleDateFormat) f2.clone();
196 // Date date = clone
[all...]
H A DStringCharacterIteratorTest.java146 * @tests java.text.StringCharacterIterator.clone()
151 StringCharacterIterator sci1 = (StringCharacterIterator) sci0.clone();
157 StringCharacterIterator clone = (StringCharacterIterator) it.clone();
158 assertTrue("Clone not equal", it.equals(clone));
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DAbstractMapTest.java252 * java.util.AbstractMap#clone()
270 public Object clone() {
272 return super.clone();
284 MyMap mapClone = (MyMap) map.clone();
285 assertTrue("clone not shallow", map.getMap() == mapClone.getMap());
H A DArrayDequeTest.java880 * {@link java.util.ArrayDeque#clone()}
883 ArrayDeque<Object> cloned = testQue.clone();
892 cloned = testQue.clone();
H A DArrayListTest.java490 * java.util.ArrayList#clone()
493 // Test for method java.lang.Object java.util.ArrayList.clone()
494 ArrayList x = (ArrayList) (((ArrayList) (alist)).clone());
502 x = (ArrayList) (((ArrayList) (alist)).clone());
693 ArrayList myList = (ArrayList) (((ArrayList) (alist)).clone());

Completed in 701 milliseconds

1234567891011>>