Home
last modified time | relevance | path

Searched refs:currentOffset (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/text/method/
DWordIteratorTest.java318 int currentOffset = 0; in testNextBoundary() local
319 currentOffset = wordIterator.nextBoundary(currentOffset); in testNextBoundary()
320 assertEquals(text.indexOf('c') + 1, currentOffset); in testNextBoundary()
322 currentOffset = wordIterator.nextBoundary(currentOffset); in testNextBoundary()
323 assertEquals(text.indexOf('d'), currentOffset); in testNextBoundary()
325 currentOffset = wordIterator.nextBoundary(currentOffset); in testNextBoundary()
326 assertEquals(text.indexOf('f') + 1, currentOffset); in testNextBoundary()
328 currentOffset = wordIterator.nextBoundary(currentOffset); in testNextBoundary()
329 assertEquals(text.indexOf('g'), currentOffset); in testNextBoundary()
331 currentOffset = wordIterator.nextBoundary(currentOffset); in testNextBoundary()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DTextViewActions.java556 final int currentOffset = mHandleType == Handle.SELECTION_START ? in locateHandlePointsTextIndex() local
561 final int currentLine = layout.getLineForOffset(currentOffset); in locateHandlePointsTextIndex()
563 final float currentX = handleView.getHorizontal(layout, currentOffset); in locateHandlePointsTextIndex()
/frameworks/base/core/java/android/widget/
DEditor.java5904 final int currentOffset = getCurrentCursorOffset(); in updatePosition() local
5905 final boolean rtlAtCurrentOffset = isAtRtlRun(layout, currentOffset); in updatePosition()
5946 && ((isExpanding && ((isStartHandle() && offset < currentOffset) in updatePosition()
5947 || (!isStartHandle() && offset > currentOffset))) in updatePosition()
6092 final int currentOffset = getCurrentCursorOffset();
6094 ? currentOffset : Math.max(currentOffset - 1, 0);
6153 final int currentOffset = getCurrentCursorOffset();
6154 final int primaryDiff = Math.abs(primaryOffset - currentOffset);
6155 final int secondaryDiff = Math.abs(secondaryOffset - currentOffset);
6162 ? currentOffset : Math.max(currentOffset - 1, 0);
DRadialTimePickerView.java1167 final int currentOffset = getCircularDiff(current, touched, MINUTES_IN_CIRCLE); in getVirtualViewAt() local
1170 if (currentOffset < snappedOffset) { in getVirtualViewAt()