Home
last modified time | relevance | path

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

12

/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 …]
DThreadPoolExecutorSubclassTest.java216 return beforeCalled.getCount() == 0; in beforeCalled()
219 return afterCalled.getCount() == 0; in afterCalled()
222 return terminatedCalled.getCount() == 0; in terminatedCalled()
1421 assertEquals(0, done.getCount()); in testBeforeAfter()
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()
/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 …]
DThreadPoolExecutorSubclassTest.java238 return beforeCalled.getCount() == 0; in beforeCalled()
241 return afterCalled.getCount() == 0; in afterCalled()
244 return terminatedCalled.getCount() == 0; in terminatedCalled()
1443 assertEquals(0, done.getCount()); in testBeforeAfter()
/libcore/luni/src/test/java/libcore/java/util/
DLongSummaryStatisticsTest.java28 assertEquals(0, lss.getCount()); in test_empty()
55 assertEquals(0, lss.getCount()); in test_defaults_when_count_is_zero()
64 assertEquals(9, lss.getCount()); in test_filled_constructor()
76 assertEquals(1, lss.getCount()); in test_accept()
79 assertEquals(2, lss.getCount()); in test_accept()
84 assertEquals(3, lss.getCount()); in test_accept()
87 assertEquals(4, lss.getCount()); in test_accept()
96 assertEquals(12, lssCombined.getCount()); in test_combine()
105 assertEquals(data1.length, lss1.getCount()); in test_getCount()
DIntSummaryStatisticsTest.java46 assertEquals(0, iss.getCount()); in test_defaults_when_count_is_zero()
55 assertEquals(9, iss.getCount()); in test_filled_constructor()
63 assertEquals(0, iss.getCount()); in test_empty()
73 assertEquals(1, iss.getCount()); in test_accept()
76 assertEquals(2, iss.getCount()); in test_accept()
85 assertEquals(12, issCombined.getCount()); in test_combine()
94 assertEquals(data1.length, iss1.getCount()); in test_getCount()
DDoubleSummaryStatisticsTest.java32 assertEquals(0, dss.getCount()); in test_empty()
42 assertEquals(1, dss.getCount()); in test_accept()
45 assertEquals(2, dss.getCount()); in test_accept()
53 assertEquals(12, dssCombined.getCount()); in test_combine()
62 assertEquals(data1.length, dss1.getCount()); in test_getCount()
120 assertEquals(2, dss.getCount()); in test_constructorLongDoubleDoubleDouble_takesArgumentsIntoAccountWhenCountIsNonZero()
129 assertEquals(0, dss.getCount()); in test_constructorLongDoubleDoubleDouble_ignoresMinMaxSum_whenCountIsZero()
/libcore/ojluni/src/main/java/java/util/concurrent/
DCountDownLatch.java167 int getCount() { in getCount() method in CountDownLatch.Sync
300 public long getCount() { in getCount() method in CountDownLatch
301 return sync.getCount(); in getCount()
312 return super.toString() + "[Count = " + sync.getCount() + "]"; in toString()
/libcore/ojluni/src/main/java/java/util/
DIntSummaryStatistics.java154 public final long getCount() { in getCount() method in IntSummaryStatistics
195 return getCount() > 0 ? (double) getSum() / getCount() : 0.0d; in getAverage()
208 getCount(), in toString()
DLongSummaryStatistics.java166 public final long getCount() { in getCount() method in LongSummaryStatistics
207 return getCount() > 0 ? (double) getSum() / getCount() : 0.0d; in getAverage()
220 getCount(), in toString()
DDoubleSummaryStatistics.java182 public final long getCount() { in getCount() method in DoubleSummaryStatistics
299 return getCount() > 0 ? getSum() / getCount() : 0.0d; in getAverage()
312 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 …]
DOldConnectionTest.java411 assertEquals(3, getCount(rs)); in testSetAutoCommit()
426 assertEquals(4, getCount(rs)); in testSetAutoCommit()
430 assertEquals(0, getCount(rs1)); in testSetAutoCommit()
894 assertEquals(2, getCount(rs)); in testPrepareCall()
899 assertEquals(3, getCount(rs1)); in testPrepareCall()
1136 assertEquals(0, getCount(rs)); in testPrepareStatement()
1140 assertEquals(1, getCount(rs1)); in testPrepareStatement()
1198 assertEquals(2, getCount(rs)); in testPrepareStatement_String_int()
1202 assertEquals(1, getCount(rs1)); in testPrepareStatement_String_int()
1205 assertEquals(0, getCount(rs4)); in testPrepareStatement_String_int()
[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/
DCollectAndSummaryStatisticsTest.java106 …instances.add(new IntSummaryStatistics(original.getCount(), original.getMin(), original.getMax(), … in testIntStatistics()
109 assertEquals(stats.getCount(), 1000); in testIntStatistics()
111 assertEquals(stats.getAverage(), (double) stats.getSum() / stats.getCount()); in testIntStatistics()
140 …instances.add(new LongSummaryStatistics(original.getCount(), original.getMin(), original.getMax(),… in testLongStatistics()
143 assertEquals(stats.getCount(), 1000); in testLongStatistics()
145 assertEquals(stats.getAverage(), (double) stats.getSum() / stats.getCount()); in testLongStatistics()
173 …instances.add(new DoubleSummaryStatistics(original.getCount(), original.getMin(), original.getMax(… in testDoubleStatistics()
176 assertEquals(stats.getCount(), 1000); in testDoubleStatistics()
178 assertEquals(stats.getAverage(), stats.getSum() / stats.getCount()); in testDoubleStatistics()
DSummaryStatisticsTest.java53 assertEquals(stats.getCount(), 1000); in testIntStatistics()
68 assertEquals(stats.getCount(), 1000); in testLongStatistics()
83 assertEquals(stats.getCount(), 1000); in testDoubleStatistics()
DLongPrimitiveOpsTests.java201 public int getCount() { return offset; } in testSequential() method in LongPrimitiveOpsTests.AssertingConsumer
207 assertEquals(expected.length, consumer.getCount()); in testSequential()
213 assertEquals(expected.length, consumer.getCount()); in testSequential()
DIntPrimitiveOpsTests.java213 public int getCount() { return offset; } in testSequential() method in IntPrimitiveOpsTests.AssertingConsumer
219 assertEquals(expected.length, consumer.getCount()); in testSequential()
225 assertEquals(expected.length, consumer.getCount()); in testSequential()
/libcore/ojluni/src/test/java/util/DoubleSummaryStatistics/
DNegativeCompensation.java63 for (long i = 0, iend = stat2.getCount(); i < iend; ++i) { in testErrorComparision()
68 for(long i = 0, iend = stat2.getCount(); i < iend; ++i) { in testErrorComparision()
/libcore/luni/src/test/java/libcore/java/lang/
DThreadGroupTest.java88 assertEquals("Thread from parent group was interrupted", 1, mLatch.getCount()); in interrupt_shouldNotInterruptThreadsInParentGroup()
/libcore/luni/src/test/java/libcore/java/util/concurrent/
DForkJoinPoolTest.java67 while (startPending.getCount() > 0) { in testGetRunningThreadCount()
/libcore/ojluni/src/main/java/java/util/concurrent/locks/
DReentrantReadWriteLock.java674 final int getCount() { return getState(); } in getCount() method in ReentrantReadWriteLock.Sync
1494 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/test/java/util/Timer/
DArgs.java64 if (latch.getCount() == 0) in counter()

12