commit | b546aadd186086e73a853dcddcd3511da8e55cbc | [log] [tgz] |
---|---|---|
author | TYM Tsai <tymtsai@google.com> | Mon Aug 31 23:46:59 2020 +0800 |
committer | TYM Tsai <tymtsai@google.com> | Mon Aug 31 23:57:50 2020 +0800 |
tree | ef6a64e65bc30092d8602266a3b93a94c6c4759e | |
parent | 400379c26fb487a0d6560dbb8e4e02ad5acf449f [diff] |
Refactored to ensure thread safety clearServiceWatcher() called on the main thread but resetStaticState() called on the instrumentation thread. Refactored the code to ensure thread safety. Fixes: 166685544 Test: atest ContentCapturePerfTests Change-Id: I9adced9e068112c43554b495bd6dc591f8775945