Home
last modified time | relevance | path

Searched refs:textUpdate (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/text/
DDynamicLayoutOffsetMappingTest.java305 public void originalToTransformed(TextUpdate textUpdate) { in originalToTransformed() argument
307 if (textUpdate.where <= insertOffset) { in originalToTransformed()
308 if (textUpdate.where + textUpdate.before > insertOffset) { in originalToTransformed()
309 textUpdate.before += mInsertText.length(); in originalToTransformed()
310 textUpdate.after += mInsertText.length(); in originalToTransformed()
313 textUpdate.where += mInsertText.length(); in originalToTransformed()
/frameworks/base/core/java/android/text/method/
DInsertModeTransformationMethod.java247 public void originalToTransformed(TextUpdate textUpdate) { in originalToTransformed() argument
248 if (textUpdate.where > mEnd) { in originalToTransformed()
249 textUpdate.where += mPlaceholder.length(); in originalToTransformed()
250 } else if (textUpdate.where + textUpdate.before > mEnd) { in originalToTransformed()
252 textUpdate.before += mPlaceholder.length(); in originalToTransformed()
253 textUpdate.after += mPlaceholder.length(); in originalToTransformed()
DOffsetMapping.java144 void originalToTransformed(TextUpdate textUpdate); in originalToTransformed() argument