commit | 6f3d7d163f3406b0e3111fbd1fa8c28f8ab74c9e | [log] [tgz] |
---|---|---|
author | Satheesh Kumar Pallemoni <spallemo@codeaurora.org> | Wed May 02 13:36:03 2018 +0530 |
committer | nshrivas <nshrivas@codeaurora.org> | Wed May 23 08:05:05 2018 -0700 |
tree | 401027c067d48618a1022c00651e70d30442a363 | |
parent | 9230e40a5a837900447f0c057294469efa76af1c [diff] |
Serialize resource acqisition to avoid deadlock. ANR is occuring due to below deadlock. buildBrowsablePlayerList() -->acquires mBrowsePlayerInfoList ->getMediaPlayerInfo(packageName) -->waiting for Avrcp.this onActiveSessionsChanged() -->acquires Avrcp.this ->isBrowseSupported -->waiting for mBrowsePlayerInfoList To avoid this ANR serailize resource acqisition. CRs-Fixed: 2239501 Change-Id: I7f29f5ba1052f10a98c6ed65e1ab7cb900972cd8