Home
last modified time | relevance | path

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

12345678910>>...16

/frameworks/native/libs/battery/
DMultiStateCounterTest.cpp57 EXPECT_DOUBLE_EQ(0, testCounter.getCount(0)); in TEST_F()
58 EXPECT_DOUBLE_EQ(3.14, testCounter.getCount(1)); in TEST_F()
59 EXPECT_DOUBLE_EQ(0, testCounter.getCount(2)); in TEST_F()
70 EXPECT_DOUBLE_EQ(0, testCounter.getCount(0)); in TEST_F()
71 EXPECT_DOUBLE_EQ(2.0, testCounter.getCount(1)); in TEST_F()
72 EXPECT_DOUBLE_EQ(4.0, testCounter.getCount(2)); in TEST_F()
86 EXPECT_DOUBLE_EQ(0, testCounter.getCount(0)); in TEST_F()
87 EXPECT_DOUBLE_EQ(2.0, testCounter.getCount(1)); in TEST_F()
88 EXPECT_DOUBLE_EQ(4.0, testCounter.getCount(2)); in TEST_F()
101 EXPECT_DOUBLE_EQ(0, testCounter.getCount(0)); in TEST_F()
[all …]
DLongArrayMultiStateCounterTest.cpp34 EXPECT_EQ(std::vector<uint64_t>({50, 100, 150, 200}), testCounter.getCount(0)); in TEST_F()
35 EXPECT_EQ(std::vector<uint64_t>({50, 100, 150, 200}), testCounter.getCount(1)); in TEST_F()
53 EXPECT_EQ(std::vector<uint64_t>({130, 180, 230, 280}), testCounter.getCount(0)); in TEST_F()
54 EXPECT_EQ(std::vector<uint64_t>({70, 120, 170, 220}), testCounter.getCount(1)); in TEST_F()
/frameworks/av/media/libaaudio/tests/
Dtest_histogram.cpp38 ASSERT_EQ(0, histogram.getCount(i)); in TEST()
42 ASSERT_EQ(0, histogram.getCount()); in TEST()
51 ASSERT_EQ(2, histogram.getCount(2)); // For items 27 and 23 in TEST()
53 ASSERT_EQ(1, histogram.getCount(5)); // For item 53 in TEST()
55 ASSERT_EQ(1, histogram.getCount(17)); // For item 171 in TEST()
56 ASSERT_EQ(4, histogram.getCount()); // A total of four items were added. in TEST()
62 ASSERT_EQ(5, histogram.getCount()); in TEST()
67 ASSERT_EQ(6, histogram.getCount()); in TEST()
73 ASSERT_EQ(0, histogram.getCount(-1)); // edge in TEST()
74 ASSERT_EQ(0, histogram.getCount(kNumBins)); // edge in TEST()
[all …]
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DLongSamplingCounterTest.java69 assertEquals(COUNT, getCount()); in testReadWriteParcel()
75 assertEquals(8 * COUNT, getCount()); in testReadWriteParcel()
78 assertEquals(COUNT, getCount()); in testReadWriteParcel()
86 assertEquals(COUNT, getCount()); in testReadWriteSummaryParcel()
92 assertEquals(8 * COUNT, getCount()); in testReadWriteSummaryParcel()
95 assertEquals(COUNT, getCount()); in testReadWriteSummaryParcel()
102 assertEquals(COUNT, getCount()); in testOnTimeStarted()
104 assertEquals(COUNT, getCount()); in testOnTimeStarted()
110 assertEquals(COUNT, getCount()); in testOnTimeStopped()
112 assertEquals(COUNT, getCount()); in testOnTimeStopped()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DLongMultiStateCounterTest.java50 assertThat(counter.getCount(0)).isEqualTo(75); in setStateAndUpdateValue()
51 assertThat(counter.getCount(1)).isEqualTo(25); in setStateAndUpdateValue()
63 assertThat(counter.getCount(0)).isEqualTo(100); in setEnabled()
71 assertThat(counter.getCount(0)).isEqualTo(150); in setEnabled()
81 assertThat(counter.getCount(0)).isEqualTo(175); in setEnabled()
103 assertThat(counter.getCount(0)).isEqualTo(200); in updateThenSetState_timestampOutOfOrder()
124 assertThat(counter.getCount(0)).isEqualTo(123); in disableThenUpdate_timestampOutOfOrder()
148 assertThat(counter.getCount(0)).isEqualTo(150); in updateThenEnable_timestampOutOfOrder()
158 assertThat(counter.getCount(0)).isEqualTo(100); in reset()
162 assertThat(counter.getCount(0)).isEqualTo(0); in reset()
[all …]
/frameworks/base/apex/jobscheduler/service/java/com/android/server/alarm/
DMetricsHelper.java63 alarmStore.getCount(a -> a.windowLength == 0), in registerPuller()
64 alarmStore.getCount(a -> a.wakeup), in registerPuller()
65 alarmStore.getCount( in registerPuller()
67 alarmStore.getCount( in registerPuller()
69 alarmStore.getCount(a -> (a.operation != null in registerPuller()
71 alarmStore.getCount( in registerPuller()
73 alarmStore.getCount( in registerPuller()
75 alarmStore.getCount(a -> (a.listener != null)), in registerPuller()
76 alarmStore.getCount( in registerPuller()
78 alarmStore.getCount(a -> (a.repeatInterval != 0)), in registerPuller()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DSurfaceSyncGroupTest.java74 assertEquals(0, finishedLatch.getCount()); in testSyncOne()
92 assertNotEquals(0, finishedLatch.getCount()); in testSyncMultiple()
95 assertNotEquals(0, finishedLatch.getCount()); in testSyncMultiple()
100 assertEquals(0, finishedLatch.getCount()); in testSyncMultiple()
138 assertEquals(0, finishedLatch1.getCount()); in testMultipleSyncGroups()
139 assertNotEquals(0, finishedLatch2.getCount()); in testMultipleSyncGroups()
144 assertEquals(0, finishedLatch2.getCount()); in testMultipleSyncGroups()
171 assertNotEquals(0, finishedLatch2.getCount()); in testAddSyncGroup()
177 assertEquals(0, finishedLatch1.getCount()); in testAddSyncGroup()
180 assertEquals(0, finishedLatch2.getCount()); in testAddSyncGroup()
[all …]
/frameworks/ex/common/tests/src/com/android/common/widget/
DGroupingListAdapterTests.java55 int count = cursor.getCount();
120 assertEquals(3, mAdapter.getCount()); in testGroupingWithoutGroups()
130 assertEquals(2, mAdapter.getCount()); in testGroupingWithCollapsedGroupAtTheBeginning()
140 assertEquals(4, mAdapter.getCount()); in testGroupingWithExpandedGroupAtTheBeginning()
153 assertEquals(2, mAdapter.getCount()); in testGroupingWithExpandCollapseCycleAtTheBeginning()
162 assertEquals(3, mAdapter.getCount()); in testGroupingWithCollapsedGroupInTheMiddle()
173 assertEquals(6, mAdapter.getCount()); in testGroupingWithExpandedGroupInTheMiddle()
186 assertEquals(3, mAdapter.getCount()); in testGroupingWithCollapsedGroupAtTheEnd()
197 assertEquals(6, mAdapter.getCount()); in testGroupingWithExpandedGroupAtTheEnd()
210 assertEquals(6, mAdapter.getCount()); in testGroupingWithMultipleCollapsedGroups()
[all …]
DCompositeCursorAdapterTest.java89 assertEquals(5, adapter.getCount()); in testGetCountNoEmptySections()
100 for (int i = 0; i < adapter.getCount(); i++) { in testGetViewNoEmptySections()
115 assertEquals(7, adapter.getCount()); in testGetCountWithHeadersAndNoEmptySections()
126 for (int i = 0; i < adapter.getCount(); i++) { in testGetViewWithHeadersNoEmptySections()
140 assertEquals(3, adapter.getCount()); in testGetCountWithHiddenEmptySection()
190 for (int i = 0; i < adapter.getCount(); i++) { in testGetViewWithHiddenEmptySections()
204 assertEquals(4, adapter.getCount()); in testGetCountWithShownEmptySection()
214 for (int i = 0; i < adapter.getCount(); i++) { in testGetViewWithShownEmptySections()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/concurrency/
DRepeatableExecutorTest.java57 assertThat(mCountingTask.getCount()).isEqualTo(1); in testExecute()
68 assertThat(mCountingTask.getCount()).isEqualTo(1); in testRepeats()
78 assertThat(mCountingTask.getCount()).isEqualTo(0); in testNoExecutionBeforeStartDelay()
90 assertThat(mCountingTask.getCount()).isEqualTo(1); in testExecuteAfterStartDelay()
100 assertThat(mCountingTask.getCount()).isEqualTo(1); in testExecuteWithZeroStartDelay()
114 assertThat(mCountingTask.getCount()).isEqualTo(2); in testAdvanceTimeTwice()
127 assertThat(mCountingTask.getCount()).isEqualTo(0); in testCancel()
140 assertThat(mCountingTask.getCount()).isEqualTo(1); in testCancelAfterStart()
157 public int getCount() { in getCount() method in RepeatableExecutorTest.CountingTask
/frameworks/base/services/core/java/com/android/server/location/gnss/
DGnssMetrics.java271 if (mLocationFailureStatistics.getCount() > 0) { in dumpGnssMetricsAsProtoString()
272 msg.numLocationReportProcessed = mLocationFailureStatistics.getCount(); in dumpGnssMetricsAsProtoString()
275 if (mTimeToFirstFixSecStatistics.getCount() > 0) { in dumpGnssMetricsAsProtoString()
276 msg.numTimeToFirstFixProcessed = mTimeToFirstFixSecStatistics.getCount(); in dumpGnssMetricsAsProtoString()
281 if (mPositionAccuracyMeterStatistics.getCount() > 0) { in dumpGnssMetricsAsProtoString()
282 msg.numPositionAccuracyProcessed = mPositionAccuracyMeterStatistics.getCount(); in dumpGnssMetricsAsProtoString()
287 if (mTopFourAverageCn0Statistics.getCount() > 0) { in dumpGnssMetricsAsProtoString()
288 msg.numTopFourAverageCn0Processed = mTopFourAverageCn0Statistics.getCount(); in dumpGnssMetricsAsProtoString()
305 if (mTopFourAverageCn0StatisticsL5.getCount() > 0) { in dumpGnssMetricsAsProtoString()
306 msg.numL5TopFourAverageCn0Processed = mTopFourAverageCn0StatisticsL5.getCount(); in dumpGnssMetricsAsProtoString()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/
DSimpleCursorAdapterTest.java96 assertEquals(2, ca.getCount()); in testCreateLive()
107 assertEquals(0, ca.getCount()); in testCreateNull()
118 assertEquals(2, ca.getCount()); in testChangeCursorLive()
126 assertEquals(5, ca.getCount()); in testChangeCursorLive()
137 assertEquals(2, ca.getCount()); in testChangeCursorNull()
143 assertEquals(0, ca.getCount()); in testChangeCursorNull()
165 assertEquals(2, ca.getCount()); in testChangeCursorColumns()
180 assertEquals(0, ca.getCount()); in testNullConstructor()
190 assertEquals(0, ca.getCount()); in testChangeNullToMapped()
193 assertEquals(2, ca.getCount()); in testChangeNullToMapped()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/gridview/touch/
DGridTouchStackFromBottomTest.java49 assertEquals(mGridView.getAdapter().getCount() - 1, mGridView.getSelectedItemPosition()); in testPreconditions()
63 mGridView.getAdapter().getCount() - 1, lastChild.getId()); in testPushUp()
80 mGridView.getAdapter().getCount() - 1, lastChild.getId()); in testPullDown()
97 mGridView.getAdapter().getCount() - 1, lastChild.getId()); in testPushUpFast()
114 mGridView.getAdapter().getCount() - 1, lastChild.getId()); in testPullDownFast()
/frameworks/rs/tests/cpp_api/cppbasic-shared/
Dcompute.cpp53 failed_alloc->copy1DRangeFrom(0, failed_t->getCount(), &failed); in test_compute()
56 uint32_t *buf = new uint32_t[t->getCount()]; in test_compute()
57 for (uint32_t ct=0; ct < t->getCount(); ct++) { in test_compute()
60 ain->copy1DRangeFrom(0, t->getCount(), buf); in test_compute()
85 int *buf = new int[t->getCount()]; in test_compute()
86 for (uint32_t ct=0; ct < t->getCount(); ct++) { in test_compute()
/frameworks/base/core/tests/coretests/src/android/os/
DRemoteCallbackListTest.java110 assertEquals(0, mRed.mLatch.getCount()); in testSimple_Manual()
111 assertEquals(0, mGreen.mLatch.getCount()); in testSimple_Manual()
112 assertEquals(1, mBlue.mLatch.getCount()); in testSimple_Manual()
127 assertEquals(0, mRed.mLatch.getCount()); in testSimple_Functional()
128 assertEquals(0, mGreen.mLatch.getCount()); in testSimple_Functional()
129 assertEquals(1, mBlue.mLatch.getCount()); in testSimple_Functional()
/frameworks/rs/tests/cpp_api/cppbasic/
Dcompute.cpp53 failed_alloc->copy1DRangeFrom(0, failed_t->getCount(), &failed); in test_compute()
56 uint32_t *buf = new uint32_t[t->getCount()]; in test_compute()
57 for (uint32_t ct=0; ct < t->getCount(); ct++) { in test_compute()
60 ain->copy1DRangeFrom(0, t->getCount(), buf); in test_compute()
85 int *buf = new int[t->getCount()]; in test_compute()
86 for (uint32_t ct=0; ct < t->getCount(); ct++) { in test_compute()
/frameworks/base/core/tests/coretests/src/android/database/
DDatabaseCursorTest.java153 assertSame(3, c.getCount()); in testCursor1()
209 assertEquals(0, c.getCount()); in testCursor2()
250 assertEquals(1, c.getCount()); in testLargeField()
271 int count = c.getCount(); in onChanged()
309 assertEquals(count, c.getCount()); in testManyRowsLong()
345 assertEquals(count, c.getCount()); in testManyRowsTxt()
383 assertEquals(count, c.getCount()); in testManyRowsTxtLong()
393 assertEquals(3, c.getCount()); in testRequery()
396 assertEquals(3, c.getCount()); in testRequery()
407 assertEquals(1, c.getCount()); in testRequeryWithSelection()
[all …]
/frameworks/base/core/java/android/widget/
DHeaderViewListAdapter.java134 public int getCount() { in getCount() method in HeaderViewListAdapter
136 return getFootersCount() + getHeadersCount() + mAdapter.getCount(); in getCount()
161 adapterCount = mAdapter.getCount(); in isEnabled()
182 adapterCount = mAdapter.getCount(); in getItem()
196 int adapterCount = mAdapter.getCount(); in getItemId()
222 adapterCount = mAdapter.getCount(); in getView()
236 int adapterCount = mAdapter.getCount(); in getItemViewType()
/frameworks/base/core/java/android/database/
DAbstractCursor.java97 abstract public int getCount(); in getCount() method in AbstractCursor
252 final int count = getCount(); in moveToPosition()
296 return moveToPosition(getCount() - 1); in moveToLast()
311 return mPos == 0 && getCount() != 0; in isFirst()
316 int cnt = getCount(); in isLast()
322 if (getCount() == 0) { in isBeforeFirst()
330 if (getCount() == 0) { in isAfterLast()
333 return mPos == getCount(); in isAfterLast()
355 if (getCount() > 0) { in getColumnIndex()
534 if (-1 == mPos || getCount() == mPos) { in checkPosition()
[all …]
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/
DItemGroup.java120 final int count = child.getCount(); in addChild()
137 final int childCount = child.getCount(); in removeChild()
154 final int numRemoved = getCount(); in clear()
165 public int getCount() { in getCount() method in ItemGroup
209 childPos = getCount(); in getChildPosition()
282 if (item.getCount() > 0) { in updateDataIfNeeded()
285 count += item.getCount(); in updateDataIfNeeded()
/frameworks/base/core/tests/InputMethodCoreTests/src/android/view/inputmethod/
DInputMethodSubtypeArrayTest.java50 assertEquals(subtypes.size(), array.getCount()); in testInstantiate()
56 assertEquals(subtypes.size(), clonedArray.getCount()); in testInstantiate()
62 assertEquals(clonedArray.getCount(), clonedClonedArray.getCount()); in testInstantiate()
83 .that(negativeCountArray.getCount()).isEqualTo(-1); in testNegativeCount()
/frameworks/opt/net/ims/tests/src/com/android/ims/rcs/uce/eab/
DEabProviderTest.java77 assertEquals(1, cursor.getCount()); in testQueryContactInfo()
97 assertEquals(1, cursor.getCount()); in testContactIsUnique()
115 assertEquals(1, cursor.getCount()); in testQueryCommonInfo()
141 assertEquals(2, cursor.getCount()); in testCommonIsNotUnique()
159 assertEquals(1, cursor.getCount()); in testQueryPresentInfo()
183 assertEquals(2, cursor.getCount()); in testPresentTupleIsNotUnique()
200 assertEquals(1, cursor.getCount()); in testQueryOptionInfo()
222 assertEquals(2, cursor.getCount()); in testOptionIsNotUnique()
254 assertEquals(1, cursor.getCount()); in testQueryByAllDataURI()
311 assertEquals(1, cursor.getCount()); in testQueryBySubIdAndPhoneNumber()
[all …]
/frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/
DBaseCursorPagerAdapter.java80 public int getCount() { in getCount() method in BaseCursorPagerAdapter
82 return mCursor.getCount(); in getCount()
173 Log.v(TAG, "swapCursor old=" + (mCursor == null ? -1 : mCursor.getCount()) + in swapCursor()
174 "; new=" + (newCursor == null ? -1 : newCursor.getCount())); in swapCursor()
248 SparseIntArray itemPosition = new SparseIntArray(mCursor.getCount()); in setItemPosition()
/frameworks/base/services/core/java/com/android/server/am/
DDropboxRateLimiter.java140 if (errRecord.getCount() > errRecord.getAllowedEntries()) { in shouldRateLimit()
152 if (errRecord == null || errRecord.getCount() < errRecord.getAllowedEntries()) return 0; in recentlyDroppedCount()
153 return errRecord.getCount() - errRecord.getAllowedEntries(); in recentlyDroppedCount()
167 mErrorClusterRecords.valueAt(i).getCount()); in maybeRemoveExpiredRecords()
249 public int getCount() { in getCount() method in DropboxRateLimiter.ErrorRecord
/frameworks/opt/chips/tests/src/com/android/ex/chips/
DRecipientAlternatesAdapterTest.java36 null /* desiredMimeType */, null /* lookupKey */).getCount()); in testRemoveUndesiredDestinations()
44 assertEquals(1, result.getCount()); in testRemoveUndesiredDestinations()
52 assertEquals(2, result.getCount()); in testRemoveUndesiredDestinations()
62 assertEquals(2, result.getCount()); in testRemoveUndesiredDestinations()
72 assertEquals(2, result.getCount()); in testRemoveUndesiredDestinations()

12345678910>>...16