Home
last modified time | relevance | path

Searched refs:cursorPosition (Results 1 – 9 of 9) sorted by relevance

/packages/apps/Dialer/src/com/android/dialer/calllog/
DGroupingListAdapter.java58 int cursorPosition; field in GroupingListAdapter.PositionMetadata
187 protected void addGroup(int cursorPosition, int size, boolean expanded) { in addGroup() argument
196 long metadata = ((long)size << 32) | cursorPosition; in addGroup()
227 int cursorPosition = 0; in getItemCount() local
235 count += (offset - cursorPosition); in getItemCount()
243 cursorPosition = offset + size; in getItemCount()
246 mCount = count + mCursor.getCount() - cursorPosition; in getItemCount()
262 int cursorPosition = 0; in obtainPositionMetadata() local
297 cursorPosition = (int)(descriptor & GROUP_OFFSET_MASK); in obtainPositionMetadata()
305 cursorPosition = mLastCachedCursorPosition; in obtainPositionMetadata()
[all …]
DCallLogGroupBuilder.java51 public void addGroup(int cursorPosition, int size, boolean expanded); in addGroup() argument
207 private void addGroup(int cursorPosition, int size) { in addGroup() argument
208 mGroupCreator.addGroup(cursorPosition, size, false); in addGroup()
DCallLogAdapter.java702 public void addGroup(int cursorPosition, int size, boolean expanded) { in addGroup() argument
703 super.addGroup(cursorPosition, size, expanded); in addGroup()
/packages/apps/Dialer/tests/src/com/android/dialer/calllog/
DCallLogGroupBuilderTest.java269 private void assertGroupIs(int cursorPosition, int size, boolean expanded, GroupSpec group) { in assertGroupIs() argument
270 assertEquals(cursorPosition, group.cursorPosition); in assertGroupIs()
278 public final int cursorPosition; field in CallLogGroupBuilderTest.GroupSpec
284 public GroupSpec(int cursorPosition, int size, boolean expanded) { in GroupSpec() argument
285 this.cursorPosition = cursorPosition; in GroupSpec()
297 public void addGroup(int cursorPosition, int size, boolean expanded) { in addGroup() argument
298 groups.add(new GroupSpec(cursorPosition, size, expanded)); in addGroup()
DGroupingListAdapterTests.java291 int cursorPosition) { in assertPositionMetadata() argument
298 assertEquals(cursorPosition, metadata.cursorPosition); in assertPositionMetadata()
/packages/apps/Calendar/src/com/android/calendar/agenda/
DAgendaWindowAdapter.java602 int cursorPosition = info.dayAdapter.getCursorPosition(positionInAdapter - info.offset); in getAgendaItemByPosition() local
603 if (cursorPosition == Integer.MIN_VALUE) { in getAgendaItemByPosition()
608 if (cursorPosition < 0) { in getAgendaItemByPosition()
609 cursorPosition = -cursorPosition; in getAgendaItemByPosition()
613 if (cursorPosition < info.cursor.getCount()) { in getAgendaItemByPosition()
614 AgendaItem item = buildAgendaItemFromCursor(info.cursor, cursorPosition, isDayHeader); in getAgendaItemByPosition()
624 private AgendaItem buildAgendaItemFromCursor(final Cursor cursor, int cursorPosition, in buildAgendaItemFromCursor() argument
626 if (cursorPosition == -1) { in buildAgendaItemFromCursor()
629 cursor.moveToPosition(cursorPosition); in buildAgendaItemFromCursor()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DConversationListFragment.java882 final int cursorPosition = conversation.position; in setActivated() local
883 final int position = cursorPosition + mListAdapter.getPositionOffset(cursorPosition); in setActivated()
897 final int cursorPosition = conversation.position; in setSelected() local
898 final int position = cursorPosition + mListAdapter.getPositionOffset(cursorPosition); in setSelected()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DRichInputConnectionAndTextRangeTests.java68 public MockConnection(final CharSequence text, final int cursorPosition) { in MockConnection() argument
76 TextUtils.writeToParcel(text.subSequence(0, cursorPosition), p, 0 /* flags */); in MockConnection()
77 TextUtils.writeToParcel(text.subSequence(cursorPosition, text.length()), p, in MockConnection()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DMessageNotificationState.java1207 int cursorPosition = -1; in checkFailedMessages() local
1222 cursorPosition = messageDataCursor.getPosition(); in checkFailedMessages()
1223 failedMessages.add(cursorPosition); in checkFailedMessages()
1240 messageDataCursor.moveToPosition(cursorPosition); in checkFailedMessages()