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

1 2 3 4

  /system/connectivity/shill/test-scripts/
routing.py 22 information about all routes, and Route, which describes
100 self.routes = []
108 self.routes.append(
112 for rr in self.routes:
121 for rr in self.routes:
127 for rr in self.routes:
136 for rr in self.routes:
143 routes = NetworkRoutes() variable in class:NetworkRoutes
144 if routes == None:
147 for each_route in routes.routes
161 routes = NetworkRoutes([ variable in class:NetworkRoutes
    [all...]
  /external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/vpc/
test_routetable.py 93 self.assertEquals(len(api_response[0].routes), 1)
94 self.assertEquals(api_response[0].routes[0].destination_cidr_block, '10.0.0.0/22')
95 self.assertEquals(api_response[0].routes[0].gateway_id, 'local')
96 self.assertEquals(api_response[0].routes[0].state, 'active')
103 self.assertEquals(len(api_response[1].routes), 4)
104 self.assertEquals(api_response[1].routes[0].destination_cidr_block, '10.0.0.0/22')
105 self.assertEquals(api_response[1].routes[0].gateway_id, 'local')
106 self.assertEquals(api_response[1].routes[0].state, 'active')
107 self.assertEquals(api_response[1].routes[1].destination_cidr_block, '0.0.0.0/0')
108 self.assertEquals(api_response[1].routes[1].gateway_id, 'igw-eaad4883'
    [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...]
  /external/chromium-trace/catapult/third_party/webapp2/webapp2_extras/
routes.py 3 webapp2_extras.routes
20 """Base class for routes with nested routes."""
22 routes = None variable in class:MultiRoute
27 def __init__(self, routes):
28 self.routes = routes
33 for route in self.routes:
68 For example, to restrict routes to a subdomain of the appspot domain::
84 def __init__(self, template, routes)
    [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
39 * Globally selected routes override any other route selections that applications
45 routes = new ArrayList<RouteInfo>();
49 routes = src.createTypedArrayList(RouteInfo.CREATOR);
54 final int count = routes.size();
56 final RouteInfo route = routes.get(i);
71 dest.writeTypedList(routes);
78 + globallySelectedRouteId + ", routes=" + routes.toString() + " }"
    [all...]
  /frameworks/support/v7/mediarouter/src/android/support/v7/app/
MediaRouteChooserDialog.java 102 * Gets the media route selector for filtering the routes that the user can select.
112 * Sets the media route selector for filtering the routes that the user can select.
135 * Called to filter the set of routes that should be included in the list.
137 * The default implementation iterates over all routes in the provided list and
141 * @param routes The list of routes to filter in-place, never null.
143 public void onFilterRoutes(@NonNull List<MediaRouter.RouteInfo> routes) {
144 for (int i = routes.size(); i-- > 0; ) {
145 if (!onFilterRoute(routes.get(i))) {
146 routes.remove(i)
215 ArrayList<MediaRouter.RouteInfo> routes = new ArrayList<>(mRouter.getRoutes()); local
    [all...]
  /frameworks/support/v7/mediarouter/src/android/support/v7/media/
MediaRouteProviderDescriptor.java 28 * Describes the state of a media route provider and the routes that it publishes.
34 static final String KEY_ROUTES = "routes";
40 List<MediaRouteDescriptor> routes) {
42 mRoutes = routes;
46 * Gets the list of all routes that this provider has published.
69 * Returns true if the route provider descriptor and all of the routes that
73 * valid then it is not necessary to call {@link #isValid} on each of its routes.
92 result.append("routes=").append(
167 * Adds a list of routes.
169 public Builder addRoutes(Collection<MediaRouteDescriptor> routes) {
    [all...]
  /system/connectivity/shill/vpn/
openvpn_driver_unittest.cc 499 OpenVPNDriver::RouteOptions routes; local
500 EXPECT_EQ(nullptr, OpenVPNDriver::GetRouteOptionEntry("foo", "bar", &routes));
501 EXPECT_TRUE(routes.empty());
502 EXPECT_EQ(nullptr, OpenVPNDriver::GetRouteOptionEntry("foo", "foo", &routes));
503 EXPECT_TRUE(routes.empty());
505 OpenVPNDriver::GetRouteOptionEntry("foo", "fooz", &routes));
506 EXPECT_TRUE(routes.empty());
508 OpenVPNDriver::GetRouteOptionEntry("foo", "foo12", &routes);
509 EXPECT_EQ(1, routes.size());
510 EXPECT_EQ(route, &routes[12])
517 OpenVPNDriver::RouteOptions routes; local
537 OpenVPNDriver::RouteOptions routes; local
    [all...]
third_party_vpn_driver_unittest.cc 293 EXPECT_EQ(driver_->ip_properties_.routes.size(), 2);
294 EXPECT_EQ(driver_->ip_properties_.routes[0].host, "123.211.61.29");
295 EXPECT_EQ(driver_->ip_properties_.routes[1].host, "123.211.42.29");
296 EXPECT_EQ(driver_->ip_properties_.routes[0].netmask, "254.0.0.0");
297 EXPECT_EQ(driver_->ip_properties_.routes[1].netmask, "255.255.128.0");
298 EXPECT_EQ(driver_->ip_properties_.routes[0].gateway, parameters["address"]);
299 EXPECT_EQ(driver_->ip_properties_.routes[1].gateway, parameters["address"]);
openvpn_driver.cc 410 RouteOptions routes; local
475 value, &routes);
481 SetRoutes(routes, properties);
535 const string& prefix, const string& key, RouteOptions* routes) {
541 return&(*routes)[order];
546 const string& key, const string& value, RouteOptions* routes) {
547 IPConfig::Route* route = GetRouteOptionEntry("network_", key, routes);
552 route = GetRouteOptionEntry("netmask_", key, routes);
557 route = GetRouteOptionEntry("gateway_", key, routes);
566 void OpenVPNDriver::SetRoutes(const RouteOptions& routes,
    [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 507 * Returns all the routes on this link and all the links stacked above it.
511 List<RouteInfo> routes = new ArrayList(); local
512 routes.addAll(mRoutes);
514 routes.addAll(stacked.getAllRoutes());
516 return routes;
636 String routes = " Routes: ["; local
637 for (RouteInfo route : mRoutes) routes += route.toString() + ",";
638 routes += "] ";
649 return "{" + ifaceName + linkAddresses + routes + dns + domainName + mt
    [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
  /external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/vpc/
routetable.py 35 self.routes = []
49 self.routes = ResultSet([('item', Route)])
50 return self.routes
  /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 57 public String routes = ""; // 7 field in class:VpnProfile
82 routes = in.readString();
103 out.writeString(routes);
137 profile.routes = values[7];
162 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...]
  /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;
  /external/chromium-trace/catapult/catapult_build/
dev_server.py 189 routes = [
196 routes += pd.GetRoutes(args)
197 routes += [
208 routes.append(Route('%s__file_list__' % mapped_path,
214 routes.append(Route('%s<rest_of_path:.+>' % mapped_path,
224 routes.append(
228 for route in routes:
  /frameworks/base/services/net/java/android/net/ip/
IpReachabilityMonitor.java 290 private static boolean isOnLink(List<RouteInfo> routes, InetAddress ip) {
291 for (RouteInfo route : routes) {
318 final List<RouteInfo> routes = mLinkProperties.getRoutes(); local
319 for (RouteInfo route : routes) {
322 if (isOnLink(routes, gw)) {
329 if (isOnLink(routes, nameserver)) {
  /external/dhcpcd-6.8.2/
ipv4.h 64 struct rt_head routes; member in struct:ipv4_state
  /system/connectivity/shill/dhcp/
dhcpv4_config.cc 285 vector<IPConfig::Route> routes; local
287 // Classless routes are a space-delimited array of
324 routes.push_back(route);
330 if (!routes.empty()) {
331 properties->routes.swap(routes);

Completed in 591 milliseconds

1 2 3 4