Searched refs:boringLayout (Results 1 – 1 of 1) sorted by relevance
/cts/tests/tests/text/src/android/text/cts/ |
D | BoringLayoutTest.java | 116 BoringLayout boringLayout = makeBoringLayout(spacingMult, spacingAdd); in verifyMultAddScale() local 117 assertEquals(height, boringLayout.getHeight()); in verifyMultAddScale() 118 assertEquals(height + METRICS_TOP, boringLayout.getLineDescent(0)); in verifyMultAddScale() 191 BoringLayout boringLayout = makeBoringLayoutAlign(Layout.Alignment.ALIGN_NORMAL); in testAlignment() local 192 assertEquals(0.0f, boringLayout.getLineLeft(0), 0.0f); in testAlignment() 193 assertEquals((float) DEFAULT_METRICS.width, boringLayout.getLineRight(0), 0.0f); in testAlignment() 195 boringLayout = makeBoringLayoutAlign(Layout.Alignment.ALIGN_CENTER); in testAlignment() 197 assertEquals((float) expectedWidth / 2, boringLayout.getLineLeft(0), 0.0f); in testAlignment() 199 assertEquals((float) expectedWidth / 2, boringLayout.getLineRight(0), 0.0f); in testAlignment() 201 boringLayout = makeBoringLayoutAlign(Layout.Alignment.ALIGN_OPPOSITE); in testAlignment() [all …]
|