Searched refs:transformedText (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/core/tests/coretests/src/android/text/method/ |
D | InsertModeTransformationMethodTest.java | 56 final CharSequence transformedText = in transformedText_charAt() local 61 assertCharSequence(transformedText, expected); in transformedText_charAt() 70 final CharSequence transformedText = in transformedText_charAt_singleLine() local 75 assertCharSequence(transformedText, expected); in transformedText_charAt_singleLine() 93 final CharSequence transformedText = transformationMethod.getTransformation(text, sView); in transformedText_charAt_editing() local 97 assertCharSequence(transformedText, "abc" + placeholder + " def"); in transformedText_charAt_editing() 101 assertCharSequence(transformedText, "abcxx" + placeholder + " def"); in transformedText_charAt_editing() 105 assertCharSequence(transformedText, "abcxx" + placeholder + " vvdef"); in transformedText_charAt_editing() 109 assertCharSequence(transformedText, "abc" + placeholder + " vvdef"); in transformedText_charAt_editing() 113 assertCharSequence(transformedText, "abc" + placeholder + " def"); in transformedText_charAt_editing() [all …]
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | DynamicLayoutOffsetMappingTest.java | 43 final CharSequence transformedText = new TestOffsetMapping(spannable, 2, "\n"); in textWithOffsetMapping() local 48 .setDisplayText(transformedText) in textWithOffsetMapping() 51 assertThat(transformedText.toString()).isEqualTo("ab\ncde"); in textWithOffsetMapping() 59 final CharSequence transformedText = in textWithOffsetMapping_deletion() local 65 .setDisplayText(transformedText) in textWithOffsetMapping_deletion() 70 assertThat(transformedText.toString()).isEqualTo("ab\n\ndef"); in textWithOffsetMapping_deletion() 75 assertThat(transformedText.toString()).isEqualTo("ab\n\nef"); in textWithOffsetMapping_deletion() 80 assertThat(transformedText.toString()).isEqualTo("a\n\nf"); in textWithOffsetMapping_deletion() 88 final CharSequence transformedText = new TestOffsetMapping(spannable, 3, "\n\n"); in textWithOffsetMapping_insertion() local 93 .setDisplayText(transformedText) in textWithOffsetMapping_insertion() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | TextViewTest.java | 368 final TransformedText transformedText = mock(TransformedText.class); in originalToTransformed_hasOffsetMapping() local 369 when(transformedText.originalToTransformed(anyInt(), anyInt())).then((invocation) -> { in originalToTransformed_hasOffsetMapping() 378 new TestTransformationMethod(transformedText); in originalToTransformed_hasOffsetMapping() 384 verify(transformedText, times(1)) in originalToTransformed_hasOffsetMapping() 389 verify(transformedText, times(1)) in originalToTransformed_hasOffsetMapping() 398 final TransformedText transformedText = mock(TransformedText.class); in transformedToOriginal_hasOffsetMapping() local 399 when(transformedText.transformedToOriginal(anyInt(), anyInt())).then((invocation) -> { in transformedToOriginal_hasOffsetMapping() 408 new TestTransformationMethod(transformedText); in transformedToOriginal_hasOffsetMapping() 414 verify(transformedText, times(1)) in transformedToOriginal_hasOffsetMapping() 419 verify(transformedText, times(1)) in transformedToOriginal_hasOffsetMapping() [all …]
|
/frameworks/base/packages/SystemUI/shared/keyguard/src/com/android/keyguard/ |
D | BasePasswordTextView.java | 183 CharSequence transformedText = getTransformedText(fromIndex, removedCount, addedCount); in sendAccessibilityEventTypeViewTextChanged() local 184 if (!TextUtils.isEmpty(transformedText)) { in sendAccessibilityEventTypeViewTextChanged() 185 event.getText().add(transformedText); in sendAccessibilityEventTypeViewTextChanged()
|
/frameworks/base/core/java/android/text/ |
D | DynamicLayout.java | 1243 final OffsetMapping transformedText = (OffsetMapping) dynamicLayout.mDisplay; in beforeTextChanged() local 1261 transformedText.originalToTransformed(mTransformedTextUpdate); in beforeTextChanged() 1300 final OffsetMapping transformedText = (OffsetMapping) dynamicLayout.mDisplay; in transformAndReflow() local 1301 start = transformedText.originalToTransformed(start, in transformAndReflow() 1303 end = transformedText.originalToTransformed(end, in transformAndReflow()
|
/frameworks/base/core/java/android/widget/ |
D | Editor.java | 8220 final CharSequence transformedText = mTextView.getTransformed(); in onDraw() 8221 if (transformedText instanceof InsertModeTransformationMethod.TransformedText) { in onDraw() 8225 ((InsertModeTransformationMethod.TransformedText) transformedText); in onDraw()
|