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.java85 DigitsKeyListener digitsKeyListener = DigitsKeyListener.getInstance(); in testFilter1() local
87 assertNull(digitsKeyListener.filter(source, 0, source.length(), in testFilter1()
92 assertEquals("123", (digitsKeyListener.filter(source, 0, source.length(), in testFilter1()
97 assertEquals("123", (digitsKeyListener.filter(source, 0, source.length(), in testFilter1()
102 assertEquals("123", (digitsKeyListener.filter(source, 0, source.length(), in testFilter1()
109 Spanned filtered = (Spanned) digitsKeyListener.filter(spannableSource, in testFilter1()
116 assertNull(digitsKeyListener.filter("", 0, 0, dest, 0, dest.length())); in testFilter1()
143 DigitsKeyListener digitsKeyListener = DigitsKeyListener.getInstance(true, false); in testFilter2() local
145 assertNull(digitsKeyListener.filter(source, 0, source.length(), in testFilter2()
150 assertNull(digitsKeyListener.filter(source, 0, source.length(), in testFilter2()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewTest.java347 final KeyListener digitsKeyListener = DigitsKeyListener.getInstance(); in testAccessKeyListener() local
349 mActivityRule.runOnUiThread(() -> mTextView.setKeyListener(digitsKeyListener)); in testAccessKeyListener()
351 assertSame(digitsKeyListener, mTextView.getKeyListener()); in testAccessKeyListener()