Home
last modified time | relevance | path

Searched refs:TASKS (Results 1 – 8 of 8) sorted by relevance

/libcore/jsr166-tests/src/test/java/jsr166/
DThreadPoolExecutorTest.java403 final int TASKS = 3; in testGetTaskCount() local
421 for (int i = 0; i < TASKS; i++) { in testGetTaskCount()
426 assertEquals(1 + TASKS, p.getTaskCount()); in testGetTaskCount()
430 assertEquals(1 + TASKS, p.getTaskCount()); in testGetTaskCount()
433 assertEquals(1 + TASKS, p.getTaskCount()); in testGetTaskCount()
434 assertEquals(1 + TASKS, p.getCompletedTaskCount()); in testGetTaskCount()
1935 final int TASKS = 100;
1936 final CountDownLatch done = new CountDownLatch(TASKS);
1937 for (int k = 0; k < TASKS; ++k)
DThreadPoolExecutorSubclassTest.java550 final int TASKS = 3; in testGetTaskCount() local
568 for (int i = 0; i < TASKS; i++) { in testGetTaskCount()
573 assertEquals(1 + TASKS, p.getTaskCount()); in testGetTaskCount()
577 assertEquals(1 + TASKS, p.getTaskCount()); in testGetTaskCount()
580 assertEquals(1 + TASKS, p.getTaskCount()); in testGetTaskCount()
581 assertEquals(1 + TASKS, p.getCompletedTaskCount()); in testGetTaskCount()
1928 final int TASKS = 100;
1929 final CountDownLatch done = new CountDownLatch(TASKS);
1930 for (int k = 0; k < TASKS; ++k)
DScheduledExecutorSubclassTest.java503 final int TASKS = 3; in testGetTaskCount() local
518 for (int i = 0; i < TASKS; i++) { in testGetTaskCount()
523 assertEquals(1 + TASKS, p.getTaskCount()); in testGetTaskCount()
527 assertEquals(1 + TASKS, p.getTaskCount()); in testGetTaskCount()
530 assertEquals(1 + TASKS, p.getTaskCount()); in testGetTaskCount()
531 assertEquals(1 + TASKS, p.getCompletedTaskCount()); in testGetTaskCount()
DScheduledExecutorTest.java447 final int TASKS = 3; in testGetTaskCount() local
462 for (int i = 0; i < TASKS; i++) { in testGetTaskCount()
467 assertEquals(1 + TASKS, p.getTaskCount()); in testGetTaskCount()
471 assertEquals(1 + TASKS, p.getTaskCount()); in testGetTaskCount()
474 assertEquals(1 + TASKS, p.getTaskCount()); in testGetTaskCount()
475 assertEquals(1 + TASKS, p.getCompletedTaskCount()); in testGetTaskCount()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DThreadPoolExecutorTest.java425 final int TASKS = 3; in testGetTaskCount() local
443 for (int i = 0; i < TASKS; i++) { in testGetTaskCount()
448 assertEquals(1 + TASKS, p.getTaskCount()); in testGetTaskCount()
452 assertEquals(1 + TASKS, p.getTaskCount()); in testGetTaskCount()
455 assertEquals(1 + TASKS, p.getTaskCount()); in testGetTaskCount()
456 assertEquals(1 + TASKS, p.getCompletedTaskCount()); in testGetTaskCount()
1952 final int TASKS = 100;
1953 final CountDownLatch done = new CountDownLatch(TASKS);
1954 for (int k = 0; k < TASKS; ++k)
DThreadPoolExecutorSubclassTest.java572 final int TASKS = 3; in testGetTaskCount() local
590 for (int i = 0; i < TASKS; i++) { in testGetTaskCount()
595 assertEquals(1 + TASKS, p.getTaskCount()); in testGetTaskCount()
599 assertEquals(1 + TASKS, p.getTaskCount()); in testGetTaskCount()
602 assertEquals(1 + TASKS, p.getTaskCount()); in testGetTaskCount()
603 assertEquals(1 + TASKS, p.getCompletedTaskCount()); in testGetTaskCount()
1950 final int TASKS = 100;
1951 final CountDownLatch done = new CountDownLatch(TASKS);
1952 for (int k = 0; k < TASKS; ++k)
DScheduledExecutorSubclassTest.java527 final int TASKS = 3; in testGetTaskCount() local
542 for (int i = 0; i < TASKS; i++) { in testGetTaskCount()
547 assertEquals(1 + TASKS, p.getTaskCount()); in testGetTaskCount()
551 assertEquals(1 + TASKS, p.getTaskCount()); in testGetTaskCount()
554 assertEquals(1 + TASKS, p.getTaskCount()); in testGetTaskCount()
555 assertEquals(1 + TASKS, p.getCompletedTaskCount()); in testGetTaskCount()
DScheduledExecutorTest.java471 final int TASKS = 3; in testGetTaskCount() local
486 for (int i = 0; i < TASKS; i++) { in testGetTaskCount()
491 assertEquals(1 + TASKS, p.getTaskCount()); in testGetTaskCount()
495 assertEquals(1 + TASKS, p.getTaskCount()); in testGetTaskCount()
498 assertEquals(1 + TASKS, p.getTaskCount()); in testGetTaskCount()
499 assertEquals(1 + TASKS, p.getCompletedTaskCount()); in testGetTaskCount()