/frameworks/base/core/tests/coretests/src/android/net/ |
D | RouteInfoTest.java | 23 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 …]
|
D | LinkPropertiesTest.java | 23 import android.net.RouteInfo; 108 source.addRoute(new RouteInfo(GATEWAY1)); in testEqualsSameOrder() 109 source.addRoute(new RouteInfo(GATEWAY2)); in testEqualsSameOrder() 120 target.addRoute(new RouteInfo(GATEWAY1)); in testEqualsSameOrder() 121 target.addRoute(new RouteInfo(GATEWAY2)); in testEqualsSameOrder() 133 target.addRoute(new RouteInfo(GATEWAY1)); in testEqualsSameOrder() 134 target.addRoute(new RouteInfo(GATEWAY2)); in testEqualsSameOrder() 146 target.addRoute(new RouteInfo(GATEWAY1)); in testEqualsSameOrder() 147 target.addRoute(new RouteInfo(GATEWAY2)); in testEqualsSameOrder() 158 target.addRoute(new RouteInfo(GATEWAY1)); in testEqualsSameOrder() [all …]
|
D | StaticIpConfigurationTest.java | 21 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/ |
D | RouteInfo.java | 49 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 …]
|
D | LinkProperties.java | 55 private ArrayList<RouteInfo> mRoutes = new ArrayList<RouteInfo>(); 155 for (RouteInfo r : source.getRoutes()) mRoutes.add(r); in LinkProperties() 175 ArrayList<RouteInfo> newRoutes = new ArrayList<RouteInfo>(mRoutes.size()); in setInterfaceName() 176 for (RouteInfo route : mRoutes) { in setInterfaceName() 446 private RouteInfo routeWithInterface(RouteInfo route) { in routeWithInterface() 447 return new RouteInfo( in routeWithInterface() 465 public boolean addRoute(RouteInfo route) { in addRoute() 491 public boolean removeRoute(RouteInfo route) { in removeRoute() 502 public List<RouteInfo> getRoutes() { in getRoutes() 510 public List<RouteInfo> getAllRoutes() { in getAllRoutes() [all …]
|
D | StaticIpConfiguration.java | 83 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()
|
D | INetworkManagementEventObserver.aidl | 20 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/ |
D | MediaRouterClientState.java | 35 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 107 public @MediaRouter.RouteInfo.DeviceType int deviceType; 109 public RouteInfo(String id) { in RouteInfo() method in MediaRouterClientState.RouteInfo 112 statusCode = MediaRouter.RouteInfo.STATUS_NONE; in RouteInfo() 113 playbackType = MediaRouter.RouteInfo.PLAYBACK_TYPE_REMOTE; in RouteInfo() [all …]
|
D | MediaRouter.java | 80 final ArrayList<RouteInfo> mRoutes = new ArrayList<RouteInfo>(); 87 RouteInfo mDefaultAudioVideo; 88 RouteInfo mBluetoothA2dpRoute; 90 RouteInfo mSelectedRoute; 142 mDefaultAudioVideo = new RouteInfo(mSystemCategory); in startMonitoringRoutes() 148 mDefaultAudioVideo.mVolumeHandling = RouteInfo.PLAYBACK_VOLUME_FIXED; in startMonitoringRoutes() 211 final RouteInfo info = new RouteInfo(sStatic.mSystemCategory); in updateAudioRoutes() 216 info.mDeviceType = RouteInfo.DEVICE_TYPE_BLUETOOTH; in updateAudioRoutes() 344 final RouteInfo route = mRoutes.get(i); in updatePresentationDisplays() 352 void setSelectedRoute(RouteInfo info, boolean explicit) { in setSelectedRoute() [all …]
|
/frameworks/support/v7/mediarouter/tests/src/android/support/v7/app/ |
D | MediaRouteChooserDialogTest.java | 23 import android.support.v7.media.MediaRouter.RouteInfo; 42 RouteInfo routeInfo1 = TestUtils.createRouteInfo("ROUTE_ID_1", "ROUTE_NAME_1"); in testRouteComparatorWithSameRouteName() 43 RouteInfo routeInfo2 = TestUtils.createRouteInfo("ROUTE_ID_2", "ROUTE_NAME_1"); in testRouteComparatorWithSameRouteName() 50 RouteInfo routeInfo1 = TestUtils.createRouteInfo("ROUTE_ID_1", "Route ABC"); in testRouteComparatorWithCommonComparison() 51 RouteInfo routeInfo2 = TestUtils.createRouteInfo("ROUTE_ID_2", "Route XYZ"); in testRouteComparatorWithCommonComparison() 58 RouteInfo routeInfo1 = TestUtils.createRouteInfo("ROUTE_ID_1", "living room abc"); 59 RouteInfo routeInfo2 = TestUtils.createRouteInfo("ROUTE_ID_2", "LIVING ROOM XYZ"); 63 RouteInfo routeInfo3 = TestUtils.createRouteInfo("ROUTE_ID_3", "LIVING ROOM ABC"); 64 RouteInfo routeInfo4 = TestUtils.createRouteInfo("ROUTE_ID_4", "living room xyz");
|
/frameworks/support/v7/mediarouter/src/android/support/v7/app/ |
D | MediaRouteChooserDialog.java | 19 import static android.support.v7.media.MediaRouter.RouteInfo.CONNECTION_STATE_CONNECTED; 20 import static android.support.v7.media.MediaRouter.RouteInfo.CONNECTION_STATE_CONNECTING; 74 private ArrayList<MediaRouter.RouteInfo> mRoutes; 84 updateRoutes((List<MediaRouter.RouteInfo>) message.obj); 144 public void onFilterRoutes(@NonNull List<MediaRouter.RouteInfo> routes) { in onFilterRoutes() 163 public boolean onFilterRoute(@NonNull MediaRouter.RouteInfo route) { in onFilterRoute() 226 ArrayList<MediaRouter.RouteInfo> routes = new ArrayList<>(mRouter.getRoutes()); in refreshRoutes() 239 void updateRoutes(List<MediaRouter.RouteInfo> routes) { in updateRoutes() 246 private final class RouteAdapter extends ArrayAdapter<MediaRouter.RouteInfo> 254 public RouteAdapter(Context context, List<MediaRouter.RouteInfo> routes) { in RouteAdapter() [all …]
|
/frameworks/support/v7/mediarouter/jellybean/android/support/v7/media/ |
D | MediaRouterJellybean.java | 81 (android.media.MediaRouter.RouteInfo)routeObj); in selectRoute() 135 public static final class RouteInfo { class in MediaRouterJellybean 137 return ((android.media.MediaRouter.RouteInfo)routeObj).getName(context); in getName() 141 return ((android.media.MediaRouter.RouteInfo)routeObj).getStatus(); in getStatus() 145 return ((android.media.MediaRouter.RouteInfo)routeObj).getSupportedTypes(); in getSupportedTypes() 149 return ((android.media.MediaRouter.RouteInfo)routeObj).getCategory(); in getCategory() 153 return ((android.media.MediaRouter.RouteInfo)routeObj).getIconDrawable(); in getIconDrawable() 157 return ((android.media.MediaRouter.RouteInfo)routeObj).getPlaybackType(); in getPlaybackType() 161 return ((android.media.MediaRouter.RouteInfo)routeObj).getPlaybackStream(); in getPlaybackStream() 165 return ((android.media.MediaRouter.RouteInfo)routeObj).getVolume(); in getVolume() [all …]
|
/frameworks/support/v7/mediarouter/src/android/support/v7/media/ |
D | MediaRouter.java | 270 public List<RouteInfo> getRoutes() { in getRoutes() 293 public RouteInfo getDefaultRoute() { in getDefaultRoute() 303 public RouteInfo getBluetoothRoute() { in getBluetoothRoute() 354 public RouteInfo getSelectedRoute() { in getSelectedRoute() 372 public RouteInfo updateSelectedRoute(@NonNull MediaRouteSelector selector) { in updateSelectedRoute() 381 RouteInfo route = sGlobal.getSelectedRoute(); in updateSelectedRoute() 394 public void selectRoute(@NonNull RouteInfo route) { in selectRoute() 428 RouteInfo fallbackRoute = sGlobal.chooseFallbackRoute(); in unselect() 796 public static class RouteInfo { class in MediaRouter 944 RouteInfo(ProviderInfo provider, String descriptorId, String uniqueId) { in RouteInfo() method in MediaRouter.RouteInfo [all …]
|
D | SystemMediaRouteProvider.java | 72 public void onSyncRouteAdded(MediaRouter.RouteInfo route) { in onSyncRouteAdded() 79 public void onSyncRouteRemoved(MediaRouter.RouteInfo route) { in onSyncRouteRemoved() 86 public void onSyncRouteChanged(MediaRouter.RouteInfo route) { in onSyncRouteChanged() 93 public void onSyncRouteSelected(MediaRouter.RouteInfo route) { in onSyncRouteSelected() 100 MediaRouter.RouteInfo getSystemRouteByDescriptorId(String id); in getSystemRouteByDescriptorId() 107 protected Object getSystemRoute(MediaRouter.RouteInfo route) { in getSystemRoute() 149 .setPlaybackType(MediaRouter.RouteInfo.PLAYBACK_TYPE_LOCAL) in publishRoutes() 150 .setVolumeHandling(MediaRouter.RouteInfo.PLAYBACK_VOLUME_VARIABLE) in publishRoutes() 390 int newVolume = MediaRouterJellybean.RouteInfo.getVolume(routeObj); in onRouteVolumeChanged() 420 MediaRouter.RouteInfo route = mSyncCallback.getSystemRouteByDescriptorId( in onRouteSelected() [all …]
|
/frameworks/base/core/java/com/android/internal/app/ |
D | MediaRouteChooserDialog.java | 24 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 …]
|
D | MediaRouteControllerDialog.java | 33 import android.media.MediaRouter.RouteInfo; 61 private final MediaRouter.RouteInfo mRoute; 87 public MediaRouter.RouteInfo getRoute() { in getRoute() 309 MediaRouter.RouteInfo.PLAYBACK_VOLUME_VARIABLE; in isVolumeControlAvailable() 314 public void onRouteUnselected(MediaRouter router, int type, RouteInfo info) { in onRouteUnselected() 319 public void onRouteChanged(MediaRouter router, MediaRouter.RouteInfo route) { in onRouteChanged() 324 public void onRouteVolumeChanged(MediaRouter router, MediaRouter.RouteInfo route) { in onRouteVolumeChanged() 331 public void onRouteGrouped(MediaRouter router, RouteInfo info, RouteGroup group, in onRouteGrouped() 337 public void onRouteUngrouped(MediaRouter router, RouteInfo info, RouteGroup group) { in onRouteUngrouped()
|
/frameworks/support/v7/mediarouter/jellybean-mr1/android/support/v7/media/ |
D | MediaRouterJellybeanMr1.java | 39 public static final class RouteInfo { class in MediaRouterJellybeanMr1 41 return ((android.media.MediaRouter.RouteInfo)routeObj).isEnabled(); in isEnabled() 48 return ((android.media.MediaRouter.RouteInfo)routeObj).getPresentationDisplay(); in getPresentationDisplay() 145 android.media.MediaRouter.RouteInfo.class.getField("STATUS_CONNECTING"); in IsConnectingWorkaround() 148 android.media.MediaRouter.RouteInfo.class.getMethod("getStatusCode"); in IsConnectingWorkaround() 156 android.media.MediaRouter.RouteInfo route = in isConnecting() 157 (android.media.MediaRouter.RouteInfo)routeObj; in isConnecting() 181 android.media.MediaRouter.RouteInfo route) { in onRoutePresentationDisplayChanged()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | CastControllerImpl.java | 24 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/support/v7/mediarouter/tests/src/android/support/v7/media/ |
D | TestUtils.java | 20 public static MediaRouter.RouteInfo createRouteInfo(String id, String name) { in createRouteInfo() 22 MediaRouter.RouteInfo routeInfo = new MediaRouter.RouteInfo(null, null, null); in createRouteInfo()
|
/frameworks/base/core/java/android/app/ |
D | MediaRouteButton.java | 30 import android.media.MediaRouter.RouteInfo; 343 final MediaRouter.RouteInfo route = mRouter.getSelectedRoute(); in refreshRoute() 368 public void onRouteAdded(MediaRouter router, RouteInfo info) { in onRouteAdded() 373 public void onRouteRemoved(MediaRouter router, RouteInfo info) { in onRouteRemoved() 378 public void onRouteChanged(MediaRouter router, RouteInfo info) { in onRouteChanged() 383 public void onRouteSelected(MediaRouter router, int type, RouteInfo info) { in onRouteSelected() 388 public void onRouteUnselected(MediaRouter router, int type, RouteInfo info) { in onRouteUnselected() 393 public void onRouteGrouped(MediaRouter router, RouteInfo info, RouteGroup group, in onRouteGrouped() 399 public void onRouteUngrouped(MediaRouter router, RouteInfo info, RouteGroup group) { in onRouteUngrouped()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardDisplayManager.java | 24 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/base/core/java/android/os/ |
D | INetworkManagementService.aidl | 25 import android.net.RouteInfo; 107 void addRoute(int netId, in RouteInfo route); in addRoute() 112 void removeRoute(int netId, in RouteInfo route); in removeRoute() 391 void addLegacyRouteForNetId(int netId, in RouteInfo routeInfo, int uid); in addLegacyRouteForNetId() 416 void addInterfaceToLocalNetwork(String iface, in List<RouteInfo> routes); in addInterfaceToLocalNetwork() 418 int removeRoutesFromLocalNetwork(in List<RouteInfo> routes); in removeRoutesFromLocalNetwork()
|
/frameworks/support/v7/mediarouter/jellybean-mr2/android/support/v7/media/ |
D | MediaRouterJellybeanMr2.java | 32 public static final class RouteInfo { class in MediaRouterJellybeanMr2 34 return ((android.media.MediaRouter.RouteInfo)routeObj).getDescription(); in getDescription() 38 return ((android.media.MediaRouter.RouteInfo)routeObj).isConnecting(); in isConnecting()
|
/frameworks/base/core/java/com/android/server/net/ |
D | BaseNetworkObserver.java | 21 import android.net.RouteInfo; 76 public void routeUpdated(RouteInfo route) { in routeUpdated() 81 public void routeRemoved(RouteInfo route) { in routeRemoved()
|
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/ |
D | IPv6TetheringInterfaceServices.java | 27 import android.net.RouteInfo; 163 final ArrayList<RouteInfo> toBeRemoved = getLocalRoutesFor(deprecatedPrefixes); in configureLocalRoutes() 193 final ArrayList<RouteInfo> toBeAdded = getLocalRoutesFor(addedPrefixes); in configureLocalRoutes() 273 private ArrayList<RouteInfo> getLocalRoutesFor(HashSet<IpPrefix> prefixes) { in getLocalRoutesFor() 274 final ArrayList<RouteInfo> localRoutes = new ArrayList<RouteInfo>(); in getLocalRoutesFor() 276 localRoutes.add(new RouteInfo(ipp, null, mIfName)); in getLocalRoutesFor()
|