/frameworks/ex/common/tests/src/com/android/common/widget/ |
D | GroupingListAdapterTests.java | 55 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 …]
|
D | CompositeCursorAdapterTest.java | 88 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/core/tests/coretests/src/android/widget/ |
D | SimpleCursorAdapterTest.java | 95 assertEquals(2, ca.getCount()); in testCreateLive() 106 assertEquals(0, ca.getCount()); in testCreateNull() 117 assertEquals(2, ca.getCount()); in testChangeCursorLive() 125 assertEquals(5, ca.getCount()); in testChangeCursorLive() 136 assertEquals(2, ca.getCount()); in testChangeCursorNull() 142 assertEquals(0, ca.getCount()); in testChangeCursorNull() 164 assertEquals(2, ca.getCount()); in testChangeCursorColumns() 179 assertEquals(0, ca.getCount()); in testNullConstructor() 189 assertEquals(0, ca.getCount()); in testChangeNullToMapped() 192 assertEquals(2, ca.getCount()); in testChangeNullToMapped() [all …]
|
/frameworks/base/libs/hwui/tests/unit/ |
D | OffscreenBufferPoolTests.cpp | 62 EXPECT_EQ(0u, pool.getCount()) << "pool must be created empty"; in RENDERTHREAD_TEST() 85 EXPECT_EQ(1u, pool.getCount()); in RENDERTHREAD_TEST() 88 EXPECT_EQ(0u, pool.getCount()); in RENDERTHREAD_TEST() 110 ASSERT_EQ(1u, pool.getCount()); in RENDERTHREAD_TEST() 120 EXPECT_EQ(1u, pool.getCount()); in RENDERTHREAD_TEST() 133 EXPECT_EQ(0u, pool.getCount()); // failed to put (so was destroyed instead) in RENDERTHREAD_TEST() 147 EXPECT_EQ(0u, pool.getCount()) << "Expect nothing inside"; in RENDERTHREAD_TEST() 149 EXPECT_EQ(40u, pool.getCount()) << "Expect all items added"; in RENDERTHREAD_TEST() 152 EXPECT_EQ(0u, pool.getCount()) << "Expect all items cleared"; in RENDERTHREAD_TEST()
|
/frameworks/base/core/java/android/database/ |
D | AbstractCursor.java | 84 abstract public int getCount(); in getCount() method in AbstractCursor 219 final int count = getCount(); in moveToPosition() 263 return moveToPosition(getCount() - 1); in moveToLast() 278 return mPos == 0 && getCount() != 0; in isFirst() 283 int cnt = getCount(); in isLast() 289 if (getCount() == 0) { in isBeforeFirst() 297 if (getCount() == 0) { in isAfterLast() 300 return mPos == getCount(); in isAfterLast() 322 if (getCount() > 0) { in getColumnIndex() 459 if (-1 == mPos || getCount() == mPos) { in checkPosition() [all …]
|
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/ |
D | MtpDatabaseTest.java | 93 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() 281 assertEquals(1, cursor.getCount()); in testPutChildDocuments_operationsSupported() 298 assertEquals(1, cursor.getCount()); in testPutChildDocuments_operationsSupported() 314 assertEquals(1, cursor.getCount()); in testPutChildDocuments_operationsSupported() 337 assertEquals(2, cursor.getCount()); in testRestoreIdForRootDocuments() 355 assertEquals(0, cursor.getCount()); in testRestoreIdForRootDocuments() 370 assertEquals(2, cursor.getCount()); in testRestoreIdForRootDocuments() [all …]
|
D | MtpDocumentsProviderTest.java | 152 assertEquals(1, cursor.getCount()); in testOpenDeviceOnDemand() 210 assertEquals(2, cursor.getCount()); in testQueryRoots() 224 assertEquals(2, cursor.getCount()); in testQueryRoots() 270 assertEquals(2, cursor.getCount()); in testQueryRoots_error() 310 assertEquals(1, cursor.getCount()); in testQueryDocument() 346 assertEquals(1, cursor.getCount()); in testQueryDocument_directory() 373 assertEquals(1, cursor.getCount()); in testQueryDocument_forRoot() 404 assertEquals(1, cursor.getCount()); in testQueryChildDocuments() 430 assertEquals(0, cursor.getCount()); in testQueryChildDocuments_documentError() 577 assertEquals(1, cursor.getCount()); in testBusyDevice() [all …]
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
D | SectionedListAdapter.java | 54 public int getCount() { in getCount() method in SectionedListAdapter 58 count += mSections.get(i).getCount() + 1; in getCount() 68 final int sectionSize = section.getCount() + 1; in getItem() 93 final int sectionSize = section.getCount() + 1; in getView() 118 final int sectionSize = section.getCount() + 1; in isEnabled() 139 final int sectionSize = section.getCount() + 1; in getItemViewType()
|
D | FilteringCursorWrapper.java | 51 final int count = cursor.getCount(); in FilteringCursorWrapper() 69 if (DEBUG && mCount != cursor.getCount()) { in FilteringCursorWrapper() 70 Log.d(TAG, "Before filtering " + cursor.getCount() + ", after " + mCount); in FilteringCursorWrapper() 96 public int getCount() { in getCount() method in FilteringCursorWrapper
|
/frameworks/base/core/tests/coretests/src/android/database/ |
D | DatabaseCursorTest.java | 156 assertSame(3, c.getCount()); in testCursor1() 212 assertEquals(0, c.getCount()); in testCursor2() 253 assertEquals(1, c.getCount()); in testLargeField() 274 int count = c.getCount(); in onChanged() 312 assertEquals(count, c.getCount()); in testManyRowsLong() 348 assertEquals(count, c.getCount()); in testManyRowsTxt() 386 assertEquals(count, c.getCount()); in testManyRowsTxtLong() 396 assertEquals(3, c.getCount()); in testRequery() 399 assertEquals(3, c.getCount()); in testRequery() 410 assertEquals(1, c.getCount()); in testRequeryWithSelection() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/gridview/touch/ |
D | GridTouchStackFromBottomTest.java | 49 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/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | SingleRow.java | 52 return Math.min(mStartIndex, mProvider.getCount() - 1); in getStartIndexForAppend() 62 return Math.min(mStartIndex, mProvider.getCount() - 1); in getStartIndexForPrepend() 64 return mProvider.getCount() - 1; in getStartIndexForPrepend() 70 if (mProvider.getCount() == 0) { in prependVisibleItems() 102 if (mProvider.getCount() == 0) { in appendVisibleItems() 110 for (int index = getStartIndexForAppend(); index < mProvider.getCount(); index++) { in appendVisibleItems()
|
/frameworks/rs/tests/cppbasic/ |
D | compute.cpp | 56 failed_alloc->copy1DRangeFrom(0, failed_t->getCount(), &failed); in test_compute() 59 uint32_t *buf = new uint32_t[t->getCount()]; in test_compute() 60 for (uint32_t ct=0; ct < t->getCount(); ct++) { in test_compute() 63 ain->copy1DRangeFrom(0, t->getCount(), buf); in test_compute() 88 int *buf = new int[t->getCount()]; in test_compute() 89 for (uint32_t ct=0; ct < t->getCount(); ct++) { in test_compute()
|
/frameworks/rs/tests/cppbasic-shared/ |
D | compute.cpp | 56 failed_alloc->copy1DRangeFrom(0, failed_t->getCount(), &failed); in test_compute() 59 uint32_t *buf = new uint32_t[t->getCount()]; in test_compute() 60 for (uint32_t ct=0; ct < t->getCount(); ct++) { in test_compute() 63 ain->copy1DRangeFrom(0, t->getCount(), buf); in test_compute() 88 int *buf = new int[t->getCount()]; in test_compute() 89 for (uint32_t ct=0; ct < t->getCount(); ct++) { in test_compute()
|
/frameworks/base/core/java/android/widget/ |
D | HeaderViewListAdapter.java | 130 public int getCount() { in getCount() method in HeaderViewListAdapter 132 return getFootersCount() + getHeadersCount() + mAdapter.getCount(); in getCount() 157 adapterCount = mAdapter.getCount(); in isEnabled() 178 adapterCount = mAdapter.getCount(); in getItem() 192 int adapterCount = mAdapter.getCount(); in getItemId() 218 adapterCount = mAdapter.getCount(); in getView() 232 int adapterCount = mAdapter.getCount(); in getItemViewType()
|
/frameworks/base/core/tests/coretests/src/android/view/inputmethod/ |
D | InputMethodSubtypeArrayTest.java | 35 assertEquals(subtypes.size(), array.getCount()); in testInstanciate() 41 assertEquals(subtypes.size(), clonedArray.getCount()); in testInstanciate() 47 assertEquals(clonedArray.getCount(), clonedClonedArray.getCount()); in testInstanciate()
|
/frameworks/opt/chips/tests/src/com/android/ex/chips/ |
D | RecipientAlternatesAdapterTest.java | 36 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/ |
D | BaseCursorPagerAdapter.java | 80 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/ |
D | ListOfThinItemsTest.java | 48 mListView.getChildCount() < mListView.getAdapter().getCount()); in testPreconditions() 53 final int numItems = mListView.getAdapter().getCount(); in testScrollToBottom() 63 int bottomThreshold = (lastVisiblePosition < mListView.getAdapter().getCount() - 1) ? in testScrollToBottom() 81 final int numItems = mListView.getAdapter().getCount(); in testScrollToTop()
|
D | ListWithNoFadingEdgeTest.java | 47 mListView.getChildCount() < mListView.getCount()); in testPreconditions() 52 final int numItems = mListView.getCount(); in testScrollDownToBottom() 63 final int numItems = mListView.getCount(); in testScrollFromBottomToTop()
|
/frameworks/support/design/tests/src/android/support/design/widget/ |
D | TabLayoutWithViewPagerTest.java | 68 public int getCount() { in getCount() method in TabLayoutWithViewPagerTest.BasePagerAdapter 200 int itemCount = mViewPager.getAdapter().getCount(); in verifyViewPagerSelection() 263 final int itemCount = mViewPager.getAdapter().getCount(); in testBasics() 297 assertEquals("Initial adapter page count", 3, initialAdapter.getCount()); in testAdapterContentChange() 302 final int newItemCount = mDefaultPagerAdapter.getCount(); in testAdapterContentChange() 328 assertEquals("Initial adapter page count", 3, initialAdapter.getCount()); in testAdapterContentChangeWithAutoRefreshDisabled() 333 final int newItemCount = mDefaultPagerAdapter.getCount(); in testAdapterContentChangeWithAutoRefreshDisabled() 349 assertEquals("Initial adapter page count", initialAdapter.getCount(), in testBasicAutoRefreshDisabled() 355 final int newItemCount = mDefaultPagerAdapter.getCount(); in testBasicAutoRefreshDisabled() 375 assertEquals("Initial adapter page count", 3, initialAdapter.getCount()); in testAdapterChange() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/ |
D | ListTouchBottomGravityTest.java | 53 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()
|
D | ListTouchBottomGravityManyTest.java | 56 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/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/xerox/ |
D | XeroxPrintServiceRecommendationPlugin.java | 72 if (mDiscoveryCallback != null) mDiscoveryCallback.onChanged(getCount()); in dataSetChanged() 76 public int getCount() { in getCount() method in XeroxPrintServiceRecommendationPlugin 77 return mServiceResolver.getCount(); in getCount()
|
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/samsung/ |
D | ServiceRecommendationPlugin.java | 74 if (mCallback != null) mCallback.onChanged(getCount()); in dataSetChanged() 83 public int getCount() { in getCount() method in ServiceRecommendationPlugin 84 return mListener.getCount().second; in getCount()
|