diff options
| author | Yohei Yukawa <yukawa@google.com> | 2014-06-10 12:26:34 +0900 |
|---|---|---|
| committer | Yohei Yukawa <yukawa@google.com> | 2014-06-10 14:19:28 +0900 |
| commit | c46b5f04aa2a9fd292c117d2824f70fcf06e86ba (patch) | |
| tree | 46d6c2beefa882c6418454e05845ab0921792cc1 /core/tests | |
| parent | cbb0213d81205c4843816c6d4bcee5e4e29936e8 (diff) | |
| download | frameworks_base-c46b5f04aa2a9fd292c117d2824f70fcf06e86ba.zip frameworks_base-c46b5f04aa2a9fd292c117d2824f70fcf06e86ba.tar.gz frameworks_base-c46b5f04aa2a9fd292c117d2824f70fcf06e86ba.tar.bz2 | |
Rename CursorAnchorInfoBuilder with Builder
Inner Builder class should not inherit full class name of outer
class.
BUG: 15516230
Change-Id: I2d56edebb0c85639db57ca5b2aadb22c67fc5926
Diffstat (limited to 'core/tests')
| -rw-r--r-- | core/tests/inputmethodtests/src/android/os/CursorAnchorInfoTest.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/core/tests/inputmethodtests/src/android/os/CursorAnchorInfoTest.java b/core/tests/inputmethodtests/src/android/os/CursorAnchorInfoTest.java index 7d72f3e..d850c7c 100644 --- a/core/tests/inputmethodtests/src/android/os/CursorAnchorInfoTest.java +++ b/core/tests/inputmethodtests/src/android/os/CursorAnchorInfoTest.java @@ -21,7 +21,7 @@ import android.graphics.RectF; import android.test.InstrumentationTestCase; import android.test.suitebuilder.annotation.SmallTest; import android.view.inputmethod.CursorAnchorInfo; -import android.view.inputmethod.CursorAnchorInfo.CursorAnchorInfoBuilder; +import android.view.inputmethod.CursorAnchorInfo.Builder; public class CursorAnchorInfoTest extends InstrumentationTestCase { // null represents a character that is invisible, for example because it's overlapped by some @@ -64,7 +64,7 @@ public class CursorAnchorInfoTest extends InstrumentationTestCase { Matrix TRANSFORM_MATRIX = new Matrix(Matrix.IDENTITY_MATRIX); TRANSFORM_MATRIX.setScale(10.0f, 20.0f); - final CursorAnchorInfoBuilder builder = new CursorAnchorInfoBuilder(); + final Builder builder = new Builder(); builder.setSelectionRange(SELECTION_START, SELECTION_END) .setComposingText(COMPOSING_TEXT_START, COMPOSING_TEXT) .setInsertionMarkerLocation(INSERTION_MARKER_HORIZONTAL, INSERTION_MARKER_TOP, @@ -148,7 +148,7 @@ public class CursorAnchorInfoTest extends InstrumentationTestCase { final Matrix MATRIX3 = new Matrix(); MATRIX3.setTranslate(210.0f, 220.0f); final Matrix matrix = new Matrix(); - final CursorAnchorInfoBuilder builder = new CursorAnchorInfoBuilder(); + final Builder builder = new Builder(); matrix.set(MATRIX1); builder.setMatrix(matrix); @@ -171,7 +171,7 @@ public class CursorAnchorInfoTest extends InstrumentationTestCase { public void testBuilderAdd() throws Exception { // A negative index should be rejected. try { - new CursorAnchorInfoBuilder().addCharacterRect(-1, 0.0f, 0.0f, 0.0f, 0.0f); + new Builder().addCharacterRect(-1, 0.0f, 0.0f, 0.0f, 0.0f); } catch (IllegalArgumentException ex) { assertTrue(true); } @@ -191,4 +191,3 @@ public class CursorAnchorInfoTest extends InstrumentationTestCase { } } } - |
