/frameworks/base/tests/FrameworkTest/tests/src/android/widget/ |
D | SimpleCursorAdapterTest.java | 92 assertEquals(2, ca.getCount()); in testCreateLive() 103 assertEquals(0, ca.getCount()); in testCreateNull() 114 assertEquals(2, ca.getCount()); in testChangeCursorLive() 122 assertEquals(5, ca.getCount()); in testChangeCursorLive() 133 assertEquals(2, ca.getCount()); in testChangeCursorNull() 139 assertEquals(0, ca.getCount()); in testChangeCursorNull() 161 assertEquals(2, ca.getCount()); in testChangeCursorColumns() 176 assertEquals(0, ca.getCount()); in testNullConstructor() 186 assertEquals(0, ca.getCount()); in testChangeNullToMapped() 189 assertEquals(2, ca.getCount()); in testChangeNullToMapped() [all …]
|
/frameworks/base/tests/AndroidTests/src/com/android/unit_tests/ |
D | DatabaseCursorTest.java | 122 assertEquals(9, c.getCount()); in testCursorUpdate() 209 assertSame(3, c.getCount()); in testCursor1() 265 assertEquals(0, c.getCount()); in testCursor2() 306 assertEquals(1, c.getCount()); in testLargeField() 327 int count = c.getCount(); in onChanged() 364 c.getCount(); in testLoadingThreadDelayRegisterData() 391 c.getCount(); in testLoadingThread() 416 c.getCount(); in testLoadingThreadClose() 439 c.getCount(); in testLoadingThreadDeactivate() 462 assertEquals(count, c.getCount()); in testManyRowsLong() [all …]
|
D | DatabaseGeneralTest.java | 107 assertEquals(1, c.getCount()); in testUpdate() 125 assertTrue(c == null || c.getCount() == 0); in testPhoneNumbersEqual() 131 assertEquals(1, c.getCount()); in testPhoneNumbersEqual() 140 assertEquals(1, c.getCount()); in testPhoneNumbersEqual() 148 assertTrue(c == null || c.getCount() == 0); in testPhoneNumbersEqual() 154 assertEquals(1, c.getCount()); in testPhoneNumbersEqual() 163 assertEquals(1, c.getCount()); in testPhoneNumbersEqual() 172 assertEquals(1, c.getCount()); in testPhoneNumbersEqual() 192 assertEquals(1, c.getCount()); in testPhoneNumbersEqual() 201 assertEquals(1, c.getCount()); in testPhoneNumbersEqual() [all …]
|
/frameworks/base/core/java/android/database/ |
D | AbstractCursor.java | 47 abstract public int getCount(); in getCount() method in AbstractCursor 171 final int count = getCount(); in moveToPosition() 207 if (position < 0 || position > getCount()) { in fillWindow() 252 return moveToPosition(getCount() - 1); in moveToLast() 264 return mPos == 0 && getCount() != 0; in isFirst() 268 int cnt = getCount(); in isLast() 273 if (getCount() == 0) { in isBeforeFirst() 280 if (getCount() == 0) { in isAfterLast() 283 return mPos == getCount(); in isAfterLast() 304 if (getCount() > 0) { in getColumnIndex() [all …]
|
D | MergeCursor.java | 55 public int getCount() in getCount() method in MergeCursor 61 count += mCursors[i].getCount(); in getCount() 79 if (newPosition < (cursorStartPos + mCursors[i].getCount())) { in onMove() 84 cursorStartPos += mCursors[i].getCount(); in onMove()
|
/frameworks/base/tests/FrameworkTest/tests/src/com/android/frameworktest/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()
|
D | GridTouchVerticalSpacingStackFromBottomTest.java | 52 assertEquals(mGridView.getAdapter().getCount() - 1, mGridView.getSelectedItemPosition()); in testPreconditions() 69 assertEquals("Wrong view in last position", mGridView.getAdapter().getCount() - 1, in testNoScroll() 91 assertEquals("Wrong view in last position", mGridView.getAdapter().getCount() - 1, in testShortScroll() 153 assertEquals("Grid is not scrolled to the bottom", mGridView.getAdapter().getCount() - 1, in testManyScrolls()
|
D | GridTouchStackFromBottomManyTest.java | 50 assertEquals(mGridView.getAdapter().getCount() - 1, mGridView.getSelectedItemPosition()); in testPreconditions() 80 assertEquals("Grid is not scrolled to the bottom", mGridView.getAdapter().getCount() - 1, in testScrollToBottom()
|
/frameworks/base/core/java/android/widget/ |
D | HeaderViewListAdapter.java | 114 public int getCount() { in getCount() method in HeaderViewListAdapter 116 return getFootersCount() + getHeadersCount() + mAdapter.getCount(); in getCount() 134 int adapterCount = mAdapter.getCount(); in isEnabled() 150 int adapterCount = mAdapter.getCount(); in getItem() 166 int adapterCnt = mAdapter.getCount(); in getItemId() 185 int adapterCount = mAdapter.getCount(); in getView() 203 int adapterCount = mAdapter.getCount(); in getItemViewType()
|
D | AdapterView.java | 551 if (adapter != null && adapter.getCount() > 0 && selection >= 0) { in getSelectedItem() 564 public int getCount() { in getCount() method in AdapterView 664 final boolean empty = adapter == null || adapter.getCount() == 0; in setFocusable() 677 final boolean empty = adapter == null || adapter.getCount() == 0; in setFocusableInTouchMode() 689 final boolean empty = adapter == null || adapter.getCount() == 0; in checkFocus() 778 mItemCount = getAdapter().getCount(); in onChanged() 893 event.setItemCount(getCount()); in dispatchPopulateAccessibilityEvent() 1121 if (mFirstPosition >= 0 && mFirstPosition < adapter.getCount()) { in rememberSyncState()
|
D | Spinner.java | 69 } else if (mAdapter != null && mAdapter.getCount() > 0) { in getBaseline() 308 public int getCount() { in getCount() method in Spinner.DropDownAdapter 309 return mAdapter == null ? 0 : mAdapter.getCount(); in getCount() 372 return getCount() == 0; in isEmpty()
|
D | CursorTreeAdapter.java | 177 return (mGroupCursorHelper.isValid() && helper != null) ? helper.getCount() : 0; in getChildrenCount() 186 return mGroupCursorHelper.getCount(); in getGroupCount() 424 int getCount() { in getCount() method in CursorTreeAdapter.MyCursorHelper 426 return mCursor.getCount(); in getCount()
|
/frameworks/base/tests/FrameworkTest/tests/src/com/android/frameworktest/listview/arrowscroll/ |
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()
|
D | ListOfThinItemsTest.java | 46 mListView.getChildCount() < mListView.getAdapter().getCount()); in testPreconditions() 51 final int numItems = mListView.getAdapter().getCount(); in testScrollToBottom() 61 int bottomThreshold = (lastVisiblePosition < mListView.getAdapter().getCount() - 1) ? in testScrollToBottom() 79 final int numItems = mListView.getAdapter().getCount(); in testScrollToTop()
|
D | ListWithScreenOfNoSelectablesTest.java | 46 final int numItems = mListView.getCount(); in testPreconditions() 52 mListView.getChildCount() < mListView.getCount()); in testPreconditions() 72 final int lastPosition = mListView.getCount() - 1; in testPanDownAcrossUnselectableChildrenToBottom()
|
D | ListLastItemPartiallyVisibleTest.java | 45 "in adapter", mListView.getCount(), mListView.getChildCount()); in testPreconditions() 66 int numMovesToLast = mListView.getCount() - 1; in testMovingUpToFullyVisibleNoScroll()
|
/frameworks/base/tests/FrameworkTest/tests/src/com/android/frameworktest/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()
|
D | ListSetSelectionTest.java | 62 final int targetPosition = mListView.getAdapter().getCount() / 2; in testSetSelection() 92 final int targetPosition = mListView.getAdapter().getCount() / 2; in testSetSelectionFromTop()
|
/frameworks/base/tests/FrameworkTest/tests/src/com/android/frameworktest/gridview/ |
D | GridSetSelectionBaseTest.java | 49 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()
|
/frameworks/base/core/java/android/preference/ |
D | PreferenceGroupAdapter.java | 158 public int getCount() { in getCount() method in PreferenceGroupAdapter 163 if (position < 0 || position >= getCount()) return null; in getItem() 168 if (position < 0 || position >= getCount()) return ListView.INVALID_ROW_ID; in getItemId() 192 if (position < 0 || position >= getCount()) return true; in isEnabled()
|
/frameworks/base/tests/FrameworkTest/tests/src/com/android/frameworktest/focus/ |
D | ListWithFooterViewAndNewLabelsTest.java | 61 1, mAdapter.getCount()); in FAILING_testPreconditions() 64 2, mListView.getCount()); in FAILING_testPreconditions()
|
/frameworks/base/tests/FrameworkTest/src/com/android/frameworktest/listview/ |
D | ListWithEmptyView.java | 43 if (position < 0 || position >= this.getCount()) { in getItemId() 91 if (mAdapter.getCount() > 0) { in onOptionsItemSelected()
|
D | ListThrasher.java | 75 public int getCount() { in getCount() method in ListThrasher.ThrashListAdapter 101 int position = mRandomizer.nextInt(getCount()); in bumpVersion()
|
/frameworks/base/tests/FrameworkTest/src/com/android/frameworktest/gridview/ |
D | GridThrasher.java | 77 public int getCount() { in getCount() method in GridThrasher.ThrashListAdapter 103 int position = mRandomizer.nextInt(getCount()); in bumpVersion()
|