Home
last modified time | relevance | path

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

12345678910>>...14

/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/core/tests/coretests/src/com/android/internal/os/
DLongSamplingCounterTest.java70 assertEquals(COUNT, getCount()); in testReadWriteParcel()
76 assertEquals(8 * COUNT, getCount()); in testReadWriteParcel()
79 assertEquals(COUNT, getCount()); in testReadWriteParcel()
87 assertEquals(COUNT, getCount()); in testReadWriteSummaryParcel()
93 assertEquals(8 * COUNT, getCount()); in testReadWriteSummaryParcel()
96 assertEquals(COUNT, getCount()); in testReadWriteSummaryParcel()
103 assertEquals(COUNT, getCount()); in testOnTimeStarted()
105 assertEquals(COUNT, getCount()); in testOnTimeStarted()
111 assertEquals(COUNT, getCount()); in testOnTimeStopped()
113 assertEquals(COUNT, getCount()); in testOnTimeStopped()
[all …]
/frameworks/base/location/java/com/android/internal/location/gnssmetrics/
DGnssMetrics.java306 if (mLocationFailureStatistics.getCount() > 0) { in dumpGnssMetricsAsProtoString()
307 msg.numLocationReportProcessed = mLocationFailureStatistics.getCount(); in dumpGnssMetricsAsProtoString()
310 if (mTimeToFirstFixSecStatistics.getCount() > 0) { in dumpGnssMetricsAsProtoString()
311 msg.numTimeToFirstFixProcessed = mTimeToFirstFixSecStatistics.getCount(); in dumpGnssMetricsAsProtoString()
316 if (mPositionAccuracyMeterStatistics.getCount() > 0) { in dumpGnssMetricsAsProtoString()
317 msg.numPositionAccuracyProcessed = mPositionAccuracyMeterStatistics.getCount(); in dumpGnssMetricsAsProtoString()
322 if (mTopFourAverageCn0Statistics.getCount() > 0) { in dumpGnssMetricsAsProtoString()
323 msg.numTopFourAverageCn0Processed = mTopFourAverageCn0Statistics.getCount(); in dumpGnssMetricsAsProtoString()
340 if (mTopFourAverageCn0StatisticsL5.getCount() > 0) { in dumpGnssMetricsAsProtoString()
341 msg.numL5TopFourAverageCn0Processed = mTopFourAverageCn0StatisticsL5.getCount(); in dumpGnssMetricsAsProtoString()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/concurrency/
DRepeatableExecutorTest.java58 assertThat(mCountingTask.getCount()).isEqualTo(1); in testExecute()
69 assertThat(mCountingTask.getCount()).isEqualTo(1); in testRepeats()
79 assertThat(mCountingTask.getCount()).isEqualTo(0); in testNoExecutionBeforeStartDelay()
91 assertThat(mCountingTask.getCount()).isEqualTo(1); in testExecuteAfterStartDelay()
101 assertThat(mCountingTask.getCount()).isEqualTo(1); in testExecuteWithZeroStartDelay()
115 assertThat(mCountingTask.getCount()).isEqualTo(2); in testAdvanceTimeTwice()
128 assertThat(mCountingTask.getCount()).isEqualTo(0); in testCancel()
141 assertThat(mCountingTask.getCount()).isEqualTo(1); in testCancelAfterStart()
158 public int getCount() { in getCount() method in RepeatableExecutorTest.CountingTask
/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.java88 assertEquals(5, adapter.getCount()); in testGetCountNoEmptySections()
99 for (int i = 0; i < adapter.getCount(); i++) { in testGetViewNoEmptySections()
114 assertEquals(7, adapter.getCount()); in testGetCountWithHeadersAndNoEmptySections()
125 for (int i = 0; i < adapter.getCount(); i++) { in testGetViewWithHeadersNoEmptySections()
139 assertEquals(3, adapter.getCount()); in testGetCountWithHiddenEmptySection()
189 for (int i = 0; i < adapter.getCount(); i++) { in testGetViewWithHiddenEmptySections()
203 assertEquals(4, adapter.getCount()); in testGetCountWithShownEmptySection()
213 for (int i = 0; i < adapter.getCount(); i++) { in testGetViewWithShownEmptySections()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiScoreCardTest.java554 assertEquals(diag, 1, dailyStats.getCount(CNT_CONNECTION_ATTEMPT)); in checkSerializationBssidExample()
555 assertEquals(diag, 0, dailyStats.getCount(CNT_CONNECTION_FAILURE)); in checkSerializationBssidExample()
556 assertEquals(diag, 1, dailyStats.getCount(CNT_CONNECTION_DURATION_SEC)); in checkSerializationBssidExample()
557 assertEquals(diag, 0, dailyStats.getCount(CNT_SHORT_CONNECTION_NONLOCAL)); in checkSerializationBssidExample()
558 assertEquals(diag, 0, dailyStats.getCount(CNT_DISCONNECTION_NONLOCAL)); in checkSerializationBssidExample()
559 assertEquals(diag, 0, dailyStats.getCount(CNT_ASSOCIATION_REJECTION)); in checkSerializationBssidExample()
560 assertEquals(diag, 0, dailyStats.getCount(CNT_ASSOCIATION_TIMEOUT)); in checkSerializationBssidExample()
561 assertEquals(diag, 0, dailyStats.getCount(CNT_AUTHENTICATION_FAILURE)); in checkSerializationBssidExample()
598 assertEquals(2, signal.getRssi().getCount()); in testAccessPointSerialization()
857 assertEquals(1, dailyStats.getCount(CNT_CONNECTION_ATTEMPT)); in testNetworkAssocTimeOut()
[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/java/android/database/
DAbstractCursor.java92 abstract public int getCount(); in getCount() method in AbstractCursor
231 final int count = getCount(); in moveToPosition()
275 return moveToPosition(getCount() - 1); in moveToLast()
290 return mPos == 0 && getCount() != 0; in isFirst()
295 int cnt = getCount(); in isLast()
301 if (getCount() == 0) { in isBeforeFirst()
309 if (getCount() == 0) { in isAfterLast()
312 return mPos == getCount(); in isAfterLast()
334 if (getCount() > 0) { in getColumnIndex()
513 if (-1 == mPos || getCount() == mPos) { in checkPosition()
[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/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/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/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/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/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/keys/
DTertiaryKeyRotationWindowedCountTest.java66 assertThat(mWindowedcount.getCount()).isEqualTo(0); in getCount_isZeroInitially()
79 assertThat(mWindowedcount.getCount()).isEqualTo(4); in getCount_includesResultsInLastTwentyFourHours()
88 assertThat(mWindowedcount.getCount()).isEqualTo(0); in getCount_ignoresResultsOlderThanTwentyFourHours()
97 assertThat(mWindowedcount.getCount()).isEqualTo(0); in getCount_removesFutureEventsIfClockHasChanged()
111 assertThat(new TertiaryKeyRotationWindowedCount(mFile, mClock).getCount()).isEqualTo(1); in record_persistsStateToDisk()
/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/coretests/src/android/view/inputmethod/
DInputMethodSubtypeArrayTest.java44 assertEquals(subtypes.size(), array.getCount()); in testInstantiate()
50 assertEquals(subtypes.size(), clonedArray.getCount()); in testInstantiate()
56 assertEquals(clonedArray.getCount(), clonedClonedArray.getCount()); in testInstantiate()
/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()
/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/native/libs/input/tests/
DLatencyStatistics_test.cpp33 ASSERT_EQ(stats.getCount(), 0u); in TEST()
44 ASSERT_EQ(stats.getCount(), 1u); in TEST()
60 ASSERT_EQ(stats.getCount(), 4u); in TEST()
/frameworks/ml/nn/runtime/
DModelBuilder.cpp632 auto getCount = [this, &operation](uint32_t tailStartIndex, const std::vector<TailSpec>& tail) { in getNumTrailingArgumentsToRemove() local
645 return getCount(10, {TS::BOOL_FALSE}); in getNumTrailingArgumentsToRemove()
651 return getCount(7, {TS::BOOL_FALSE}); in getNumTrailingArgumentsToRemove()
660 uint32_t count = getCount(10, {TS::BOOL_FALSE, TS::INT32_ONE, TS::INT32_ONE}); in getNumTrailingArgumentsToRemove()
668 uint32_t count = getCount(7, {TS::BOOL_FALSE, TS::INT32_ONE, TS::INT32_ONE}); in getNumTrailingArgumentsToRemove()
679 uint32_t count = getCount(11, {TS::BOOL_FALSE, TS::INT32_ONE, TS::INT32_ONE}); in getNumTrailingArgumentsToRemove()
687 uint32_t count = getCount(8, {TS::BOOL_FALSE, TS::INT32_ONE, TS::INT32_ONE}); in getNumTrailingArgumentsToRemove()
696 return getCount(2, {TS::BOOL_FALSE}); in getNumTrailingArgumentsToRemove()
703 return getCount(1, {TS::INT32_NEGATIVE_ONE}); in getNumTrailingArgumentsToRemove()
711 return getCount(10, {TS::BOOL_FALSE}); in getNumTrailingArgumentsToRemove()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
DListWithNoFadingEdgeTest.java47 mListView.getChildCount() < mListView.getCount()); in testPreconditions()
54 final int numItems = mListView.getCount(); in testScrollDownToBottom()
67 final int numItems = mListView.getCount(); in testScrollFromBottomToTop()
DListOfThinItemsTest.java49 mListView.getChildCount() < mListView.getAdapter().getCount()); in testPreconditions()
58 final int numItems = mListView.getAdapter().getCount(); in testScrollToBottom()
68 int bottomThreshold = (lastVisiblePosition < mListView.getAdapter().getCount() - 1) ? in testScrollToBottom()
90 final int numItems = mListView.getAdapter().getCount(); in testScrollToTop()
/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/
DListTouchBottomGravityTest.java53 assertEquals(mListView.getAdapter().getCount() - 1, mListView.getSelectedItemPosition()); in testPreconditions()
68 assertEquals("List is not scrolled to the bottom", mListView.getAdapter().getCount() - 1, in testPullDown()
87 assertEquals("List is not scrolled to the bottom", mListView.getAdapter().getCount() - 1, in testPushUp()
/frameworks/base/services/tests/servicestests/src/com/android/server/wallpaper/
DWallpaperServiceTests.java74 1, eventCountdown.getCount()); in testNotifyColorsChanged_rateLimit()
79 1, eventCountdown.getCount()); in testNotifyColorsChanged_rateLimit()
87 0, eventCountdown.getCount()); in testNotifyColorsChanged_rateLimit()

12345678910>>...14