Searched refs:digitsKeyListener (Results 1 – 2 of 2) sorted by relevance
/cts/tests/tests/text/src/android/text/method/cts/ |
D | DigitsKeyListenerTest.java | 87 DigitsKeyListener digitsKeyListener = DigitsKeyListener.getInstance(); in testFilter1() local 89 assertNull(digitsKeyListener.filter(source, 0, source.length(), in testFilter1() 94 assertEquals("123", (digitsKeyListener.filter(source, 0, source.length(), in testFilter1() 99 assertEquals("123", (digitsKeyListener.filter(source, 0, source.length(), in testFilter1() 104 assertEquals("123", (digitsKeyListener.filter(source, 0, source.length(), in testFilter1() 111 Spanned filtered = (Spanned) digitsKeyListener.filter(spannableSource, in testFilter1() 118 assertNull(digitsKeyListener.filter("", 0, 0, dest, 0, dest.length())); in testFilter1() 145 DigitsKeyListener digitsKeyListener = DigitsKeyListener.getInstance(true, false); in testFilter2() local 147 assertNull(digitsKeyListener.filter(source, 0, source.length(), in testFilter2() 152 assertNull(digitsKeyListener.filter(source, 0, source.length(), in testFilter2() [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | TextViewTest.java | 313 final KeyListener digitsKeyListener = DigitsKeyListener.getInstance(); in testAccessKeyListener() local 315 mActivityRule.runOnUiThread(() -> mTextView.setKeyListener(digitsKeyListener)); in testAccessKeyListener() 317 assertSame(digitsKeyListener, mTextView.getKeyListener()); in testAccessKeyListener()
|