/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | DateFormatTest.java | 75 SimpleDateFormat f2 = (SimpleDateFormat) DateFormat.getDateInstance(); in test_getDateInstance() local 76 assertTrue("Wrong class", f2.getClass() == SimpleDateFormat.class); in test_getDateInstance() 77 assertTrue("Wrong default", f2.equals(DateFormat.getDateInstance( in test_getDateInstance() 79 assertEquals(f2.getDateFormatSymbols(), new DateFormatSymbols()); in test_getDateInstance() 81 f2.format(new Date()).getClass() == String.class); in test_getDateInstance() 91 SimpleDateFormat f2 = (SimpleDateFormat) DateFormat in test_getDateInstanceI() local 93 assertTrue("Wrong class1", f2.getClass() == SimpleDateFormat.class); in test_getDateInstanceI() 94 assertTrue("Wrong default1", f2.equals(DateFormat.getDateInstance( in test_getDateInstanceI() 96 assertTrue("Wrong symbols1", f2.getDateFormatSymbols().equals( in test_getDateInstanceI() 99 f2.format(new Date()).getClass() == String.class); in test_getDateInstanceI() [all …]
|
D | SimpleDateFormatTest.java | 48 SimpleDateFormat f2 = new SimpleDateFormat(); in test_Constructor() local 49 assertTrue("Wrong class", f2.getClass() == SimpleDateFormat.class); in test_Constructor() 50 assertTrue("Wrong default", f2.equals(DateFormat.getDateTimeInstance( in test_Constructor() 52 assertTrue("Wrong symbols", f2.getDateFormatSymbols().equals(new DateFormatSymbols())); in test_Constructor() 53 assertTrue("Doesn't work", f2.format(new Date()).getClass() == String.class); in test_Constructor() 58 SimpleDateFormat f2 = new SimpleDateFormat("yyyy"); in test_ConstructorLjava_lang_String() local 59 assertTrue("Wrong class", f2.getClass() == SimpleDateFormat.class); in test_ConstructorLjava_lang_String() 60 assertEquals("Wrong pattern", "yyyy", f2.toPattern()); in test_ConstructorLjava_lang_String() 61 assertTrue("Wrong locale", f2.equals(new SimpleDateFormat("yyyy", Locale.getDefault()))); in test_ConstructorLjava_lang_String() 62 assertTrue("Wrong symbols", f2.getDateFormatSymbols().equals(new DateFormatSymbols())); in test_ConstructorLjava_lang_String() [all …]
|
D | MessageFormatTest.java | 720 MessageFormat f2 = (MessageFormat) format2.clone(); in test_setFormatByArgumentIndexILjava_text_Format() local 721 f2.setFormatByArgumentIndex(2, NumberFormat.getPercentInstance()); in test_setFormatByArgumentIndexILjava_text_Format() 722 f2.setFormatByArgumentIndex(4, DateFormat.getTimeInstance()); in test_setFormatByArgumentIndexILjava_text_Format() 724 formats = f2.getFormatsByArgumentIndex(); in test_setFormatByArgumentIndexILjava_text_Format() 734 formats = f2.getFormats(); in test_setFormatByArgumentIndexILjava_text_Format() 794 MessageFormat f2 = (MessageFormat) format2.clone(); in test_setFormatsByArgumentIndex$Ljava_text_Format() local 801 f2.setFormatsByArgumentIndex(inputFormats); in test_setFormatsByArgumentIndex$Ljava_text_Format() 803 formats = f2.getFormatsByArgumentIndex(); in test_setFormatsByArgumentIndex$Ljava_text_Format() 813 formats = f2.getFormats(); in test_setFormatsByArgumentIndex$Ljava_text_Format()
|
D | ChoiceFormatTest.java | 239 ChoiceFormat f2 = new ChoiceFormat( in test_equalsLjava_lang_Object() local 241 assertTrue("Not equal", f1.equals(f2)); in test_equalsLjava_lang_Object() 325 ChoiceFormat f2 = new ChoiceFormat( in test_hashCode() local 327 assertTrue("Different hash", f1.hashCode() == f2.hashCode()); in test_hashCode()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | FileTest.java | 155 File f2 = new File("a/"); in test_ConstructorLjava_io_FileLjava_lang_String6() local 156 assertEquals("Trailing slash file name is incorrect", f1, f2); in test_ConstructorLjava_io_FileLjava_lang_String6() 333 File f2 = new File("thisFile.file"); in test_compareToLjava_io_File() local 336 .compareTo(f2)); in test_compareToLjava_io_File() 390 File f2 = new File(dir, "tempfile.tst"); in test_createNewFile() local 392 f2.deleteOnExit(); in test_createNewFile() 397 assertTrue("File Should Exist.", f2.isFile()); in test_createNewFile() 409 f2.createNewFile()); in test_createNewFile() 452 File f2 = null; in test_createTempFileLjava_lang_StringLjava_lang_String() local 455 f2 = File.createTempFile("harmony-test-FileTest_tempFile_tf", null); in test_createTempFileLjava_lang_StringLjava_lang_String() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | FloatTest.java | 123 Float f2 = new Float(90.8f); in test_byteValue() local 124 assertTrue("Returned incorrect byte value", f.byteValue() == 0 && f2.byteValue() == 90); in test_byteValue() 141 float f2 = values[j]; in test_compare() local 142 assertTrue("compare() " + f1 + " should be less " + f2, in test_compare() 143 Float.compare(f1, f2) == -1); in test_compare() 144 assertTrue("compare() " + f2 + " should be greater " + f1, Float in test_compare() 145 .compare(f2, f1) == 1); in test_compare() 146 Float F2 = new Float(f2); in test_compare() 147 assertTrue("compareTo() " + f1 + " should be less " + f2, in test_compare() 149 assertTrue("compareTo() " + f2 + " should be greater " + f1, in test_compare() [all …]
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
D | FieldTest.java | 35 Field f2 = FieldTestHelper.class.getField("a"); in testEqualConstructorEqualsAndHashCode() local 36 assertEquals(f1, f2); in testEqualConstructorEqualsAndHashCode() 37 assertEquals(f1.hashCode(), f2.hashCode()); in testEqualConstructorEqualsAndHashCode() 47 Field f2 = FieldTestHelper.class.getField("b"); in testDifferentConstructorEqualsAndHashCode() local 48 assertFalse(f1.equals(f2)); in testDifferentConstructorEqualsAndHashCode()
|
D | ClassLoaderReflectionTest.java | 145 Field f2 = bClass.getDeclaredField("field"); in testFieldsOfDifferentClassLoadersAreNotEqual() local 146 assertFalse(f1.equals(f2)); in testFieldsOfDifferentClassLoadersAreNotEqual()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | ProcessImpl.java | 90 FileOutputStream f2 = null; in start() local 122 f2 = new FileOutputStream(redirects[2].file(), in start() 124 std_fds[2] = f2.getFD().getInt$(); in start() 141 finally { if (f2 != null) f2.close(); } in start()
|
D | Float.java | 908 public static int compare(float f1, float f2) { in compare() argument 909 if (f1 < f2) in compare() 911 if (f1 > f2) in compare() 916 int anotherBits = Float.floatToIntBits(f2); in compare()
|
D | StrictMath.java | 300 public static native double IEEEremainder(double f1, double f2); in IEEEremainder() argument
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | ExecutorCompletionServiceTest.java | 113 Future f2 = ecs.take(); in testTake2() local 114 assertSame(f1, f2); in testTake2() 182 Future f2 = ecs.take(); in testNewTaskForCallable() local 183 assertSame("submit and take must return same objects", f1, f2); in testNewTaskForCallable() 213 Future f2 = ecs.take(); in testNewTaskForRunnable() local 214 assertSame("submit and take must return same objects", f1, f2); in testNewTaskForRunnable()
|
D | Collection8Test.java | 81 final Future<?> f1, f2; in testForEachConcurrentStressTest() local 96 f2 = pool.submit(addRemove); in testForEachConcurrentStressTest() 100 assertNull(f2.get(0L, MILLISECONDS)); in testForEachConcurrentStressTest()
|
D | RecursiveActionTest.java | 186 FibAction f2 = new FibAction(n - 2); in realCompute() local 187 invokeAll(f1, f2); in realCompute() 188 result = f1.result + f2.result; in realCompute() 204 FailingFibAction f2 = new FailingFibAction(n - 2); in compute() local 205 invokeAll(f1, f2); in compute() 206 result = f1.result + f2.result; in compute()
|
D | ForkJoinPool8Test.java | 197 FibAction f2 = new FibAction(n - 2); in realCompute() local 198 invokeAll(f1, f2); in realCompute() 199 result = f1.result + f2.result; in realCompute() 215 FailingFibAction f2 = new FailingFibAction(n - 2); in compute() local 216 invokeAll(f1, f2); in compute() 217 result = f1.result + f2.result; in compute()
|
D | ForkJoinPoolTest.java | 147 LockingFibTask f2 = null; in compute() local 152 f2 = new LockingFibTask(n - 2, locker, lock); in compute() 159 return f2.compute() + f1.join(); in compute()
|
/libcore/luni/src/test/java/tests/security/spec/ |
D | ECFieldF2mTest.java | 429 ECFieldF2m f2 = new ECFieldF2m(2000, BigInteger.valueOf(0L). in testEqualsObject04() local 432 assertTrue(f1.equals(f2) && f2.equals(f1)); in testEqualsObject04() 442 ECFieldF2m f2 = new ECFieldF2m(2000, BigInteger.valueOf(0L). in testEqualsObject05() local 445 assertFalse(f1.equals(f2) || f2.equals(f1)); in testEqualsObject05()
|
/libcore/ojluni/src/main/java/java/io/ |
D | FileSystem.java | 190 public abstract boolean rename(File f1, File f2); in rename() argument 226 public abstract int compare(File f1, File f2); in compare() argument
|
D | UnixFileSystem.java | 313 public boolean rename(File f1, File f2) { in rename() argument 322 return rename0(f1, f2); in rename() 325 private native boolean rename0(File f1, File f2); in rename0() argument 367 public int compare(File f1, File f2) { in compare() argument 368 return f1.getPath().compareTo(f2.getPath()); in compare()
|
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/ |
D | StreamOpFlagsTest.java | 124 for (StreamOpFlag f2 : StreamOpFlagTestHelper.allStreamFlags()) { in testPairSet() 129 opsFlags = combineOpFlags(f2.set(), opsFlags); in testPairSet() 130 assertEquals(sourceFlags | f1.set() | f2.set(), toStreamFlags(opsFlags)); in testPairSet() 143 for (StreamOpFlag f2 : StreamOpFlagTestHelper.allStreamFlags()) { in testPairSetAndClear() 148 opsFlags = combineOpFlags(f2.clear(), opsFlags); in testPairSetAndClear() 149 if (f1 == f2) in testPairSetAndClear() 150 … assertEquals((f2.set() == sourceFlags) ? 0 : sourceFlags, toStreamFlags(opsFlags)); in testPairSetAndClear() 152 …assertEquals((f2.set() == sourceFlags) ? f1.set() : sourceFlags | f1.set(), toStreamFlags(opsFlags… in testPairSetAndClear()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
D | DeflaterOutputStreamTest.java | 343 File f2 = File.createTempFile("writeBII2", ".tst"); in test_write$BII() local 344 FileOutputStream fos2 = new FileOutputStream(f2); in test_write$BII() 379 FileOutputStream fos3 = new FileOutputStream(f2); in test_write$BII() 388 f2.delete(); in test_write$BII()
|
/libcore/ojluni/src/main/java/java/util/logging/ |
D | FileHandler.java | 549 File f2 = files[i+1]; in rotate() local 551 if (f2.exists()) { in rotate() 552 f2.delete(); in rotate() 554 f1.renameTo(f2); in rotate()
|
/libcore/ojluni/src/main/java/sun/net/www/http/ |
D | HttpCapture.java | 160 String f2 = f.replace("%d", Integer.toString(rand.nextInt())); in getCapture() local 161 fi = new File(f2); in getCapture()
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | FileTest.java | 332 File f2 = new File((String)null, "foo.bar"); in testEmptyParentString() local 334 assertEquals("foo.bar", f2.toString()); in testEmptyParentString()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | FormatterTest.java | 178 Formatter f2 = new Formatter((Appendable) null); in test_ConstructorLjava_lang_Appendable() local 185 Appendable sb = f2.out(); in test_ConstructorLjava_lang_Appendable() 187 assertNotNull(f2.toString()); in test_ConstructorLjava_lang_Appendable() 199 Formatter f2 = new Formatter((Locale) null); in test_ConstructorLjava_util_Locale() local 200 assertNull(f2.locale()); in test_ConstructorLjava_util_Locale() 201 assertTrue(f2.out() instanceof StringBuilder); in test_ConstructorLjava_util_Locale() 202 assertNotNull(f2.toString()); in test_ConstructorLjava_util_Locale() 214 Formatter f2 = new Formatter(ma, null); in test_ConstructorLjava_lang_AppendableLjava_util_Locale() local 215 assertNull(f2.locale()); in test_ConstructorLjava_lang_AppendableLjava_util_Locale()
|