summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Santiago Seifert <aquilescanta@google.com> 2022-07-20 13:46:25 +0000
committer Santiago Seifert <aquilescanta@google.com> 2022-09-23 22:23:52 +0000
commitcbca646e970e3f2239ce8c72195588427028832d (patch)
tree7ad67b7893b0c3bc42267b9a6180044db13219e5 /libs/androidfw/StringPool.cpp
parentb932920c6f60d71f0190cbdd25adb01b15e3087f (diff)
Manage scan requests in MediaRouter2Manager
This is a cherrypick of commit d9ac018756b3a52bd4c65d1c3ba7488c40b42381. Before this change, MediaRouter2Manager (singleton) does not protect clients against independent changes to the scanning state, which means one client can stop the scan while another needs scanning to go on. After this change, MediaRouter2Manager keeps count of the calls to request scanning, and will only request scanning from the system server while there is at least one active scan request (via registerScanRequest). This change does not affect MediaRouter2.start/stopScan. Bug: 232812007 Test: atest CtsMediaBetterTogetherTestCases Change-Id: I8d80872d7c55791b9a429180da1c68af50ae13b7 Merged-In: I8d80872d7c55791b9a429180da1c68af50ae13b7
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions