/cts/tests/tests/database/src/android/database/cts/ |
D | CursorWrapperTest.java | 220 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 …]
|
D | AbstractCursorTest.java | 90 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 …]
|
D | DatabaseUtilsTest.java | 390 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()
|
D | DatabaseCursorTest.java | 278 assertEquals(0, testCursor.getPosition()); in testLargeField()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | ArrayAdapterTest.java | 253 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 …]
|
D | MagnifierTest.java | 310 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 …]
|
D | CursorAdapterTest.java | 305 assertEquals(0, c.getPosition()); in testGetItem() 310 assertEquals(1, c.getPosition()); in testGetItem()
|
D | CursorTreeAdapterTest.java | 697 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/ |
D | DragSourceCursor.java | 42 if (getPosition() != 0) { in getString() 43 throw new IllegalArgumentException("Incorrect position: " + getPosition()); in getString()
|
/cts/tests/tests/mediaparser/src/android/media/mediaparser/cts/ |
D | MockMediaParserInputReader.java | 49 public long getPosition() { in getPosition() method in MockMediaParserInputReader 50 return mFakeExtractorInput.getPosition(); in getPosition()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | SpannableStringBuilderSpanTest.java | 87 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/ |
D | SUPLEND.java | 105 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/ |
D | PositionData.java | 104 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/ |
D | Ver2_SUPL_START_extension.java | 150 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/ |
D | SUPLPOSINIT.java | 152 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/ |
D | PlaybackStateTest.java | 69 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()
|
D | AudioRecordTest.java | 865 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
|
D | MediaControllerTest.java | 116 assertEquals(testPosition, stateOut.getPosition(), positionDelta); in testGetPlaybackState()
|
D | MediaRecorderTest.java | 683 MicrophoneInfo.Coordinate3F position = microphone.getPosition(); in printMicrophoneInfo()
|
D | AudioManagerTest.java | 1615 MicrophoneInfo.Coordinate3F position = microphone.getPosition(); in testGetMicrophones()
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | CompletionInfoTest.java | 58 assertEquals(POSITION, info.getPosition()); in assertCompletionInfo()
|
D | InputConnectionWrapperTest.java | 82 assertEquals(1, completionInfoCaptor.getValue().getPosition()); in testInputConnectionWrapper()
|
/cts/tests/location/location_gnss/src/android/location/cts/gnss/asn1/supl2/supl_triggered_start/ |
D | Ver2_SUPLTRIGGEREDSTART.java | 246 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/ |
D | DatabaseAsserts.java | 203 final int pos = cursor.getPosition(); in assertCursorValuesMatchExactly()
|
/cts/tests/tests/provider/src/android/provider/cts/media/ |
D | MediaStore_Audio_Playlists_MembersTest.java | 203 int pos = c.getPosition(); in verifyPlaylist()
|