HomeSort by relevance Sort by last modified time
    Searched refs:routes (Results 1 - 25 of 84) sorted by null

1 2 3 4

  /frameworks/support/v7/mediarouter/tests/src/android/support/v7/media/
MediaRouteProviderTest.java 60 List<MediaRouteDescriptor> routes = descriptor.getRoutes(); local
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.get(0).getName())
135 List<MediaRouteDescriptor> routes = resultDescriptor.getRoutes(); local
    [all...]
  /frameworks/support/v7/mediarouter/src/android/support/v7/media/
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) {
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) {
    [all...]
  /hardware/libhardware/modules/audio_remote_submix/
audio_hw.cpp 171 route_config_t routes[MAX_ROUTES]; member in struct:android::submix_audio_device
376 rsxadev->routes[route_idx].input = in;
377 rsxadev->routes[route_idx].config.input_channel_mask = config->channel_mask;
379 rsxadev->routes[route_idx].config.input_sample_rate = config->sample_rate;
383 if (!rsxadev->routes[route_idx].output) {
384 rsxadev->routes[route_idx].config.output_sample_rate = 48000;
385 rsxadev->routes[route_idx].config.output_channel_mask = AUDIO_CHANNEL_OUT_STEREO;
391 rsxadev->routes[route_idx].output = out;
392 rsxadev->routes[route_idx].config.output_channel_mask = config->channel_mask;
394 rsxadev->routes[route_idx].config.output_sample_rate = config->sample_rate
    [all...]
  /frameworks/base/media/java/android/media/
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.toString() + " }"
    [all...]
  /frameworks/support/v7/mediarouter/src/android/support/v7/app/
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) {
148 for (int i = routes.size(); i-- > 0; ) {
149 if (!onFilterRoute(routes.get(i))) {
150 routes.remove(i)
229 ArrayList<MediaRouter.RouteInfo> routes = new ArrayList<>(mRouter.getRoutes()); local
    [all...]
  /frameworks/base/core/java/android/net/
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); local
87 routes.add(connectedRoute);
89 routes.add(RouteInfo.makeHostRoute(gateway, iface));
93 routes.add(new RouteInfo((IpPrefix) null, gateway, iface));
95 return routes;
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<>(); local
522 routes.addAll(mRoutes);
524 routes.addAll(stacked.getAllRoutes());
526 return routes;
646 String routes = " Routes: ["; local
647 for (RouteInfo route : mRoutes) routes += route.toString() + ",";
648 routes += "] "
    [all...]
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) {
383 if ((routes == null) || (dest == null)) return null;
387 for (RouteInfo route : routes) {
  /external/nist-sip/java/gov/nist/javax/sip/stack/
DefaultRouter.java 173 RouteList routes = sipRequest.getRouteHeaders(); local
192 if (routes != null) {
196 Route route = (Route) routes.getFirst();
264 RouteList routes = req.getRouteHeaders(); local
265 Route first = (Route) routes.getFirst();
267 routes.removeFirst();
274 routes.add(route); // as last one
  /frameworks/native/cmds/ip-up-vpn/
ip-up-vpn.c 49 * are interface, addresses, routes, DNS servers, and search domains and VPN
64 * does this, but others might not. Routes, DNS servers, and search domains
87 const char *routes = env("SPLIT_INCLUDE_CIDR"); local
120 fprintf(state, "%s\n", routes[0] ? routes : "0.0.0.0/0");
  /cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
MyVpnService.java 70 String routes = intent.getStringExtra(packageName + ".routes"); local
71 if (routes != null) {
72 String[] routeArray = routes.split(",");
122 + " routes=" + routes
  /frameworks/base/core/java/com/android/internal/net/
VpnConfig.java 92 public List<RouteInfo> routes = new ArrayList<RouteInfo>(); field in class:VpnConfig
118 String[] routes = routesStr.trim().split(" "); local
119 for (String route : routes) {
122 this.routes.add(info);
152 out.writeTypedList(routes);
177 in.readTypedList(config.routes, RouteInfo.CREATOR);
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/
HwModule.cpp 166 void HwModule::setRoutes(const AudioRouteVector &routes)
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[j])
    [all...]
  /frameworks/base/tests/net/java/android/net/ip/
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) {
364 for (RouteInfo route : routes) {
383 static Set<RouteInfo> routes(String... routes) { method in class:IpManagerTest
    [all...]
  /packages/apps/Settings/tests/app/src/com/android/settings/vpn2/
VpnProfileParser.java 51 boolean routes;
115 if (tagName.equalsIgnoreCase("routes")) {
116 routes = true;
197 if (routes) {
198 profile.routes = strValue;
199 routes = false;
  /tools/test/connectivity/acts/framework/acts/controllers/utils_lib/commands/
route.py 72 """Get the routes in the ip routing table.
75 net_interface: string, If given, only retrive routes that have
181 """Clears all routes.
184 net_interface: The network interface to clear routes on.
185 If not given then all routes will be removed on all network
188 routes = self.get_routes(net_interface)
190 for a, d in routes:
  /frameworks/base/services/net/java/android/net/ip/
IpReachabilityMonitor.java 256 private static boolean isOnLink(List<RouteInfo> routes, InetAddress ip) {
257 for (RouteInfo route : routes) {
284 final List<RouteInfo> routes = mLinkProperties.getRoutes(); local
285 for (RouteInfo route : routes) {
288 if (isOnLink(routes, gw)) {
295 if (isOnLink(routes, nameserver)) {
  /packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
CallAudioRouteStateMachineTest.java 103 public RoutingTestParameters setCallSupportedRoutes(int routes) {
104 callSupportedRoutes = routes;
    [all...]
  /external/dhcpcd-6.8.2/
ipv4.h 64 struct rt_head routes; member in struct:ipv4_state
  /frameworks/base/core/java/android/os/
INetworkManagementService.aidl 448 void addInterfaceToLocalNetwork(String iface, in List<RouteInfo> routes);
450 int removeRoutesFromLocalNetwork(in List<RouteInfo> routes);
  /frameworks/base/telecomm/java/android/telecom/
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) {
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) {
681 return (mSupportedAudioRoutes & routes) == routes
    [all...]
  /prebuilts/go/darwin-x86/src/net/
interface_test.go 180 ipv4, ipv6 int // # of active connected unicast, anycast or multicast routes
189 // interface address prefixes and connected routes.
264 // Test the existence of connected unicast routes for IPv4.
266 return fmt.Errorf("num IPv4 unicast routes = 0; want >0; summary: %+v, %+v", ifStats, uniStats)
268 // Test the existence of connected unicast routes for IPv6.
272 return fmt.Errorf("num IPv6 unicast routes = 0; want >0; summary: %+v, %+v", ifStats, uniStats)
292 // routes, ::1/128 and other, are installed.
  /prebuilts/go/linux-x86/src/net/
interface_test.go 180 ipv4, ipv6 int // # of active connected unicast, anycast or multicast routes
189 // interface address prefixes and connected routes.
264 // Test the existence of connected unicast routes for IPv4.
266 return fmt.Errorf("num IPv4 unicast routes = 0; want >0; summary: %+v, %+v", ifStats, uniStats)
268 // Test the existence of connected unicast routes for IPv6.
272 return fmt.Errorf("num IPv6 unicast routes = 0; want >0; summary: %+v, %+v", ifStats, uniStats)
292 // routes, ::1/128 and other, are installed.
  /kernel/tests/net/test/
multinetwork_test.py 651 def AssertExpirationInRange(self, routes, lifetime, epsilon):
652 self.assertTrue(routes)
654 # Assert that at least one route in routes has the expected lifetime
655 for route in routes:
712 # Expect no routes
713 routes = self.FindRoutesWithDestination(PREFIX)
714 self.assertFalse(routes)
727 # Expect no routes
728 routes = self.FindRoutesWithDestination(PREFIX)
729 self.assertFalse(routes)
    [all...]

Completed in 1119 milliseconds

1 2 3 4