Home
last modified time | relevance | path

Searched refs:buildLayout (Results 1 – 6 of 6) sorted by relevance

/cts/tests/tests/text/src/android/text/cts/
DLayoutUseBoundsTest.kt86 private fun buildLayout(text: String, widthPx: Int, shiftDrawOffset: Boolean = false) = in buildLayout() method in android.text.cts.LayoutUseBoundsTest
125 assertThat(getDrawingHorizontalOffset(buildLayout(text, 1000, false))).isEqualTo(0) in testBreakOvershoot_trailing_LTR()
126 assertThat(getDrawingHorizontalOffset(buildLayout(text, 1000, true))).isEqualTo(0) in testBreakOvershoot_trailing_LTR()
127 var layout = buildLayout(text, 1000) in testBreakOvershoot_trailing_LTR()
138 assertThat(getDrawingHorizontalOffset(buildLayout(text, 150, false))).isEqualTo(0) in testBreakOvershoot_trailing_LTR()
139 assertThat(getDrawingHorizontalOffset(buildLayout(text, 150, true))).isEqualTo(0) in testBreakOvershoot_trailing_LTR()
140 layout = buildLayout(text, 150) in testBreakOvershoot_trailing_LTR()
157 assertThat(getDrawingHorizontalOffset(buildLayout(text, 105, false))).isEqualTo(0) in testBreakOvershoot_trailing_LTR()
158 assertThat(getDrawingHorizontalOffset(buildLayout(text, 105, true))).isEqualTo(0) in testBreakOvershoot_trailing_LTR()
159 layout = buildLayout(text, 105) in testBreakOvershoot_trailing_LTR()
[all …]
DBoringLayoutUseBoundsTest.kt55 private fun buildLayout(text: String, widthPx: Int, shiftDrawingOffset: Boolean = false) = in buildLayout() method in android.text.cts.BoringLayoutUseBoundsTest
72 assertThat(getDrawingHorizontalOffset(buildLayout(text, 1000, false))).isEqualTo(0) in testBreakOvershoot_trailing_LTR()
73 assertThat(getDrawingHorizontalOffset(buildLayout(text, 1000, true))).isEqualTo(0) in testBreakOvershoot_trailing_LTR()
74 var layout = buildLayout(text, 1000) in testBreakOvershoot_trailing_LTR()
88 assertThat(getDrawingHorizontalOffset(buildLayout(text, 1000, false))).isEqualTo(0) in testBreakOvershoot_preceding_LTR()
89 assertThat(getDrawingHorizontalOffset(buildLayout(text, 1000, true))).isEqualTo(15) in testBreakOvershoot_preceding_LTR()
90 var layout = buildLayout(text, 1000) in testBreakOvershoot_preceding_LTR()
104 assertThat(getDrawingHorizontalOffset(buildLayout(text, 1000, false))).isEqualTo(0) in testBreakOvershoot_bounds_inside()
105 assertThat(getDrawingHorizontalOffset(buildLayout(text, 1000, true))).isEqualTo(0) in testBreakOvershoot_bounds_inside()
106 var layout = buildLayout(text, 1000) in testBreakOvershoot_bounds_inside()
DStaticLayoutLineBreakingNoBreakSpanTest.kt51 fun buildLayout(text: CharSequence, width: Int, strategy: Int): Layout { in buildLayout() method
73 var layout = buildLayout("This is an example.", 80, LineBreaker.BREAK_STRATEGY_HIGH_QUALITY) in testLineBreakPreventLineBreak()
78 layout = buildLayout(SpannableString("This is an example.").apply { in testLineBreakPreventLineBreak()
DStaticLayoutLineBreakAutoTest.kt84 private fun buildLayout( in buildLayout() method
109 val layout = buildLayout(text, lang, lineBreakConfig, width) in assertLineBreak()
DStaticLayoutLineBreakingVariantsTest.java64 private static StaticLayout buildLayout(String text, LocaleList locales, in buildLayout() method in StaticLayoutLineBreakingVariantsTest
75 final StaticLayout layout = buildLayout(text, LocaleList.forLanguageTags(locale), in assertLineBreak()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DPermissionLockdownTestActivity.java95 buildLayout(); in onCreate()
98 private void buildLayout() { in buildLayout() method in PermissionLockdownTestActivity