/frameworks/support/mediarouter/src/androidTest/java/androidx/mediarouter/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...] |
/external/tensorflow/tensorflow/contrib/tensor_forest/hybrid/python/kernel_tests/ |
routing_function_op_test.py | 48 routes = route_tensor.eval() 52 self.assertAlmostEquals(1.0, routes[0, 0]) 54 self.assertAlmostEquals(0.26894142, routes[0, 1]) 56 self.assertAlmostEquals(0.73105858, routes[0, 2])
|
k_feature_routing_function_op_test.py | 76 routes = route_tensor.eval() 77 print(routes) 81 self.assertAlmostEquals(1.0, routes[0, 0]) 83 self.assertAlmostEquals(0.26894142, routes[0, 1]) 85 self.assertAlmostEquals(0.73105858, routes[0, 2])
|
/frameworks/av/packages/MediaComponents/src/com/android/support/mediarouter/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...] |
/frameworks/support/mediarouter/src/main/java/androidx/mediarouter/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...] |
/external/scapy/scapy/ |
route.py | 36 self.routes = read_routes() 40 for net, msk, gw, iface, addr, metric in self.routes: 77 self.routes.append(self.make_route(*args,**kargs)) 85 i=self.routes.index(route) 86 del(self.routes[i]) 98 for i, route in enumerate(self.routes): 106 self.routes[i] = (the_net,the_msk,gw,iface,the_addr,metric) 108 self.routes[i] = (net,msk,gw,iface,the_addr,metric) 116 for rt in self.routes: 123 self.routes=new_route [all...] |
route6.py | 41 self.routes = [] 44 # TODO : At the moment, resync will drop existing Teredo routes 47 self.routes = read_routes6() 48 if self.routes == []: 54 for net, msk, gw, iface, cset, metric in self.routes: 92 self.routes.append(self.make_route(*args, **kargs)) 105 l = [x for x in self.routes if in6_ptop(x[0]) == dst and x[1] == plen] 108 l = [x for x in self.routes if in6_ptop(x[2]) == gw] 114 i=self.routes.index(l[0]) 116 del(self.routes[i] [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/mediarouter/src/main/java/androidx/mediarouter/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...] |
/external/autotest/client/cros/ |
routing.py | 9 information about all routes; IPv4Route, which describes 93 routes = [] 101 routes.append(IPv4Route(interface, destination, gateway, flags, mask)) 103 return routes 128 routes = [] 136 routes.append(IPv6Route(interface, destination, gateway, flags, prefix)) 138 return routes 147 self.routes = parseIPv4Routes(routelist_v4) 153 self.routes += parseIPv6Routes(routelist_v6) 156 return (rr for rr in self.routes if rr.isUsable() [all...] |
/external/tensorflow/tensorflow/contrib/tensor_forest/hybrid/core/ops/ |
routing_gradient_op.cc | 49 .Input("routes: float") 71 routes: The routes computed by routing_function_op. 113 const auto routes = routing_tensor.tensor<float, 2>(); variable 123 out(i, j) = routes(i, j); 133 out(i, j) = (right_prob * routes(i, left_child) + 134 left_prob * routes(i, right_child));
|
k_feature_gradient_op.cc | 44 .Input("routes: float") 64 routes: The routes computed by routing_function_op. 140 const auto routes = routing_tensor.tensor<float, 2>(); variable 159 routes_grad(i, j) = routes(i, j); 170 routes_grad(i, j) = (right_prob * routes(i, left_child) + 171 left_prob * routes(i, right_child));
|
/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;
|
/frameworks/av/packages/MediaComponents/src/com/android/support/mediarouter/app/ |
MediaRouteChooserDialog.java | 111 * Gets the media route selector for filtering the routes that the user can select. 121 * Sets the media route selector for filtering the routes that the user can select. 144 * Called to filter the set of routes that should be included in the list. 146 * The default implementation iterates over all routes in the provided list and 150 * @param routes The list of routes to filter in-place, never null. 152 public void onFilterRoutes(@NonNull List<MediaRouter.RouteInfo> routes) { 153 for (int i = routes.size(); i-- > 0; ) { 154 if (!onFilterRoute(routes.get(i))) { 155 routes.remove(i) 236 ArrayList<MediaRouter.RouteInfo> routes = new ArrayList<>(mRouter.getRoutes()); local [all...] |
/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/scapy/scapy/arch/ |
unix.py | 25 ## Routes stuff ## 54 routes = [] 104 routes.append((dest,netmask, gw, netif, ifaddr, metric)) 113 routes.append((dest, netmask, gw, guessed_netif, ifaddr, metric)) 122 # On Solaris, netstat does not provide output interfaces for some routes 128 for rtdst,rtmask,_,rtif,rtaddr in routes[:]: 137 routes.append((dest,netmask, gw, gw_if, gw_if_addr, metric)) 141 return routes 223 """Return a list of IPv6 routes than can be used by Scapy.""" 225 # Call netstat to retrieve IPv6 routes [all...] |
/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");
|
/external/scapy/scapy/arch/windows/ |
__init__.py | 329 warning("Scapy did not detect powershell and cscript ! Routes, interfaces and much more won't work !", onlyOnce=True) 794 routes = [] 805 routes.append((atol(line[0]), atol(line[1]), "0.0.0.0", iface, 813 routes.append((dst, mask, gw, iface, iface.ip, metric)) 814 return routes 817 routes=[] 823 routes.append((atol(line[0]), atol(line[1]), line[2], iface, ip, int(line[4]))) 826 return routes 829 routes = [] 831 return routes [all...] |
/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/base/tests/net/java/android/net/ip/ |
IpClientTest.java | 242 LinkProperties want = linkproperties(links(addresses), routes(prefixes)); 256 notProvisionedCase(links(), routes(), dns(), null), 257 notProvisionedCase(links(), routes(), dns(), empty), 260 provisionedCase(links("192.0.2.12/24"), routes(), dns(), empty), 265 routes(), dns(), empty), 268 routes("fe80::/64", "fd2c:4e57:8e3c::/64"), dns("fd00:1234:5678::1000"), empty), 271 routes("::/0"), 277 routes("fe80::/64", "fd2c:4e57:8e3c::/64"), 415 static LinkProperties linkproperties(Set<LinkAddress> addresses, Set<RouteInfo> routes) { 418 for (RouteInfo route : routes) { 437 static Set<RouteInfo> routes(String... routes) { method in class:IpClientTest [all...] |
/frameworks/base/services/net/java/android/net/ip/ |
IpReachabilityMonitor.java | 248 private static boolean isOnLink(List<RouteInfo> routes, InetAddress ip) { 249 for (RouteInfo route : routes) { 268 final List<RouteInfo> routes = mLinkProperties.getRoutes(); 269 for (RouteInfo route : routes) { 272 if (isOnLink(routes, gw)) { 279 if (isOnLink(routes, dns)) {
|
/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:
|