Home
last modified time | relevance | path

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

12345678910>>...13

/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/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/base/location/java/com/android/internal/location/gnssmetrics/
DGnssMetrics.java271 if (locationFailureStatistics.getCount() > 0) { in dumpGnssMetricsAsProtoString()
272 msg.numLocationReportProcessed = locationFailureStatistics.getCount(); in dumpGnssMetricsAsProtoString()
275 if (timeToFirstFixSecStatistics.getCount() > 0) { in dumpGnssMetricsAsProtoString()
276 msg.numTimeToFirstFixProcessed = timeToFirstFixSecStatistics.getCount(); in dumpGnssMetricsAsProtoString()
281 if (positionAccuracyMeterStatistics.getCount() > 0) { in dumpGnssMetricsAsProtoString()
282 msg.numPositionAccuracyProcessed = positionAccuracyMeterStatistics.getCount(); in dumpGnssMetricsAsProtoString()
287 if (topFourAverageCn0Statistics.getCount() > 0) { in dumpGnssMetricsAsProtoString()
288 msg.numTopFourAverageCn0Processed = topFourAverageCn0Statistics.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/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
DMtpDatabaseTest.java93 assertEquals(1, cursor.getCount()); in testPutSingleStorageDocuments()
126 assertEquals(1, cursor.getCount()); in testPutSingleStorageDocuments()
156 assertEquals(3, cursor.getCount()); in testPutStorageDocuments()
206 assertEquals(3, cursor.getCount()); in testPutChildDocuments()
282 assertEquals(1, cursor.getCount()); in testPutChildDocuments_operationsSupported()
299 assertEquals(1, cursor.getCount()); in testPutChildDocuments_operationsSupported()
315 assertEquals(1, cursor.getCount()); in testPutChildDocuments_operationsSupported()
338 assertEquals(2, cursor.getCount()); in testRestoreIdForRootDocuments()
356 assertEquals(0, cursor.getCount()); in testRestoreIdForRootDocuments()
371 assertEquals(2, cursor.getCount()); in testRestoreIdForRootDocuments()
[all …]
DMtpDocumentsProviderTest.java154 assertEquals(1, cursor.getCount()); in testOpenDeviceOnDemand()
212 assertEquals(2, cursor.getCount()); in testQueryRoots()
230 assertEquals(2, cursor.getCount()); in testQueryRoots()
277 assertEquals(2, cursor.getCount()); in testQueryRoots_error()
321 assertEquals(1, cursor.getCount()); in testQueryDocument()
358 assertEquals(1, cursor.getCount()); in testQueryDocument_directory()
385 assertEquals(1, cursor.getCount()); in testQueryDocument_forStorage()
409 assertEquals(1, cursor.getCount()); in testQueryDocument_forDeviceWithSingleStorage()
440 assertEquals(1, cursor.getCount()); in testQueryDocument_forDeviceWithTwoStorages()
471 assertEquals(1, cursor.getCount()); in testQueryChildDocuments()
[all …]
/frameworks/base/core/java/android/database/
DAbstractCursor.java93 abstract public int getCount(); in getCount() method in AbstractCursor
232 final int count = getCount(); in moveToPosition()
276 return moveToPosition(getCount() - 1); in moveToLast()
291 return mPos == 0 && getCount() != 0; in isFirst()
296 int cnt = getCount(); in isLast()
302 if (getCount() == 0) { in isBeforeFirst()
310 if (getCount() == 0) { in isAfterLast()
313 return mPos == getCount(); in isAfterLast()
335 if (getCount() > 0) { in getColumnIndex()
514 if (-1 == mPos || getCount() == mPos) { in checkPosition()
[all …]
/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/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/
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-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/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/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/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/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/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()
DListWithScreenOfNoSelectablesTest.java46 final int numItems = mListView.getCount(); in testPreconditions()
52 mListView.getChildCount() < mListView.getCount()); in testPreconditions()
72 final int lastPosition = mListView.getCount() - 1; in testPanDownAcrossUnselectableChildrenToBottom()
/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()
DListTouchBottomGravityManyTest.java56 assertEquals(mListView.getAdapter().getCount() - 1, mListView.getSelectedItemPosition()); in testPreconditions()
91 assertEquals("List is not scrolled to the bottom", mListView.getAdapter().getCount() - 1, in testPushUp()
111 assertEquals("Wrong view in last position", mListView.getAdapter().getCount() - 1, in testNoScroll()
133 assertEquals("Wrong view in last position", mListView.getAdapter().getCount() - 1, in testShortScroll()
/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()
/frameworks/base/core/tests/coretests/src/android/widget/gridview/
DGridSetSelectionBaseTest.java49 assertEquals(mGridView.getAdapter().getCount() - 1, in testPreconditions()
58 final int target = mGridView.getAdapter().getCount() - 1; in testSetSelectionToTheEnd()
74 final int target = mGridView.getAdapter().getCount() / 2; in testSetSelectionToMiddle()

12345678910>>...13