Home
last modified time | relevance | path

Searched refs:f1 (Results 1 – 25 of 42) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DDeflaterOutputStreamTest.java93 File f1 = File.createTempFile("hyts_ConstruOD", ".tst"); in test_ConstructorLjava_io_OutputStreamLjava_util_zip_Deflater() local
94 FileOutputStream fos = new FileOutputStream(f1); in test_ConstructorLjava_io_OutputStreamLjava_util_zip_Deflater()
112 f1.delete(); in test_ConstructorLjava_io_OutputStreamLjava_util_zip_Deflater()
120 File f1 = File.createTempFile("hyts_ConstruO", ".tst"); in test_ConstructorLjava_io_OutputStream() local
121 FileOutputStream fos = new FileOutputStream(f1); in test_ConstructorLjava_io_OutputStream()
130 f1.delete(); in test_ConstructorLjava_io_OutputStream()
143 File f1 = File.createTempFile("hyts_ConstruODI", ".tst"); in test_ConstructorLjava_io_OutputStreamLjava_util_zip_DeflaterI() local
144 FileOutputStream fos = new FileOutputStream(f1); in test_ConstructorLjava_io_OutputStreamLjava_util_zip_DeflaterI()
177 f1.delete(); in test_ConstructorLjava_io_OutputStreamLjava_util_zip_DeflaterI()
191 File f1 = File.createTempFile("close", ".tst"); in test_close() local
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DFileTest.java154 File f1 = 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()
332 File f1 = new File("thisFile.file"); in test_compareToLjava_io_File() local
335 assertEquals("Equal files did not answer zero for compareTo", 0, f1 in test_compareToLjava_io_File()
338 .compareTo(f1) < 0); in test_compareToLjava_io_File()
339 assertTrue("f1.compareTo(f3) did not result in value > 0", f1 in test_compareToLjava_io_File()
380 File f1 = new File(dir, "tempfile.tst"); in test_createNewFile() local
381 f1.createNewFile(); in test_createNewFile()
389 File f1 = new File(dir, "tempfile.tst"); in test_createNewFile() local
391 f1.deleteOnExit(); in test_createNewFile()
[all …]
DSerializationStressTest3.java44 int f1; field in SerializationStressTest3.DefaultConstructor
49 f1 = valueAfterConstructor; in DefaultConstructor()
65 return inst.f1 == valueAfterConstructor; in equals()
71 public int f1; field in SerializationStressTest3.NonSerDefaultConstructor
76 f1 = valueAfterConstructor; in NonSerDefaultConstructor()
84 public int f1; field in SerializationStressTest3.NonSerPrivateConstructor
89 f1 = valueAfterConstructor; in NonSerPrivateConstructor()
97 public int f1; field in SerializationStressTest3.NonSerProtectedConstructor
102 f1 = valueAfterConstructor; in NonSerProtectedConstructor()
107 public int f1; field in SerializationStressTest3.NonSerPublicConstructor
[all …]
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DFieldTest.java34 Field f1 = FieldTestHelper.class.getField("a"); in testEqualConstructorEqualsAndHashCode() local
36 assertEquals(f1, f2); in testEqualConstructorEqualsAndHashCode()
37 assertEquals(f1.hashCode(), f2.hashCode()); in testEqualConstructorEqualsAndHashCode()
41 Field f1 = FieldTestHelper.class.getField("a"); in testHashCodeSpec() local
42 assertEquals(FieldTestHelper.class.getName().hashCode() ^ "a".hashCode(), f1.hashCode()); in testHashCodeSpec()
46 Field f1 = FieldTestHelper.class.getField("a"); in testDifferentConstructorEqualsAndHashCode() local
48 assertFalse(f1.equals(f2)); in testDifferentConstructorEqualsAndHashCode()
DClassLoaderReflectionTest.java144 Field f1 = B.class.getDeclaredField("field"); in testFieldsOfDifferentClassLoadersAreNotEqual() local
146 assertFalse(f1.equals(f2)); in testFieldsOfDifferentClassLoadersAreNotEqual()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DChoiceFormatTest.java37 ChoiceFormat f1 = new ChoiceFormat(limits, formats); field in ChoiceFormatTest
143 ChoiceFormat f = (ChoiceFormat) f1.clone(); in test_applyPatternLjava_lang_String()
200 ChoiceFormat f = (ChoiceFormat) f1.clone(); in test_clone()
201 assertTrue("Not equal", f.equals(f1)); in test_clone()
203 assertTrue("Equal", !f.equals(f1)); in test_clone()
242 assertTrue("Not equal", f1.equals(f2)); in test_equalsLjava_lang_Object()
255 String r = f1.format(-1, buf, field).toString(); in test_formatDLjava_lang_StringBufferLjava_text_FieldPosition()
258 r = f1.format(0, buf, field).toString(); in test_formatDLjava_lang_StringBufferLjava_text_FieldPosition()
261 r = f1.format(1, buf, field).toString(); in test_formatDLjava_lang_StringBufferLjava_text_FieldPosition()
264 r = f1.format(2, buf, field).toString(); in test_formatDLjava_lang_StringBufferLjava_text_FieldPosition()
[all …]
DMessageFormatTest.java115 MessageFormat f1 = (MessageFormat) format1.clone(); in test_setFormatILjava_text_Format() local
116 f1.setFormat(0, DateFormat.getTimeInstance()); in test_setFormatILjava_text_Format()
117 f1.setFormat(1, DateFormat.getTimeInstance()); in test_setFormatILjava_text_Format()
118 f1.setFormat(2, NumberFormat.getInstance()); in test_setFormatILjava_text_Format()
119 f1.setFormat(3, new ChoiceFormat("0#off|1#on")); in test_setFormatILjava_text_Format()
120 f1.setFormat(4, new ChoiceFormat("1#few|2#ok|3#a lot")); in test_setFormatILjava_text_Format()
121 f1.setFormat(5, DateFormat.getTimeInstance()); in test_setFormatILjava_text_Format()
123 Format[] formats = f1.getFormats(); in test_setFormatILjava_text_Format()
124 formats = f1.getFormats(); in test_setFormatILjava_text_Format()
142 f1.setFormat(-1, DateFormat.getDateInstance()); in test_setFormatILjava_text_Format()
[all …]
DSimpleDateFormatTest.java507 SimpleDateFormat f1 = new SimpleDateFormat("y"); in test_get2DigitYearStart() local
508 Date date = f1.get2DigitYearStart(); in test_get2DigitYearStart()
832 SimpleDateFormat f1 = new SimpleDateFormat("yy"); in test_set2DigitYearStartLjava_util_Date() local
833 f1.set2DigitYearStart(new GregorianCalendar(1950, Calendar.JANUARY, 1).getTime()); in test_set2DigitYearStartLjava_util_Date()
836 cal.setTime(f1.parse("49")); in test_set2DigitYearStartLjava_util_Date()
838 cal.setTime(f1.parse("50")); in test_set2DigitYearStartLjava_util_Date()
841 f1.applyPattern("y"); in test_set2DigitYearStartLjava_util_Date()
842 cal.setTime(f1.parse("00")); in test_set2DigitYearStartLjava_util_Date()
844 f1.applyPattern("yyy"); in test_set2DigitYearStartLjava_util_Date()
845 cal.setTime(f1.parse("50")); in test_set2DigitYearStartLjava_util_Date()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DFloatTest.java136 float f1 = values[i]; in test_compare() local
137 assertTrue("compare() should be equal: " + f1, Float.compare(f1, f1) == 0); in test_compare()
138 Float F1 = new Float(f1); in test_compare()
139 assertTrue("compareTo() should be equal: " + f1, F1.compareTo(F1) == 0); in test_compare()
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()
147 assertTrue("compareTo() " + f1 + " should be less " + f2, in test_compare()
149 assertTrue("compareTo() " + f2 + " should be greater " + f1, in test_compare()
[all …]
/libcore/jsr166-tests/src/test/java/jsr166/
DExecutorCompletionServiceTest.java112 Future f1 = ecs.submit(c); in testTake2() local
114 assertSame(f1, f2); in testTake2()
179 Future f1 = ecs.submit(c); in testNewTaskForCallable() local
181 f1 instanceof MyCallableFuture); in testNewTaskForCallable()
183 assertSame("submit and take must return same objects", f1, f2); in testNewTaskForCallable()
210 Future f1 = ecs.submit(r, null); in testNewTaskForRunnable() local
212 f1 instanceof MyRunnableFuture); in testNewTaskForRunnable()
214 assertSame("submit and take must return same objects", f1, f2); in testNewTaskForRunnable()
DCollection8Test.java81 final Future<?> f1, f2; in testForEachConcurrentStressTest() local
95 f1 = pool.submit(checkElt); in testForEachConcurrentStressTest()
99 assertNull(f1.get(0L, MILLISECONDS)); in testForEachConcurrentStressTest()
DForkJoinPoolTest.java120 FibTask f1 = new FibTask(n - 1); in compute()
121 f1.fork(); in compute()
122 return (new FibTask(n - 2)).compute() + f1.join(); in compute()
146 LockingFibTask f1 = null; in compute() local
151 f1 = new LockingFibTask(n - 1, locker, lock); in compute()
158 f1.fork(); in compute()
159 return f2.compute() + f1.join(); in compute()
/libcore/ojluni/src/main/java/java/lang/
DProcessImpl.java92 FileOutputStream f1 = null; in start() local
117 f1 = new FileOutputStream(redirects[1].file(), in start()
121 std_fds[1] = f1.getFD().getInt$(); in start()
149 try { if (f1 != null) f1.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()
913 int thisBits = Float.floatToIntBits(f1); in compare()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DExecutorCompletionServiceTest.java123 Future f1 = cs.submit(new StringTask()); in testTake2() local
125 assertSame(f1, f2); in testTake2()
239 Future f1 = cs.submit(c); in testNewTaskForCallable() local
241 f1 instanceof MyCallableFuture); in testNewTaskForCallable()
243 assertSame("submit and take must return same objects", f1, f2); in testNewTaskForCallable()
269 Future f1 = cs.submit(r, null); in testNewTaskForRunnable() local
271 f1 instanceof MyRunnableFuture); in testNewTaskForRunnable()
273 assertSame("submit and take must return same objects", f1, f2); in testNewTaskForRunnable()
DForkJoinPoolTest.java138 FibTask f1 = new FibTask(n - 1); in compute()
139 f1.fork(); in compute()
140 return (new FibTask(n - 2)).compute() + f1.join(); in compute()
164 LockingFibTask f1 = null; in compute() local
169 f1 = new LockingFibTask(n - 1, locker, lock); in compute()
176 f1.fork(); in compute()
177 return f2.compute() + f1.join(); in compute()
/libcore/luni/src/test/java/tests/security/spec/
DECFieldF2mTest.java428 ECFieldF2m f1 = new ECFieldF2m(2000, new int[] {981, 2, 1}); in testEqualsObject04() local
432 assertTrue(f1.equals(f2) && f2.equals(f1)); in testEqualsObject04()
441 ECFieldF2m f1 = new ECFieldF2m(2000); in testEqualsObject05() local
445 assertFalse(f1.equals(f2) || f2.equals(f1)); in testEqualsObject05()
DEllipticCurveTest.java52 ECFieldF2m f1 = new ECFieldF2m(5); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray01() local
56 new EllipticCurve(f1, a, b, seed); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray01()
259 ECFieldF2m f1 = new ECFieldF2m(5); in testEllipticCurveECFieldBigIntegerBigInteger01() local
263 new EllipticCurve(f1, a, b); in testEllipticCurveECFieldBigIntegerBigInteger01()
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/
DStreamOpFlagsTest.java123 for (StreamOpFlag f1 : StreamOpFlagTestHelper.allStreamFlags()) { in testPairSet()
128 opsFlags = combineOpFlags(f1.set(), opsFlags); in testPairSet()
130 assertEquals(sourceFlags | f1.set() | f2.set(), toStreamFlags(opsFlags)); in testPairSet()
142 for (StreamOpFlag f1 : StreamOpFlagTestHelper.allStreamFlags()) { in testPairSetAndClear()
147 opsFlags = combineOpFlags(f1.set(), opsFlags); in testPairSetAndClear()
149 if (f1 == f2) in testPairSetAndClear()
152 …assertEquals((f2.set() == sourceFlags) ? f1.set() : sourceFlags | f1.set(), toStreamFlags(opsFlags… in testPairSetAndClear()
/libcore/luni/src/test/java/libcore/java/lang/
DFloatTest.java118 float f1 = 0; in testVerifierTyping() local
120 f1 = Float.MIN_VALUE; in testVerifierTyping()
122 assertEquals(f1, 0f); in testVerifierTyping()
/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.java344 File f1 = new File("", "foo.bar"); in testEmptyParentString() local
346 assertEquals("foo.bar", f1.toString()); in testEmptyParentString()
400 File f1 = new File(tempDir, "testCannonCachesOff1"); in test_canonicalCachesAreOff() local
401 f1.createNewFile(); in test_canonicalCachesAreOff()
407 …assertEquals(0, Runtime.getRuntime().exec("ln -s " + f1.getAbsolutePath() + " " + symlinkFile.getA… in test_canonicalCachesAreOff()
408 assertEquals(symlinkFile.getCanonicalPath(), f1.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/ojluni/src/main/java/java/util/logging/
DFileHandler.java655 File f1 = files[i]; in rotate() local
657 if (f1.exists()) { in rotate()
661 f1.renameTo(f2); in rotate()

12