Home | History | Annotate | Download | only in widget

Lines Matching defs:mWatcher

54     private TextWatcher mWatcher;
59 mWatcher = mock(TextWatcher.class, withSettings().extraInterfaces(SpanWatcher.class));
60 mClass = mWatcher.getClass();
94 spannable.setSpan(mWatcher, 1, 2, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
100 assertSame(mWatcher, spans[0]);
103 assertEquals(1, spannable.getSpanStart(mWatcher));
104 assertEquals(2, spannable.getSpanEnd(mWatcher));
105 assertEquals(Spanned.SPAN_INCLUSIVE_INCLUSIVE, spannable.getSpanFlags(mWatcher));
108 spannable.removeSpan(mWatcher);
117 spannable.setSpan(mWatcher, 1, 2, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
126 spannable.setSpan(mWatcher, 0, spannable.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE);
128 reset(mWatcher);
139 verify((SpanWatcher) mWatcher, never()).onSpanRemoved(any(Spannable.class),
141 verify((SpanWatcher) mWatcher, never()).onSpanAdded(any(Spannable.class),
143 verify((SpanWatcher) mWatcher, never()).onSpanChanged(any(Spannable.class),
147 verify(mWatcher, times(1)).beforeTextChanged(any(CharSequence.class), anyInt(),
149 verify(mWatcher, times(1)).onTextChanged(any(CharSequence.class), anyInt(), anyInt(),
151 verify(mWatcher, times(1)).afterTextChanged(any(Editable.class));
158 spannable.setSpan(mWatcher, 0, spannable.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE);
160 reset(mWatcher);
171 verify((SpanWatcher) mWatcher, times(1)).onSpanRemoved(any(Spannable.class),
175 verify(mWatcher, times(1)).beforeTextChanged(any(CharSequence.class), anyInt(), anyInt(),
177 verify(mWatcher, times(1)).onTextChanged(any(CharSequence.class), anyInt(), anyInt(),
179 verify(mWatcher, times(1)).afterTextChanged(any(Editable.class));