commit | a992999c21ec7201f5d4d0358df93b125942c2f6 | [log] [tgz] |
---|---|---|
author | Oli Lan <olilan@google.com> | Tue Mar 02 13:46:46 2021 +0000 |
committer | Oli Lan <olilan@google.com> | Mon Mar 08 15:04:53 2021 +0000 |
tree | 639332d360e221454b77bebb28fc86ae484a3a09 | |
parent | 54c65485055d77428ae1120307be7cf38bc7d2ec [diff] |
Simplify locking in ClipboardService. Currently ClipboardService contains synchronization around two objects: mLock, and the instance of ClipboardImpl. This changes all the synchronization to use mLock, and applies synchronization only where needed, i.e. when a guarded member (such as the clipboard data) is being accessed. Bug: 179667029 Test: atest ClipboardManagerTest; atest ClipDataTest; atest ClipDescriptionTest Change-Id: I7d55a2d5526275dc0e8ca1ce6fad9d4b14c6b3c8