Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/text/method/
DOffsetMapping.java45 int MAP_STRATEGY_CURSOR = 1; field
49 MAP_STRATEGY_CURSOR
DInsertModeTransformationMethod.java221 if (offset == mEnd && strategy == OffsetMapping.MAP_STRATEGY_CURSOR) { in originalToTransformed()
317 transformedToOriginal(start, OffsetMapping.MAP_STRATEGY_CURSOR); in getSpans()
319 transformedToOriginal(end, OffsetMapping.MAP_STRATEGY_CURSOR); in getSpans()
/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewTest.java342 assertThat(mTextView.transformedToOriginal(offset, OffsetMapping.MAP_STRATEGY_CURSOR)) in transformedToOriginal_noOffsetMapping()
356 assertThat(mTextView.originalToTransformed(offset, OffsetMapping.MAP_STRATEGY_CURSOR)) in originalToTransformed_noOffsetMapping()
387 assertThat(mTextView.originalToTransformed(1, OffsetMapping.MAP_STRATEGY_CURSOR)) in originalToTransformed_hasOffsetMapping()
390 .originalToTransformed(1, OffsetMapping.MAP_STRATEGY_CURSOR); in originalToTransformed_hasOffsetMapping()
417 assertThat(mTextView.transformedToOriginal(1, OffsetMapping.MAP_STRATEGY_CURSOR)) in transformedToOriginal_hasOffsetMapping()
420 .transformedToOriginal(1, OffsetMapping.MAP_STRATEGY_CURSOR); in transformedToOriginal_hasOffsetMapping()
/frameworks/base/core/java/android/widget/
DEditor.java1306 OffsetMapping.MAP_STRATEGY_CURSOR); in getParagraphsRange()
1308 OffsetMapping.MAP_STRATEGY_CURSOR); in getParagraphsRange()
1333 OffsetMapping.MAP_STRATEGY_CURSOR); in getParagraphsRange()
1335 OffsetMapping.MAP_STRATEGY_CURSOR); in getParagraphsRange()
1374 mTextView.originalToTransformed(offset, OffsetMapping.MAP_STRATEGY_CURSOR); in getNextCursorOffset()
1382 return mTextView.transformedToOriginal(nextCursor, OffsetMapping.MAP_STRATEGY_CURSOR); in getNextCursorOffset()
1439 mTextView.originalToTransformed(offset, OffsetMapping.MAP_STRATEGY_CURSOR); in isOffsetVisible()
2437 OffsetMapping.MAP_STRATEGY_CURSOR); in updateCursorPosition()
3843 OffsetMapping.MAP_STRATEGY_CURSOR); in computeLocalPosition()
5227 mTextView.originalToTransformed(offset, OffsetMapping.MAP_STRATEGY_CURSOR); in isAtRtlRun()
[all …]
DSelectionActionModeHelper.java384 textView.originalToTransformed(start, OffsetMapping.MAP_STRATEGY_CURSOR); in convertSelectionToRectangles()
386 textView.originalToTransformed(end, OffsetMapping.MAP_STRATEGY_CURSOR); in convertSelectionToRectangles()
/frameworks/base/core/tests/coretests/src/android/text/
DDynamicLayoutOffsetMappingTest.java283 if (strategy == OffsetMapping.MAP_STRATEGY_CURSOR && offset == insertOffset) { in originalToTransformed()
/frameworks/base/core/tests/coretests/src/android/text/method/
DInsertModeTransformationMethodTest.java632 assertOriginalToTransformed(transformedText, OffsetMapping.MAP_STRATEGY_CURSOR, in transformedText_originalToTransformed()
671 assertTransformedToOriginal(transformedText, OffsetMapping.MAP_STRATEGY_CURSOR, in transformedText_transformedToOriginal()