/frameworks/base/media/tests/MediaRouter/src/com/android/mediaroutertest/ |
D | StubMediaRoute2ProviderService.java | 169 public void removeRoute(@NonNull String routeId) { in removeRoute() argument 170 removeRoutes(Collections.singletonList(routeId)); in removeRoute() 181 for (String routeId : routes) { in removeRoutes() 182 MediaRoute2Info route = mRoutes.get(routeId); in removeRoutes() 184 mRoutes.remove(routeId); in removeRoutes() 218 public void onSetRouteVolume(long requestId, String routeId, int volume) { in onSetRouteVolume() argument 221 proxy.onSetRouteVolume(routeId, volume, requestId); in onSetRouteVolume() 225 MediaRoute2Info route = mRoutes.get(routeId); in onSetRouteVolume() 230 mRoutes.put(routeId, new MediaRoute2Info.Builder(route) in onSetRouteVolume() 250 public void onCreateSession(long requestId, String packageName, String routeId, in onCreateSession() argument [all …]
|
D | MediaRouter2ManagerTest.java | 797 public void onSetRouteVolume(String routeId, int volume, long requestId) { in testOnRequestFailedCalledForProperRequestId() 1010 void awaitOnRouteChangedManager(Runnable task, String routeId, in awaitOnRouteChangedManager() argument 1018 createRouteMap(mManager.getAllRoutes()).get(routeId); in awaitOnRouteChangedManager()
|
/frameworks/base/media/java/android/media/ |
D | MediaRoute2ProviderService.java | 197 public abstract void onSetRouteVolume(long requestId, @NonNull String routeId, int volume); in onSetRouteVolume() argument 399 @NonNull String routeId, @Nullable Bundle sessionHints); in onCreateSession() argument 428 @NonNull String routeId); in onSelectRoute() argument 440 @NonNull String routeId); in onDeselectRoute() argument 452 @NonNull String routeId); in onTransferToRoute() argument 610 private boolean checkRouteIdIsValid(String routeId, String description) { in checkRouteIdIsValid() argument 611 if (TextUtils.isEmpty(routeId)) { in checkRouteIdIsValid() 615 if (mProviderInfo == null || mProviderInfo.getRoute(routeId) == null) { in checkRouteIdIsValid() 617 + "routeId=" + routeId); in checkRouteIdIsValid() 643 public void setRouteVolume(long requestId, String routeId, int volume) { in setRouteVolume() argument [all …]
|
D | IMediaRoute2ProviderService.aidl | 32 void setRouteVolume(long requestId, String routeId, int volume); in setRouteVolume() argument 34 void requestCreateSession(long requestId, String packageName, String routeId, in requestCreateSession() argument 36 void selectRoute(long requestId, String sessionId, String routeId); in selectRoute() argument 37 void deselectRoute(long requestId, String sessionId, String routeId); in deselectRoute() argument 38 void transferToRoute(long requestId, String sessionId, String routeId); in transferToRoute() argument
|
D | RoutingSessionInfo.java | 555 for (String routeId : routeIds) { in convertToUniqueRouteIds() 556 result.add(MediaRouter2Utils.toUniqueId(mProviderId, routeId)); in convertToUniqueRouteIds() 717 public Builder addSelectedRoute(@NonNull String routeId) { in addSelectedRoute() argument 718 if (TextUtils.isEmpty(routeId)) { in addSelectedRoute() 721 mSelectedRoutes.add(routeId); in addSelectedRoute() 729 public Builder removeSelectedRoute(@NonNull String routeId) { in removeSelectedRoute() argument 730 if (TextUtils.isEmpty(routeId)) { in removeSelectedRoute() 733 mSelectedRoutes.remove(routeId); in removeSelectedRoute() 750 public Builder addSelectableRoute(@NonNull String routeId) { in addSelectableRoute() argument 751 if (TextUtils.isEmpty(routeId)) { in addSelectableRoute() [all …]
|
D | IMediaRouterService.aidl | 45 void setSelectedRoute(IMediaRouterClient client, String routeId, boolean explicit); in setSelectedRoute() argument 46 void requestSetVolume(IMediaRouterClient client, String routeId, int volume); in requestSetVolume() argument 47 void requestUpdateVolume(IMediaRouterClient client, String routeId, int direction); in requestUpdateVolume() argument
|
D | IMediaRouterClient.aidl | 25 void onGroupRouteSelected(String routeId); in onGroupRouteSelected() argument
|
D | RouteListingPreference.java | 541 public Builder(@NonNull String routeId) { in Builder() argument 542 Preconditions.checkArgument(!TextUtils.isEmpty(routeId)); in Builder() 543 mRouteId = routeId; in Builder()
|
D | MediaRoute2ProviderInfo.java | 101 public MediaRoute2Info getRoute(@NonNull String routeId) { in getRoute() argument 102 return mRoutes.get(Objects.requireNonNull(routeId, "routeId must not be null")); in getRoute()
|
D | MediaRouter2Manager.java | 765 .filter(routeId -> !selectedRouteIds.contains(routeId)) in getSelectableRoutes() 783 .filter(routeId -> selectedRouteIds.contains(routeId)) in getDeselectableRoutes()
|
D | MediaRouter.java | 415 void handleGroupRouteSelected(String routeId) { in handleGroupRouteSelected() argument 421 if (TextUtils.equals(route.mGlobalRouteId, routeId)) { in handleGroupRouteSelected()
|
D | MediaRouter2.java | 2221 @NonNull List<MediaRoute2Info> routeList, @NonNull String routeId) { in containsRouteInfoWithId() argument 2223 if (TextUtils.equals(routeId, info.getId())) { in containsRouteInfoWithId()
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | AudioManagerRouteController.java | 190 public void transferTo(@Nullable String routeId) { in transferTo() argument 191 if (routeId == null) { in transferTo() 201 mediaRoute2InfoHolder = mRouteIdToAvailableDeviceRoutes.get(routeId); in transferTo() 204 Slog.w(TAG, "transferTo: Ignoring transfer request to unknown route id : " + routeId); in transferTo() 217 "Unexpected exception while transferring to route id: " + routeId, in transferTo() 416 String routeId = null; in createMediaRoute2InfoFromAudioDeviceInfo() local 424 routeId = mBluetoothRouteController.getRouteIdForBluetoothAddress(address); in createMediaRoute2InfoFromAudioDeviceInfo() 427 return createMediaRoute2Info(routeId, audioDeviceInfo.getType(), deviceName, address); in createMediaRoute2InfoFromAudioDeviceInfo() 444 @Nullable String routeId, in createMediaRoute2Info() 459 if (routeId == null) { in createMediaRoute2Info() [all …]
|
D | MediaRouterService.java | 334 public void setSelectedRoute(IMediaRouterClient client, String routeId, boolean explicit) { in setSelectedRoute() argument 338 setSelectedRouteLocked(client, routeId, explicit); in setSelectedRoute() 347 public void requestSetVolume(IMediaRouterClient client, String routeId, int volume) { in requestSetVolume() argument 348 Objects.requireNonNull(routeId, "routeId must not be null"); in requestSetVolume() 353 requestSetVolumeLocked(client, routeId, volume); in requestSetVolume() 362 public void requestUpdateVolume(IMediaRouterClient client, String routeId, int direction) { in requestUpdateVolume() argument 363 Objects.requireNonNull(routeId, "routeId must not be null"); in requestUpdateVolume() 368 requestUpdateVolumeLocked(client, routeId, direction); in requestUpdateVolume() 866 String routeId, boolean explicit) { in setSelectedRouteLocked() argument 874 clientRecord.mSelectedRouteId = routeId; in setSelectedRouteLocked() [all …]
|
D | LegacyBluetoothRouteController.java | 144 public void transferTo(@Nullable String routeId) { in transferTo() argument 145 if (routeId == null) { in transferTo() 150 BluetoothRouteInfo btRouteInfo = findBluetoothRouteWithRouteId(routeId); in transferTo() 153 Slog.w(TAG, "transferTo: Unknown route. ID=" + routeId); in transferTo() 162 private BluetoothRouteInfo findBluetoothRouteWithRouteId(String routeId) { in findBluetoothRouteWithRouteId() argument 163 if (routeId == null) { in findBluetoothRouteWithRouteId() 167 if (TextUtils.equals(btRouteInfo.mRoute.getId(), routeId)) { in findBluetoothRouteWithRouteId() 286 String routeId = device.getAddress(); in createBluetoothRoute() local 303 routeId = HEARING_AID_ROUTE_ID_PREFIX + mHearingAidProfile.getHiSyncId(device); in createBluetoothRoute() 309 routeId = LE_AUDIO_ROUTE_ID_PREFIX + mLeAudioProfile.getGroupId(device); in createBluetoothRoute() [all …]
|
D | MediaRoute2ProviderServiceProxy.java | 169 public void selectRoute(long requestId, String sessionId, String routeId) { in selectRoute() argument 171 mActiveConnection.selectRoute(requestId, sessionId, routeId); in selectRoute() 176 public void deselectRoute(long requestId, String sessionId, String routeId) { in deselectRoute() argument 178 mActiveConnection.deselectRoute(requestId, sessionId, routeId); in deselectRoute() 720 public void requestCreateSession(long requestId, String packageName, String routeId, in requestCreateSession() argument 723 mService.requestCreateSession(requestId, packageName, routeId, sessionHints); in requestCreateSession() 745 public void selectRoute(long requestId, String sessionId, String routeId) { in selectRoute() argument 747 mService.selectRoute(requestId, sessionId, routeId); in selectRoute() 753 public void deselectRoute(long requestId, String sessionId, String routeId) { in deselectRoute() argument 755 mService.deselectRoute(requestId, sessionId, routeId); in deselectRoute() [all …]
|
D | BluetoothRouteController.java | 76 void transferTo(@Nullable String routeId); in transferTo() argument 142 public void transferTo(String routeId) { in transferTo() argument
|
D | SystemMediaRoute2Provider.java | 223 public void selectRoute(long requestId, String sessionId, String routeId) { in selectRoute() argument 228 public void deselectRoute(long requestId, String sessionId, String routeId) { in deselectRoute() argument 415 String routeId = route.getId(); in updateSessionInfosIfNeeded() local 416 if (!mSelectedRouteId.equals(routeId)) { in updateSessionInfosIfNeeded() 417 transferableRoutes.add(routeId); in updateSessionInfosIfNeeded()
|
D | MediaRoute2Provider.java | 74 public abstract void selectRoute(long requestId, String sessionId, String routeId); in selectRoute() argument 75 public abstract void deselectRoute(long requestId, String sessionId, String routeId); in deselectRoute() argument
|
D | DeviceRouteController.java | 130 void transferTo(@Nullable String routeId); in transferTo() argument
|
D | BluetoothDeviceRoutesManager.java | 239 String routeId = getRouteIdForType(device, type); in createBluetoothRoute() local 245 new MediaRoute2Info.Builder(routeId, deviceName) in createBluetoothRoute()
|
D | LegacyDeviceRouteController.java | 130 public synchronized void transferTo(@Nullable String routeId) { in transferTo() argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/dialog/ |
D | MediaOutputController.java | 427 void tryToLaunchInAppRoutingIntent(String routeId, View view) { in tryToLaunchInAppRoutingIntent() argument 434 launchIntent.putExtra(EXTRA_ROUTE_ID, routeId); in tryToLaunchInAppRoutingIntent()
|