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

Skip to content
Commit b38b53fb authored by Shuzhen Wang's avatar Shuzhen Wang
Browse files

Camera: Fix race condition for filterSPerfClassCharacteristics

1. enumerateProviders may be called from different threads: from
  cameraserver startup, and from the provider's onRegistration.
  When enumerateProviders calls filterSPerfClassCharacteristics,
  mServiceLock needs to be held.
2. onRegistration can be called with preexisting set to TRUE. In that
  case, do not call onNewProviderRegistered() to avoid unnecessary
  enumerateProviders.

Test: vendor testing, camera CTS
Bug: 193796282
Change-Id: I596a047cb36a9926014de232a6639a32da4f214c
parent 2a3ca76a
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