Home
last modified time | relevance | path

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

12

/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/
DNetUtilsTest.java79 final List<RouteInfo> routes = new ArrayList<>(); in testSelectBestRoute() local
83 route = NetUtils.selectBestRoute(routes, null); in testSelectBestRoute()
86 route = NetUtils.selectBestRoute(routes, V4_DEST); in testSelectBestRoute()
89 routes.add(V4_EXPECTED); in testSelectBestRoute()
91 routes.add(new RouteInfo(new IpPrefix("75.208.0.0/16"), V4_GATEWAY, "wlan0")); in testSelectBestRoute()
92 routes.add(new RouteInfo(new IpPrefix("75.208.7.0/24"), V4_GATEWAY, "wlan0")); in testSelectBestRoute()
94 routes.add(V6_EXPECTED); in testSelectBestRoute()
96 routes.add(new RouteInfo(new IpPrefix("2001:db8::/32"), V6_GATEWAY, "wlan0")); in testSelectBestRoute()
97 routes.add(new RouteInfo(new IpPrefix("2001:db8:beef::/64"), V6_GATEWAY, "wlan0")); in testSelectBestRoute()
100 route = NetUtils.selectBestRoute(routes, V4_DEST); in testSelectBestRoute()
[all …]
/frameworks/base/media/tests/MediaRouter/src/com/android/mediaroutertest/
DMediaRouter2ManagerTest.java179 Map<String, MediaRoute2Info> routes = waitAndGetRoutesWithManager(FEATURES_ALL); in testOnRoutesRemovedAndAdded() local
186 public void onRoutesRemoved(List<MediaRoute2Info> routes) { in testOnRoutesRemovedAndAdded()
187 assertTrue(routes.size() > 0); in testOnRoutesRemovedAndAdded()
188 for (MediaRoute2Info route : routes) { in testOnRoutesRemovedAndAdded()
196 public void onRoutesAdded(List<MediaRoute2Info> routes) { in testOnRoutesRemovedAndAdded()
197 assertTrue(routes.size() > 0); in testOnRoutesRemovedAndAdded()
201 for (MediaRoute2Info route : routes) { in testOnRoutesRemovedAndAdded()
210 MediaRoute2Info routeToRemove = routes.get(ROUTE_ID2); in testOnRoutesRemovedAndAdded()
228 public void onRoutesAdded(List<MediaRoute2Info> routes) { in testGetRoutes_removedRoute_returnsCorrectRoutes()
236 public void onRoutesRemoved(List<MediaRoute2Info> routes) { in testGetRoutes_removedRoute_returnsCorrectRoutes()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
DInfoMediaManagerTest.java108 final List<MediaRoute2Info> routes = new ArrayList<>(); in onRouteAdded_getAvailableRoutes_shouldAddMediaDevice() local
109 routes.add(info); in onRouteAdded_getAvailableRoutes_shouldAddMediaDevice()
110 mShadowRouter2Manager.setTransferableRoutes(routes); in onRouteAdded_getAvailableRoutes_shouldAddMediaDevice()
115 mInfoMediaManager.mMediaRouterCallback.onRoutesAdded(routes); in onRouteAdded_getAvailableRoutes_shouldAddMediaDevice()
120 assertThat(mInfoMediaManager.mMediaDevices).hasSize(routes.size()); in onRouteAdded_getAvailableRoutes_shouldAddMediaDevice()
130 final List<MediaRoute2Info> routes = new ArrayList<>(); in onRouteAdded_buildAllRoutes_shouldAddMediaDevice() local
131 routes.add(info); in onRouteAdded_buildAllRoutes_shouldAddMediaDevice()
132 mShadowRouter2Manager.setAllRoutes(routes); in onRouteAdded_buildAllRoutes_shouldAddMediaDevice()
138 mInfoMediaManager.mMediaRouterCallback.onRoutesAdded(routes); in onRouteAdded_buildAllRoutes_shouldAddMediaDevice()
142 assertThat(mInfoMediaManager.mMediaDevices).hasSize(routes.size()); in onRouteAdded_buildAllRoutes_shouldAddMediaDevice()
[all …]
/frameworks/base/media/java/android/media/
DMediaRouter2Manager.java295 ArrayList<MediaRoute2Info> routes; in getSortedRoutes() local
297 routes = new ArrayList<>(mRoutes.values()); in getSortedRoutes()
300 routes.sort(Comparator.comparingInt( in getSortedRoutes()
302 return routes; in getSortedRoutes()
310 List<MediaRoute2Info> routes = new ArrayList<>(); in getFilteredRoutes() local
321 routes.add(route); in getFilteredRoutes()
342 routes.add(route); in getFilteredRoutes()
344 return routes; in getFilteredRoutes()
443 List<MediaRoute2Info> routes = new ArrayList<>(); in getAllRoutes() local
445 routes.addAll(mRoutes.values()); in getAllRoutes()
[all …]
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()
DIMediaRouter2Manager.aidl33 void notifyRoutesAdded(in List<MediaRoute2Info> routes); in notifyRoutesAdded() argument
34 void notifyRoutesRemoved(in List<MediaRoute2Info> routes); in notifyRoutesRemoved() argument
35 void notifyRoutesChanged(in List<MediaRoute2Info> routes); in notifyRoutesChanged() argument
DIMediaRouter2.aidl29 void notifyRoutesAdded(in List<MediaRoute2Info> routes); in notifyRoutesAdded() argument
30 void notifyRoutesRemoved(in List<MediaRoute2Info> routes); in notifyRoutesRemoved() argument
31 void notifyRoutesChanged(in List<MediaRoute2Info> routes); in notifyRoutesChanged() argument
DMediaRouter2.java847 void addRoutesOnHandler(List<MediaRoute2Info> routes) { in addRoutesOnHandler() argument
849 for (MediaRoute2Info route : routes) { in addRoutesOnHandler()
856 void removeRoutesOnHandler(List<MediaRoute2Info> routes) { in removeRoutesOnHandler() argument
858 for (MediaRoute2Info route : routes) { in removeRoutesOnHandler()
865 void changeRoutesOnHandler(List<MediaRoute2Info> routes) { in changeRoutesOnHandler() argument
868 for (MediaRoute2Info route : routes) { in changeRoutesOnHandler()
1077 List<MediaRoute2Info> routes, List<String> packageOrder) { in getSortedRoutes() argument
1079 return routes; in getSortedRoutes()
1087 ArrayList<MediaRoute2Info> sortedRoutes = new ArrayList<>(routes); in getSortedRoutes()
1096 List<MediaRoute2Info> routes) { in filterRoutesWithCompositePreferenceLocked() argument
[all …]
DMediaRoute2ProviderService.java464 public final void notifyRoutes(@NonNull Collection<MediaRoute2Info> routes) { in notifyRoutes() argument
465 Objects.requireNonNull(routes, "routes must not be null"); in notifyRoutes()
467 .addRoutes(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
187 routes = in.readString(); in VpnProfile()
241 out.writeString(routes); in writeToParcel()
337 profile.routes = values[7]; in decode()
397 builder.append(VALUE_DELIMITER).append(routes); in encode()
528 key, type, server, username, password, dnsServers, searchDomains, routes, mppe, in hashCode()
551 && Objects.equals(routes, other.routes) in equals()
/frameworks/libs/net/client-libs/netd/com/android/net/module/util/
DNetdUtils.java162 List<RouteInfo> routes = new ArrayList<>(); in tetherInterface() local
163 routes.add(new RouteInfo(dest, null, iface, RTN_UNICAST)); in tetherInterface()
164 addRoutesToLocalNetwork(netd, iface, routes); in tetherInterface()
205 final List<RouteInfo> routes) { in addRoutesToLocalNetwork() argument
207 for (RouteInfo route : routes) { in addRoutesToLocalNetwork()
219 public static int removeRoutesFromLocalNetwork(final INetd netd, final List<RouteInfo> routes) { in removeRoutesFromLocalNetwork() argument
222 for (RouteInfo route : routes) { in removeRoutesFromLocalNetwork()
/frameworks/native/cmds/ip-up-vpn/
Dip-up-vpn.c87 const char *routes = env("SPLIT_INCLUDE_CIDR"); in main() local
123 fprintf(state, "%s\n", routes[0] ? routes : "0.0.0.0/0"); in main()
/frameworks/libs/net/common/framework/com/android/net/module/util/
DNetUtils.java55 public static RouteInfo selectBestRoute(@Nullable Collection<RouteInfo> routes, in selectBestRoute() argument
57 if ((routes == null) || (dest == null)) return null; in selectBestRoute()
62 for (RouteInfo route : routes) { in selectBestRoute()
/frameworks/base/services/core/java/com/android/server/media/
DBluetoothRouteProvider.java203 List<MediaRoute2Info> routes = getAllBluetoothRoutes(); in getTransferableRoutes() local
205 routes.remove(btRoute.route); in getTransferableRoutes()
207 return routes; in getTransferableRoutes()
212 List<MediaRoute2Info> routes = new ArrayList<>(); in getAllBluetoothRoutes() local
217 routes.add(selectedRoute); in getAllBluetoothRoutes()
226 routes.add(btRoute.route); in getAllBluetoothRoutes()
229 return routes; in getAllBluetoothRoutes()
425 void onBluetoothRoutesUpdated(@NonNull List<MediaRoute2Info> routes); in onBluetoothRoutesUpdated() argument
DMediaRouter2ServiceImpl.java1632 String source, String providerId, ArrayList<MediaRoute2Info> routes) { in toLoggingMessage() argument
1634 routes.stream() in toLoggingMessage()
2125 @NonNull List<MediaRoute2Info> routes) { in notifyRoutesAddedToRouters() argument
2128 router.notifyRoutesAdded(routes); in notifyRoutesAddedToRouters()
2136 @NonNull List<MediaRoute2Info> routes) { in notifyRoutesRemovedToRouters() argument
2139 router.notifyRoutesRemoved(routes); in notifyRoutesRemovedToRouters()
2147 @NonNull List<MediaRoute2Info> routes) { in notifyRoutesChangedToRouters() argument
2150 router.notifyRoutesChanged(routes); in notifyRoutesChangedToRouters()
2169 List<MediaRoute2Info> routes = new ArrayList<>(); in notifyRoutesToManager() local
2171 routes.addAll(providerInfo.getRoutes()); in notifyRoutesToManager()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/testutils/com/android/settingslib/testutils/shadow/
DShadowRouter2Manager.java91 public void setDeselectableRoutes(List<MediaRoute2Info> routes) { in setDeselectableRoutes() argument
92 mDeselectableRoutes = routes; in setDeselectableRoutes()
/frameworks/base/core/java/android/os/
DINetworkManagementService.aidl307 void addInterfaceToLocalNetwork(String iface, in List<RouteInfo> routes); in addInterfaceToLocalNetwork() argument
309 int removeRoutesFromLocalNetwork(in List<RouteInfo> routes); in removeRoutesFromLocalNetwork() argument
/frameworks/base/telecomm/java/android/telecom/
DPhoneAccount.java730 public Builder setSupportedAudioRoutes(int routes) { in setSupportedAudioRoutes() argument
731 mSupportedAudioRoutes = routes; in setSupportedAudioRoutes()
867 public boolean hasAudioRoutes(int routes) { in hasAudioRoutes() argument
868 return (mSupportedAudioRoutes & routes) == routes; in hasAudioRoutes()
/frameworks/base/tests/RemoteDisplayProvider/
DREADME8 remote display routes. Behavior can be controlled by modifying the
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DInfoMediaManager.java550 public void onRoutesAdded(List<MediaRoute2Info> routes) { in onRoutesAdded() argument
562 public void onRoutesChanged(List<MediaRoute2Info> routes) { in onRoutesChanged() argument
567 public void onRoutesRemoved(List<MediaRoute2Info> routes) { in onRoutesRemoved() argument
/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.java966 mConfig.routes = mRoutes; in establish()
989 public List<RouteInfo> routes() { in routes() method in VpnService.Builder
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DHwModule.h84 void setRoutes(const AudioRouteVector &routes);

12