summaryrefslogtreecommitdiff
path: root/startop/scripts/lib/cmd_utils.py
diff options
context:
space:
mode:
authorKyunglyul Hyun <klhyun@google.com>2020-04-17 23:09:08 +0900
committerKyunglyul Hyun <klhyun@google.com>2020-04-21 14:58:31 +0900
commit350d7b427ea1daba67e19ba263017f54f0e09db5 (patch)
tree268384d59b1a175b0e9e3ae1af08c0a6333638f8 /startop/scripts/lib/cmd_utils.py
parent9c5a02c269f63b1a331be6ec07747ed8ef608c10 (diff)
Clear routes when media router manager has no callback
This CL clears routes when the last callback of MediaRouter2Manager is unregistered. By doing this, we can ensure MediaRouter2Manager#getAvailableRoutes() returns correct routes during at least a single callback is registered. A test for the behavior is added as well. This CL also fixed a bug that unregistering a callback from MediaRouter2 disconnects it when multiple callback is used. Bug: 153515567 Test: atest mediaroutertest & cts test & manually using MediaRouter2Demo and Sample OutputSwitcher to see if forgotten BT device is correctly removed. (w/o this CL forgotten BT device remains) Change-Id: I31a5001115f1f163c8971bbd906516551b860252
Diffstat (limited to 'startop/scripts/lib/cmd_utils.py')
0 files changed, 0 insertions, 0 deletions