Home
last modified time | relevance | path

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

12

/cts/tests/tests/database/src/android/database/cts/
DCursorWrapperTest.java220 assertEquals(-1, cursorWrapper.getPosition()); in testPositioning()
225 assertEquals(0, cursorWrapper.getPosition()); in testPositioning()
231 assertEquals(1, cursorWrapper.getPosition()); in testPositioning()
239 assertEquals(2, cursorWrapper.getPosition()); in testPositioning()
243 assertEquals(1, cursorWrapper.getPosition()); in testPositioning()
245 assertEquals(0, cursorWrapper.getPosition()); in testPositioning()
248 assertEquals(-1, cursorWrapper.getPosition()); in testPositioning()
250 assertEquals(1, cursorWrapper.getPosition()); in testPositioning()
256 assertEquals(2, cursorWrapper.getPosition()); in testPositioning()
258 assertEquals(1, cursorWrapper.getPosition()); in testPositioning()
[all …]
DAbstractCursorTest.java90 assertEquals(-1, abstractCursor.getPosition()); in testConstructor()
247 assertEquals(0, mDatabaseCursor.getPosition()); in testMoveToPrevious()
249 assertEquals(1, mDatabaseCursor.getPosition()); in testMoveToPrevious()
252 assertEquals(2, mDatabaseCursor.getPosition()); in testMoveToPrevious()
256 assertEquals(mDatabaseCursor.getCount(), mDatabaseCursor.getPosition()); in testMoveToPrevious()
259 assertEquals(-1, mDatabaseCursor.getPosition()); in testMoveToPrevious()
263 assertEquals(5, mDatabaseCursor.getPosition()); in testMoveToPrevious()
267 assertEquals(4, mDatabaseCursor.getPosition()); in testMoveToPrevious()
269 assertEquals(3, mDatabaseCursor.getPosition()); in testMoveToPrevious()
271 assertEquals(2, mDatabaseCursor.getPosition()); in testMoveToPrevious()
[all …]
DDatabaseUtilsTest.java390 int pos = cursor.getPosition(); in testDumpCursor()
413 assertEquals(pos, cursor.getPosition()); // dumpCursor should not change status of cursor in testDumpCursor()
418 assertEquals(pos, cursor.getPosition()); // dumpCursor should not change status of cursor in testDumpCursor()
422 assertEquals(pos, cursor.getPosition()); // dumpCursor should not change status of cursor in testDumpCursor()
DDatabaseCursorTest.java278 assertEquals(0, testCursor.getPosition()); in testLargeField()
/cts/tests/tests/widget/src/android/widget/cts/
DArrayAdapterTest.java253 assertEquals(0, mArrayAdapter.getPosition(STR1)); in testInsert()
258 assertEquals(1, mArrayAdapter.getPosition(STR1)); in testInsert()
259 assertEquals(0, mArrayAdapter.getPosition(STR2)); in testInsert()
262 assertEquals(mArrayAdapter.getCount() - 1, mArrayAdapter.getPosition(STR3)); in testInsert()
265 assertEquals(0, mArrayAdapter.getPosition(null)); in testInsert()
346 assertEquals(0, mArrayAdapter.getPosition(STR1)); in testGetPosition()
347 assertEquals(1, mArrayAdapter.getPosition(STR2)); in testGetPosition()
349 assertEquals(0, mArrayAdapter.getPosition(STR1)); in testGetPosition()
351 assertEquals(-1, mArrayAdapter.getPosition(STR3)); in testGetPosition()
354 assertEquals(-1, mArrayAdapter.getPosition(null)); in testGetPosition()
[all …]
DMagnifierTest.java310 final Point magnifierPosition = mMagnifier.getPosition(); in testShow()
339 final Point magnifierPosition = mMagnifier.getPosition(); in testShow_withDecoupledMagnifierPosition()
360 assertNull(mMagnifier.getPosition()); in testShow_whenPixelCopyFails()
440 final Point magnifierCoords = mMagnifier.getPosition(); in testWindowPosition_isClampedInsideMainApplicationWindow_topLeft()
458 final Point magnifierCoords = mMagnifier.getPosition(); in testWindowPosition_isClampedInsideMainApplicationWindow_bottomRight()
480 final Point magnifierCoords = mMagnifier.getPosition(); in testWindowPosition_isNotClamped_whenClampingFlagIsOff_topLeft()
505 final Point magnifierCoords = mMagnifier.getPosition(); in testWindowPosition_isNotClamped_whenClampingFlagIsOff_bottomRight()
529 final Point magnifierCoords = mMagnifier.getPosition(); in testWindowPosition_isCorrect_whenADefaultContentToMagnifierOffsetIsUsed()
546 assertNull(mMagnifier.getPosition()); in testWindowPosition_isNull_whenMagnifierIsNotShowing()
549 assertNotNull(mMagnifier.getPosition()); in testWindowPosition_isNull_whenMagnifierIsNotShowing()
[all …]
DCursorAdapterTest.java305 assertEquals(0, c.getPosition()); in testGetItem()
310 assertEquals(1, c.getPosition()); in testGetItem()
DCursorTreeAdapterTest.java697 if (0 == groupCursor.getPosition()) { in getChildrenCursor()
703 } else if (1 == groupCursor.getPosition()) { in getChildrenCursor()
/cts/tests/framework/base/windowmanager/dndsourceapp/src/android/server/wm/dndsourceapp/
DDragSourceCursor.java42 if (getPosition() != 0) { in getString()
43 throw new IllegalArgumentException("Incorrect position: " + getPosition()); in getString()
/cts/tests/tests/mediaparser/src/android/media/mediaparser/cts/
DMockMediaParserInputReader.java49 public long getPosition() { in getPosition() method in MockMediaParserInputReader
50 return mFakeExtractorInput.getPosition(); in getPosition()
/cts/tests/tests/text/src/android/text/cts/
DSpannableStringBuilderSpanTest.java87 positionSet.getPosition(s), positionSet.getPosition(e), in replace()
89 replPositionSet.getPosition(rs), replPositionSet.getPosition(re)); in replace()
148 int originalStart = mSpanSet.mPositionSet.getPosition(s); in verifySpanPositions()
149 int originalEnd = mSpanSet.mPositionSet.getPosition(e); in verifySpanPositions()
262 int originalStart = mReplacementSpanSet.mPositionSet.getPosition(s); in verifyReplacementSpanPositions()
263 int originalEnd = mReplacementSpanSet.mPositionSet.getPosition(e); in verifyReplacementSpanPositions()
330 int getPosition(int index) { in getPosition() method in SpannableStringBuilderSpanTest.PositionSet
385 int start = mPositionSet.getPosition(s); in initSpans()
386 int end = mPositionSet.getPosition(e); in initSpans()
/cts/tests/location/location_gnss/src/android/location/cts/gnss/asn1/supl2/supl_end/
DSUPLEND.java105 public Position getPosition() { in getPosition() method in SUPLEND
175 return getPosition() != null; in getComponents()
187 return getPosition(); in getComponents()
210 + getPosition().toIndentedString(indent); in getComponents()
/cts/tests/location/location_gnss/src/android/location/cts/gnss/asn1/supl2/supl_report/
DPositionData.java104 public Position getPosition() { in getPosition() method in PositionData
175 return getPosition() != null; in getComponents()
187 return getPosition(); in getComponents()
210 + getPosition().toIndentedString(indent); in getComponents()
/cts/tests/location/location_gnss/src/android/location/cts/gnss/asn1/supl2/ulp_version_2_message_extensions/
DVer2_SUPL_START_extension.java150 public Position getPosition() { in getPosition() method in Ver2_SUPL_START_extension
305 return getPosition() != null; in getComponents()
317 return getPosition(); in getComponents()
340 + getPosition().toIndentedString(indent); in getComponents()
/cts/tests/location/location_gnss/src/android/location/cts/gnss/asn1/supl2/supl_pos_init/
DSUPLPOSINIT.java152 public Position getPosition() { in getPosition() method in SUPLPOSINIT
351 return getPosition() != null; in getComponents()
363 return getPosition(); in getComponents()
386 + getPosition().toIndentedString(indent); in getComponents()
/cts/tests/tests/media/src/android/media/cts/
DPlaybackStateTest.java69 assertEquals(0L, state.getPosition()); in testBuilder()
101 assertEquals(TEST_POSITION, state.getPosition()); in testBuilder_setterMethods()
118 assertEquals(TEST_POSITION, state.getPosition()); in testBuilder_setStateWithUpdateTime()
208 assertEquals(TEST_POSITION, stateOut.getPosition()); in testWriteToParcel()
DAudioRecordTest.java865 MicrophoneInfo.Coordinate3F position = microphone.getPosition(); in printMicrophoneInfo()
1443 int position = getPosition(); in onMarkerReached()
1458 int position = getPosition(); in onPeriodicNotification()
1495 private int getPosition() { in getPosition() method in AudioRecordTest.MockOnRecordPositionUpdateListener
DMediaControllerTest.java116 assertEquals(testPosition, stateOut.getPosition(), positionDelta); in testGetPlaybackState()
DMediaRecorderTest.java683 MicrophoneInfo.Coordinate3F position = microphone.getPosition(); in printMicrophoneInfo()
DAudioManagerTest.java1615 MicrophoneInfo.Coordinate3F position = microphone.getPosition(); in testGetMicrophones()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DCompletionInfoTest.java58 assertEquals(POSITION, info.getPosition()); in assertCompletionInfo()
DInputConnectionWrapperTest.java82 assertEquals(1, completionInfoCaptor.getValue().getPosition()); in testInputConnectionWrapper()
/cts/tests/location/location_gnss/src/android/location/cts/gnss/asn1/supl2/supl_triggered_start/
DVer2_SUPLTRIGGEREDSTART.java246 public Position getPosition() { in getPosition() method in Ver2_SUPLTRIGGEREDSTART
689 return getPosition() != null; in getComponents()
701 return getPosition(); in getComponents()
724 + getPosition().toIndentedString(indent); in getComponents()
/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/
DDatabaseAsserts.java203 final int pos = cursor.getPosition(); in assertCursorValuesMatchExactly()
/cts/tests/tests/provider/src/android/provider/cts/media/
DMediaStore_Audio_Playlists_MembersTest.java203 int pos = c.getPosition(); in verifyPlaylist()

12