summaryrefslogtreecommitdiff
path: root/libs/androidfw/AssetsProvider.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-07-26 18:58:40 +0000
commitd9ac018756b3a52bd4c65d1c3ba7488c40b42381 (patch)
treed0865feb030d391136ce9929e9416111a7435f1c /libs/androidfw/AssetsProvider.cpp
parent0851843bed622e96047094b54089484477a7c2e6 (diff)
Manage scan requests in MediaRouter2Manager
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
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions