Home
last modified time | relevance | path

Searched refs:getCount (Results 1 – 23 of 23) sorted by relevance

/libcore/jsr166-tests/src/test/java/jsr166/
DCountDownLatchTest.java44 assertEquals(2, l.getCount()); in testGetCount()
46 assertEquals(1, l.getCount()); in testGetCount()
54 assertEquals(1, l.getCount()); in testCountDown()
56 assertEquals(0, l.getCount()); in testCountDown()
58 assertEquals(0, l.getCount()); in testCountDown()
70 assertEquals(2, l.getCount()); in testAwait()
73 assertEquals(0, l.getCount()); in testAwait()
77 assertEquals(2, l.getCount()); in testAwait()
79 assertEquals(1, l.getCount()); in testAwait()
82 assertEquals(0, l.getCount()); in testAwait()
[all …]
DThreadPoolExecutorTest.java69 return beforeCalled.getCount() == 0; in beforeCalled()
72 return afterCalled.getCount() == 0; in afterCalled()
75 return terminatedCalled.getCount() == 0; in terminatedCalled()
1428 assertEquals(0, done.getCount()); in testBeforeAfter()
DJSR166TestCase.java893 while (latch.getCount() > 0); in releaser()
DScheduledExecutorTest.java202 if (done.getCount() == cycles) { // first execution in testFixedDelaySequence()
DScheduledExecutorSubclassTest.java258 if (done.getCount() == cycles) { // first execution in testFixedDelaySequence()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DCountDownLatchTest.java67 assertEquals(2, l.getCount()); in testGetCount()
69 assertEquals(1, l.getCount()); in testGetCount()
77 assertEquals(1, l.getCount()); in testCountDown()
79 assertEquals(0, l.getCount()); in testCountDown()
81 assertEquals(0, l.getCount()); in testCountDown()
93 assertEquals(2, l.getCount()); in testAwait()
96 assertEquals(0, l.getCount()); in testAwait()
100 assertEquals(2, l.getCount()); in testAwait()
102 assertEquals(1, l.getCount()); in testAwait()
105 assertEquals(0, l.getCount()); in testAwait()
[all …]
DJSR166TestCase.java984 while (latch.getCount() > 0); in releaser()
DScheduledExecutorTest.java224 if (done.getCount() == cycles) { // first execution in testFixedDelaySequence()
/libcore/luni/src/test/java/libcore/java/util/
DLongSummaryStatisticsTest.java28 assertEquals(0, lss.getCount()); in test_empty()
40 assertEquals(1, lss.getCount()); in test_accept()
43 assertEquals(2, lss.getCount()); in test_accept()
48 assertEquals(3, lss.getCount()); in test_accept()
51 assertEquals(4, lss.getCount()); in test_accept()
60 assertEquals(12, lssCombined.getCount()); in test_combine()
69 assertEquals(data1.length, lss1.getCount()); in test_getCount()
DIntSummaryStatisticsTest.java28 assertEquals(0, iss.getCount()); in test_empty()
38 assertEquals(1, iss.getCount()); in test_accept()
41 assertEquals(2, iss.getCount()); in test_accept()
50 assertEquals(12, issCombined.getCount()); in test_combine()
59 assertEquals(data1.length, iss1.getCount()); in test_getCount()
/libcore/ojluni/src/main/java/java/util/concurrent/
DCountDownLatch.java169 int getCount() { in getCount() method in CountDownLatch.Sync
302 public long getCount() { in getCount() method in CountDownLatch
303 return sync.getCount(); in getCount()
314 return super.toString() + "[Count = " + sync.getCount() + "]"; in toString()
/libcore/ojluni/src/main/java/java/util/
DIntSummaryStatistics.java109 public final long getCount() { in getCount() method in IntSummaryStatistics
150 return getCount() > 0 ? (double) getSum() / getCount() : 0.0d; in getAverage()
165 getCount(), in toString()
DLongSummaryStatistics.java121 public final long getCount() { in getCount() method in LongSummaryStatistics
162 return getCount() > 0 ? (double) getSum() / getCount() : 0.0d; in getAverage()
177 getCount(), in toString()
/libcore/luni/src/test/java/libcore/java/sql/
DOldPreparedStatementTest.java131 assertEquals(2, getCount(rs)); in testAddBatch()
191 assertEquals(3, getCount(ps.getResultSet())); in testExecute()
496 assertEquals(1, getCount(rs)); in testSetInt()
512 assertEquals(1, getCount(rs)); in testSetInt()
551 assertEquals(1, getCount(rs)); in testSetLong()
565 assertEquals(1, getCount(rs)); in testSetLong()
607 assertEquals(1, getCount(rs)); in testSetFloat()
621 assertEquals(1, getCount(rs)); in testSetFloat()
661 assertEquals(1, getCount(rs)); in testSetDouble()
676 assertEquals(1, getCount(rs)); in testSetDouble()
[all …]
DOldSQLTest.java92 public int getCount(ResultSet rs) { in getCount() method in OldSQLTest
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DSummaryStatisticsTest.java53 assertEquals(stats.getCount(), 1000); in testIntStatistics()
68 assertEquals(stats.getCount(), 1000); in testLongStatistics()
83 assertEquals(stats.getCount(), 1000); in testDoubleStatistics()
DIntPrimitiveOpsTests.java153 public int getCount() { return offset; } in testSequential() method in IntPrimitiveOpsTests.AssertingConsumer
159 assertEquals(expected.length, consumer.getCount()); in testSequential()
165 assertEquals(expected.length, consumer.getCount()); in testSequential()
DLongPrimitiveOpsTests.java153 public int getCount() { return offset; } in testSequential() method in LongPrimitiveOpsTests.AssertingConsumer
159 assertEquals(expected.length, consumer.getCount()); in testSequential()
165 assertEquals(expected.length, consumer.getCount()); in testSequential()
/libcore/luni/src/test/java/libcore/java/lang/
DThreadGroupTest.java88 assertEquals("Thread from parent group was interrupted", 1, mLatch.getCount()); in interrupt_shouldNotInterruptThreadsInParentGroup()
DOldClassTest.java77 int getCount(); in getCount() method
131 public int getCount() { in getCount() method in OldClassTest.PublicTestClass
/libcore/ojluni/src/main/java/java/util/concurrent/locks/
DReentrantReadWriteLock.java665 final int getCount() { return getState(); } in getCount() method in ReentrantReadWriteLock.Sync
1485 int c = sync.getCount(); in toString()
/libcore/luni/src/test/java/libcore/java/net/
DServerSocketConcurrentCloseTest.java257 return shutdownLatch.getCount() == 0; in isShutdown()
/libcore/ojluni/src/main/java/java/text/
DMergeCollation.java191 public int getCount() { in getCount() method in MergeCollation