Searched refs:digitsKeyListener (Results 1 – 2 of 2) sorted by relevance
/cts/tests/tests/text/src/android/text/method/cts/ |
D | DigitsKeyListenerTest.java | 60 DigitsKeyListener digitsKeyListener = DigitsKeyListener.getInstance(); in testFilter1() local 62 assertNull(digitsKeyListener.filter(source, 0, source.length(), in testFilter1() 67 assertEquals("123", (digitsKeyListener.filter(source, 0, source.length(), in testFilter1() 72 assertEquals("123", (digitsKeyListener.filter(source, 0, source.length(), in testFilter1() 77 assertEquals("123", (digitsKeyListener.filter(source, 0, source.length(), in testFilter1() 84 Spanned filtered = (Spanned) digitsKeyListener.filter(spannableSource, in testFilter1() 91 assertNull(digitsKeyListener.filter("", 0, 0, dest, 0, dest.length())); in testFilter1() 117 DigitsKeyListener digitsKeyListener = DigitsKeyListener.getInstance(true, false); in testFilter2() local 119 assertNull(digitsKeyListener.filter(source, 0, source.length(), in testFilter2() 124 assertNull(digitsKeyListener.filter(source, 0, source.length(), in testFilter2() [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | TextViewTest.java | 223 final KeyListener digitsKeyListener = DigitsKeyListener.getInstance(); in testAccessKeyListener() local 227 mTextView.setKeyListener(digitsKeyListener); in testAccessKeyListener() 231 assertSame(digitsKeyListener, mTextView.getKeyListener()); in testAccessKeyListener()
|