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

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
H A DDateFormatTest.java75 SimpleDateFormat f2 = (SimpleDateFormat) DateFormat.getDateInstance();
76 assertTrue("Wrong class", f2.getClass() == SimpleDateFormat.class);
77 assertTrue("Wrong default", f2.equals(DateFormat.getDateInstance(
79 assertEquals(f2.getDateFormatSymbols(), new DateFormatSymbols());
81 f2.format(new Date()).getClass() == String.class);
91 SimpleDateFormat f2 = (SimpleDateFormat) DateFormat
93 assertTrue("Wrong class1", f2.getClass() == SimpleDateFormat.class);
94 assertTrue("Wrong default1", f2.equals(DateFormat.getDateInstance(
96 assertTrue("Wrong symbols1", f2.getDateFormatSymbols().equals(
99 f2
[all...]
H A DSimpleDateFormatTest.java48 SimpleDateFormat f2 = new SimpleDateFormat();
49 assertTrue("Wrong class", f2.getClass() == SimpleDateFormat.class);
50 assertTrue("Wrong default", f2.equals(DateFormat.getDateTimeInstance(
52 assertTrue("Wrong symbols", f2.getDateFormatSymbols().equals(new DateFormatSymbols()));
53 assertTrue("Doesn't work", f2.format(new Date()).getClass() == String.class);
58 SimpleDateFormat f2 = new SimpleDateFormat("yyyy");
59 assertTrue("Wrong class", f2.getClass() == SimpleDateFormat.class);
60 assertEquals("Wrong pattern", "yyyy", f2.toPattern());
61 assertTrue("Wrong locale", f2.equals(new SimpleDateFormat("yyyy", Locale.getDefault())));
62 assertTrue("Wrong symbols", f2
[all...]
H A DChoiceFormatTest.java239 ChoiceFormat f2 = new ChoiceFormat(
241 assertTrue("Not equal", f1.equals(f2));
325 ChoiceFormat f2 = new ChoiceFormat(
327 assertTrue("Different hash", f1.hashCode() == f2.hashCode());
H A DMessageFormatTest.java720 MessageFormat f2 = (MessageFormat) format2.clone();
721 f2.setFormatByArgumentIndex(2, NumberFormat.getPercentInstance());
722 f2.setFormatByArgumentIndex(4, DateFormat.getTimeInstance());
724 formats = f2.getFormatsByArgumentIndex();
734 formats = f2.getFormats();
794 MessageFormat f2 = (MessageFormat) format2.clone();
801 f2.setFormatsByArgumentIndex(inputFormats);
803 formats = f2.getFormatsByArgumentIndex();
813 formats = f2.getFormats();
/libcore/luni/src/test/java/libcore/java/lang/reflect/
H A DFieldTest.java35 Field f2 = FieldTestHelper.class.getField("a");
36 assertEquals(f1, f2);
37 assertEquals(f1.hashCode(), f2.hashCode());
47 Field f2 = FieldTestHelper.class.getField("b");
48 assertFalse(f1.equals(f2));
H A DClassLoaderReflectionTest.java145 Field f2 = bClass.getDeclaredField("field");
146 assertFalse(f1.equals(f2));
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DFileTest.java155 File f2 = new File("a/");
156 assertEquals("Trailing slash file name is incorrect", f1, f2);
333 File f2 = new File("thisFile.file");
336 .compareTo(f2));
390 File f2 = new File(dir, "tempfile.tst");
392 f2.deleteOnExit();
397 assertTrue("File Should Exist.", f2.isFile());
409 f2.createNewFile());
452 File f2 = null;
455 f2
[all...]
/libcore/ojluni/src/main/java/java/lang/
H A DProcessImpl.java90 FileOutputStream f2 = null;
122 f2 = new FileOutputStream(redirects[2].file(),
124 std_fds[2] = f2.getFD().getInt$();
141 finally { if (f2 != null) f2.close(); }
H A DFloat.java682 * {@code Float}, {@code f1} and {@code f2}, the value
683 * of {@code f1.equals(f2)} is {@code true} if and only if
686 * f1.floatValue() == f2.floatValue()
691 * <li>If {@code f1} and {@code f2} both represent
696 * {@code f2} represents {@code -0.0f}, or vice
895 * new Float(f1).compareTo(new Float(f2))
899 * @param f2 the second {@code float} to compare.
901 * numerically equal to {@code f2}; a value less than
903 * {@code f2}; and a value greater than {@code 0}
905 * {@code f2}
908 compare(float f1, float f2) argument
[all...]
H A DStrictMath.java282 * <code>f1&nbsp;-&nbsp;f2</code>&nbsp;&times;&nbsp;<i>n</i>,
284 * mathematical value of the quotient {@code f1/f2}, and if two
285 * mathematical integers are equally close to {@code f1/f2},
296 * @param f2 the divisor.
298 * {@code f2}.
300 public static native double IEEEremainder(double f1, double f2); argument
H A DMath.java339 * <code>f1&nbsp;-&nbsp;f2</code>&nbsp;&times;&nbsp;<i>n</i>,
341 * mathematical value of the quotient {@code f1/f2}, and if two
342 * mathematical integers are equally close to {@code f1/f2},
353 * @param f2 the divisor.
355 * {@code f2}.
357 public static native double IEEEremainder(double f1, double f2); argument
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
H A DFloatTest.java123 Float f2 = new Float(90.8f);
124 assertTrue("Returned incorrect byte value", f.byteValue() == 0 && f2.byteValue() == 90);
141 float f2 = values[j];
142 assertTrue("compare() " + f1 + " should be less " + f2,
143 Float.compare(f1, f2) == -1);
144 assertTrue("compare() " + f2 + " should be greater " + f1, Float
145 .compare(f2, f1) == 1);
146 Float F2 = new Float(f2);
147 assertTrue("compareTo() " + f1 + " should be less " + f2,
149 assertTrue("compareTo() " + f2
[all...]
/libcore/ojluni/src/main/java/java/io/
H A DFileSystem.java190 public abstract boolean rename(File f1, File f2); argument
226 public abstract int compare(File f1, File f2); argument
H A DUnixFileSystem.java313 public boolean rename(File f1, File f2) { argument
322 return rename0(f1, f2);
325 private native boolean rename0(File f1, File f2); argument
367 public int compare(File f1, File f2) { argument
368 return f1.getPath().compareTo(f2.getPath());
/libcore/jsr166-tests/src/test/java/jsr166/
H A DExecutorCompletionServiceTest.java113 Future f2 = ecs.take();
114 assertSame(f1, f2);
182 Future f2 = ecs.take();
183 assertSame("submit and take must return same objects", f1, f2);
213 Future f2 = ecs.take();
214 assertSame("submit and take must return same objects", f1, f2);
H A DCollection8Test.java81 final Future<?> f1, f2;
96 f2 = pool.submit(addRemove);
100 assertNull(f2.get(0L, MILLISECONDS));
H A DRecursiveActionTest.java186 FibAction f2 = new FibAction(n - 2);
187 invokeAll(f1, f2);
188 result = f1.result + f2.result;
204 FailingFibAction f2 = new FailingFibAction(n - 2);
205 invokeAll(f1, f2);
206 result = f1.result + f2.result;
H A DForkJoinPool8Test.java197 FibAction f2 = new FibAction(n - 2);
198 invokeAll(f1, f2);
199 result = f1.result + f2.result;
215 FailingFibAction f2 = new FailingFibAction(n - 2);
216 invokeAll(f1, f2);
217 result = f1.result + f2.result;
H A DForkJoinPoolTest.java147 LockingFibTask f2 = null;
152 f2 = new LockingFibTask(n - 2, locker, lock);
159 return f2.compute() + f1.join();
/libcore/luni/src/test/java/tests/security/spec/
H A DECFieldF2mTest.java429 ECFieldF2m f2 = new ECFieldF2m(2000, BigInteger.valueOf(0L).
432 assertTrue(f1.equals(f2) && f2.equals(f1));
442 ECFieldF2m f2 = new ECFieldF2m(2000, BigInteger.valueOf(0L).
445 assertFalse(f1.equals(f2) || f2.equals(f1));
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/
H A DStreamOpFlagsTest.java124 for (StreamOpFlag f2 : StreamOpFlagTestHelper.allStreamFlags()) {
129 opsFlags = combineOpFlags(f2.set(), opsFlags);
130 assertEquals(sourceFlags | f1.set() | f2.set(), toStreamFlags(opsFlags));
143 for (StreamOpFlag f2 : StreamOpFlagTestHelper.allStreamFlags()) {
148 opsFlags = combineOpFlags(f2.clear(), opsFlags);
149 if (f1 == f2)
150 assertEquals((f2.set() == sourceFlags) ? 0 : sourceFlags, toStreamFlags(opsFlags));
152 assertEquals((f2.set() == sourceFlags) ? f1.set() : sourceFlags | f1.set(), toStreamFlags(opsFlags));
/libcore/ojluni/src/main/java/sun/net/www/http/
H A DHttpCapture.java160 String f2 = f.replace("%d", Integer.toString(rand.nextInt()));
161 fi = new File(f2);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
H A DDeflaterOutputStreamTest.java343 File f2 = File.createTempFile("writeBII2", ".tst");
344 FileOutputStream fos2 = new FileOutputStream(f2);
379 FileOutputStream fos3 = new FileOutputStream(f2);
388 f2.delete();
/libcore/ojluni/src/main/java/java/util/logging/
H A DFileHandler.java549 File f2 = files[i+1];
551 if (f2.exists()) {
552 f2.delete();
554 f1.renameTo(f2);
/libcore/luni/src/test/java/libcore/java/io/
H A DFileTest.java332 File f2 = new File((String)null, "foo.bar");
334 assertEquals("foo.bar", f2.toString());

Completed in 1390 milliseconds

12