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

Skip to content
Commit bd90909c authored by Jack He's avatar Jack He
Browse files

Initialize static service reference properly

* Change I10ea7dabcb2e0d296384d6f9a60683569bdef3f8 changes the meaning
  of isAvailable() in ProfileService. As result, many service's static
  instance references no longer get assigned properly
* This CL fixes those issue for:
    A2dpSinkService
    AvrcpControllerService
    HeadsetClientService
    HidHostService
    MapClientService
    PanService
    PbapClientService
* This CL also adds a number of tests to start and stop each
  ProfileService and do some profile specific verification such as
  verifying HeadsetClientService.getHeadsetClientService()'s return
  result is not null
* Adds a TestUtils class to include common test routines such as:
  setAdapterService(), clearAdapterService(), startService(),
  stopService()
* Remove setting to null statements in tearDown() method as JUnit4
  runner will nullify fields by default

Fixes: 72816382
Test: 1) enable all profiles in config.xml 2) runtest -j32 bluetooth
Change-Id: If39c44097d5cfbf0d606dda20e5b8cdb565b5764
parent d49a862a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment