Home
last modified time | relevance | path

Searched refs:RouteInfo (Results 1 – 25 of 70) sorted by relevance

123

/frameworks/base/tests/net/common/java/android/net/
DRouteInfoTest.java19 import static android.net.RouteInfo.RTN_UNREACHABLE;
42 RouteInfo r; in testConstructor()
46 r = new RouteInfo((IpPrefix) null, null, "rmnet0"); in testConstructor()
51 r = new RouteInfo((IpPrefix) null, Address("2001:db8::1"), null); in testConstructor()
56 r = new RouteInfo((IpPrefix) null, Address("192.0.2.1"), "wlan0"); in testConstructor()
62 r = new RouteInfo(Prefix("2001:db8:beef:cafe::/48"), null, "lo"); in testConstructor()
67 r = new RouteInfo(Prefix("192.0.2.5/24"), null); in testConstructor()
75 private final RouteInfo mRouteInfo; in testMatches()
78 mRouteInfo = new RouteInfo(destination, gateway, iface); in testMatches()
124 RouteInfo r1 = new RouteInfo(Prefix("2001:db8:ace::/48"), Address("2001:db8::1"), "wlan0"); in testEquals()
[all …]
DLinkPropertiesTest.java117 lp.addRoute(new RouteInfo(GATEWAY1)); in makeTestObject()
118 lp.addRoute(new RouteInfo(GATEWAY2)); in makeTestObject()
191 source.addRoute(new RouteInfo(GATEWAY1)); in testEqualsSameOrder()
192 source.addRoute(new RouteInfo(GATEWAY2)); in testEqualsSameOrder()
204 target.addRoute(new RouteInfo(GATEWAY1)); in testEqualsSameOrder()
205 target.addRoute(new RouteInfo(GATEWAY2)); in testEqualsSameOrder()
218 target.addRoute(new RouteInfo(GATEWAY1)); in testEqualsSameOrder()
219 target.addRoute(new RouteInfo(GATEWAY2)); in testEqualsSameOrder()
231 target.addRoute(new RouteInfo(GATEWAY1)); in testEqualsSameOrder()
232 target.addRoute(new RouteInfo(GATEWAY2)); in testEqualsSameOrder()
[all …]
DStaticIpConfigurationTest.java154 final RouteInfo connectedRoute = new RouteInfo(new IpPrefix(ADDRSTR), null, IFACE); in testToLinkProperties()
161 RouteInfo defaultRoute = new RouteInfo(new IpPrefix("0.0.0.0/0"), GATEWAY, IFACE); in testToLinkProperties()
167 defaultRoute = new RouteInfo(new IpPrefix("0.0.0.0/0"), OFFLINKGATEWAY, IFACE); in testToLinkProperties()
170 RouteInfo gatewayRoute = new RouteInfo(new IpPrefix("192.0.2.129/32"), null, IFACE); in testToLinkProperties()
267 final List<RouteInfo> routeInfoList = s.getRoutes(IFACE); in testGetRoutes()
270 assertEquals(new RouteInfo(ADDR, (InetAddress) null, IFACE), routeInfoList.get(0)); in testGetRoutes()
271 assertEquals(new RouteInfo((IpPrefix) null, GATEWAY, IFACE), routeInfoList.get(1)); in testGetRoutes()
/frameworks/base/media/java/android/media/
DMediaRouterClientState.java35 public final ArrayList<RouteInfo> routes;
38 routes = new ArrayList<RouteInfo>(); in MediaRouterClientState()
42 routes = src.createTypedArrayList(RouteInfo.CREATOR); in MediaRouterClientState()
45 public RouteInfo getRoute(String id) { in getRoute()
48 final RouteInfo route = routes.get(i); in getRoute()
84 public static final class RouteInfo implements Parcelable { class in MediaRouterClientState
97 public @MediaRouter.RouteInfo.DeviceType int deviceType;
99 public RouteInfo(String id) { in RouteInfo() method in MediaRouterClientState.RouteInfo
102 statusCode = MediaRouter.RouteInfo.STATUS_NONE; in RouteInfo()
103 playbackType = MediaRouter.RouteInfo.PLAYBACK_TYPE_REMOTE; in RouteInfo()
[all …]
DMediaRouter.java83 final ArrayList<RouteInfo> mRoutes = new ArrayList<RouteInfo>();
90 RouteInfo mDefaultAudioVideo;
91 RouteInfo mBluetoothA2dpRoute;
93 RouteInfo mSelectedRoute;
145 mDefaultAudioVideo = new RouteInfo(mSystemCategory); in startMonitoringRoutes()
151 mDefaultAudioVideo.mVolumeHandling = RouteInfo.PLAYBACK_VOLUME_FIXED; in startMonitoringRoutes()
223 final RouteInfo info = new RouteInfo(mSystemCategory); in updateAudioRoutes()
228 info.mDeviceType = RouteInfo.DEVICE_TYPE_BLUETOOTH; in updateAudioRoutes()
364 final RouteInfo route = mRoutes.get(i); in updatePresentationDisplays()
373 RouteInfo selectedRoute = isBluetoothA2dpOn() in updateSelectedRouteForId()
[all …]
/frameworks/base/core/java/android/net/
DRouteInfo.java57 public final class RouteInfo implements Parcelable { class
133 public RouteInfo(@Nullable IpPrefix destination, @Nullable InetAddress gateway, in RouteInfo() method in RouteInfo
209 public RouteInfo(@Nullable IpPrefix destination, @Nullable InetAddress gateway, in RouteInfo() method in RouteInfo
218 public RouteInfo(@Nullable LinkAddress destination, @Nullable InetAddress gateway, in RouteInfo() method in RouteInfo
240 public RouteInfo(@Nullable IpPrefix destination, @Nullable InetAddress gateway) { in RouteInfo() method in RouteInfo
250 public RouteInfo(@Nullable LinkAddress destination, @Nullable InetAddress gateway) { in RouteInfo() method in RouteInfo
262 public RouteInfo(@NonNull InetAddress gateway) { in RouteInfo() method in RouteInfo
274 public RouteInfo(@NonNull IpPrefix destination) { in RouteInfo() method in RouteInfo
281 public RouteInfo(@NonNull LinkAddress destination) { in RouteInfo() method in RouteInfo
288 public RouteInfo(@NonNull IpPrefix destination, @RouteType int type) { in RouteInfo() method in RouteInfo
[all …]
DStaticIpConfiguration.java198 public @NonNull List<RouteInfo> getRoutes(@Nullable String iface) { in getRoutes()
199 List<RouteInfo> routes = new ArrayList<RouteInfo>(3); in getRoutes()
201 RouteInfo connectedRoute = new RouteInfo(ipAddress, null, iface); in getRoutes()
207 routes.add(RouteInfo.makeHostRoute(gateway, iface)); in getRoutes()
211 routes.add(new RouteInfo((IpPrefix) null, gateway, iface)); in getRoutes()
229 for (RouteInfo route : getRoutes(iface)) { in toLinkProperties()
DINetworkManagementEventObserver.aidl20 import android.net.RouteInfo;
106 void routeUpdated(in RouteInfo route); in routeUpdated()
111 void routeRemoved(in RouteInfo route); in routeRemoved()
DLinkProperties.java65 private ArrayList<RouteInfo> mRoutes = new ArrayList<>();
207 ArrayList<RouteInfo> newRoutes = new ArrayList<>(mRoutes.size()); in setInterfaceName()
208 for (RouteInfo route : mRoutes) { in setInterfaceName()
657 private RouteInfo routeWithInterface(RouteInfo route) { in routeWithInterface()
658 return new RouteInfo( in routeWithInterface()
674 public boolean addRoute(@NonNull RouteInfo route) { in addRoute()
700 public boolean removeRoute(@NonNull RouteInfo route) { in removeRoute()
709 public @NonNull List<RouteInfo> getRoutes() { in getRoutes()
720 addRoute(new RouteInfo(addr, null, mIfaceName)); in ensureDirectlyConnectedRoutes()
729 public @NonNull List<RouteInfo> getAllRoutes() { in getAllRoutes()
[all …]
/frameworks/base/core/java/com/android/internal/app/
DMediaRouteChooserDialog.java24 import android.media.MediaRouter.RouteInfo;
117 public boolean onFilterRoute(MediaRouter.RouteInfo route) { in onFilterRoute()
187 private final class RouteAdapter extends ArrayAdapter<MediaRouter.RouteInfo>
200 MediaRouter.RouteInfo route = mRouter.getRouteAt(i); in update()
225 MediaRouter.RouteInfo route = getItem(position); in getView()
243 MediaRouter.RouteInfo route = getItem(position); in onItemClick()
253 public void onRouteAdded(MediaRouter router, MediaRouter.RouteInfo info) { in onRouteAdded()
258 public void onRouteRemoved(MediaRouter router, MediaRouter.RouteInfo info) { in onRouteRemoved()
263 public void onRouteChanged(MediaRouter router, MediaRouter.RouteInfo info) { in onRouteChanged()
268 public void onRouteSelected(MediaRouter router, int type, RouteInfo info) { in onRouteSelected()
[all …]
DMediaRouteControllerDialog.java33 import android.media.MediaRouter.RouteInfo;
61 private final MediaRouter.RouteInfo mRoute;
88 public MediaRouter.RouteInfo getRoute() { in getRoute()
323 MediaRouter.RouteInfo.PLAYBACK_VOLUME_VARIABLE; in isVolumeControlAvailable()
328 public void onRouteUnselected(MediaRouter router, int type, RouteInfo info) { in onRouteUnselected()
333 public void onRouteChanged(MediaRouter router, MediaRouter.RouteInfo route) { in onRouteChanged()
338 public void onRouteVolumeChanged(MediaRouter router, MediaRouter.RouteInfo route) { in onRouteVolumeChanged()
345 public void onRouteGrouped(MediaRouter router, RouteInfo info, RouteGroup group, in onRouteGrouped()
351 public void onRouteUngrouped(MediaRouter router, RouteInfo info, RouteGroup group) { in onRouteUngrouped()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DCastControllerImpl.java26 import android.media.MediaRouter.RouteInfo;
61 private final ArrayMap<String, RouteInfo> mRoutes = new ArrayMap<>();
89 final RouteInfo route = mRoutes.valueAt(i); in dump()
157 for (RouteInfo route : mRoutes.values()) { in getCastDevices()
166 if (statusCode == RouteInfo.STATUS_CONNECTING) { in getCastDevices()
168 } else if (route.isSelected() || statusCode == RouteInfo.STATUS_CONNECTED) { in getCastDevices()
197 final RouteInfo route = (RouteInfo) device.tag; in startCasting()
263 final RouteInfo route = mMediaRouter.getRouteAt(i); in updateRemoteDisplays()
269 final RouteInfo selected = mMediaRouter.getSelectedRoute(ROUTE_TYPE_REMOTE_DISPLAY); in updateRemoteDisplays()
278 private void ensureTagExists(RouteInfo route) { in ensureTagExists()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
DInfoMediaManagerTest.java79 final MediaRouter.RouteInfo info = mock(MediaRouter.RouteInfo.class); in onRouteAdded_mediaDeviceNotExistInList_addMediaDevice()
93 final MediaRouter.RouteInfo info = mock(MediaRouter.RouteInfo.class); in onRouteAdded_mediaDeviceExistInList_doNothing()
109 final MediaRouter.RouteInfo info = mock(MediaRouter.RouteInfo.class); in onRouteRemoved_mediaDeviceExistInList_removeMediaDevice()
125 final MediaRouter.RouteInfo info = mock(MediaRouter.RouteInfo.class); in onRouteRemoved_mediaDeviceNotExistInList_doNothing()
/frameworks/base/core/java/android/os/
DINetworkManagementService.aidl25 import android.net.RouteInfo;
112 void addRoute(int netId, in RouteInfo route); in addRoute()
117 void removeRoute(int netId, in RouteInfo route); in removeRoute()
375 void addLegacyRouteForNetId(int netId, in RouteInfo routeInfo, int uid); in addLegacyRouteForNetId()
397 void addInterfaceToLocalNetwork(String iface, in List<RouteInfo> routes); in addInterfaceToLocalNetwork()
399 int removeRoutesFromLocalNetwork(in List<RouteInfo> routes); in removeRoutesFromLocalNetwork()
/frameworks/base/core/java/android/app/
DMediaRouteButton.java31 import android.media.MediaRouter.RouteInfo;
343 final MediaRouter.RouteInfo route = mRouter.getSelectedRoute(); in refreshRoute()
383 public void onRouteAdded(MediaRouter router, RouteInfo info) { in onRouteAdded()
388 public void onRouteRemoved(MediaRouter router, RouteInfo info) { in onRouteRemoved()
393 public void onRouteChanged(MediaRouter router, RouteInfo info) { in onRouteChanged()
398 public void onRouteSelected(MediaRouter router, int type, RouteInfo info) { in onRouteSelected()
403 public void onRouteUnselected(MediaRouter router, int type, RouteInfo info) { in onRouteUnselected()
408 public void onRouteGrouped(MediaRouter router, RouteInfo info, RouteGroup group, in onRouteGrouped()
414 public void onRouteUngrouped(MediaRouter router, RouteInfo info, RouteGroup group) { in onRouteUngrouped()
DMediaRouteActionProvider.java21 import android.media.MediaRouter.RouteInfo;
161 public void onRouteAdded(MediaRouter router, RouteInfo info) { in onRouteAdded()
166 public void onRouteRemoved(MediaRouter router, RouteInfo info) { in onRouteRemoved()
171 public void onRouteChanged(MediaRouter router, RouteInfo info) { in onRouteChanged()
/frameworks/base/core/java/com/android/server/net/
DBaseNetworkObserver.java22 import android.net.RouteInfo;
77 public void routeUpdated(RouteInfo route) { in routeUpdated()
82 public void routeRemoved(RouteInfo route) { in routeRemoved()
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/
DTetheringInterfaceUtils.java23 import android.net.RouteInfo;
85 final RouteInfo ri = (lp != null) in getInterfaceForDestination()
86 ? RouteInfo.selectBestRoute(lp.getAllRoutes(), dst) in getInterfaceForDestination()
DOffloadController.java32 import android.net.RouteInfo;
397 final List<RouteInfo> oldRoutes = in pushDownstreamState()
399 final List<RouteInfo> newRoutes = newLp.getRoutes(); in pushDownstreamState()
402 for (RouteInfo ri : oldRoutes) { in pushDownstreamState()
410 for (RouteInfo ri : newRoutes) { in pushDownstreamState()
430 for (RouteInfo route : lp.getRoutes()) { in removeDownstreamInterface()
469 for (RouteInfo ri : mUpstreamLinkProperties.getRoutes()) { in pushUpstreamParameters()
541 private static boolean shouldIgnoreDownstreamRoute(RouteInfo route) { in shouldIgnoreDownstreamRoute()
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/
DOffloadControllerTest.java52 import android.net.RouteInfo;
276 lp.addRoute(new RouteInfo(new IpPrefix("192.0.2.0/24"))); in testSetUpstreamLinkPropertiesWorking()
292 lp.addRoute(new RouteInfo(InetAddress.getByName(ipv4Gateway))); in testSetUpstreamLinkPropertiesWorking()
303 lp.addRoute(new RouteInfo(InetAddress.getByName(ipv6Gw1))); in testSetUpstreamLinkPropertiesWorking()
317 lp.addRoute(new RouteInfo(InetAddress.getByName(ipv6Gw2))); in testSetUpstreamLinkPropertiesWorking()
334 stacked.addRoute(new RouteInfo(InetAddress.getByName("192.0.2.254"))); in testSetUpstreamLinkPropertiesWorking()
335 stacked.addRoute(new RouteInfo(InetAddress.getByName("fe80::bad:f00"))); in testSetUpstreamLinkPropertiesWorking()
355 lp.addRoute(new RouteInfo(new IpPrefix("2001:db8::/64"))); in testSetUpstreamLinkPropertiesWorking()
581 usbLinkProperties.addRoute(new RouteInfo(new IpPrefix(USB_PREFIX))); in testAddRemoveDownstreams()
587 usbLinkProperties.addRoute(new RouteInfo(new IpPrefix(IPV6_LINKLOCAL))); in testAddRemoveDownstreams()
[all …]
/frameworks/base/core/java/com/android/internal/net/
DVpnConfig.java32 import android.net.RouteInfo;
95 public List<RouteInfo> routes = new ArrayList<RouteInfo>();
126 RouteInfo info = new RouteInfo(new IpPrefix(route), null); in addLegacyRoutes()
184 in.readTypedList(config.routes, RouteInfo.CREATOR);
/frameworks/base/services/core/java/com/android/server/media/
DMediaRouterService.java1339 case MediaRouter.RouteInfo.STATUS_NONE: in getConnectionPhase()
1340 case MediaRouter.RouteInfo.STATUS_CONNECTED: in getConnectionPhase()
1342 case MediaRouter.RouteInfo.STATUS_CONNECTING: in getConnectionPhase()
1344 case MediaRouter.RouteInfo.STATUS_SCANNING: in getConnectionPhase()
1345 case MediaRouter.RouteInfo.STATUS_AVAILABLE: in getConnectionPhase()
1347 case MediaRouter.RouteInfo.STATUS_NOT_AVAILABLE: in getConnectionPhase()
1348 case MediaRouter.RouteInfo.STATUS_IN_USE: in getConnectionPhase()
1483 private final MediaRouterClientState.RouteInfo mMutableInfo;
1484 private MediaRouterClientState.RouteInfo mImmutableInfo;
1491 mMutableInfo = new MediaRouterClientState.RouteInfo(uniqueId); in RouteRecord()
[all …]
/frameworks/base/services/net/java/android/net/ip/
DIpServer.java34 import android.net.RouteInfo;
458 final RouteInfo route = new RouteInfo(linkAddr); in configureIPv4()
553 final ArrayList<RouteInfo> toBeRemoved = in configureLocalIPv6Routes()
565 for (RouteInfo route : toBeRemoved) mLinkProperties.removeRoute(route); in configureLocalIPv6Routes()
576 final ArrayList<RouteInfo> toBeAdded = in configureLocalIPv6Routes()
588 for (RouteInfo route : toBeAdded) mLinkProperties.addRoute(route); in configureLocalIPv6Routes()
975 private static ArrayList<RouteInfo> getLocalRoutesFor( in getLocalRoutesFor()
977 final ArrayList<RouteInfo> localRoutes = new ArrayList<RouteInfo>(); in getLocalRoutesFor()
979 localRoutes.add(new RouteInfo(ipp, null, ifname)); in getLocalRoutesFor()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DInfoMediaDevice.java34 private MediaRouter.RouteInfo mRouteInfo;
36 InfoMediaDevice(Context context, MediaRouter.RouteInfo info) { in InfoMediaDevice()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DCastTileTest.java28 import android.media.MediaRouter.RouteInfo;
161 device.tag = mock(MediaRouter.RouteInfo.class); in testHandleClick_castDevicePresent()
208 casting.tag = mock(RouteInfo.class); in testUpdateState_castingAndProjection()
232 connecting.tag = mock(RouteInfo.class); in testUpdateState_connectedAndConnecting()
237 connected.tag = mock(RouteInfo.class); in testUpdateState_connectedAndConnecting()

123