Home
last modified time | relevance | path

Searched refs:MediaRoute2Info (Results 1 – 25 of 70) sorted by relevance

123

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DDeviceIconUtil.java36 import android.media.MediaRoute2Info;
89 public int getIconResIdFromMediaRouteType(@MediaRoute2Info.Type int type) { in getIconResIdFromMediaRouteType()
98 @MediaRoute2Info.Type int type, boolean isTablet) { in getIconResourceIdForPhoneOrTablet()
102 case MediaRoute2Info.TYPE_USB_DEVICE, in getIconResourceIdForPhoneOrTablet()
103 MediaRoute2Info.TYPE_USB_HEADSET, in getIconResourceIdForPhoneOrTablet()
104 MediaRoute2Info.TYPE_USB_ACCESSORY, in getIconResourceIdForPhoneOrTablet()
105 MediaRoute2Info.TYPE_WIRED_HEADSET, in getIconResourceIdForPhoneOrTablet()
106 MediaRoute2Info.TYPE_WIRED_HEADPHONES -> in getIconResourceIdForPhoneOrTablet()
108 case MediaRoute2Info.TYPE_DOCK -> R.drawable.ic_dock_device; in getIconResourceIdForPhoneOrTablet()
109 case MediaRoute2Info.TYPE_HDMI, in getIconResourceIdForPhoneOrTablet()
[all …]
DInfoMediaManager.java18 import static android.media.MediaRoute2Info.TYPE_BLE_HEADSET;
19 import static android.media.MediaRoute2Info.TYPE_BLUETOOTH_A2DP;
20 import static android.media.MediaRoute2Info.TYPE_BUILTIN_SPEAKER;
21 import static android.media.MediaRoute2Info.TYPE_DOCK;
22 import static android.media.MediaRoute2Info.TYPE_GROUP;
23 import static android.media.MediaRoute2Info.TYPE_HDMI;
24 import static android.media.MediaRoute2Info.TYPE_HDMI_ARC;
25 import static android.media.MediaRoute2Info.TYPE_HDMI_EARC;
26 import static android.media.MediaRoute2Info.TYPE_HEARING_AID;
27 import static android.media.MediaRoute2Info.TYPE_REMOTE_AUDIO_VIDEO_RECEIVER;
[all …]
DInfoMediaDevice.java18 import static android.media.MediaRoute2Info.TYPE_GROUP;
19 import static android.media.MediaRoute2Info.TYPE_REMOTE_CAR;
20 import static android.media.MediaRoute2Info.TYPE_REMOTE_COMPUTER;
21 import static android.media.MediaRoute2Info.TYPE_REMOTE_GAME_CONSOLE;
22 import static android.media.MediaRoute2Info.TYPE_REMOTE_SMARTPHONE;
23 import static android.media.MediaRoute2Info.TYPE_REMOTE_SMARTWATCH;
24 import static android.media.MediaRoute2Info.TYPE_REMOTE_SPEAKER;
25 import static android.media.MediaRoute2Info.TYPE_REMOTE_TABLET;
26 import static android.media.MediaRoute2Info.TYPE_REMOTE_TABLET_DOCKED;
27 import static android.media.MediaRoute2Info.TYPE_REMOTE_TV;
[all …]
DNoOpInfoMediaManager.java20 import android.media.MediaRoute2Info;
90 protected void transferToRoute(@NonNull MediaRoute2Info route) { in transferToRoute()
95 protected void selectRoute(@NonNull MediaRoute2Info route, @NonNull RoutingSessionInfo info) { in selectRoute()
100 protected void deselectRoute(@NonNull MediaRoute2Info route, @NonNull RoutingSessionInfo info) { in deselectRoute()
111 protected List<MediaRoute2Info> getSelectableRoutes(@NonNull RoutingSessionInfo info) { in getSelectableRoutes()
117 protected List<MediaRoute2Info> getDeselectableRoutes(@NonNull RoutingSessionInfo info) { in getDeselectableRoutes()
123 protected List<MediaRoute2Info> getSelectedRoutes(@NonNull RoutingSessionInfo info) { in getSelectedRoutes()
133 protected void setRouteVolume(@NonNull MediaRoute2Info route, int volume) { in setRouteVolume()
163 protected List<MediaRoute2Info> getAvailableRoutesFromRouter() { in getAvailableRoutesFromRouter()
169 protected List<MediaRoute2Info> getTransferableRoutes(@NonNull String packageName) { in getTransferableRoutes()
DMediaDevice.java18 import static android.media.MediaRoute2Info.TYPE_BLE_HEADSET;
19 import static android.media.MediaRoute2Info.TYPE_BLUETOOTH_A2DP;
20 import static android.media.MediaRoute2Info.TYPE_BUILTIN_SPEAKER;
21 import static android.media.MediaRoute2Info.TYPE_DOCK;
22 import static android.media.MediaRoute2Info.TYPE_GROUP;
23 import static android.media.MediaRoute2Info.TYPE_HDMI;
24 import static android.media.MediaRoute2Info.TYPE_HDMI_ARC;
25 import static android.media.MediaRoute2Info.TYPE_HDMI_EARC;
26 import static android.media.MediaRoute2Info.TYPE_HEARING_AID;
27 import static android.media.MediaRoute2Info.TYPE_REMOTE_AUDIO_VIDEO_RECEIVER;
[all …]
DManagerInfoMediaManager.java20 import android.media.MediaRoute2Info;
93 protected void transferToRoute(@NonNull MediaRoute2Info route) { in transferToRoute()
98 protected void selectRoute(@NonNull MediaRoute2Info route, @NonNull RoutingSessionInfo info) { in selectRoute()
103 protected void deselectRoute(@NonNull MediaRoute2Info route, @NonNull RoutingSessionInfo info) { in deselectRoute()
114 protected List<MediaRoute2Info> getSelectableRoutes(@NonNull RoutingSessionInfo info) { in getSelectableRoutes()
120 protected List<MediaRoute2Info> getDeselectableRoutes(@NonNull RoutingSessionInfo info) { in getDeselectableRoutes()
126 protected List<MediaRoute2Info> getSelectedRoutes(@NonNull RoutingSessionInfo info) { in getSelectedRoutes()
136 protected void setRouteVolume(@NonNull MediaRoute2Info route, int volume) { in setRouteVolume()
174 protected List<MediaRoute2Info> getAvailableRoutesFromRouter() { in getAvailableRoutesFromRouter()
180 protected List<MediaRoute2Info> getTransferableRoutes(@NonNull String packageName) { in getTransferableRoutes()
[all …]
DPhoneMediaDevice.java18 import static android.media.MediaRoute2Info.TYPE_BUILTIN_SPEAKER;
19 import static android.media.MediaRoute2Info.TYPE_DOCK;
20 import static android.media.MediaRoute2Info.TYPE_HDMI;
21 import static android.media.MediaRoute2Info.TYPE_HDMI_ARC;
22 import static android.media.MediaRoute2Info.TYPE_HDMI_EARC;
23 import static android.media.MediaRoute2Info.TYPE_USB_ACCESSORY;
24 import static android.media.MediaRoute2Info.TYPE_USB_DEVICE;
25 import static android.media.MediaRoute2Info.TYPE_USB_HEADSET;
26 import static android.media.MediaRoute2Info.TYPE_WIRED_HEADPHONES;
27 import static android.media.MediaRoute2Info.TYPE_WIRED_HEADSET;
[all …]
/frameworks/base/media/tests/MediaRouter/src/com/android/mediaroutertest/
DStubMediaRoute2ProviderService.java19 import static android.media.MediaRoute2Info.PLAYBACK_VOLUME_VARIABLE;
20 import static android.media.MediaRoute2Info.TYPE_REMOTE_SPEAKER;
21 import static android.media.MediaRoute2Info.TYPE_REMOTE_TV;
26 import android.media.MediaRoute2Info;
77 Map<String, MediaRoute2Info> mRoutes = new HashMap<>();
87 MediaRoute2Info route1 = new MediaRoute2Info.Builder(ROUTE_ID1, ROUTE_NAME1) in initializeRoutes()
91 MediaRoute2Info route2 = new MediaRoute2Info.Builder(ROUTE_ID2, ROUTE_NAME2) in initializeRoutes()
95 MediaRoute2Info route3 = new MediaRoute2Info.Builder( in initializeRoutes()
99 MediaRoute2Info route4 = new MediaRoute2Info.Builder( in initializeRoutes()
103 MediaRoute2Info route5 = new MediaRoute2Info.Builder( in initializeRoutes()
[all …]
DMediaRouter2ManagerTest.java19 import static android.media.MediaRoute2Info.FEATURE_REMOTE_PLAYBACK;
20 import static android.media.MediaRoute2Info.PLAYBACK_VOLUME_FIXED;
21 import static android.media.MediaRoute2Info.PLAYBACK_VOLUME_VARIABLE;
47 import android.media.MediaRoute2Info;
181 final int newConnectionState = MediaRoute2Info.CONNECTION_STATE_CONNECTED; in testOnRoutesUpdated()
183 final List<MediaRoute2Info> routes = new ArrayList<>(); in testOnRoutesUpdated()
184 routes.add(new MediaRoute2Info.Builder(routeId0, routeName0).addFeatures(features).build()); in testOnRoutesUpdated()
185 routes.add(new MediaRoute2Info.Builder(routeId1, routeName1).addFeatures(features).build()); in testOnRoutesUpdated()
213 MediaRoute2Info newRoute2 = in testOnRoutesUpdated()
214 new MediaRoute2Info.Builder(routes.get(1)) in testOnRoutesUpdated()
[all …]
/frameworks/base/services/core/java/com/android/server/media/
DLegacyDeviceRouteController.java19 import static android.media.MediaRoute2Info.FEATURE_LIVE_AUDIO;
20 import static android.media.MediaRoute2Info.FEATURE_LIVE_VIDEO;
21 import static android.media.MediaRoute2Info.FEATURE_LOCAL_PLAYBACK;
22 import static android.media.MediaRoute2Info.TYPE_BUILTIN_SPEAKER;
23 import static android.media.MediaRoute2Info.TYPE_DOCK;
24 import static android.media.MediaRoute2Info.TYPE_HDMI;
25 import static android.media.MediaRoute2Info.TYPE_USB_DEVICE;
26 import static android.media.MediaRoute2Info.TYPE_WIRED_HEADPHONES;
27 import static android.media.MediaRoute2Info.TYPE_WIRED_HEADSET;
36 import android.media.MediaRoute2Info;
[all …]
DAudioManagerRouteController.java19 import static android.media.MediaRoute2Info.FEATURE_LIVE_AUDIO;
20 import static android.media.MediaRoute2Info.FEATURE_LOCAL_PLAYBACK;
34 import android.media.MediaRoute2Info;
98 @MediaRoute2Info.SuitabilityStatus private final int mBuiltInSpeakerSuitabilityStatus;
111 private MediaRoute2Info mSelectedRoute;
176 public synchronized MediaRoute2Info getSelectedRoute() { in getSelectedRoute()
182 public synchronized List<MediaRoute2Info> getAvailableRoutes() { in getAvailableRoutes()
342 List<MediaRoute2Info> availableBluetoothRoutes, in updateAvailableRoutes()
349 MediaRoute2Info mediaRoute2Info = in updateAvailableRoutes()
410 private MediaRoute2Info createMediaRoute2InfoFromAudioDeviceInfo( in createMediaRoute2InfoFromAudioDeviceInfo()
[all …]
DDeviceRouteController.java28 import android.media.MediaRoute2Info;
85 @MediaRoute2Info.SuitabilityStatus
89 return MediaRoute2Info.SUITABILITY_STATUS_SUITABLE_FOR_DEFAULT_TRANSFER; in getBuiltInSpeakerSuitabilityStatus()
99 case MediaRoute2Info.SUITABILITY_STATUS_SUITABLE_FOR_DEFAULT_TRANSFER: in getBuiltInSpeakerSuitabilityStatus()
100 case MediaRoute2Info.SUITABILITY_STATUS_SUITABLE_FOR_MANUAL_TRANSFER: in getBuiltInSpeakerSuitabilityStatus()
101 case MediaRoute2Info.SUITABILITY_STATUS_NOT_SUITABLE_FOR_TRANSFER: in getBuiltInSpeakerSuitabilityStatus()
104 return MediaRoute2Info.SUITABILITY_STATUS_SUITABLE_FOR_DEFAULT_TRANSFER; in getBuiltInSpeakerSuitabilityStatus()
110 MediaRoute2Info getSelectedRoute(); in getSelectedRoute()
121 List<MediaRoute2Info> getAvailableRoutes(); in getAvailableRoutes()
DLegacyBluetoothRouteController.java37 import android.media.MediaRoute2Info;
200 public MediaRoute2Info getSelectedRoute() { in getSelectedRoute()
208 public List<MediaRoute2Info> getTransferableRoutes() { in getTransferableRoutes()
209 List<MediaRoute2Info> routes = getAllBluetoothRoutes(); in getTransferableRoutes()
218 public List<MediaRoute2Info> getAllBluetoothRoutes() { in getAllBluetoothRoutes()
219 List<MediaRoute2Info> routes = new ArrayList<>(); in getAllBluetoothRoutes()
222 MediaRoute2Info selectedRoute = getSelectedRoute(); in getAllBluetoothRoutes()
248 routeType = MediaRoute2Info.TYPE_HEARING_AID; in updateVolumeForDevices()
252 routeType = MediaRoute2Info.TYPE_BLUETOOTH_A2DP; in updateVolumeForDevices()
254 routeType = MediaRoute2Info.TYPE_BLE_HEADSET; in updateVolumeForDevices()
[all …]
DBluetoothRouteController.java24 import android.media.MediaRoute2Info;
84 MediaRoute2Info getSelectedRoute(); in getSelectedRoute()
95 List<MediaRoute2Info> getTransferableRoutes(); in getTransferableRoutes()
103 List<MediaRoute2Info> getAllBluetoothRoutes(); in getAllBluetoothRoutes()
147 public MediaRoute2Info getSelectedRoute() { in getSelectedRoute()
153 public List<MediaRoute2Info> getTransferableRoutes() { in getTransferableRoutes()
159 public List<MediaRoute2Info> getAllBluetoothRoutes() { in getAllBluetoothRoutes()
DSystemMediaRoute2Provider.java27 import android.media.MediaRoute2Info;
75 MediaRoute2Info mDefaultRoute;
168 if (TextUtils.equals(routeOriginalId, MediaRoute2Info.ROUTE_ID_DEFAULT)) { in requestCreateSession()
241 if (TextUtils.equals(routeOriginalId, MediaRoute2Info.ROUTE_ID_DEFAULT)) { in transferToRoute()
247 Log.w(TAG, "Ignoring transfer to " + MediaRoute2Info.ROUTE_ID_DEFAULT); in transferToRoute()
308 public MediaRoute2Info getDefaultRoute() { in getDefaultRoute()
332 MediaRoute2Info selectedDeviceRoute = mDeviceRouteController.getSelectedRoute(); in generateDeviceRouteSelectedSessionInfo()
338 for (MediaRoute2Info route : mBluetoothRouteController.getAllBluetoothRoutes()) { in generateDeviceRouteSelectedSessionInfo()
343 for (MediaRoute2Info route : mDeviceRouteController.getAvailableRoutes()) { in generateDeviceRouteSelectedSessionInfo()
366 List<MediaRoute2Info> deviceRoutes = mDeviceRouteController.getAvailableRoutes(); in updateProviderState()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/testutils/com/android/settingslib/testutils/shadow/
DShadowRouter2Manager.java18 import android.media.MediaRoute2Info;
36 private List<MediaRoute2Info> mAvailableRoutes = new ArrayList<>();
37 private List<MediaRoute2Info> mAllRoutes;
38 private List<MediaRoute2Info> mDeselectableRoutes;
44 protected List<MediaRoute2Info> getAvailableRoutes(String packageName) { in getAvailableRoutes()
48 public void setAvailableRoutes(List<MediaRoute2Info> infos) { in setAvailableRoutes()
53 protected List<MediaRoute2Info> getAllRoutes() { in getAllRoutes()
57 public void setAllRoutes(List<MediaRoute2Info> infos) { in setAllRoutes()
89 public List<MediaRoute2Info> getDeselectableRoutes(@NonNull RoutingSessionInfo sessionInfo) { in getDeselectableRoutes()
93 public void setDeselectableRoutes(List<MediaRoute2Info> routes) { in setDeselectableRoutes()
[all …]
/frameworks/base/media/java/android/media/
DMediaRoute2ProviderInfo.java52 final ArrayMap<String, MediaRoute2Info> mRoutes;
63 ArrayMap<String, MediaRoute2Info> routes = src.createTypedArrayMap(MediaRoute2Info.CREATOR); in MediaRoute2ProviderInfo()
78 MediaRoute2Info route = mRoutes.valueAt(i); in isValid()
101 public MediaRoute2Info getRoute(@NonNull String routeId) { in getRoute()
109 public Collection<MediaRoute2Info> getRoutes() { in getRoutes()
139 final ArrayMap<String, MediaRoute2Info> mRoutes;
169 final ArrayMap<String, MediaRoute2Info> newRoutes = new ArrayMap<>(); in setUniqueId()
170 for (Map.Entry<String, MediaRoute2Info> entry : mRoutes.entrySet()) { in setUniqueId()
171 MediaRoute2Info routeWithProviderId = new MediaRoute2Info.Builder(entry.getValue()) in setUniqueId()
190 MediaRoute2Info route = mRoutes.valueAt(i); in setSystemRouteProvider()
[all …]
DIMediaRouterService.aidl23 import android.media.MediaRoute2Info;
53 List<MediaRoute2Info> getSystemRoutes(String callerPackageName, boolean isProxyRouter); in getSystemRoutes()
64 void setRouteVolumeWithRouter2(IMediaRouter2 router, in MediaRoute2Info route, int volume); in setRouteVolumeWithRouter2()
67 in RoutingSessionInfo oldSession, in MediaRoute2Info route, in requestCreateSessionWithRouter2()
69 void selectRouteWithRouter2(IMediaRouter2 router, String sessionId, in MediaRoute2Info route); in selectRouteWithRouter2()
70 void deselectRouteWithRouter2(IMediaRouter2 router, String sessionId, in MediaRoute2Info route); in deselectRouteWithRouter2()
72 in MediaRoute2Info route); in transferToRouteWithRouter2()
84 in MediaRoute2Info route, int volume); in setRouteVolumeWithManager()
88 in RoutingSessionInfo oldSession, in @nullable MediaRoute2Info route, in requestCreateSessionWithManager()
91 String sessionId, in MediaRoute2Info route); in selectRouteWithManager()
[all …]
DMediaRouter2.java173 private final Map<String, MediaRoute2Info> mRoutes = new ArrayMap<>();
206 private volatile ArrayMap<String, MediaRoute2Info> mPreviousFilteredRoutes = new ArrayMap<>();
208 private final Map<String, MediaRoute2Info> mPreviousUnfilteredRoutes = new ArrayMap<>();
219 private volatile List<MediaRoute2Info> mFilteredRoutes = Collections.emptyList();
656 List<MediaRoute2Info> currentSystemRoutes = null; in loadSystemRoutes()
668 for (MediaRoute2Info route : currentSystemRoutes) { in loadSystemRoutes()
875 public List<MediaRoute2Info> getAllRoutes() { in getAllRoutes()
889 public List<MediaRoute2Info> getRoutes() { in getRoutes()
981 public void transferTo(@NonNull MediaRoute2Info route) { in transferTo()
1004 public void transfer(@NonNull RoutingController controller, @NonNull MediaRoute2Info route) { in transfer()
[all …]
DMediaRouter2Manager.java94 private final Map<String, MediaRoute2Info> mRoutes = new HashMap<>();
238 public List<MediaRoute2Info> getAvailableRoutes(@NonNull String packageName) { in getAvailableRoutes()
251 public List<MediaRoute2Info> getTransferableRoutes(@NonNull String packageName) { in getTransferableRoutes()
266 public List<MediaRoute2Info> getAvailableRoutes(@NonNull RoutingSessionInfo sessionInfo) { in getAvailableRoutes()
283 public List<MediaRoute2Info> getTransferableRoutes(@NonNull RoutingSessionInfo sessionInfo) { in getTransferableRoutes()
288 private List<MediaRoute2Info> getSortedRoutes(RouteDiscoveryPreference preference) { in getSortedRoutes()
300 ArrayList<MediaRoute2Info> routes; in getSortedRoutes()
310 private List<MediaRoute2Info> getFilteredRoutes(@NonNull RoutingSessionInfo sessionInfo, in getFilteredRoutes()
312 @Nullable Predicate<MediaRoute2Info> additionalFilter) { in getFilteredRoutes()
315 List<MediaRoute2Info> routes = new ArrayList<>(); in getFilteredRoutes()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
DDeviceIconUtilTest.java23 import android.media.MediaRoute2Info;
54 .getIconResIdFromMediaRouteType(MediaRoute2Info.TYPE_USB_DEVICE)) in getIconResIdFromMediaRouteType_usbDevice_isHeadphone()
57 .getIconResIdFromMediaRouteType(MediaRoute2Info.TYPE_USB_DEVICE)) in getIconResIdFromMediaRouteType_usbDevice_isHeadphone()
64 .getIconResIdFromMediaRouteType(MediaRoute2Info.TYPE_USB_HEADSET)) in getIconResIdFromMediaRouteType_usbHeadset_isHeadphone()
67 .getIconResIdFromMediaRouteType(MediaRoute2Info.TYPE_USB_HEADSET)) in getIconResIdFromMediaRouteType_usbHeadset_isHeadphone()
74 .getIconResIdFromMediaRouteType(MediaRoute2Info.TYPE_USB_ACCESSORY)) in getIconResIdFromMediaRouteType_usbAccessory_isHeadphone()
81 .getIconResIdFromMediaRouteType(MediaRoute2Info.TYPE_USB_ACCESSORY)) in getIconResIdFromMediaRouteType_tv_usbAccessory_isUsb()
88 .getIconResIdFromMediaRouteType(MediaRoute2Info.TYPE_DOCK)) in getIconResIdFromMediaRouteType_dock_isDock()
91 .getIconResIdFromMediaRouteType(MediaRoute2Info.TYPE_DOCK)) in getIconResIdFromMediaRouteType_dock_isDock()
98 .getIconResIdFromMediaRouteType(MediaRoute2Info.TYPE_HDMI)) in getIconResIdFromMediaRouteType_hdmi()
[all …]
DInfoMediaManagerTest.java19 import static android.media.MediaRoute2Info.TYPE_BLUETOOTH_A2DP;
20 import static android.media.MediaRoute2Info.TYPE_BUILTIN_SPEAKER;
21 import static android.media.MediaRoute2Info.TYPE_REMOTE_SPEAKER;
22 import static android.media.MediaRoute2Info.TYPE_REMOTE_TV;
23 import static android.media.MediaRoute2Info.TYPE_USB_DEVICE;
24 import static android.media.MediaRoute2Info.TYPE_WIRED_HEADSET;
45 import android.media.MediaRoute2Info;
100 private static final MediaRoute2Info TEST_SELECTED_SYSTEM_ROUTE =
101 new MediaRoute2Info.Builder(TEST_SYSTEM_ROUTE_ID, "SELECTED_SYSTEM_ROUTE")
103 .addFeature(MediaRoute2Info.FEATURE_LIVE_AUDIO)
[all …]
DInfoMediaDeviceTest.java19 import static android.media.MediaRoute2Info.TYPE_GROUP;
20 import static android.media.MediaRoute2Info.TYPE_REMOTE_CAR;
21 import static android.media.MediaRoute2Info.TYPE_REMOTE_COMPUTER;
22 import static android.media.MediaRoute2Info.TYPE_REMOTE_GAME_CONSOLE;
23 import static android.media.MediaRoute2Info.TYPE_REMOTE_SMARTPHONE;
24 import static android.media.MediaRoute2Info.TYPE_REMOTE_SMARTWATCH;
25 import static android.media.MediaRoute2Info.TYPE_REMOTE_SPEAKER;
26 import static android.media.MediaRoute2Info.TYPE_REMOTE_TABLET;
27 import static android.media.MediaRoute2Info.TYPE_REMOTE_TABLET_DOCKED;
28 import static android.media.MediaRoute2Info.TYPE_REMOTE_TV;
[all …]
/frameworks/base/services/tests/media/mediarouterservicetest/src/com/android/server/media/
DAudioManagerRouteControllerTest.java47 import android.media.MediaRoute2Info;
159 .isEqualTo(MediaRoute2Info.TYPE_BUILTIN_SPEAKER); in getSelectedRoute_afterDevicesConnect_returnsRightSelectedRoute()
166 .isEqualTo(MediaRoute2Info.TYPE_BLUETOOTH_A2DP); in getSelectedRoute_afterDevicesConnect_returnsRightSelectedRoute()
172 .isEqualTo(MediaRoute2Info.TYPE_BLUETOOTH_A2DP); in getSelectedRoute_afterDevicesConnect_returnsRightSelectedRoute()
188 .isEqualTo(MediaRoute2Info.TYPE_BLUETOOTH_A2DP); in getSelectedRoute_afterDeviceRemovals_returnsExpectedRoutes()
194 .isEqualTo(MediaRoute2Info.TYPE_BLUETOOTH_A2DP); in getSelectedRoute_afterDeviceRemovals_returnsExpectedRoutes()
200 .isEqualTo(MediaRoute2Info.TYPE_BUILTIN_SPEAKER); in getSelectedRoute_afterDeviceRemovals_returnsExpectedRoutes()
225 .map(MediaRoute2Info::getType) in getAvailableDevices_ignoresInvalidMediaOutputs()
227 .containsExactly(MediaRoute2Info.TYPE_BUILTIN_SPEAKER); in getAvailableDevices_ignoresInvalidMediaOutputs()
229 .isEqualTo(MediaRoute2Info.TYPE_BUILTIN_SPEAKER); in getAvailableDevices_ignoresInvalidMediaOutputs()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/media/
DLegacyDeviceRouteControllerTest.java31 import android.media.MediaRoute2Info;
107 MediaRoute2Info actualMediaRoute = deviceRouteController.getSelectedRoute(); in initialize_noRoutesInfo_defaultRouteIsNotNull()
109 assertThat(actualMediaRoute.getType()).isEqualTo(MediaRoute2Info.TYPE_BUILTIN_SPEAKER); in initialize_noRoutesInfo_defaultRouteIsNotNull()
132 MediaRoute2Info actualMediaRoute = deviceRouteController.getSelectedRoute(); in initialize_bluetoothRouteAvailable_deviceRouteReturnsDefaultRoute()
134 assertThat(actualMediaRoute.getType()).isEqualTo(MediaRoute2Info.TYPE_BUILTIN_SPEAKER); in initialize_bluetoothRouteAvailable_deviceRouteReturnsDefaultRoute()
152 MediaRoute2Info.TYPE_WIRED_HEADPHONES, in data()
160 MediaRoute2Info.TYPE_WIRED_HEADSET, in data()
168 MediaRoute2Info.TYPE_DOCK, in data()
176 MediaRoute2Info.TYPE_HDMI, in data()
184 MediaRoute2Info.TYPE_USB_DEVICE, in data()
[all …]

123