/frameworks/support/v7/mediarouter/tests/src/android/support/v7/media/ |
H A D | MediaRouteProviderTest.java | 60 List<MediaRouteDescriptor> routes = descriptor.getRoutes(); 61 assertEquals(2, routes.size()); 62 assertEquals(FAKE_MEDIA_ROUTE_ID_1, routes.get(0).getId()); 63 assertEquals(FAKE_MEDIA_ROUTE_NAME_1, routes.get(0).getName()); 64 assertEquals(FAKE_MEDIA_ROUTE_ID_2, routes.get(1).getId()); 65 assertEquals(FAKE_MEDIA_ROUTE_NAME_2, routes.get(1).getName()); 75 routes = descriptor.getRoutes(); 76 assertEquals(4, routes.size()); 77 assertEquals(FAKE_MEDIA_ROUTE_ID_1, routes.get(0).getId()); 78 assertEquals(FAKE_MEDIA_ROUTE_NAME_1, routes [all...] |
/frameworks/support/v7/mediarouter/src/android/support/v7/media/ |
H A D | MediaRouteProviderDescriptor.java | 27 * Describes the state of a media route provider and the routes that it publishes. 33 private static final String KEY_ROUTES = "routes"; 38 private MediaRouteProviderDescriptor(Bundle bundle, List<MediaRouteDescriptor> routes) { argument 40 mRoutes = routes; 44 * Gets the list of all routes that this provider has published. 67 * Returns true if the route provider descriptor and all of the routes that 71 * valid then it is not necessary to call {@link #isValid} on each of its routes. 90 result.append("routes=").append( 165 * Adds a list of routes. 167 public Builder addRoutes(Collection<MediaRouteDescriptor> routes) { argument 183 setRoutes(Collection<MediaRouteDescriptor> routes) argument [all...] |
H A D | RegisteredMediaRouteProvider.java | 209 // This means that one of this provider's routes is selected. 253 List<MediaRouteDescriptor> routes = descriptor.getRoutes(); 254 final int count = routes.size(); 256 final MediaRouteDescriptor route = routes.get(i);
|
H A D | MediaRouter.java | 75 * can publish new media routes to the media router. 134 * Flag for {@link #addCallback}: Actively scan for routes while this callback 138 * routes. Certain routes, such as wifi display routes, may not be discoverable 169 * When this flag is specified, the media router will try to discover routes. 170 * Although route discovery is intended to be efficient, checking for new routes may 174 * option of connecting to new routes. 267 * Gets information about the {@link MediaRouter.RouteInfo routes} currently known to 439 * This method returns true if there are any available routes tha [all...] |
/frameworks/base/media/java/android/media/ |
H A D | MediaRouterClientState.java | 26 * a particular client and the routes that are available to it. 33 * A list of all known routes. 35 public final ArrayList<RouteInfo> routes; field in class:MediaRouterClientState 38 routes = new ArrayList<RouteInfo>(); 42 routes = src.createTypedArrayList(RouteInfo.CREATOR); 46 final int count = routes.size(); 48 final RouteInfo route = routes.get(i); 63 dest.writeTypedList(routes); 68 return "MediaRouterClientState{ routes=" + routes [all...] |
/frameworks/support/v7/mediarouter/src/android/support/v7/app/ |
H A D | MediaRouteChooserDialog.java | 106 * Gets the media route selector for filtering the routes that the user can select. 116 * Sets the media route selector for filtering the routes that the user can select. 139 * Called to filter the set of routes that should be included in the list. 141 * The default implementation iterates over all routes in the provided list and 145 * @param routes The list of routes to filter in-place, never null. 147 public void onFilterRoutes(@NonNull List<MediaRouter.RouteInfo> routes) { argument 148 for (int i = routes.size(); i-- > 0; ) { 149 if (!onFilterRoute(routes.get(i))) { 150 routes 242 updateRoutes(List<MediaRouter.RouteInfo> routes) argument 257 RouteAdapter(Context context, List<MediaRouter.RouteInfo> routes) argument [all...] |
H A D | MediaRouteControllerDialog.java | 753 List<MediaRouter.RouteInfo> routes = getGroup() == null ? null : getGroup().getRoutes(); 754 if (routes == null) { 757 } else if (MediaRouteDialogHelper.listUnorderedEquals(mGroupMemberRoutes, routes)) { 767 MediaRouteDialogHelper.getItemsAdded(mGroupMemberRoutes, routes); 769 routes); 821 // Animate visible items from previous positions to current positions except routes added 822 // just before. Added routes will remain hidden until translate animation finishes.
|
/frameworks/base/core/java/android/net/ |
H A D | StaticIpConfiguration.java | 37 * expressive. For example, it supports multiple IP addresses, multiple routes, 77 * Returns the network routes specified by this object. Will typically include a 84 List<RouteInfo> routes = new ArrayList<RouteInfo>(3); 87 routes.add(connectedRoute); 89 routes.add(RouteInfo.makeHostRoute(gateway, iface)); 93 routes.add(new RouteInfo((IpPrefix) null, gateway, iface)); 95 return routes;
|
H A D | LinkProperties.java | 506 * Make sure this LinkProperties instance contains routes that cover the local subnet 517 * Returns all the routes on this link and all the links stacked above it. 521 List<RouteInfo> routes = new ArrayList<>(); 522 routes.addAll(mRoutes); 524 routes.addAll(stacked.getAllRoutes()); 526 return routes; 646 String routes = " Routes: ["; 647 for (RouteInfo route : mRoutes) routes += route.toString() + ","; 648 routes += "] "; 659 return "{" + ifaceName + linkAddresses + routes [all...] |
H A D | RouteInfo.java | 112 // - LinkProperties sets the interface on routes added to it, and modifies the 113 // interfaces of all the routes when its interface name changes. 116 // For now, we just rely on the code that sets routes to do things properly. 374 * Find the route from a Collection of routes that best matches a given address. 375 * May return null if no routes are applicable. 376 * @param routes a Collection of RouteInfos to chose from 382 public static RouteInfo selectBestRoute(Collection<RouteInfo> routes, InetAddress dest) { argument 383 if ((routes == null) || (dest == null)) return null; 387 for (RouteInfo route : routes) {
|
H A D | VpnService.java | 238 * destination is covered by VPN routes. Otherwise its outgoing packets 306 * After removing an address, if there are no addresses, routes or DNS servers of a particular 523 * routes are supported. 803 mConfig.routes = mRoutes;
|
/frameworks/native/cmds/ip-up-vpn/ |
H A D | ip-up-vpn.c | 49 * are interface, addresses, routes, DNS servers, and search domains and VPN 87 const char *routes = env("SPLIT_INCLUDE_CIDR"); local 120 fprintf(state, "%s\n", routes[0] ? routes : "0.0.0.0/0");
|
/frameworks/base/core/java/com/android/internal/net/ |
H A D | VpnConfig.java | 92 public List<RouteInfo> routes = new ArrayList<RouteInfo>(); field in class:VpnConfig 118 String[] routes = routesStr.trim().split(" "); 119 for (String route : routes) { 122 this.routes.add(info); 152 out.writeTypedList(routes); 177 in.readTypedList(config.routes, RouteInfo.CREATOR);
|
H A D | VpnProfile.java | 56 public String routes = ""; // 7 field in class:VpnProfile 81 routes = in.readString(); 102 out.writeString(routes); 136 profile.routes = values[7]; 161 builder.append('\0').append(routes);
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
H A D | HwModule.cpp | 166 void HwModule::setRoutes(const AudioRouteVector &routes) argument 168 mRoutes = routes; 179 const AudioRouteVector &routes = stream->getRoutes(); local 180 for (size_t j = 0; j < routes.size(); j++) { 181 sp<AudioPort> sink = routes[j]->getSink(); 186 DeviceVector sourceDevicesForRoute = getRouteSourceDevices(routes[j]); 202 const AudioRouteVector &routes = stream->getRoutes(); local 203 for (size_t j = 0; j < routes.size(); j++) { 204 sp<AudioPort> source = routes[j]->getSources().findByTagName(stream->getTagName()); 209 sp<DeviceDescriptor> sinkDevice = getRouteSinkDevice(routes[ [all...] |
H A D | Serializer.cpp | 338 const char *const RouteTraits::collectionTag = "routes"; 444 RouteTraits::Collection routes; local 445 deserializeCollection<RouteTraits>(doc, root, routes, module.get()); 446 module->setRoutes(routes);
|
/frameworks/base/tests/net/java/android/net/ip/ |
H A D | IpManagerTest.java | 188 LinkProperties want = linkproperties(links(addresses), routes(prefixes)); 202 notProvisionedCase(links(), routes(), dns(), null), 203 notProvisionedCase(links(), routes(), dns(), empty), 206 provisionedCase(links("192.0.2.12/24"), routes(), dns(), empty), 211 routes(), dns(), empty), 214 routes("fe80::/64", "fd2c:4e57:8e3c::/64"), dns("fd00:1234:5678::1000"), empty), 217 routes("::/0"), 223 routes("fe80::/64", "fd2c:4e57:8e3c::/64"), 361 static LinkProperties linkproperties(Set<LinkAddress> addresses, Set<RouteInfo> routes) { argument 364 for (RouteInfo route : routes) { 383 routes(String... routes) argument [all...] |
/frameworks/base/services/net/java/android/net/ip/ |
H A D | IpReachabilityMonitor.java | 256 private static boolean isOnLink(List<RouteInfo> routes, InetAddress ip) { argument 257 for (RouteInfo route : routes) { 284 final List<RouteInfo> routes = mLinkProperties.getRoutes(); 285 for (RouteInfo route : routes) { 288 if (isOnLink(routes, gw)) { 295 if (isOnLink(routes, nameserver)) {
|
H A D | IpManager.java | 456 // The prefix length of routes in directlyConnectedRoutes be within reasonable 470 * @return true if the given list of addressess and routes satisfies provisioning for this 472 * because addresses and routes seen by Netlink will contain additional fields like flags, 476 * If the given list of routes is null, only addresses are taken into considerations. 478 public boolean isProvisionedBy(List<LinkAddress> addresses, List<RouteInfo> routes) { argument 489 if (routes != null) { 491 if (!any(routes, (routeSeen) -> isDirectlyConnectedRoute(routeSeen, prefix))) { 1065 // - IPv6 routes 1106 // Add InitialConfiguration routes and dns server addresses once all addresses 1121 // TODO: also learn via netlink routes specifie [all...] |
/frameworks/base/core/java/android/os/ |
H A D | INetworkManagementService.aidl | 448 void addInterfaceToLocalNetwork(String iface, in List<RouteInfo> routes); 450 int removeRoutesFromLocalNetwork(in List<RouteInfo> routes);
|
/frameworks/base/telecomm/java/android/telecom/ |
H A D | PhoneAccount.java | 537 * Sets the audio routes supported by this {@link PhoneAccount}. 539 * @param routes bit mask of available routes. 543 public Builder setSupportedAudioRoutes(int routes) { argument 544 mSupportedAudioRoutes = routes; 674 * Determines if this {@code PhoneAccount} has routes specified by the passed in bit mask. 676 * @param route The routes to check. 677 * @return {@code true} if the phone account has the routes. 680 public boolean hasAudioRoutes(int routes) { argument 681 return (mSupportedAudioRoutes & routes) [all...] |
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/ |
H A D | HwModule.h | 65 void setRoutes(const AudioRouteVector &routes);
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
H A D | Vpn.java | 748 if (mConfig.routes != null) { 749 for (RouteInfo route : mConfig.routes) { 1633 config.addLegacyRoutes(profile.routes); 1952 // Set the routes if they are not set in the config. 1953 if (mConfig.routes == null || mConfig.routes.isEmpty()) { 1979 mConfig.routes.add(new RouteInfo(new IpPrefix(addr, 32), RTN_THROW)); 1981 mConfig.routes.add(new RouteInfo(new IpPrefix(addr, 128), RTN_THROW));
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | NetworkManagementService.java | 1294 List<RouteInfo> routes = new ArrayList<>(); 1297 routes.add(new RouteInfo(getInterfaceConfig(iface).getLinkAddress(), null, iface)); 1298 addInterfaceToLocalNetwork(iface, routes); 1393 // Don't touch link-local routes, as link-local addresses aren't routable, 1394 // kernel creates link-local routes on all interfaces automatically 2681 public void addInterfaceToLocalNetwork(String iface, List<RouteInfo> routes) { argument 2684 for (RouteInfo route : routes) { 2697 public int removeRoutesFromLocalNetwork(List<RouteInfo> routes) { argument 2700 for (RouteInfo route : routes) {
|
/frameworks/base/services/core/java/com/android/server/audio/ |
H A D | AudioService.java | 551 // Monitoring of audio routes. Protected by mCurAudioRoutes. 5029 AudioRoutesInfo routes; 5031 routes = new AudioRoutesInfo(mCurAudioRoutes); 5037 obs.dispatchAudioRoutesChanged(routes); 5200 // Remove A2DP routes as well 6131 AudioRoutesInfo routes = new AudioRoutesInfo(mCurAudioRoutes); 6133 return routes; 6489 pw.println("\nAudio routes:");
|