OSDN Git Service

Clean-up BTIF profile queue on profile shutdown
authorJack He <siyuanh@google.com>
Fri, 15 Sep 2017 00:13:19 +0000 (17:13 -0700)
committerAndre Eisenbach <eisenbach@google.com>
Fri, 15 Sep 2017 23:20:43 +0000 (23:20 +0000)
commiteb50aa96ca050bb76636401f81965df12be7e21b
treed6aa268b92f3e25941cfdd5673c1074adb39b200
parent4023c6731d5e991c6202d4e499b9dd43d642fb3c
Clean-up BTIF profile queue on profile shutdown

* Add btif_profile_cleanup(uuid) method to remove pending connection
  requests for individual UUIDs
* Call the above method in each profile's clean-up method
* Add unit tests for btif_profile_queue

Bug: 63790458
Test: make, unit tests, pair and connect car kits
Change-Id: I28288c295b7ca0259b2112c11b4e5a81d6f2e33c
(cherry picked from commit d366807102bce97e494e83570d757ebcb6a33b3c)
btif/Android.bp
btif/include/btif_profile_queue.h
btif/src/btif_av.cc
btif/src/btif_hf.cc
btif/src/btif_hf_client.cc
btif/src/btif_profile_queue.cc
btif/test/btif_profile_queue_test.cc [new file with mode: 0644]
test/run_unit_tests.sh