Home
last modified time | relevance | path

Searched refs:getPosition (Results 1 – 16 of 16) sorted by relevance

/cts/tests/tests/widget/src/android/widget/cts/
DArrayAdapterTest.java225 assertEquals(0, mArrayAdapter.getPosition(STR1)); in testInsert()
230 assertEquals(1, mArrayAdapter.getPosition(STR1)); in testInsert()
231 assertEquals(0, mArrayAdapter.getPosition(STR2)); in testInsert()
234 assertEquals(mArrayAdapter.getCount() - 1, mArrayAdapter.getPosition(STR3)); in testInsert()
237 assertEquals(0, mArrayAdapter.getPosition(null)); in testInsert()
309 assertEquals(0, mArrayAdapter.getPosition(STR1)); in testGetPosition()
310 assertEquals(1, mArrayAdapter.getPosition(STR2)); in testGetPosition()
312 assertEquals(0, mArrayAdapter.getPosition(STR1)); in testGetPosition()
314 assertEquals(-1, mArrayAdapter.getPosition(STR3)); in testGetPosition()
317 assertEquals(-1, mArrayAdapter.getPosition(null)); in testGetPosition()
[all …]
DCursorAdapterTest.java278 assertEquals(0, c.getPosition()); in testGetItem()
283 assertEquals(1, c.getPosition()); in testGetItem()
DAbsListViewTest.java585 assertEquals(0, listener.getPosition()); in testGetContextMenuInfo()
599 assertEquals(2, listener.getPosition()); in testGetContextMenuInfo()
867 public int getPosition() { in getPosition() method in AbsListViewTest.MockOnItemLongClickListener
DCursorTreeAdapterTest.java656 if (0 == groupCursor.getPosition()) { in getChildrenCursor()
662 } else if (1 == groupCursor.getPosition()) { in getChildrenCursor()
/cts/tests/tests/database/src/android/database/cts/
DCursorWrapperTest.java213 assertEquals(-1, cursorWrapper.getPosition()); in testPositioning()
218 assertEquals(0, cursorWrapper.getPosition()); in testPositioning()
224 assertEquals(1, cursorWrapper.getPosition()); in testPositioning()
232 assertEquals(2, cursorWrapper.getPosition()); in testPositioning()
236 assertEquals(1, cursorWrapper.getPosition()); in testPositioning()
238 assertEquals(0, cursorWrapper.getPosition()); in testPositioning()
241 assertEquals(-1, cursorWrapper.getPosition()); in testPositioning()
243 assertEquals(1, cursorWrapper.getPosition()); in testPositioning()
249 assertEquals(2, cursorWrapper.getPosition()); in testPositioning()
251 assertEquals(1, cursorWrapper.getPosition()); in testPositioning()
[all …]
DAbstractCursorTest.java79 assertEquals(-1, abstractCursor.getPosition()); in testConstructor()
200 assertEquals(0, mDatabaseCursor.getPosition()); in testMoveToPrevious()
202 assertEquals(1, mDatabaseCursor.getPosition()); in testMoveToPrevious()
205 assertEquals(2, mDatabaseCursor.getPosition()); in testMoveToPrevious()
209 assertEquals(mDatabaseCursor.getCount(), mDatabaseCursor.getPosition()); in testMoveToPrevious()
212 assertEquals(-1, mDatabaseCursor.getPosition()); in testMoveToPrevious()
216 assertEquals(5, mDatabaseCursor.getPosition()); in testMoveToPrevious()
220 assertEquals(4, mDatabaseCursor.getPosition()); in testMoveToPrevious()
222 assertEquals(3, mDatabaseCursor.getPosition()); in testMoveToPrevious()
224 assertEquals(2, mDatabaseCursor.getPosition()); in testMoveToPrevious()
[all …]
DDatabaseUtilsTest.java372 int pos = cursor.getPosition(); in testDumpCursor()
395 assertEquals(pos, cursor.getPosition()); // dumpCursor should not change status of cursor in testDumpCursor()
400 assertEquals(pos, cursor.getPosition()); // dumpCursor should not change status of cursor in testDumpCursor()
404 assertEquals(pos, cursor.getPosition()); // dumpCursor should not change status of cursor in testDumpCursor()
DDatabaseCursorTest.java278 assertEquals(0, testCursor.getPosition()); in testLargeField()
/cts/hostsidetests/services/windowmanager/dndsourceapp/src/android/wm/cts/dndsourceapp/
DDragSourceCursor.java42 if (getPosition() != 0) { in getString()
43 throw new IllegalArgumentException("Incorrect position: " + getPosition()); in getString()
/cts/tests/tests/text/src/android/text/cts/
DSpannableStringBuilderSpanTest.java73 positionSet.getPosition(s), positionSet.getPosition(e), in replace()
75 replPositionSet.getPosition(rs), replPositionSet.getPosition(re)); in replace()
134 int originalStart = mSpanSet.mPositionSet.getPosition(s); in checkSpanPositions()
135 int originalEnd = mSpanSet.mPositionSet.getPosition(e); in checkSpanPositions()
248 int originalStart = mReplacementSpanSet.mPositionSet.getPosition(s); in checkReplacementSpanPositions()
249 int originalEnd = mReplacementSpanSet.mPositionSet.getPosition(e); in checkReplacementSpanPositions()
316 int getPosition(int index) { in getPosition() method in SpannableStringBuilderSpanTest.PositionSet
371 int start = mPositionSet.getPosition(s); in initSpans()
372 int end = mPositionSet.getPosition(e); in initSpans()
/cts/tests/tests/view/src/android/view/inputmethod/cts/
DCompletionInfoTest.java48 assertEquals(POSITION, info.getPosition()); in assertCompletionInfo()
/cts/tests/tests/provider/src/android/provider/cts/contacts/
DDatabaseAsserts.java203 final int pos = cursor.getPosition(); in assertCursorValuesMatchExactly()
/cts/tests/tests/media/src/android/media/cts/
DAudioRecordTest.java1159 int position = getPosition(); in onMarkerReached()
1174 int position = getPosition(); in onPeriodicNotification()
1211 private int getPosition() { in getPosition() method in AudioRecordTest.MockOnRecordPositionUpdateListener
/cts/tests/tests/provider/src/android/provider/cts/
DMediaStore_Audio_Playlists_MembersTest.java172 int pos = c.getPosition(); in verifyPlaylist()
DCalendarTest.java3437 int posn = instances.getPosition(); in dumpInstances()
/cts/tools/dex-tools/dex/
Dclasses.out.dex18245 public abstract int getPosition()
18400 public int getPosition()
26799 public final int getPosition()
95732 public int getPosition(