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

Skip to content
Commit de19f0da authored by Yohei Yukawa's avatar Yohei Yukawa
Browse files

Mock out one more overload of Context#registerReceiver()

This is a preparation before making

  InputMethodManagerService#mImeDrawsImeNavBarRes

multi-user ready.

Instantiating InputMethodManagerService results in invoking

  SystemLocaleWrapper#onStart(),

which internally registers a BroadcastReceiver.  All the tests based
on InputMethodManagerServiceTestBase are now failing to unregister
such receivers.

Let's make it no-op by mocking

  Context#registerReceiver(
      BroadcastReceiver, IntentFilter, String, Handler)

for now.

Bug: 345519864
Test: atest FrameworksInputMethodSystemServerTests
Flag: TEST_ONLY
Change-Id: Ia457d631eda0f04a7acdd92315b896a97aa4fcb1
parent c7aa0be4
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