Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 640b2b79 authored by Lan Wei's avatar Lan Wei
Browse files

Add test app SimpleTestIme to test InputMethodService

Add a test app SimpleTestIme under services/tests/InputMethodSystemServerTests/test-apps/ which provides the basic functionality of a
keyboard. Using it as the target package of instrumentation test, which
means we have access to all the class instances running in it under the
tests, including InputMethodService. In this way we can get a real InputMethodService instance, then manipulate and test the states of it.

Add simple test cases to verify the behavior of some public methods like:
  * onStartInput()/onFinishInput()
  * onStartInputView()/onFinishInputView()
  * requestShowSelf()/requestHideSelf()
  * onEvaluateFullscreenMode()/isFullScreenMode()

Bug: 240359838
Test: com.android.inputmethodservice.InputMethodServiceTest

Change-Id: I84f1a1b25eef4a757d8da27807285e08417458b4
parent 894ef374
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment