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

Skip to content
Commit 216cf453 authored by Hieu Dang's avatar Hieu Dang
Browse files

Fix IllegalArgumentException in BluetoothOppServiceTest

trimDatabase() is called in "trimDatabase" thread that's started in
BluetoothOppService#start(). This thread can be ran even when provider
is not enabled, and even not in the same time frame with the current
test. This might raise exception, resulting in the tests following the
test that initiate this thread to fail.

This cl also fix similar problems with other threads like mUpdateThread
and NotificationUpdateThread

This cl also fix memory issue mentioned in b/266459454, where
ContentProviderClient is used but not freed

Test: atest BluetoothOppServiceTest --rerun-until-failure=100
Bug: 281311423
Bug: 257539713
Bug: 266459454
Tag: #refactor
Change-Id: Ieb8129bf29a7e1841ba3d6c40f677cec7dd9b897
Merged-In: 23705047
parent 3daf6927
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