commit | 98a7a2b7cd8e0c4ea787e434ed9c6c6d5ddf8d5f | [log] [tgz] |
---|---|---|
author | Amit Mahajan <amitmahajan@google.com> | Thu May 31 17:07:53 2018 -0700 |
committer | Amit Mahajan <amitmahajan@google.com> | Fri Jun 01 11:38:35 2018 -0700 |
tree | 9e93695ef249b9fefc14ac75ab38cb96fe109d39 | |
parent | 909209fb2c88fade70499fa766b0fc1b7dc472c2 [diff] |
Share lock object between UiccSlot, UiccCard and UiccProfile. Prior to P, there was a single class UiccCard that had the lock. Now it's split between these 3 classes, but if each has a separate lock there can be a deadlock if they call each other's APIs which they do. The solution is to use a single lock between them which is equivalent to how the locking mechanism was earlier. Test: Basic telephony sanity. Bug: 80317780 Change-Id: Iadecb726dc3bf85dcde76c70a54e191f1a55007c