/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
H A D | DateFormatTest.java | 75 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 D | SimpleDateFormatTest.java | 48 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 D | ChoiceFormatTest.java | 239 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 D | MessageFormatTest.java | 720 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 D | FieldTest.java | 35 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 D | ClassLoaderReflectionTest.java | 145 Field f2 = bClass.getDeclaredField("field"); 146 assertFalse(f1.equals(f2));
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
H A D | FileTest.java | 155 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 D | ProcessImpl.java | 90 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 D | Float.java | 682 * {@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 D | StrictMath.java | 282 * <code>f1 - f2</code> × <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 D | Math.java | 339 * <code>f1 - f2</code> × <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 D | FloatTest.java | 123 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 D | FileSystem.java | 190 public abstract boolean rename(File f1, File f2); argument 226 public abstract int compare(File f1, File f2); argument
|
H A D | UnixFileSystem.java | 313 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 D | ExecutorCompletionServiceTest.java | 113 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 D | Collection8Test.java | 81 final Future<?> f1, f2; 96 f2 = pool.submit(addRemove); 100 assertNull(f2.get(0L, MILLISECONDS));
|
H A D | RecursiveActionTest.java | 186 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 D | ForkJoinPool8Test.java | 197 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 D | ForkJoinPoolTest.java | 147 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 D | ECFieldF2mTest.java | 429 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 D | StreamOpFlagsTest.java | 124 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 D | HttpCapture.java | 160 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 D | DeflaterOutputStreamTest.java | 343 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 D | FileHandler.java | 549 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 D | FileTest.java | 332 File f2 = new File((String)null, "foo.bar"); 334 assertEquals("foo.bar", f2.toString());
|