/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/ |
D | NetUtilsTest.java | 79 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/ |
D | MediaRouter2ManagerTest.java | 179 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/ |
D | InfoMediaManagerTest.java | 108 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/ |
D | MediaRouter2Manager.java | 295 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 …]
|
D | MediaRouterClientState.java | 35 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()
|
D | MediaRoute2ProviderInfo.java | 63 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()
|
D | IMediaRouter2Manager.aidl | 33 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
|
D | IMediaRouter2.aidl | 29 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
|
D | MediaRouter2.java | 847 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 …]
|
D | MediaRoute2ProviderService.java | 464 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/ |
D | VpnConfig.java | 95 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()
|
D | VpnProfile.java | 107 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/ |
D | NetdUtils.java | 162 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/ |
D | ip-up-vpn.c | 87 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/ |
D | NetUtils.java | 55 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/ |
D | BluetoothRouteProvider.java | 203 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
|
D | MediaRouter2ServiceImpl.java | 1632 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/ |
D | ShadowRouter2Manager.java | 91 public void setDeselectableRoutes(List<MediaRoute2Info> routes) { in setDeselectableRoutes() argument 92 mDeselectableRoutes = routes; in setDeselectableRoutes()
|
/frameworks/base/core/java/android/os/ |
D | INetworkManagementService.aidl | 307 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/ |
D | PhoneAccount.java | 730 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/ |
D | README | 8 remote display routes. Behavior can be controlled by modifying the
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/ |
D | InfoMediaManager.java | 550 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/ |
D | VpnIkev2Utils.java | 483 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/ |
D | VpnService.java | 966 mConfig.routes = mRoutes; in establish() 989 public List<RouteInfo> routes() { in routes() method in VpnService.Builder
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/ |
D | HwModule.h | 84 void setRoutes(const AudioRouteVector &routes);
|