/frameworks/base/media/tests/MediaRouter/src/com/android/mediaroutertest/ |
D | RoutingSessionInfoTest.java | 64 assertThat(sessionInfoWithProviderId.getSelectedRoutes()) in testProviderId() 65 .isNotEqualTo(sessionInfo.getSelectedRoutes()); in testProviderId() 77 assertThat(sessionInfoWithOtherProviderId.getSelectedRoutes()) in testProviderId() 78 .isNotEqualTo(sessionInfoWithProviderId.getSelectedRoutes()); in testProviderId() 89 assertThat(sessionInfoWithProviderId2.getSelectedRoutes()) in testProviderId() 90 .isEqualTo(sessionInfoWithProviderId.getSelectedRoutes()); in testProviderId()
|
D | StubMediaRoute2ProviderService.java | 297 for (String routeId : sessionInfo.getSelectedRoutes()) { in onReleaseSession() 338 || !sessionInfo.getSelectedRoutes().contains(routeId)) { in onDeselectRoute() 347 if (sessionInfo.getSelectedRoutes().size() == 1) { in onDeselectRoute() 369 for (String selectedRouteId : sessionInfo.getSelectedRoutes()) { in onTransferToRoute()
|
D | MediaRouter2ManagerTest.java | 380 if (createRouteMap(newController.getSelectedRoutes()).containsKey(ROUTE_ID1)) { in testRouterOnSessionCreated() 409 && newSessionInfo.getSelectedRoutes().contains(routeToSelect.getId())) { in testGetRoutingSessions() 483 && newSessionInfo.getSelectedRoutes().contains(routeToSelect.getId())) { in testRouterRelease_managerGetRoutingSessions() 678 mManager.getSystemRoutingSession(mPackageName).getSelectedRoutes().get(0)); in testSetSystemRouteVolume() 875 assertThat(newSession.getSelectedRoutes()).contains(route.getId()); in testRouter2SetOnGetControllerHintsListener() 926 List<String> selectedRoutes = mManager.getSelectedRoutes(newSessionInfo).stream() in testGetSelectableRoutes_notReturnsSelectedRoutes()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/ |
D | InfoMediaManagerTest.java | 173 when(mRouterManager.getSelectedRoutes(any())) in stopScan_startFirst_callsUnregister() 189 when(sessionInfo.getSelectedRoutes()).thenReturn(selectedRoutes); in onRouteAdded_getAvailableRoutes_shouldAddMediaDevice() 219 when(mRouterManager.getSelectedRoutes(TEST_SYSTEM_ROUTING_SESSION)) in onSessionReleased_shouldUpdateConnectedDevice() 221 when(mRouterManager.getSelectedRoutes(TEST_REMOTE_ROUTING_SESSION)) in onSessionReleased_shouldUpdateConnectedDevice() 244 when(sessionInfo.getSelectedRoutes()).thenReturn(selectedRoutes); in onPreferredFeaturesChanged_samePackageName_shouldAddMediaDevice() 281 when(sessionInfo.getSelectedRoutes()).thenReturn(selectedRoutes); in onRoutesChanged_getAvailableRoutes_shouldAddMediaDevice() 314 when(sessionInfo.getSelectedRoutes()).thenReturn(selectedRoutes); in onRoutesChanged_getAvailableRoutes_shouldFilterDevice() 340 when(sessionInfo.getSelectedRoutes()).thenReturn(ImmutableList.of(TEST_ID)); in onRouteChanged_getAvailableRoutesWithPreferenceListExit_ordersRoutes() 367 when(sessionInfo.getSelectedRoutes()).thenReturn(ImmutableList.of(TEST_ID)); in onRouteChanged_preferenceListUpdateWithDifferentPkg_notOrdersRoutes() 407 when(mRouterManager.getSelectedRoutes(any())).thenReturn(selectedRoutes); in setUpSelectedRoutes() [all …]
|
/frameworks/base/media/java/android/media/ |
D | MediaRouter2Manager.java | 329 sessionInfo.getSelectedRoutes().contains(route.getId()); in getFilteredRoutes() 619 } else if (!sessionInfo.getSelectedRoutes().contains(requestedRoute.getId())) { in createSessionOnHandler() 622 + ", actualRoutes=" + sessionInfo.getSelectedRoutes() in createSessionOnHandler() 661 if (sessionInfo.getSelectedRoutes().contains(request.mTargetRoute.getId())) { in handleSessionsUpdatedOnHandler() 744 public List<MediaRoute2Info> getSelectedRoutes(@NonNull RoutingSessionInfo sessionInfo) { in getSelectedRoutes() method in MediaRouter2Manager 748 return sessionInfo.getSelectedRoutes().stream().map(mRoutes::get) in getSelectedRoutes() 761 List<String> selectedRouteIds = sessionInfo.getSelectedRoutes(); in getSelectableRoutes() 779 List<String> selectedRouteIds = sessionInfo.getSelectedRoutes(); in getDeselectableRoutes() 812 if (sessionInfo.getSelectedRoutes().contains(route.getId())) { in selectRoute() 851 if (!sessionInfo.getSelectedRoutes().contains(route.getId())) { in deselectRoute()
|
D | MediaRouter2.java | 1196 for (String selectedRoute : controller.getRoutingSessionInfo().getSelectedRoutes()) { in dispatchControllerUpdatedIfNeededOnHandler() 1843 public List<MediaRoute2Info> getSelectedRoutes() { in getSelectedRoutes() method in MediaRouter2.RoutingController 1846 selectedRouteIds = mSessionInfo.getSelectedRoutes(); in getSelectedRoutes() 1986 List<MediaRoute2Info> selectedRoutes = getSelectedRoutes(); in selectRoute() 2025 List<MediaRoute2Info> selectedRoutes = getSelectedRoutes(); in deselectRoute() 2072 && mSessionInfo.getSelectedRoutes().contains(route.getId()); in tryTransferWithinProvider() 2183 getSelectedRoutes().stream() in toString() 2769 && sessionInfo.getSelectedRoutes().contains(route.getId()); in transfer() 2967 if (sessionInfo.getSelectedRoutes().contains(route.getId())) { in selectRoute() 3002 if (!sessionInfo.getSelectedRoutes().contains(route.getId())) { in deselectRoute() [all …]
|
D | RoutingSessionInfo.java | 302 public List<String> getSelectedRoutes() { in getSelectedRoutes() method in RoutingSessionInfo 514 .append(String.join(",", getSelectedRoutes())) in toString()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/ |
D | RouterInfoMediaManager.java | 178 List<String> selectedRouteIds = controller.getRoutingSessionInfo().getSelectedRoutes(); in getSelectableRoutes() 197 protected List<MediaRoute2Info> getSelectedRoutes(@NonNull RoutingSessionInfo info) { in getSelectedRoutes() method in RouterInfoMediaManager 202 return controller.getSelectedRoutes(); in getSelectedRoutes()
|
D | ManagerInfoMediaManager.java | 126 protected List<MediaRoute2Info> getSelectedRoutes(@NonNull RoutingSessionInfo info) { in getSelectedRoutes() method in ManagerInfoMediaManager 127 return mRouterManager.getSelectedRoutes(info); in getSelectedRoutes()
|
D | InfoMediaManager.java | 258 protected abstract List<MediaRoute2Info> getSelectedRoutes(@NonNull RoutingSessionInfo info); in getSelectedRoutes() method in InfoMediaManager 483 if (!info.getSelectedRoutes().contains(device.mRouteInfo.getId())) { in removeDeviceFromPlayMedia() 545 for (MediaRoute2Info route : getSelectedRoutes(info)) { in getSelectedMediaDevices() 638 List<MediaRoute2Info> selectedRoutes = getSelectedRoutes(activeSession); in getAvailableRoutes() 745 if (activeSession.getSelectedRoutes().contains(route.getId())) { in addMediaDevice()
|
D | NoOpInfoMediaManager.java | 123 protected List<MediaRoute2Info> getSelectedRoutes(@NonNull RoutingSessionInfo info) { in getSelectedRoutes() method in NoOpInfoMediaManager
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/domain/pipeline/ |
D | MediaDeviceManager.kt | 220 val selectedRoutes = routingSession?.let { mr2manager.get().getSelectedRoutes(it) } in <lambda>() 449 val selectedRoutes = routingSession?.let { mr2manager.get().getSelectedRoutes(it) } in <lambda>()
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | SystemMediaRoute2Provider.java | 561 List<String> selectedRoutes = sessionInfo.getSelectedRoutes(); in containsSelectedRouteWithId()
|
D | MediaRoute2ProviderServiceProxy.java | 510 newSessionInfo.getSelectedRoutes()); in createSessionWithPopulatedTransferInitiationDataLocked()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/domain/pipeline/ |
D | MediaDeviceManagerTest.kt | 562 whenever(mr2.getSelectedRoutes(any())).thenReturn(listOf(selectedRoute)) in mr2ReturnsSystemRouteWithNullName_isPhone_usePhoneName() 581 whenever(mr2.getSelectedRoutes(any())).thenReturn(listOf(selectedRoute)) in mr2ReturnsSystemRouteWithNullName_useSelectedRouteName()
|
/frameworks/base/core/api/ |
D | current.txt | 24632 method @NonNull public java.util.List<android.media.MediaRoute2Info> getSelectedRoutes(); 25052 method @NonNull public java.util.List<java.lang.String> getSelectedRoutes();
|