Home
last modified time | relevance | path

Searched refs:f (Results 1 – 25 of 296) sorted by relevance

12345678910>>...12

/libcore/ojluni/src/test/java/util/concurrent/tck/
DForkJoinPool8Test.java254 FibAction f = new FibAction(8); in testInvoke()
255 assertNull(f.invoke()); in testInvoke()
256 assertEquals(21, f.result); in testInvoke()
257 checkCompletedNormally(f); in testInvoke()
270 FibAction f = new FibAction(8); in testQuietlyInvoke()
271 f.quietlyInvoke(); in testQuietlyInvoke()
272 assertEquals(21, f.result); in testQuietlyInvoke()
273 checkCompletedNormally(f); in testQuietlyInvoke()
284 FibAction f = new FibAction(8); in testForkJoin()
285 assertSame(f, f.fork()); in testForkJoin()
[all …]
DForkJoinTaskTest.java367 AsyncFib f = this;
368 int n = f.number;
370 AsyncFib p = f;
372 f = new AsyncFib(--n);
373 p.linkSubtasks(r, f);
376 f.complete();
392 FailingAsyncFib f = this;
393 int n = f.number;
395 FailingAsyncFib p = f;
397 f = new FailingAsyncFib(--n);
[all …]
DRecursiveActionTest.java243 FibAction f = new FibAction(8); in testInvoke()
244 assertNull(f.invoke()); in testInvoke()
245 assertEquals(21, f.result); in testInvoke()
246 checkCompletedNormally(f); in testInvoke()
259 FibAction f = new FibAction(8); in testQuietlyInvoke()
260 f.quietlyInvoke(); in testQuietlyInvoke()
261 assertEquals(21, f.result); in testQuietlyInvoke()
262 checkCompletedNormally(f); in testQuietlyInvoke()
273 FibAction f = new FibAction(8); in testForkJoin()
274 assertSame(f, f.fork()); in testForkJoin()
[all …]
DCountedCompleterTest.java562 CCF f = this;
565 new RCCF(f, n - 2).fork();
566 f = new LCCF(f, --n);
568 f.complete(null);
613 FailingCCF f = this;
616 new RFCCF(f, n - 2).fork();
617 f = new LFCCF(f, --n);
619 f.complete(null);
656 CCF f = new LCCF(8); in testInvoke()
657 assertNull(f.invoke()); in testInvoke()
[all …]
DRecursiveTaskTest.java259 FibTask f = new FibTask(8); in testInvoke()
260 Integer r = f.invoke(); in testInvoke()
262 checkCompletedNormally(f, r); in testInvoke()
276 FibTask f = new FibTask(8); in testQuietlyInvoke()
277 f.quietlyInvoke(); in testQuietlyInvoke()
278 checkCompletedNormally(f, 21); in testQuietlyInvoke()
290 FibTask f = new FibTask(8); in testForkJoin()
291 assertSame(f, f.fork()); in testForkJoin()
292 Integer r = f.join(); in testForkJoin()
294 checkCompletedNormally(f, r); in testForkJoin()
[all …]
DCompletableFutureTest.java87 void checkIncomplete(CompletableFuture<?> f) { in checkIncomplete() argument
88 assertFalse(f.isDone()); in checkIncomplete()
89 assertFalse(f.isCancelled()); in checkIncomplete()
90 assertTrue(f.toString().contains("Not completed")); in checkIncomplete()
92 assertNull(f.getNow(null)); in checkIncomplete()
95 f.get(0L, SECONDS); in checkIncomplete()
102 <T> void checkCompletedNormally(CompletableFuture<T> f, T value) { in checkCompletedNormally() argument
103 checkTimedGet(f, value); in checkCompletedNormally()
106 assertEquals(value, f.join()); in checkCompletedNormally()
109 assertEquals(value, f.getNow(null)); in checkCompletedNormally()
[all …]
DForkJoinTask8Test.java338 AsyncFib f = this;
339 int n = f.number;
341 AsyncFib p = f;
343 f = new AsyncFib(--n);
344 p.linkSubtasks(r, f);
347 f.complete();
376 FailingAsyncFib f = this;
377 int n = f.number;
379 FailingAsyncFib p = f;
381 f = new FailingAsyncFib(--n);
[all …]
/libcore/jsr166-tests/src/test/java/jsr166/
DForkJoinPool8Test.java230 FibAction f = new FibAction(8); in testInvoke()
231 assertNull(f.invoke()); in testInvoke()
232 assertEquals(21, f.result); in testInvoke()
233 checkCompletedNormally(f); in testInvoke()
246 FibAction f = new FibAction(8); in testQuietlyInvoke()
247 f.quietlyInvoke(); in testQuietlyInvoke()
248 assertEquals(21, f.result); in testQuietlyInvoke()
249 checkCompletedNormally(f); in testQuietlyInvoke()
260 FibAction f = new FibAction(8); in testForkJoin()
261 assertSame(f, f.fork()); in testForkJoin()
[all …]
DForkJoinTaskTest.java345 AsyncFib f = this;
346 int n = f.number;
348 AsyncFib p = f;
350 f = new AsyncFib(--n);
351 p.linkSubtasks(r, f);
354 f.complete();
370 FailingAsyncFib f = this;
371 int n = f.number;
373 FailingAsyncFib p = f;
375 f = new FailingAsyncFib(--n);
[all …]
DRecursiveActionTest.java219 FibAction f = new FibAction(8); in testInvoke()
220 assertNull(f.invoke()); in testInvoke()
221 assertEquals(21, f.result); in testInvoke()
222 checkCompletedNormally(f); in testInvoke()
235 FibAction f = new FibAction(8); in testQuietlyInvoke()
236 f.quietlyInvoke(); in testQuietlyInvoke()
237 assertEquals(21, f.result); in testQuietlyInvoke()
238 checkCompletedNormally(f); in testQuietlyInvoke()
249 FibAction f = new FibAction(8); in testForkJoin()
250 assertSame(f, f.fork()); in testForkJoin()
[all …]
DCountedCompleterTest.java537 CCF f = this;
540 new RCCF(f, n - 2).fork();
541 f = new LCCF(f, --n);
543 f.complete(null);
588 FailingCCF f = this;
591 new RFCCF(f, n - 2).fork();
592 f = new LFCCF(f, --n);
594 f.complete(null);
631 CCF f = new LCCF(8); in testInvoke()
632 assertNull(f.invoke()); in testInvoke()
[all …]
DRecursiveTaskTest.java236 FibTask f = new FibTask(8); in testInvoke()
237 Integer r = f.invoke(); in testInvoke()
239 checkCompletedNormally(f, r); in testInvoke()
253 FibTask f = new FibTask(8); in testQuietlyInvoke()
254 f.quietlyInvoke(); in testQuietlyInvoke()
255 checkCompletedNormally(f, 21); in testQuietlyInvoke()
267 FibTask f = new FibTask(8); in testForkJoin()
268 assertSame(f, f.fork()); in testForkJoin()
269 Integer r = f.join(); in testForkJoin()
271 checkCompletedNormally(f, r); in testForkJoin()
[all …]
DCompletableFutureTest.java64 void checkIncomplete(CompletableFuture<?> f) { in checkIncomplete() argument
65 assertFalse(f.isDone()); in checkIncomplete()
66 assertFalse(f.isCancelled()); in checkIncomplete()
67 assertTrue(f.toString().contains("Not completed")); in checkIncomplete()
69 assertNull(f.getNow(null)); in checkIncomplete()
72 f.get(0L, SECONDS); in checkIncomplete()
79 <T> void checkCompletedNormally(CompletableFuture<T> f, T value) { in checkCompletedNormally() argument
80 checkTimedGet(f, value); in checkCompletedNormally()
83 assertEquals(value, f.join()); in checkCompletedNormally()
86 assertEquals(value, f.getNow(null)); in checkCompletedNormally()
[all …]
DForkJoinTask8Test.java315 AsyncFib f = this;
316 int n = f.number;
318 AsyncFib p = f;
320 f = new AsyncFib(--n);
321 p.linkSubtasks(r, f);
324 f.complete();
353 FailingAsyncFib f = this;
354 int n = f.number;
356 FailingAsyncFib p = f;
358 f = new FailingAsyncFib(--n);
[all …]
DThreadLocalRandomTest.java63 int f = ThreadLocalRandom.current().nextInt(); in testNextInt() local
65 while (i < NCALLS && ThreadLocalRandom.current().nextInt() == f) in testNextInt()
74 long f = ThreadLocalRandom.current().nextLong();
76 while (i < NCALLS && ThreadLocalRandom.current().nextLong() == f)
85 boolean f = ThreadLocalRandom.current().nextBoolean();
87 while (i < NCALLS && ThreadLocalRandom.current().nextBoolean() == f)
96 float f = ThreadLocalRandom.current().nextFloat();
98 while (i < NCALLS && ThreadLocalRandom.current().nextFloat() == f)
107 double f = ThreadLocalRandom.current().nextDouble();
109 while (i < NCALLS && ThreadLocalRandom.current().nextDouble() == f)
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DFormatterTest.java162 Formatter f = new Formatter(); in test_Constructor() local
163 assertNotNull(f); in test_Constructor()
164 assertTrue(f.out() instanceof StringBuilder); in test_Constructor()
165 assertEquals(f.locale(), Locale.getDefault()); in test_Constructor()
166 assertNotNull(f.toString()); in test_Constructor()
228 Formatter f = null; in test_ConstructorLjava_lang_String() local
230 f = new Formatter((String) null); in test_ConstructorLjava_lang_String()
236 f = new Formatter(notExist.getPath()); in test_ConstructorLjava_lang_String()
237 assertEquals(f.locale(), Locale.getDefault()); in test_ConstructorLjava_lang_String()
238 f.close(); in test_ConstructorLjava_lang_String()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DFieldTest.java163 Field f = null; in test_equalsLjava_lang_Object() local
165 f = TestField.class.getDeclaredField("shortField"); in test_equalsLjava_lang_Object()
170 assertTrue("Same Field returned false", f.equals(f)); in test_equalsLjava_lang_Object()
171 assertTrue("Inherited Field returned false", f.equals(TestField.class in test_equalsLjava_lang_Object()
173 assertTrue("Identical Field from different class returned true", !f in test_equalsLjava_lang_Object()
187 Field f = TestField.class.getDeclaredField("doubleField"); in test_getLjava_lang_Object() local
188 Double val = (Double) f.get(x); in test_getLjava_lang_Object()
193 f = TestField.class.getDeclaredField("doubleSField"); in test_getLjava_lang_Object()
194 f.set(x, new Double(1.0)); in test_getLjava_lang_Object()
195 val = (Double) f.get(x); in test_getLjava_lang_Object()
[all …]
/libcore/luni/src/test/java/libcore/java/security/cert/
DX509CertificateTest.java139 private final X509Certificate getCertificate(CertificateFactory f, String name) in getCertificate() argument
144 return (X509Certificate) f.generateCertificate(is); in getCertificate()
153 …private final Collection<? extends X509Certificate> getCertificates(CertificateFactory f, String n… in getCertificates() argument
158 return (Collection<? extends X509Certificate>) f.generateCertificates(is); in getCertificates()
262 CertificateFactory f = CertificateFactory.getInstance("X.509", p); in test_Provider() local
263 getPublicKey(f); in test_Provider()
264 getType(f); in test_Provider()
265 check_equals(f); in test_Provider()
266 check_toString(f); in test_Provider()
267 check_hashCode(f); in test_Provider()
[all …]
DX509CRLTest.java96 private final X509Certificate getCertificate(CertificateFactory f, String name) in getCertificate() argument
101 X509Certificate c = (X509Certificate) f.generateCertificate(is); in getCertificate()
112 private final X509CRL getCRL(CertificateFactory f, String name) throws Exception { in getCRL() argument
116 X509CRL crl = (X509CRL) f.generateCRL(is); in getCRL()
169 CertificateFactory f = CertificateFactory.getInstance("X.509"); in test_X509CRLImpl_verify() local
170 X509CRL crlRsa = getCRL(f, CRL_RSA); in test_X509CRLImpl_verify()
172 X509Certificate caCert = getCertificate(f, CERT_CRL_CA); in test_X509CRLImpl_verify()
173 interned.verify(caCert.getPublicKey(), f.getProvider()); in test_X509CRLImpl_verify()
182 CertificateFactory f = CertificateFactory.getInstance("X.509", p); in test_Provider() local
183 isRevoked(f); in test_Provider()
[all …]
/libcore/luni/src/test/java/tests/security/spec/
DEllipticCurveTest.java44 ECFieldFp f = new ECFieldFp(BigInteger.valueOf(23L)); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray01() local
49 new EllipticCurve(f, a, b, seed); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray01()
60 f = new ECFieldFp(BigInteger.valueOf(23L)); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray01()
65 new EllipticCurve(f, a, b, seed); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray01()
78 ECFieldFp f = null; in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray02() local
85 new EllipticCurve(f, a, b, seed); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray02()
90 f = new ECFieldFp(BigInteger.valueOf(23L)); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray02()
96 new EllipticCurve(f, a, b, seed); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray02()
101 f = new ECFieldFp(BigInteger.valueOf(23L)); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray02()
107 new EllipticCurve(f, a, b, seed); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray02()
[all …]
/libcore/ojluni/src/main/java/java/io/
DUnixFileSystem.java130 public boolean isAbsolute(File f) { in isAbsolute() argument
131 return (f.getPrefixLength() != 0); in isAbsolute()
134 public String resolve(File f) { in resolve() argument
135 if (isAbsolute(f)) return f.getPath(); in resolve()
136 return resolve(System.getProperty("user.dir"), f.getPath()); in resolve()
189 File f = new File(res); in canonicalize() local
190 if (f.exists() && !f.isDirectory()) { in canonicalize()
248 public int getBooleanAttributes(File f) { in getBooleanAttributes() argument
251 BlockGuard.getVmPolicy().onPathAccess(f.getPath()); in getBooleanAttributes()
254 int rv = getBooleanAttributes0(f.getPath()); in getBooleanAttributes()
[all …]
/libcore/luni/src/test/java/libcore/java/io/
DFileTest.java61 File f = base; in createDeepStructure() local
62 for (int i = 0; f.toString().length() <= 1024; ++i) { in createDeepStructure()
63 f = new File(f, longString); in createDeepStructure()
64 assertTrue(f.mkdir()); in createDeepStructure()
66 return f; in createDeepStructure()
100 File f = new File(""); in test_emptyFilename() local
102 assertFalse(f.canExecute()); in test_emptyFilename()
103 assertFalse(f.canRead()); in test_emptyFilename()
104 assertFalse(f.canWrite()); in test_emptyFilename()
106 f.createNewFile(); in test_emptyFilename()
[all …]
DOldFileTest.java39 File f = new File(tempDir, files[i]);
40 if (f.isDirectory()) {
42 deleteTempFolder(f);
52 File f = new File(dir, files[i]); in deleteTempFolder() local
53 if (f.isDirectory()) in deleteTempFolder()
54 deleteTempFolder(f); in deleteTempFolder()
56 f.delete(); in deleteTempFolder()
67 File f = new File(d, "input.tst"); in test_ConstructorLjava_io_FileLjava_lang_String() local
74 assertEquals(tmpDirName, f.getPath()); in test_ConstructorLjava_io_FileLjava_lang_String()
78 f = new File(d, fileName); in test_ConstructorLjava_io_FileLjava_lang_String()
[all …]
/libcore/ojluni/src/main/java/sun/misc/
DFpUtils.java148 public static int getExponent(float f){ in getExponent() argument
149 return Math.getExponent(f); in getExponent()
223 public static boolean isFinite(float f) { in isFinite() argument
224 return Float.isFinite(f); in isFinite()
255 public static boolean isInfinite(float f) { in isInfinite() argument
256 return Float.isInfinite(f); in isInfinite()
287 public static boolean isNaN(float f) { in isNaN() argument
288 return Float.isNaN(f); in isNaN()
411 public static int ilogb(float f) { in ilogb() argument
412 int exponent = getExponent(f); in ilogb()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DFileTest.java45 File f = new File(dir, files[i]); in deleteTempFolder() local
46 if (f.isDirectory()) { in deleteTempFolder()
47 deleteTempFolder(f); in deleteTempFolder()
49 f.delete(); in deleteTempFolder()
87 File f = new File(tempDirectory.getPath(), "input.tst"); in test_ConstructorLjava_io_FileLjava_lang_String0() local
88 …s("Created Incorrect File ", addTrailingSlash(tempDirectory.getPath()) + "input.tst", f.getPath()); in test_ConstructorLjava_io_FileLjava_lang_String0()
100 File f = new File((File) null, "input.tst"); in test_ConstructorLjava_io_FileLjava_lang_String2() local
103 f.getAbsolutePath()); in test_ConstructorLjava_io_FileLjava_lang_String2()
108 File f = new File("/abc"); in test_ConstructorLjava_io_FileLjava_lang_String3() local
111 d.getAbsolutePath(), f.getAbsolutePath()); in test_ConstructorLjava_io_FileLjava_lang_String3()
[all …]

12345678910>>...12