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.java87 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/
DTextViewTest.java313 final KeyListener digitsKeyListener = DigitsKeyListener.getInstance(); in testAccessKeyListener() local
315 mActivityRule.runOnUiThread(() -> mTextView.setKeyListener(digitsKeyListener)); in testAccessKeyListener()
317 assertSame(digitsKeyListener, mTextView.getKeyListener()); in testAccessKeyListener()