Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/text/method/
DWordIteratorTest.java203 int currentOffset = 0; in testNextBoundary() local
204 currentOffset = wordIterator.nextBoundary(currentOffset); in testNextBoundary()
205 assertEquals(text.indexOf('c') + 1, currentOffset); in testNextBoundary()
207 currentOffset = wordIterator.nextBoundary(currentOffset); in testNextBoundary()
208 assertEquals(text.indexOf('d'), currentOffset); in testNextBoundary()
210 currentOffset = wordIterator.nextBoundary(currentOffset); in testNextBoundary()
211 assertEquals(text.indexOf('f') + 1, currentOffset); in testNextBoundary()
213 currentOffset = wordIterator.nextBoundary(currentOffset); in testNextBoundary()
214 assertEquals(text.indexOf('g'), currentOffset); in testNextBoundary()
216 currentOffset = wordIterator.nextBoundary(currentOffset); in testNextBoundary()
[all …]
/frameworks/support/emoji/core/src/android/support/text/emoji/
DEmojiProcessor.java108 int currentOffset = 0; in getEmojiMetadata() local
110 while (currentOffset < end) { in getEmojiMetadata()
111 final int codePoint = Character.codePointAt(charSequence, currentOffset); in getEmojiMetadata()
116 currentOffset += Character.charCount(codePoint); in getEmojiMetadata()
200 int currentOffset = start; in process() local
201 int codePoint = Character.codePointAt(charSequence, currentOffset); in process()
203 while (currentOffset < end && addedCount < maxEmojiCount) { in process()
208 currentOffset += Character.charCount(codePoint); in process()
209 start = currentOffset; in process()
210 if (currentOffset < end) { in process()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DTextViewActions.java438 final int currentOffset = mHandleType == Handle.SELECTION_START ? in locateHandlePointsTextIndex() local
443 final int currentLine = layout.getLineForOffset(currentOffset); in locateHandlePointsTextIndex()
445 final float currentX = handleView.getHorizontal(layout, currentOffset); in locateHandlePointsTextIndex()
/frameworks/base/core/java/android/util/
DTimeUtils.java71 int currentOffset = current.getOffset(when); in getTimeZone() local
80 if (currentOffset == offset && currentDst == dst) { in getTimeZone()
/frameworks/support/design/src/android/support/design/widget/
DAppBarLayout.java915 final int currentOffset = getTopBottomOffsetForScrollingSibling(); in animateOffsetWithDuration() local
916 if (currentOffset == offset) { in animateOffsetWithDuration()
938 mOffsetAnimator.setIntValues(currentOffset, offset); in animateOffsetWithDuration()
/frameworks/base/core/java/android/widget/
DEditor.java4844 final int currentOffset = getCurrentCursorOffset(); in updatePosition() local
4845 final boolean rtlAtCurrentOffset = isAtRtlRun(layout, currentOffset); in updatePosition()
4886 && ((isExpanding && ((isStartHandle() && offset < currentOffset) in updatePosition()
4887 || (!isStartHandle() && offset > currentOffset))) in updatePosition()
5014 final int currentOffset = getCurrentCursorOffset();
5016 ? currentOffset : Math.max(currentOffset - 1, 0);
5075 final int currentOffset = getCurrentCursorOffset();
5076 final int primaryDiff = Math.abs(primaryOffset - currentOffset);
5077 final int secondaryDiff = Math.abs(secondaryOffset - currentOffset);
5084 ? currentOffset : Math.max(currentOffset - 1, 0);
DRadialTimePickerView.java1165 final int currentOffset = getCircularDiff(current, touched, MINUTES_IN_CIRCLE); in getVirtualViewAt() local
1168 if (currentOffset < snappedOffset) { in getVirtualViewAt()