Home
last modified time | relevance | path

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

123

/frameworks/base/core/tests/coretests/src/android/net/
DRouteInfoTest.java23 import android.net.RouteInfo;
41 RouteInfo r; in testConstructor()
45 r = new RouteInfo((IpPrefix) null, null, "rmnet0"); in testConstructor()
50 r = new RouteInfo((IpPrefix) null, Address("2001:db8::1"), null); in testConstructor()
55 r = new RouteInfo((IpPrefix) null, Address("192.0.2.1"), "wlan0"); in testConstructor()
61 r = new RouteInfo(Prefix("2001:db8:beef:cafe::/48"), null, "lo"); in testConstructor()
66 r = new RouteInfo(Prefix("192.0.2.5/24"), null); in testConstructor()
74 private final RouteInfo mRouteInfo; in testMatches()
77 mRouteInfo = new RouteInfo(destination, gateway, iface); in testMatches()
123 RouteInfo r1 = new RouteInfo(Prefix("2001:db8:ace::/48"), Address("2001:db8::1"), "wlan0"); in testEquals()
[all …]
DLinkPropertiesTest.java23 import android.net.RouteInfo;
102 source.addRoute(new RouteInfo(GATEWAY1)); in testEqualsSameOrder()
103 source.addRoute(new RouteInfo(GATEWAY2)); in testEqualsSameOrder()
114 target.addRoute(new RouteInfo(GATEWAY1)); in testEqualsSameOrder()
115 target.addRoute(new RouteInfo(GATEWAY2)); in testEqualsSameOrder()
127 target.addRoute(new RouteInfo(GATEWAY1)); in testEqualsSameOrder()
128 target.addRoute(new RouteInfo(GATEWAY2)); in testEqualsSameOrder()
140 target.addRoute(new RouteInfo(GATEWAY1)); in testEqualsSameOrder()
141 target.addRoute(new RouteInfo(GATEWAY2)); in testEqualsSameOrder()
152 target.addRoute(new RouteInfo(GATEWAY1)); in testEqualsSameOrder()
[all …]
DStaticIpConfigurationTest.java21 import android.net.RouteInfo;
154 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()
/frameworks/base/core/java/android/net/
DRouteInfo.java49 public final class RouteInfo implements Parcelable { class
102 public RouteInfo(IpPrefix destination, InetAddress gateway, String iface, int type) { in RouteInfo() method in RouteInfo
163 public RouteInfo(IpPrefix destination, InetAddress gateway, String iface) { in RouteInfo() method in RouteInfo
170 public RouteInfo(LinkAddress destination, InetAddress gateway, String iface) { in RouteInfo() method in RouteInfo
191 public RouteInfo(IpPrefix destination, InetAddress gateway) { in RouteInfo() method in RouteInfo
200 public RouteInfo(LinkAddress destination, InetAddress gateway) { in RouteInfo() method in RouteInfo
211 public RouteInfo(InetAddress gateway) { in RouteInfo() method in RouteInfo
223 public RouteInfo(IpPrefix destination) { in RouteInfo() method in RouteInfo
230 public RouteInfo(LinkAddress destination) { in RouteInfo() method in RouteInfo
237 public RouteInfo(IpPrefix destination, int type) { in RouteInfo() method in RouteInfo
[all …]
DLinkProperties.java55 private ArrayList<RouteInfo> mRoutes = new ArrayList<RouteInfo>();
151 for (RouteInfo r : source.getRoutes()) mRoutes.add(r); in LinkProperties()
171 ArrayList<RouteInfo> newRoutes = new ArrayList<RouteInfo>(mRoutes.size()); in setInterfaceName()
172 for (RouteInfo route : mRoutes) { in setInterfaceName()
442 private RouteInfo routeWithInterface(RouteInfo route) { in routeWithInterface()
443 return new RouteInfo( in routeWithInterface()
461 public boolean addRoute(RouteInfo route) { in addRoute()
487 public boolean removeRoute(RouteInfo route) { in removeRoute()
498 public List<RouteInfo> getRoutes() { in getRoutes()
506 public List<RouteInfo> getAllRoutes() { in getAllRoutes()
[all …]
DStaticIpConfiguration.java83 public List<RouteInfo> getRoutes(String iface) { in getRoutes()
84 List<RouteInfo> routes = new ArrayList<RouteInfo>(3); in getRoutes()
86 RouteInfo connectedRoute = new RouteInfo(ipAddress, null, iface); in getRoutes()
89 routes.add(RouteInfo.makeHostRoute(gateway, iface)); in getRoutes()
93 routes.add(new RouteInfo((IpPrefix) null, gateway, iface)); in getRoutes()
110 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()
/frameworks/base/media/java/android/media/
DMediaRouterClientState.java35 public final ArrayList<RouteInfo> routes;
45 routes = new ArrayList<RouteInfo>(); in MediaRouterClientState()
49 routes = src.createTypedArrayList(RouteInfo.CREATOR); in MediaRouterClientState()
53 public RouteInfo getRoute(String id) { in getRoute()
56 final RouteInfo route = routes.get(i); in getRoute()
94 public static final class RouteInfo implements Parcelable { class in MediaRouterClientState
108 public RouteInfo(String id) { in RouteInfo() method in MediaRouterClientState.RouteInfo
111 statusCode = MediaRouter.RouteInfo.STATUS_NONE; in RouteInfo()
112 playbackType = MediaRouter.RouteInfo.PLAYBACK_TYPE_REMOTE; in RouteInfo()
114 volumeHandling = MediaRouter.RouteInfo.PLAYBACK_VOLUME_FIXED; in RouteInfo()
[all …]
DMediaRouter.java75 final ArrayList<RouteInfo> mRoutes = new ArrayList<RouteInfo>();
82 RouteInfo mDefaultAudioVideo;
83 RouteInfo mBluetoothA2dpRoute;
85 RouteInfo mSelectedRoute;
137 mDefaultAudioVideo = new RouteInfo(mSystemCategory); in startMonitoringRoutes()
199 final RouteInfo info = new RouteInfo(sStatic.mSystemCategory); in updateAudioRoutes()
326 final RouteInfo route = mRoutes.get(i); in updatePresentationDisplays()
334 void setSelectedRoute(RouteInfo info, boolean explicit) { in setSelectedRoute()
401 final ArrayList<MediaRouterClientState.RouteInfo> globalRoutes = in updateClientState()
409 final MediaRouterClientState.RouteInfo globalRoute = globalRoutes.get(i); in updateClientState()
[all …]
/frameworks/support/v4/jellybean/android/support/v4/media/routing/
DMediaRouterJellybean.java73 (android.media.MediaRouter.RouteInfo)routeObj); in selectRoute()
114 public static final class RouteInfo { class in MediaRouterJellybean
116 return ((android.media.MediaRouter.RouteInfo)routeObj).getName(context); in getName()
120 return ((android.media.MediaRouter.RouteInfo)routeObj).getStatus(); in getStatus()
124 return ((android.media.MediaRouter.RouteInfo)routeObj).getSupportedTypes(); in getSupportedTypes()
128 return ((android.media.MediaRouter.RouteInfo)routeObj).getCategory(); in getCategory()
132 return ((android.media.MediaRouter.RouteInfo)routeObj).getIconDrawable(); in getIconDrawable()
136 return ((android.media.MediaRouter.RouteInfo)routeObj).getPlaybackType(); in getPlaybackType()
140 return ((android.media.MediaRouter.RouteInfo)routeObj).getPlaybackStream(); in getPlaybackStream()
144 return ((android.media.MediaRouter.RouteInfo)routeObj).getVolume(); in getVolume()
[all …]
/frameworks/support/v7/mediarouter/jellybean/android/support/v7/media/
DMediaRouterJellybean.java73 (android.media.MediaRouter.RouteInfo)routeObj); in selectRoute()
114 public static final class RouteInfo { class in MediaRouterJellybean
116 return ((android.media.MediaRouter.RouteInfo)routeObj).getName(context); in getName()
120 return ((android.media.MediaRouter.RouteInfo)routeObj).getStatus(); in getStatus()
124 return ((android.media.MediaRouter.RouteInfo)routeObj).getSupportedTypes(); in getSupportedTypes()
128 return ((android.media.MediaRouter.RouteInfo)routeObj).getCategory(); in getCategory()
132 return ((android.media.MediaRouter.RouteInfo)routeObj).getIconDrawable(); in getIconDrawable()
136 return ((android.media.MediaRouter.RouteInfo)routeObj).getPlaybackType(); in getPlaybackType()
140 return ((android.media.MediaRouter.RouteInfo)routeObj).getPlaybackStream(); in getPlaybackStream()
144 return ((android.media.MediaRouter.RouteInfo)routeObj).getVolume(); in getVolume()
[all …]
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
DMediaRouteChooserDialog.java55 private ArrayList<MediaRouter.RouteInfo> mRoutes;
114 public void onFilterRoutes(@NonNull List<MediaRouter.RouteInfo> routes) { in onFilterRoutes()
133 public boolean onFilterRoute(@NonNull MediaRouter.RouteInfo route) { in onFilterRoute()
151 mRoutes = new ArrayList<MediaRouter.RouteInfo>(); in onCreate()
189 private final class RouteAdapter extends ArrayAdapter<MediaRouter.RouteInfo>
193 public RouteAdapter(Context context, List<MediaRouter.RouteInfo> routes) { in RouteAdapter()
214 MediaRouter.RouteInfo route = getItem(position); in getView()
232 MediaRouter.RouteInfo route = getItem(position); in onItemClick()
242 public void onRouteAdded(MediaRouter router, MediaRouter.RouteInfo info) { in onRouteAdded()
247 public void onRouteRemoved(MediaRouter router, MediaRouter.RouteInfo info) { in onRouteRemoved()
[all …]
/frameworks/support/v7/mediarouter/src/android/support/v7/media/
DSystemMediaRouteProvider.java68 public void onSyncRouteAdded(MediaRouter.RouteInfo route) { in onSyncRouteAdded()
75 public void onSyncRouteRemoved(MediaRouter.RouteInfo route) { in onSyncRouteRemoved()
82 public void onSyncRouteChanged(MediaRouter.RouteInfo route) { in onSyncRouteChanged()
89 public void onSyncRouteSelected(MediaRouter.RouteInfo route) { in onSyncRouteSelected()
96 public MediaRouter.RouteInfo getSystemRouteByDescriptorId(String id); in getSystemRouteByDescriptorId()
137 .setPlaybackType(MediaRouter.RouteInfo.PLAYBACK_TYPE_LOCAL) in publishRoutes()
138 .setVolumeHandling(MediaRouter.RouteInfo.PLAYBACK_VOLUME_VARIABLE) in publishRoutes()
377 int newVolume = MediaRouterJellybean.RouteInfo.getVolume(routeObj); in onRouteVolumeChanged()
407 MediaRouter.RouteInfo route = mSyncCallback.getSystemRouteByDescriptorId( in onRouteSelected()
449 public void onSyncRouteAdded(MediaRouter.RouteInfo route) { in onSyncRouteAdded()
[all …]
DMediaRouter.java256 public List<RouteInfo> getRoutes() { in getRoutes()
279 public RouteInfo getDefaultRoute() { in getDefaultRoute()
330 public RouteInfo getSelectedRoute() { in getSelectedRoute()
348 public RouteInfo updateSelectedRoute(@NonNull MediaRouteSelector selector) { in updateSelectedRoute()
357 RouteInfo route = sGlobal.getSelectedRoute(); in updateSelectedRoute()
370 public void selectRoute(@NonNull RouteInfo route) { in selectRoute()
765 public static final class RouteInfo { class in MediaRouter
835 RouteInfo(ProviderInfo provider, String descriptorId, String uniqueId) { in RouteInfo() method in MediaRouter.RouteInfo
1357 private final ArrayList<RouteInfo> mRoutes = new ArrayList<RouteInfo>();
1394 public List<RouteInfo> getRoutes() { in getRoutes()
[all …]
/frameworks/base/core/java/com/android/internal/app/
DMediaRouteChooserDialog.java24 import android.media.MediaRouter.RouteInfo;
116 public boolean onFilterRoute(MediaRouter.RouteInfo route) { in onFilterRoute()
179 private final class RouteAdapter extends ArrayAdapter<MediaRouter.RouteInfo>
192 MediaRouter.RouteInfo route = mRouter.getRouteAt(i); in update()
217 MediaRouter.RouteInfo route = getItem(position); in getView()
235 MediaRouter.RouteInfo route = getItem(position); in onItemClick()
245 public void onRouteAdded(MediaRouter router, MediaRouter.RouteInfo info) { in onRouteAdded()
250 public void onRouteRemoved(MediaRouter router, MediaRouter.RouteInfo info) { in onRouteRemoved()
255 public void onRouteChanged(MediaRouter router, MediaRouter.RouteInfo info) { in onRouteChanged()
260 public void onRouteSelected(MediaRouter router, int type, RouteInfo info) { in onRouteSelected()
[all …]
DMediaRouteControllerDialog.java28 import android.media.MediaRouter.RouteInfo;
57 private final MediaRouter.RouteInfo mRoute;
84 public MediaRouter.RouteInfo getRoute() { in getRoute()
286 MediaRouter.RouteInfo.PLAYBACK_VOLUME_VARIABLE; in isVolumeControlAvailable()
291 public void onRouteUnselected(MediaRouter router, int type, RouteInfo info) { in onRouteUnselected()
296 public void onRouteChanged(MediaRouter router, MediaRouter.RouteInfo route) { in onRouteChanged()
301 public void onRouteVolumeChanged(MediaRouter router, MediaRouter.RouteInfo route) { in onRouteVolumeChanged()
308 public void onRouteGrouped(MediaRouter router, RouteInfo info, RouteGroup group, in onRouteGrouped()
314 public void onRouteUngrouped(MediaRouter router, RouteInfo info, RouteGroup group) { in onRouteUngrouped()
/frameworks/support/v7/mediarouter/jellybean-mr1/android/support/v7/media/
DMediaRouterJellybeanMr1.java37 public static final class RouteInfo { class in MediaRouterJellybeanMr1
39 return ((android.media.MediaRouter.RouteInfo)routeObj).isEnabled(); in isEnabled()
43 return ((android.media.MediaRouter.RouteInfo)routeObj).getPresentationDisplay(); in getPresentationDisplay()
136 android.media.MediaRouter.RouteInfo.class.getField("STATUS_CONNECTING"); in IsConnectingWorkaround()
139 android.media.MediaRouter.RouteInfo.class.getMethod("getStatusCode"); in IsConnectingWorkaround()
147 android.media.MediaRouter.RouteInfo route = in isConnecting()
148 (android.media.MediaRouter.RouteInfo)routeObj; in isConnecting()
172 android.media.MediaRouter.RouteInfo route) { in onRoutePresentationDisplayChanged()
/frameworks/support/v4/jellybean-mr1/android/support/v4/media/routing/
DMediaRouterJellybeanMr1.java37 public static final class RouteInfo { class in MediaRouterJellybeanMr1
39 return ((android.media.MediaRouter.RouteInfo)routeObj).isEnabled(); in isEnabled()
43 return ((android.media.MediaRouter.RouteInfo)routeObj).getPresentationDisplay(); in getPresentationDisplay()
136 android.media.MediaRouter.RouteInfo.class.getField("STATUS_CONNECTING"); in IsConnectingWorkaround()
139 android.media.MediaRouter.RouteInfo.class.getMethod("getStatusCode"); in IsConnectingWorkaround()
147 android.media.MediaRouter.RouteInfo route = in isConnecting()
148 (android.media.MediaRouter.RouteInfo)routeObj; in isConnecting()
172 android.media.MediaRouter.RouteInfo route) { in onRoutePresentationDisplayChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DCastControllerImpl.java26 import android.media.MediaRouter.RouteInfo;
52 private final ArrayMap<String, RouteInfo> mRoutes = new ArrayMap<>();
78 final RouteInfo route = mRoutes.valueAt(i); in dump()
148 for (RouteInfo route : mRoutes.values()) { in getCastDevices()
168 final RouteInfo route = (RouteInfo) device.tag; in startCasting()
230 final RouteInfo route = mMediaRouter.getRouteAt(i); in updateRemoteDisplays()
236 final RouteInfo selected = mMediaRouter.getSelectedRoute(ROUTE_TYPE_REMOTE_DISPLAY); in updateRemoteDisplays()
245 private void ensureTagExists(RouteInfo route) { in ensureTagExists()
261 private static String routeToString(RouteInfo route) { in routeToString()
275 public void onRouteAdded(MediaRouter router, RouteInfo route) {
[all …]
/frameworks/base/core/java/android/os/
DINetworkManagementService.aidl24 import android.net.RouteInfo;
103 RouteInfo[] getRoutes(String iface); in getRoutes()
108 void addRoute(int netId, in RouteInfo route); in addRoute()
113 void removeRoute(int netId, in RouteInfo route); in removeRoute()
416 void addLegacyRouteForNetId(int netId, in RouteInfo routeInfo, int uid); in addLegacyRouteForNetId()
441 void addInterfaceToLocalNetwork(String iface, in List<RouteInfo> routes); in addInterfaceToLocalNetwork()
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DKeyguardDisplayManager.java24 import android.media.MediaRouter.RouteInfo;
66 public void onRouteSelected(MediaRouter router, int type, RouteInfo info) {
72 public void onRouteUnselected(MediaRouter router, int type, RouteInfo info) {
78 public void onRoutePresentationDisplayChanged(MediaRouter router, RouteInfo info) {
94 MediaRouter.RouteInfo route = mMediaRouter.getSelectedRoute( in updateDisplays()
97 && route.getPlaybackType() == MediaRouter.RouteInfo.PLAYBACK_TYPE_REMOTE; in updateDisplays()
/frameworks/support/v7/mediarouter/jellybean-mr2/android/support/v7/media/
DMediaRouterJellybeanMr2.java29 public static final class RouteInfo { class in MediaRouterJellybeanMr2
31 return ((android.media.MediaRouter.RouteInfo)routeObj).getDescription(); in getDescription()
35 return ((android.media.MediaRouter.RouteInfo)routeObj).isConnecting(); in isConnecting()
/frameworks/support/v4/jellybean-mr2/android/support/v4/media/routing/
DMediaRouterJellybeanMr2.java29 public static final class RouteInfo { class in MediaRouterJellybeanMr2
31 return ((android.media.MediaRouter.RouteInfo)routeObj).getDescription(); in getDescription()
35 return ((android.media.MediaRouter.RouteInfo)routeObj).isConnecting(); in isConnecting()
/frameworks/base/core/java/android/app/
DMediaRouteButton.java30 import android.media.MediaRouter.RouteInfo;
392 final MediaRouter.RouteInfo route = mRouter.getSelectedRoute(); in refreshRoute()
417 public void onRouteAdded(MediaRouter router, RouteInfo info) { in onRouteAdded()
422 public void onRouteRemoved(MediaRouter router, RouteInfo info) { in onRouteRemoved()
427 public void onRouteChanged(MediaRouter router, RouteInfo info) { in onRouteChanged()
432 public void onRouteSelected(MediaRouter router, int type, RouteInfo info) { in onRouteSelected()
437 public void onRouteUnselected(MediaRouter router, int type, RouteInfo info) { in onRouteUnselected()
442 public void onRouteGrouped(MediaRouter router, RouteInfo info, RouteGroup group, in onRouteGrouped()
448 public void onRouteUngrouped(MediaRouter router, RouteInfo info, RouteGroup group) { in onRouteUngrouped()
/frameworks/base/core/java/com/android/server/net/
DBaseNetworkObserver.java21 import android.net.RouteInfo;
76 public void routeUpdated(RouteInfo route) { in routeUpdated()
81 public void routeRemoved(RouteInfo route) { in routeRemoved()

123