Home
last modified time | relevance | path

Searched refs:routes (Results 1 – 25 of 47) sorted by relevance

12

/frameworks/base/media/tests/MediaRouter/src/com/android/mediaroutertest/
DMediaRouter2ManagerTest.java183 final List<MediaRoute2Info> routes = new ArrayList<>(); in testOnRoutesUpdated() local
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()
196 && checkRoutesMatch(mManager.getAllRoutes(), routes)) { in testOnRoutesUpdated()
200 mManager.getAllRoutes(), routes.subList(1, 2))) { in testOnRoutesUpdated()
203 && checkRoutesRemoved(mManager.getAllRoutes(), routes)) { in testOnRoutesUpdated()
209 mService.addRoutes(routes); in testOnRoutesUpdated()
214 new MediaRoute2Info.Builder(routes.get(1)) in testOnRoutesUpdated()
217 routes.set(1, newRoute2); in testOnRoutesUpdated()
218 mService.addRoute(routes.get(1)); in testOnRoutesUpdated()
[all …]
DStubMediaRoute2ProviderService.java159 public void addRoutes(@NonNull List<MediaRoute2Info> routes) { in addRoutes() argument
160 Objects.requireNonNull(routes, "Routes must not be null."); in addRoutes()
161 for (MediaRoute2Info route : routes) { in addRoutes()
178 public void removeRoutes(@NonNull List<String> routes) { in removeRoutes() argument
179 Objects.requireNonNull(routes, "Routes must not be null"); in removeRoutes()
181 for (String routeId : routes) { in removeRoutes()
/frameworks/base/media/java/android/media/
DMediaRouterClientState.java35 public final ArrayList<RouteInfo> routes; field in MediaRouterClientState
38 routes = new ArrayList<RouteInfo>(); in MediaRouterClientState()
42 routes = src.createTypedArrayList(RouteInfo.CREATOR); in MediaRouterClientState()
46 final int count = routes.size(); in getRoute()
48 final RouteInfo route = routes.get(i); in getRoute()
63 dest.writeTypedList(routes); in writeToParcel()
68 return "MediaRouterClientState{ routes=" + routes.toString() + " }"; in toString()
DMediaRoute2ProviderInfo.java63 ArrayMap<String, MediaRoute2Info> routes = src.createTypedArrayMap(MediaRoute2Info.CREATOR); in MediaRoute2ProviderInfo() local
64 mRoutes = (routes == null) ? ArrayMap.EMPTY : routes; in MediaRoute2ProviderInfo()
223 public Builder addRoutes(@NonNull Collection<MediaRoute2Info> routes) { in addRoutes() argument
224 Objects.requireNonNull(routes, "routes must not be null"); in addRoutes()
226 if (!routes.isEmpty()) { in addRoutes()
227 for (MediaRoute2Info route : routes) { in addRoutes()
DMediaRouter2Manager.java300 ArrayList<MediaRoute2Info> routes; in getSortedRoutes() local
302 routes = new ArrayList<>(mRoutes.values()); in getSortedRoutes()
305 routes.sort(Comparator.comparingInt( in getSortedRoutes()
307 return routes; in getSortedRoutes()
315 List<MediaRoute2Info> routes = new ArrayList<>(); in getFilteredRoutes() local
332 routes.add(route); in getFilteredRoutes()
353 routes.add(route); in getFilteredRoutes()
355 return routes; in getFilteredRoutes()
462 List<MediaRoute2Info> routes = new ArrayList<>(); in getAllRoutes() local
464 routes.addAll(mRoutes.values()); in getAllRoutes()
[all …]
DMediaRouter2.java1403 List<MediaRoute2Info> routes, List<String> packageOrder) { in getSortedRoutes() argument
1405 return routes; in getSortedRoutes()
1413 ArrayList<MediaRoute2Info> sortedRoutes = new ArrayList<>(routes); in getSortedRoutes()
1422 List<MediaRoute2Info> routes) { in filterRoutesWithCompositePreferenceLocked() argument
1428 getSortedRoutes(routes, mDiscoveryPreference.getDeduplicationPackageOrder())) { in filterRoutesWithCompositePreferenceLocked()
1460 private void notifyRoutesAdded(List<MediaRoute2Info> routes) { in notifyRoutesAdded() argument
1463 mImpl.filterRoutesWithIndividualPreference(routes, record.mPreference); in notifyRoutesAdded()
1470 private void notifyRoutesRemoved(List<MediaRoute2Info> routes) { in notifyRoutesRemoved() argument
1473 mImpl.filterRoutesWithIndividualPreference(routes, record.mPreference); in notifyRoutesRemoved()
1481 private void notifyRoutesChanged(List<MediaRoute2Info> routes) { in notifyRoutesChanged() argument
[all …]
DIMediaRouter2.aidl30 void notifyRoutesUpdated(in List<MediaRoute2Info> routes); in notifyRoutesUpdated() argument
DIMediaRouter2Manager.aidl36 void notifyRoutesUpdated(in List<MediaRoute2Info> routes); in notifyRoutesUpdated() argument
DMediaRoute2ProviderService.java476 public final void notifyRoutes(@NonNull Collection<MediaRoute2Info> routes) { in notifyRoutes() argument
477 Objects.requireNonNull(routes, "routes must not be null"); in notifyRoutes()
478 List<MediaRoute2Info> sanitizedRoutes = new ArrayList<>(routes.size()); in notifyRoutes()
480 for (MediaRoute2Info route : routes) { in notifyRoutes()
/frameworks/base/core/java/com/android/internal/net/
DVpnConfig.java95 public List<RouteInfo> routes = new ArrayList<>(); field in VpnConfig
123 routes = copyOf(other.routes); in VpnConfig()
151 String[] routes = routesStr.trim().split(" "); in addLegacyRoutes() local
152 for (String route : routes) { in addLegacyRoutes()
155 this.routes.add(info); in addLegacyRoutes()
183 out.writeTypedList(routes); in writeToParcel()
212 in.readTypedList(config.routes, RouteInfo.CREATOR);
247 .append(", routes=").append(toString(routes)) in toString()
DVpnProfile.java107 public String routes = ""; // 7 field in VpnProfile
199 routes = in.readString(); in VpnProfile()
255 out.writeString(routes); in writeToParcel()
365 profile.routes = values[7]; in decode()
425 builder.append(VALUE_DELIMITER).append(routes); in encode()
558 key, type, server, username, password, dnsServers, searchDomains, routes, mppe, in hashCode()
582 && Objects.equals(routes, other.routes) in equals()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
DInfoMediaManagerTest.java197 final List<MediaRoute2Info> routes = new ArrayList<>(); in onRouteAdded_getAvailableRoutes_shouldAddMediaDevice() local
198 routes.add(info); in onRouteAdded_getAvailableRoutes_shouldAddMediaDevice()
199 mShadowRouter2Manager.setTransferableRoutes(routes); in onRouteAdded_getAvailableRoutes_shouldAddMediaDevice()
209 assertThat(mInfoMediaManager.mMediaDevices).hasSize(routes.size()); in onRouteAdded_getAvailableRoutes_shouldAddMediaDevice()
252 final List<MediaRoute2Info> routes = new ArrayList<>(); in onPreferredFeaturesChanged_samePackageName_shouldAddMediaDevice() local
253 routes.add(info); in onPreferredFeaturesChanged_samePackageName_shouldAddMediaDevice()
254 mShadowRouter2Manager.setTransferableRoutes(routes); in onPreferredFeaturesChanged_samePackageName_shouldAddMediaDevice()
264 assertThat(mInfoMediaManager.mMediaDevices).hasSize(routes.size()); in onPreferredFeaturesChanged_samePackageName_shouldAddMediaDevice()
289 final List<MediaRoute2Info> routes = new ArrayList<>(); in onRoutesChanged_getAvailableRoutes_shouldAddMediaDevice() local
290 routes.add(info); in onRoutesChanged_getAvailableRoutes_shouldAddMediaDevice()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/testutils/com/android/settingslib/testutils/shadow/
DShadowRouter2Manager.java93 public void setDeselectableRoutes(List<MediaRoute2Info> routes) { in setDeselectableRoutes() argument
94 mDeselectableRoutes = routes; in setDeselectableRoutes()
/frameworks/base/services/core/java/com/android/server/media/
DLegacyBluetoothRouteController.java209 List<MediaRoute2Info> routes = getAllBluetoothRoutes(); in getTransferableRoutes() local
211 routes.remove(btRoute.mRoute); in getTransferableRoutes()
213 return routes; in getTransferableRoutes()
219 List<MediaRoute2Info> routes = new ArrayList<>(); in getAllBluetoothRoutes() local
224 routes.add(selectedRoute); in getAllBluetoothRoutes()
233 routes.add(btRoute.mRoute); in getAllBluetoothRoutes()
236 return routes; in getAllBluetoothRoutes()
DBluetoothDeviceRoutesManager.java199 List<MediaRoute2Info> routes = new ArrayList<>(); in getAvailableBluetoothRoutes() local
206 routes.add(btRoute.mRoute); in getAvailableBluetoothRoutes()
210 return routes; in getAvailableBluetoothRoutes()
/frameworks/av/media/libaudioclient/aidl/android/media/
DAudioHwModule.aidl30 AudioRoute[] routes;
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioPolicyConfig.cpp139 AudioRouteVector routes; in aidl2legacy_AudioHwModule_HwModule() local
140 for (const auto& aidlRoute : aidl.routes) { in aidl2legacy_AudioHwModule_HwModule()
142 routes.add(legacy); in aidl2legacy_AudioHwModule_HwModule()
144 (*legacy)->setRoutes(routes); in aidl2legacy_AudioHwModule_HwModule()
/frameworks/base/telecomm/java/android/telecom/
DPhoneAccount.java798 public Builder setSupportedAudioRoutes(int routes) { in setSupportedAudioRoutes() argument
799 mSupportedAudioRoutes = routes; in setSupportedAudioRoutes()
992 public boolean hasAudioRoutes(int routes) { in hasAudioRoutes() argument
993 return (mSupportedAudioRoutes & routes) == routes; in hasAudioRoutes()
/frameworks/base/services/tests/VpnTests/java/com/android/internal/net/
DVpnProfileTest.java70 assertEquals("", p.routes); in testDefaults()
104 p.routes = "0.0.0.0/0"; in getSampleIkev2Profile()
141 p.routes = "0.0.0.0/0"; in getSampleIkev2ProfileWithIkeTunConnParams()
/frameworks/av/media/libaudiohal/tests/
DCoreAudioHalAidl_test.cpp93 std::vector<AudioRoute> routes; member
202 c.routes.push_back(createRoute({micInDevice, micInBackDevice}, primaryInMix)); in getTestConfiguration()
203 c.routes.push_back(createRoute({btOutMix}, btOutDevice)); in getTestConfiguration()
263 for (auto& r : mConfig.routes) { in connectExternalDevice()
273 mConfig.routes.insert(mConfig.routes.end(), newRoutes.begin(), newRoutes.end()); in connectExternalDevice()
282 for (auto it = mConfig.routes.begin(); it != mConfig.routes.end();) { in disconnectExternalDevice()
284 it = mConfig.routes.erase(it); in disconnectExternalDevice()
321 std::vector<::aidl::android::hardware::audio::core::AudioRoute>* routes) override { in getAudioRoutes() argument
322 *routes = mConfig.routes; in getAudioRoutes()
327 std::vector<::aidl::android::hardware::audio::core::AudioRoute>* routes) override { in getAudioRoutesForAudioPort() argument
[all …]
/frameworks/base/tests/RemoteDisplayProvider/
DREADME8 remote display routes. Behavior can be controlled by modifying the
/frameworks/base/media/java/android/media/flags/
Dmedia_better_together.aconfig76 description: "Make MediaRoute2Info provide information about routes suitability for transfer."
141 …description: "Allows holders of the MEDIA_CONTENT_CONTROL permission to scan for routes while not …
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpnIkev2Utils.java483 final HashSet<RouteInfo> routes = new HashSet<>(); in getRoutesFromTrafficSelectors() local
488 routes.add(new RouteInfo(prefix, null /*gateway*/, null /*iface*/, in getRoutesFromTrafficSelectors()
493 return routes; in getRoutesFromTrafficSelectors()
/frameworks/base/core/java/android/net/
DVpnService.java973 mConfig.routes = mRoutes; in establish()
996 public List<RouteInfo> routes() { in routes() method in VpnService.Builder
/frameworks/av/media/libaudiohal/include/media/audiohal/
DDeviceHalInterface.h46 virtual status_t getAudioRoutes(std::vector<media::AudioRoute> *routes) = 0;

12