diff options
author | Kyunglyul Hyun <klhyun@google.com> | 2020-06-19 13:33:16 +0900 |
---|---|---|
committer | Kyunglyul Hyun <klhyun@google.com> | 2020-06-19 22:54:59 +0900 |
commit | c036350122226b86130773cc6b472f0a2bbe756d (patch) | |
tree | 73022c16e0af08141ec84f5cf28178255cdf7ad2 /media/tests | |
parent | 6edbf48c2ba32aaa5adcc08c1ef55f98d7c3e862 (diff) |
System routes are not automatically exposed
From this CL, even for system routes (phone speaker, bt routes),
features are required to get notified of events on routes or to
get them as "available" routes.
By adding this, apps can disable cast -> phone feature.
Bug: 159090706
Test: cts test && atest mediaroutertest && manually
using support v7 demos such that
with LIVE_AUDIO : nothing changed
w/o LIVE_AUDIO : cast -> phone feature is disabled
unregistering callback : cast -> cast (media transfer) and
phone -> phone is only enabled <- this is
the expected behavior for apps that updates
AndroidX library
Change-Id: I4bd27eb1d4776b9cedb59b10e1bac5868d56d305
Diffstat (limited to 'media/tests')
-rw-r--r-- | media/tests/MediaRouter/src/com/android/mediaroutertest/MediaRouter2ManagerTest.java | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/media/tests/MediaRouter/src/com/android/mediaroutertest/MediaRouter2ManagerTest.java b/media/tests/MediaRouter/src/com/android/mediaroutertest/MediaRouter2ManagerTest.java index 638a842e4e5f..0979627e5e8d 100644 --- a/media/tests/MediaRouter/src/com/android/mediaroutertest/MediaRouter2ManagerTest.java +++ b/media/tests/MediaRouter/src/com/android/mediaroutertest/MediaRouter2ManagerTest.java @@ -97,7 +97,6 @@ public class MediaRouter2ManagerTest { public static final List<String> FEATURES_ALL = new ArrayList(); public static final List<String> FEATURES_SPECIAL = new ArrayList(); - private static final List<String> FEATURES_LIVE_AUDIO = new ArrayList<>(); static { FEATURES_ALL.add(FEATURE_SAMPLE); @@ -105,8 +104,6 @@ public class MediaRouter2ManagerTest { FEATURES_ALL.add(FEATURE_LIVE_AUDIO); FEATURES_SPECIAL.add(FEATURE_SPECIAL); - - FEATURES_LIVE_AUDIO.add(FEATURE_LIVE_AUDIO); } @Before |