Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/text/
DDynamicLayout.java1241 final DynamicLayout dynamicLayout = mLayout.get(); in beforeTextChanged() local
1242 if (dynamicLayout != null && dynamicLayout.mDisplay instanceof OffsetMapping) { in beforeTextChanged()
1243 final OffsetMapping transformedText = (OffsetMapping) dynamicLayout.mDisplay; in beforeTextChanged()
1266 final DynamicLayout dynamicLayout = mLayout.get(); in onTextChanged() local
1267 if (dynamicLayout != null && dynamicLayout.mDisplay instanceof OffsetMapping) { in onTextChanged()
1279 before = dynamicLayout.getLineEnd(dynamicLayout.getLineCount() - 1); in onTextChanged()
1280 after = dynamicLayout.mDisplay.length(); in onTextChanged()
1298 final DynamicLayout dynamicLayout = mLayout.get(); in transformAndReflow() local
1299 if (dynamicLayout != null && dynamicLayout.mDisplay instanceof OffsetMapping) { in transformAndReflow()
1300 final OffsetMapping transformedText = (OffsetMapping) dynamicLayout.mDisplay; in transformAndReflow()
[all …]
/frameworks/base/core/tests/coretests/src/android/text/
DDynamicLayoutTest.java134 final DynamicLayout dynamicLayout = new DynamicLayout(text, in testGetLineExtra_withoutLinespacing() local
143 assertEquals(lineCount, dynamicLayout.getLineCount()); in testGetLineExtra_withoutLinespacing()
145 assertEquals(staticLayout.getLineExtra(i), dynamicLayout.getLineExtra(i)); in testGetLineExtra_withoutLinespacing()
165 final DynamicLayout dynamicLayout = new DynamicLayout(text, in testGetLineExtra_withLinespacing() local
174 assertEquals(lineCount, dynamicLayout.getLineCount()); in testGetLineExtra_withLinespacing()
176 assertEquals(staticLayout.getLineExtra(i), dynamicLayout.getLineExtra(i)); in testGetLineExtra_withLinespacing()
/frameworks/base/core/java/android/widget/
DEditor.java2191 DynamicLayout dynamicLayout = (DynamicLayout) layout; in drawHardwareAccelerated() local
2192 int[] blockEndLines = dynamicLayout.getBlockEndLines(); in drawHardwareAccelerated()
2193 int[] blockIndices = dynamicLayout.getBlockIndices(); in drawHardwareAccelerated()
2194 final int numberOfBlocks = dynamicLayout.getNumberOfBlocks(); in drawHardwareAccelerated()
2195 final int indexFirstChangedBlock = dynamicLayout.getIndexFirstChangedBlock(); in drawHardwareAccelerated()
2197 final ArraySet<Integer> blockSet = dynamicLayout.getBlocksAlwaysNeedToBeRedrawn(); in drawHardwareAccelerated()
2200 final int blockIndex = dynamicLayout.getBlockIndex(blockSet.valueAt(i)); in drawHardwareAccelerated()
2241 final int blockIndex = dynamicLayout.getBlockIndex(block); in drawHardwareAccelerated()
2253 dynamicLayout.setIndexFirstChangedBlock(lastIndex); in drawHardwareAccelerated()
2395 DynamicLayout dynamicLayout = (DynamicLayout) layout; in invalidateTextDisplayList() local
[all …]