/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 | ChoiceFormatTest.java | 240 ChoiceFormat f2 = new ChoiceFormat( in test_equalsLjava_lang_Object() local 242 assertTrue("Not equal", f1.equals(f2)); in test_equalsLjava_lang_Object() 301 ChoiceFormat f2 = new ChoiceFormat( in test_hashCode() local 303 assertTrue("Different hash", f1.hashCode() == f2.hashCode()); in test_hashCode()
|
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()
|
/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 | 93 FileOutputStream f2 = null; in start() local 129 f2 = new FileOutputStream(redirects[2].file(), in start() 133 std_fds[2] = f2.getFD().getInt$(); in start() 150 finally { if (f2 != null) f2.close(); } in start()
|
D | Float.java | 906 public static int compare(float f1, float f2) { in compare() argument 907 if (f1 < f2) in compare() 909 if (f1 > f2) in compare() 914 int anotherBits = Float.floatToIntBits(f2); in compare()
|
/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()
|
/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/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/ojluni/src/main/java/java/io/ |
D | FileSystem.java | 185 public abstract boolean rename(File f1, File f2); in rename() argument 221 public abstract int compare(File f1, File f2); in compare() argument
|
D | UnixFileSystem.java | 358 public boolean rename(File f1, File f2) { in rename() argument 368 Libcore.os.rename(f1.getPath(), f2.getPath()); in rename() 422 public int compare(File f1, File f2) { in compare() argument 423 return f1.getPath().compareTo(f2.getPath()); in compare()
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | FileTest.java | 345 File f2 = new File((String)null, "foo.bar"); in testEmptyParentString() local 347 assertEquals("foo.bar", f2.toString()); in testEmptyParentString() 402 File f2 = new File(tempDir, "testCannonCachesOff2"); in test_canonicalCachesAreOff() local 403 f2.createNewFile(); in test_canonicalCachesAreOff() 412 …assertEquals(0, Runtime.getRuntime().exec("ln -s " + f2.getAbsolutePath() + " " + symlinkFile.getA… in test_canonicalCachesAreOff() 415 assertEquals(symlinkFile.getCanonicalPath(), f2.getCanonicalPath()); in test_canonicalCachesAreOff()
|
/libcore/ojluni/annotations/hiddenapi/java/io/ |
D | FileSystem.java | 98 public abstract boolean rename(java.io.File f1, java.io.File f2); in rename() argument 113 public abstract int compare(java.io.File f1, java.io.File f2); in compare() argument
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
D | DeflaterOutputStreamTest.java | 373 File f2 = File.createTempFile("writeBII2", ".tst"); in test_write$BII() local 374 FileOutputStream fos2 = new FileOutputStream(f2); in test_write$BII() 409 FileOutputStream fos3 = new FileOutputStream(f2); in test_write$BII() 424 f2.delete(); in test_write$BII()
|
/libcore/ojluni/src/main/java/java/util/logging/ |
D | FileHandler.java | 656 File f2 = files[i+1]; in rotate() local 658 if (f2.exists()) { in rotate() 659 f2.delete(); in rotate() 661 f1.renameTo(f2); in rotate()
|
/libcore/ojluni/annotations/hiddenapi/java/lang/ |
D | Float.java | 139 public static int compare(float f1, float f2) { in compare() argument
|
/libcore/ojluni/annotations/sdk/nullability/java/lang/ |
D | Float.annotated.java | 87 public static int compare(float f1, float f2) { throw new RuntimeException("Stub!"); } in compare() argument
|
/libcore/ojluni/annotations/mmodule/java/lang/ |
D | Math.annotated.java | 63 public static native double IEEEremainder(double f1, double f2); in IEEEremainder() argument
|