Home
last modified time | relevance | path

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

12345

/frameworks/base/tests/FrameworkTest/tests/src/android/widget/
DSimpleCursorAdapterTest.java92 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/
DDatabaseCursorTest.java122 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 …]
DDatabaseGeneralTest.java107 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/
DAbstractCursor.java47 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 …]
DMergeCursor.java55 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/
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()
DGridTouchVerticalSpacingStackFromBottomTest.java52 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()
DGridTouchStackFromBottomManyTest.java50 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/
DHeaderViewListAdapter.java114 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()
DAdapterView.java551 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()
DSpinner.java69 } 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()
DCursorTreeAdapter.java177 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/
DListWithNoFadingEdgeTest.java47 mListView.getChildCount() < mListView.getCount()); in testPreconditions()
52 final int numItems = mListView.getCount(); in testScrollDownToBottom()
63 final int numItems = mListView.getCount(); in testScrollFromBottomToTop()
DListOfThinItemsTest.java46 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()
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()
DListLastItemPartiallyVisibleTest.java45 "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/
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()
DListSetSelectionTest.java62 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/
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()
/frameworks/base/core/java/android/preference/
DPreferenceGroupAdapter.java158 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/
DListWithFooterViewAndNewLabelsTest.java61 1, mAdapter.getCount()); in FAILING_testPreconditions()
64 2, mListView.getCount()); in FAILING_testPreconditions()
/frameworks/base/tests/FrameworkTest/src/com/android/frameworktest/listview/
DListWithEmptyView.java43 if (position < 0 || position >= this.getCount()) { in getItemId()
91 if (mAdapter.getCount() > 0) { in onOptionsItemSelected()
DListThrasher.java75 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/
DGridThrasher.java77 public int getCount() { in getCount() method in GridThrasher.ThrashListAdapter
103 int position = mRandomizer.nextInt(getCount()); in bumpVersion()

12345