Home
last modified time | relevance | path

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

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DDateFormatTest.java75 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 …]
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.java239 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/
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()
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/
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.java90 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()
DFloat.java908 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()
DStrictMath.java300 public static native double IEEEremainder(double f1, double f2); in IEEEremainder() argument
/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()
DForkJoinPool8Test.java197 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()
DForkJoinPoolTest.java147 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/
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/main/java/java/io/
DFileSystem.java190 public abstract boolean rename(File f1, File f2); in rename() argument
226 public abstract int compare(File f1, File f2); in compare() argument
DUnixFileSystem.java313 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/
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/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DDeflaterOutputStreamTest.java343 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/
DFileHandler.java549 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/
DHttpCapture.java160 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/
DFileTest.java332 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/
DFormatterTest.java178 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()

12