Home
last modified time | relevance | path

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

/frameworks/ex/common/java/com/android/common/widget/
DGroupingListAdapter.java53 int cursorPosition; field in GroupingListAdapter.PositionMetadata
201 protected void addGroup(int cursorPosition, int size, boolean expanded) { in addGroup() argument
210 long metadata = ((long)size << 32) | cursorPosition; in addGroup()
240 int cursorPosition = 0; in getCount() local
248 count += (offset - cursorPosition); in getCount()
256 cursorPosition = offset + size; in getCount()
259 mCount = count + mCursor.getCount() - cursorPosition; in getCount()
276 int cursorPosition = 0; in obtainPositionMetadata() local
311 cursorPosition = (int)(descriptor & GROUP_OFFSET_MASK); in obtainPositionMetadata()
319 cursorPosition = mLastCachedCursorPosition; in obtainPositionMetadata()
[all …]
/frameworks/ex/common/tests/src/com/android/common/widget/
DGroupingListAdapterTests.java302 int cursorPosition) { in assertPositionMetadata() argument
309 assertEquals(cursorPosition, metadata.cursorPosition); in assertPositionMetadata()
/frameworks/native/services/inputflinger/
DPointerChoreographer.cpp73 const auto& [displayId, cursorPosition] = *change; in notifyPointerDisplayChange()
74 policy.notifyPointerDisplayIdChanged(displayId, cursorPosition); in notifyPointerDisplayChange()
659 FloatPoint cursorPosition = {0, 0}; in calculatePointerDisplayChangeToNotify() local
667 cursorPosition = pointerController->getPosition(); in calculatePointerDisplayChangeToNotify()
673 return {{displayIdToNotify, cursorPosition}}; in calculatePointerDisplayChangeToNotify()
/frameworks/native/services/inputflinger/reader/mapper/
DTouchInputMapper.cpp3492 auto cursorPosition = mPointerSimple.currentCoords.getXYValue(); in dispatchPointerSimple() local
3537 mOrientedYPrecision, cursorPosition.x, cursorPosition.y, in dispatchPointerSimple()
3548 mOrientedYPrecision, cursorPosition.x, cursorPosition.y, in dispatchPointerSimple()
3564 mOrientedYPrecision, cursorPosition.x, cursorPosition.y, in dispatchPointerSimple()
3575 mOrientedXPrecision, mOrientedYPrecision, cursorPosition.x, in dispatchPointerSimple()
3576 cursorPosition.y, mPointerSimple.downTime, /*videoFrames=*/{})); in dispatchPointerSimple()
3595 mOrientedXPrecision, mOrientedYPrecision, cursorPosition.x, in dispatchPointerSimple()
3596 cursorPosition.y, mPointerSimple.downTime, in dispatchPointerSimple()
3606 mPointerSimple.lastCursorX = cursorPosition.x; in dispatchPointerSimple()
3607 mPointerSimple.lastCursorY = cursorPosition.y; in dispatchPointerSimple()
/frameworks/base/core/java/android/view/inputmethod/
DTextBoundsInfo.java392 float cursorPosition = getCursorHorizontalPosition(graphemeStart, lineStart, in getOffsetForPosition() local
394 final float distance = Math.abs(cursorPosition - x); in getOffsetForPosition()
/frameworks/base/core/java/android/database/
DDatabaseUtils.java966 int cursorPosition, int cursorWindowCapacity) { in cursorPickFillWindowStartPosition() argument
967 return Math.max(cursorPosition - cursorWindowCapacity / 3, 0); in cursorPickFillWindowStartPosition()
/frameworks/native/services/inputflinger/tests/
DInputDispatcher_test.cpp567 const PointF& cursorPosition = {AMOTION_EVENT_INVALID_CURSOR_POSITION, argument
577 .rawXCursorPosition(cursorPosition.x)
578 .rawYCursorPosition(cursorPosition.y)