Home
last modified time | relevance | path

Searched refs:f2 (Results 1 – 25 of 35) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DDateFormatTest.java81 SimpleDateFormat f2 = (SimpleDateFormat) DateFormat.getDateInstance(); in test_getDateInstance() local
82 assertTrue("Wrong class", f2.getClass() == SimpleDateFormat.class); in test_getDateInstance()
83 assertTrue("Wrong default", f2.equals(DateFormat.getDateInstance( in test_getDateInstance()
85 assertEquals(f2.getDateFormatSymbols(), new DateFormatSymbols()); in test_getDateInstance()
87 f2.format(new Date()).getClass() == String.class); in test_getDateInstance()
97 SimpleDateFormat f2 = (SimpleDateFormat) DateFormat in test_getDateInstanceI() local
99 assertTrue("Wrong class1", f2.getClass() == SimpleDateFormat.class); in test_getDateInstanceI()
100 assertTrue("Wrong default1", f2.equals(DateFormat.getDateInstance( in test_getDateInstanceI()
102 assertTrue("Wrong symbols1", f2.getDateFormatSymbols().equals( in test_getDateInstanceI()
105 f2.format(new Date()).getClass() == String.class); in test_getDateInstanceI()
[all …]
DSimpleDateFormatTest.java48 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 …]
DMessageFormatTest.java720 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()
DChoiceFormatTest.java240 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()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DFileTest.java155 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()
457 File f2 = null; in test_createTempFileLjava_lang_StringLjava_lang_String() local
460 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/
DFloatTest.java123 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/
DFieldTest.java35 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()
DClassLoaderReflectionTest.java145 Field f2 = bClass.getDeclaredField("field"); in testFieldsOfDifferentClassLoadersAreNotEqual() local
146 assertFalse(f1.equals(f2)); in testFieldsOfDifferentClassLoadersAreNotEqual()
/libcore/ojluni/src/main/java/java/lang/
DProcessImpl.java93 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()
DFloat.java906 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/
DExecutorCompletionServiceTest.java113 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()
DCollection8Test.java81 final Future<?> f1, f2; in testForEachConcurrentStressTest() local
96 f2 = pool.submit(addRemove); in testForEachConcurrentStressTest()
100 assertNull(f2.get(0L, MILLISECONDS)); in testForEachConcurrentStressTest()
DRecursiveActionTest.java186 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()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DExecutorCompletionServiceTest.java124 Future f2 = cs.take(); in testTake2() local
125 assertSame(f1, f2); in testTake2()
242 Future f2 = cs.take(); in testNewTaskForCallable() local
243 assertSame("submit and take must return same objects", f1, f2); in testNewTaskForCallable()
272 Future f2 = cs.take(); in testNewTaskForRunnable() local
273 assertSame("submit and take must return same objects", f1, f2); in testNewTaskForRunnable()
DRecursiveActionTest.java210 FibAction f2 = new FibAction(n - 2); in realCompute() local
211 invokeAll(f1, f2); in realCompute()
212 result = f1.result + f2.result; in realCompute()
228 FailingFibAction f2 = new FailingFibAction(n - 2); in compute() local
229 invokeAll(f1, f2); in compute()
230 result = f1.result + f2.result; in compute()
/libcore/luni/src/test/java/tests/security/spec/
DECFieldF2mTest.java429 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/
DStreamOpFlagsTest.java124 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/
DFileSystem.java185 public abstract boolean rename(File f1, File f2); in rename() argument
221 public abstract int compare(File f1, File f2); in compare() argument
DUnixFileSystem.java358 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/
DFileTest.java345 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/
DFileSystem.java98 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/
DDeflaterOutputStreamTest.java373 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/
DFileHandler.java656 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/
DFloat.java139 public static int compare(float f1, float f2) { in compare() argument
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DFloat.annotated.java87 public static int compare(float f1, float f2) { throw new RuntimeException("Stub!"); } in compare() argument

12