Searched refs:currentOffset (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/core/tests/coretests/src/android/text/method/ |
D | WordIteratorTest.java | 318 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/ |
D | TextViewActions.java | 556 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/ |
D | Editor.java | 5769 final int currentOffset = getCurrentCursorOffset(); in updatePosition() local 5770 final boolean rtlAtCurrentOffset = isAtRtlRun(layout, currentOffset); in updatePosition() 5811 && ((isExpanding && ((isStartHandle() && offset < currentOffset) in updatePosition() 5812 || (!isStartHandle() && offset > currentOffset))) in updatePosition() 5957 final int currentOffset = getCurrentCursorOffset(); 5959 ? currentOffset : Math.max(currentOffset - 1, 0); 6018 final int currentOffset = getCurrentCursorOffset(); 6019 final int primaryDiff = Math.abs(primaryOffset - currentOffset); 6020 final int secondaryDiff = Math.abs(secondaryOffset - currentOffset); 6027 ? currentOffset : Math.max(currentOffset - 1, 0);
|
D | RadialTimePickerView.java | 1167 final int currentOffset = getCircularDiff(current, touched, MINUTES_IN_CIRCLE); in getVirtualViewAt() local 1170 if (currentOffset < snappedOffset) { in getVirtualViewAt()
|