Home
last modified time | relevance | path

Searched refs:gateway (Results 1 – 25 of 59) sorted by relevance

123

/packages/modules/Connectivity/framework/src/android/net/
DRouteInfo.java136 public RouteInfo(@Nullable IpPrefix destination, @Nullable InetAddress gateway, in RouteInfo() argument
138 this(destination, gateway, iface, type, 0); in RouteInfo()
161 public RouteInfo(@Nullable IpPrefix destination, @Nullable InetAddress gateway, in RouteInfo() argument
183 if (gateway != null) { in RouteInfo()
184 if (gateway instanceof Inet4Address) { in RouteInfo()
191 throw new IllegalArgumentException("Invalid arguments passed in: " + gateway + "," + in RouteInfo()
198 if (gateway == null) { in RouteInfo()
200 gateway = NetworkStackConstants.IPV4_ADDR_ANY; in RouteInfo()
202 gateway = NetworkStackConstants.IPV6_ADDR_ANY; in RouteInfo()
205 mHasGateway = (!gateway.isAnyLocalAddress()); in RouteInfo()
[all …]
DStaticIpConfiguration.java62 public InetAddress gateway; field in StaticIpConfiguration
81 gateway = source.gateway; in StaticIpConfiguration()
89 gateway = null; in clear()
105 return gateway; in getGateway()
145 public @NonNull Builder setGateway(@Nullable InetAddress gateway) { in setGateway() argument
146 mGateway = gateway; in setGateway()
178 config.gateway = mGateway; in build()
209 if (gateway != null && !connectedRoute.matches(gateway)) { in getRoutes()
210 routes.add(RouteInfo.makeHostRoute(gateway, iface)); in getRoutes()
213 if (gateway != null) { in getRoutes()
[all …]
DDhcpInfo.java27 public int gateway; field in DhcpInfo
43 gateway = source.gateway; in DhcpInfo()
56 str.append(" gateway "); putAddress(str, gateway); in toString()
78 dest.writeInt(gateway); in writeToParcel()
92 info.gateway = in.readInt();
/packages/modules/Connectivity/tests/common/java/android/net/
DStaticIpConfigurationTest.java59 assertNull(s.gateway); in checkEmpty()
67 s.gateway = GATEWAY; in makeTestObject()
105 s.gateway = GATEWAY; in testHashCodeAndEquals()
134 s.gateway = DNS2; in testHashCodeAndEquals()
156 s.gateway = GATEWAY; in testToLinkProperties()
161 s.gateway = OFFLINKGATEWAY; in testToLinkProperties()
184 s.gateway = null; in testToLinkProperties()
192 s.gateway = OFFLINKGATEWAY; in testToLinkProperties()
235 assertEquals(s.gateway, s.getGateway()); in testBuilder()
DDhcpInfoTest.java52 dhcpInfo.gateway = ipToInteger(STR_ADDR2); in createDhcpInfoObject()
91 && left.gateway == right.gateway in dhcpInfoEquals()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/
DWifiGatewayPreferenceController.java46 String gateway = null; in updateState() local
52 gateway = routeInfo.getGateway().getHostAddress(); in updateState()
58 if (gateway == null) { in updateState()
61 preference.setDetailText(gateway); in updateState()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DIpConfigStore.java132 InetAddress gateway = null; in readIpConfigurations() local
135 gateway = InetAddresses.parseNumericAddress(in.readUTF()); in readIpConfigurations()
136 staticIPBuilder.setGateway(gateway); in readIpConfigurations()
144 gateway = InetAddresses.parseNumericAddress(in.readUTF()); in readIpConfigurations()
149 gateway, null, RouteInfo.RTN_UNICAST); in readIpConfigurations()
153 staticIPBuilder.setGateway(gateway); in readIpConfigurations()
/packages/modules/NetworkStack/src/com/android/server/
DNetworkObserverRegistry.java166 public void onRouteChanged(boolean updated, String route, String gateway, String ifName) { in onRouteChanged() argument
168 ("".equals(gateway)) ? null : InetAddresses.parseNumericAddress(gateway), in onRouteChanged()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/util/
DAdvancedOptionsFlowUtil.java133 String gateway = flowInfo.get(AdvancedOptionsFlowInfo.GATEWAY); in processIpSettings() local
134 if (!TextUtils.isEmpty(gateway)) { in processIpSettings()
136 staticIpBuilder.setGateway(InetAddresses.parseNumericAddress(gateway)); in processIpSettings()
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpResultsParcelableUtilTest.java52 mDhcpResults.gateway = parseNumericAddress("192.168.42.42"); in setUp()
79 mDhcpResults.gateway = null; in testParcelUnparcelDhcpResults_NullGateway()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DIpConfigStoreTestWriter.java65 if (staticIpConfiguration.gateway != null) { in writeConfig()
69 out.writeUTF(staticIpConfiguration.gateway.getHostAddress()); in writeConfig()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiBackupDataV1Parser.java622 InetAddress gateway = InetAddresses.parseNumericAddress(gatewayAddressString); in parseIpConfigurationFromXml() local
623 RouteInfo route = new RouteInfo(null, gateway, null, RouteInfo.RTN_UNICAST); in parseIpConfigurationFromXml()
626 builder.setGateway(gateway); in parseIpConfigurationFromXml()
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/5/android/net/
DInitialConfigurationParcelable.aidl23 String gateway;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/7/android/net/
DInitialConfigurationParcelable.aidl23 String gateway;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/1/android/net/
DInitialConfigurationParcelable.aidl6 String gateway;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/3/android/net/
DInitialConfigurationParcelable.aidl23 String gateway;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/2/android/net/
DInitialConfigurationParcelable.aidl6 String gateway;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/4/android/net/
DInitialConfigurationParcelable.aidl6 String gateway;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/6/android/net/
DInitialConfigurationParcelable.aidl23 String gateway;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/8/android/net/
DInitialConfigurationParcelable.aidl23 String gateway;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/10/android/net/
DInitialConfigurationParcelable.aidl25 String gateway;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/9/android/net/
DInitialConfigurationParcelable.aidl24 String gateway;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/current/android/net/
DInitialConfigurationParcelable.aidl25 String gateway;
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/
DInitialConfigurationParcelable.aidl27 String gateway;
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DNetworkDiagnostics.java210 InetAddress gateway = route.getGateway(); in NetworkDiagnostics() local
211 prepareIcmpMeasurement(gateway); in NetworkDiagnostics()
213 prepareExplicitSourceIcmpMeasurements(gateway); in NetworkDiagnostics()

123