Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/view/
DHandwritingInitiator.java87 public WeakReference<View> mConnectedView = null; field in HandwritingInitiator
280 if (mConnectedView == null) return null; in getConnectedView()
281 return mConnectedView.get(); in getConnectedView()
285 mConnectedView = null; in clearConnectedView()
323 mConnectedView = new WeakReference<>(view); in onInputConnectionCreated()
584 return mConnectedView == null ? null : mConnectedView.get(); in getConnectedOrFocusedView()
/frameworks/base/core/tests/coretests/src/android/view/stylus/
DHandwritingInitiatorTest.java742 assertThat(mHandwritingInitiator.mConnectedView).isNotNull(); in onInputConnectionCreated()
743 assertThat(mHandwritingInitiator.mConnectedView.get()).isEqualTo(mTestView1); in onInputConnectionCreated()
754 assertThat(mHandwritingInitiator.mConnectedView).isNull(); in onInputConnectionCreated_whenAutoHandwritingIsDisabled()
763 assertThat(mHandwritingInitiator.mConnectedView).isNull(); in onInputConnectionClosed()
774 assertThat(mHandwritingInitiator.mConnectedView).isNull(); in onInputConnectionClosed_whenAutoHandwritingIsDisabled()
787 assertThat(mHandwritingInitiator.mConnectedView).isNotNull(); in onInputConnectionCreated_inputConnectionRestarted()
788 assertThat(mHandwritingInitiator.mConnectedView.get()).isEqualTo(mTestView1); in onInputConnectionCreated_inputConnectionRestarted()