Home
last modified time | relevance | path

Searched refs:digitsKeyListener (Results 1 – 2 of 2) sorted by relevance

/cts/tests/tests/text/src/android/text/method/cts/
DDigitsKeyListenerTest.java51 DigitsKeyListener digitsKeyListener = DigitsKeyListener.getInstance(); in testFilter1() local
53 assertNull(digitsKeyListener.filter(source, 0, source.length(), in testFilter1()
58 assertEquals("123", (digitsKeyListener.filter(source, 0, source.length(), in testFilter1()
63 assertEquals("123", (digitsKeyListener.filter(source, 0, source.length(), in testFilter1()
68 assertEquals("123", (digitsKeyListener.filter(source, 0, source.length(), in testFilter1()
75 Spanned filtered = (Spanned) digitsKeyListener.filter(spannableSource, in testFilter1()
82 assertNull(digitsKeyListener.filter("", 0, 0, dest, 0, dest.length())); in testFilter1()
108 DigitsKeyListener digitsKeyListener = DigitsKeyListener.getInstance(true, false); in testFilter2() local
110 assertNull(digitsKeyListener.filter(source, 0, source.length(), in testFilter2()
115 assertNull(digitsKeyListener.filter(source, 0, source.length(), in testFilter2()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewTest.java215 final KeyListener digitsKeyListener = DigitsKeyListener.getInstance(); in testAccessKeyListener() local
219 mTextView.setKeyListener(digitsKeyListener); in testAccessKeyListener()
223 assertSame(digitsKeyListener, mTextView.getKeyListener()); in testAccessKeyListener()