Searched refs:linkProperties (Results 1 - 25 of 28) sorted by relevance

12

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
H A DDataCallResponseTest.java56 LinkProperties linkProperties = new LinkProperties();
58 mDcResponse.setLinkProperties(linkProperties, true));
59 logd(linkProperties.toString());
60 assertEquals(mDcResponse.ifname, linkProperties.getInterfaceName());
61 assertEquals(mDcResponse.addresses.length, linkProperties.getAddresses().size());
64 linkProperties.getLinkAddresses().get(i).getAddress().getHostAddress());
67 assertEquals(mDcResponse.dnses.length, linkProperties.getDnsServers().size());
70 linkProperties.getDnsServers().get(i).getHostAddress());
73 assertEquals(mDcResponse.gateways.length, linkProperties.getRoutes().size());
76 linkProperties
[all...]
H A DDcTrackerTest.java465 LinkProperties linkProperties = mDct.getLinkProperties(PhoneConstants.APN_TYPE_DEFAULT);
466 assertEquals(FAKE_IFNAME, linkProperties.getInterfaceName());
467 assertEquals(1, linkProperties.getAddresses().size());
468 assertEquals(FAKE_ADDRESS, linkProperties.getAddresses().get(0).getHostAddress());
469 assertEquals(1, linkProperties.getDnsServers().size());
470 assertEquals(FAKE_DNS, linkProperties.getDnsServers().get(0).getHostAddress());
471 assertEquals(FAKE_GATEWAY, linkProperties.getRoutes().get(0).getGateway().getHostAddress());
/frameworks/base/core/java/android/net/
H A DNetworkState.java31 public final LinkProperties linkProperties; field in class:NetworkState
37 public NetworkState(NetworkInfo networkInfo, LinkProperties linkProperties, argument
41 this.linkProperties = linkProperties;
50 linkProperties = in.readParcelable(null);
65 out.writeParcelable(linkProperties, flags);
H A DNetworkAgent.java361 public void sendLinkProperties(LinkProperties linkProperties) { argument
362 queueOrSendMessage(EVENT_NETWORK_PROPERTIES_CHANGED, new LinkProperties(linkProperties));
H A DConnectivityManager.java2711 * @param linkProperties The new {@link LinkProperties} for this network.
2713 public void onLinkPropertiesChanged(Network network, LinkProperties linkProperties) {} argument
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
H A DDataCallResponse.java133 public SetupResult setLinkProperties(LinkProperties linkProperties, argument
139 if (linkProperties == null)
140 linkProperties = new LinkProperties();
142 linkProperties.clear();
149 linkProperties.setInterfaceName(ifname);
185 linkProperties.addLinkAddress(la);
204 linkProperties.addDnsServer(ia);
221 linkProperties.addDnsServer(ia);
247 linkProperties.addRoute(new RouteInfo(ia));
252 linkProperties
[all...]
/frameworks/base/services/core/java/com/android/server/connectivity/
H A DNat464Xlat.java91 (nai.linkProperties != null) && nai.linkProperties.hasIPv4Address();
196 if (mNetwork.linkProperties == null) {
201 String baseIface = mNetwork.linkProperties.getInterfaceName();
236 LinkProperties lp = mNetwork.linkProperties;
308 LinkProperties lp = new LinkProperties(mNetwork.linkProperties);
331 LinkProperties lp = new LinkProperties(mNetwork.linkProperties);
H A DNetworkAgentInfo.java126 public LinkProperties linkProperties; field in class:NetworkAgentInfo
263 linkProperties = lp;
469 new LinkProperties(linkProperties),
593 "lp{" + linkProperties + "} " +
H A DTethering.java1127 if (ns != null && ns.linkProperties != null && mCurrentUpstreamIface != null) {
1128 for (String ifname : ns.linkProperties.getAllInterfaceNames()) {
1324 if (ns != null && ns.linkProperties != null) {
1326 // interface described by linkProperties, or one of the interfaces
1328 mLog.i("Finding IPv4 upstream interface on: " + ns.linkProperties);
1330 ns.linkProperties.getAllRoutes(), Inet4Address.ANY);
1340 setDnsForwarders(ns.network, ns.linkProperties);
1478 setDnsForwarders(ns.network, ns.linkProperties);
1725 (ns != null) ? ns.linkProperties : null);
1755 final LinkProperties lp = tism.linkProperties();
[all...]
H A DKeepaliveTracker.java166 for (InetAddress address : mNai.linkProperties.getAddresses()) {
H A DNetworkMonitor.java782 final ProxyInfo proxyInfo = mNetworkAgentInfo.linkProperties.getHttpProxy();
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/
H A DIPv6TetheringCoordinator.java150 new LinkProperties(ns.linkProperties),
183 if (mUpstreamNetworkState == null || mUpstreamNetworkState.linkProperties == null) {
195 mUpstreamNetworkState.linkProperties);
229 (ns.linkProperties != null) && (ns.networkCapabilities != null) &&
231 ns.linkProperties.isProvisioned() &&
233 ns.linkProperties.hasIPv6DefaultRoute() &&
234 ns.linkProperties.hasGlobalIPv6Address() &&
245 for (RouteInfo r : ns.linkProperties.getAllRoutes()) {
370 ns.linkProperties);
H A DUpstreamNetworkMonitor.java322 null, prev.linkProperties, newNc, network, null, null));
330 if (prev == null || newLp.equals(prev.linkProperties)) {
498 final LinkProperties lp = ns.linkProperties;
H A DTetherInterfaceStateMachine.java168 public LinkProperties linkProperties() { return new LinkProperties(mLinkProperties); } method in class:TetherInterfaceStateMachine
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
H A DEthernetNetworkFactory.java285 void onIpLayerStarted(LinkProperties linkProperties) { argument
291 mLinkProperties = linkProperties;
309 void onIpLayerStopped(LinkProperties linkProperties) { argument
316 void updateLinkProperties(LinkProperties linkProperties) { argument
317 mLinkProperties = linkProperties;
319 mNetworkAgent.sendLinkProperties(linkProperties);
335 LinkProperties linkProperties;
344 linkProperties = config.getStaticIpConfiguration().toLinkProperties(mIface);
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DITelephonyRegistry.aidl50 String reason, String apn, String apnType, in LinkProperties linkProperties,
53 String reason, String apn, String apnType, in LinkProperties linkProperties,
/frameworks/base/telephony/java/android/telephony/
H A DPreciseDataConnectionState.java58 LinkProperties linkProperties, String failCause) {
64 mLinkProperties = linkProperties;
56 PreciseDataConnectionState(int state, int networkType, String apnType, String apn, String reason, LinkProperties linkProperties, String failCause) argument
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DDefaultPhoneNotifier.java168 LinkProperties linkProperties = null;
173 linkProperties = sender.getLinkProperties(apnType);
186 linkProperties,
/frameworks/base/tests/net/java/com/android/server/connectivity/
H A DNat464XlatTest.java76 mNai.linkProperties = new LinkProperties();
77 mNai.linkProperties.setInterfaceName(BASE_IFACE);
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
H A DTelephonyRegistryMock.java235 String reason, String apn, String apnType, LinkProperties linkProperties,
243 LinkProperties linkProperties, NetworkCapabilities networkCapabilities,
234 notifyDataConnection(int state, boolean isDataConnectivityPossible, String reason, String apn, String apnType, LinkProperties linkProperties, NetworkCapabilities networkCapabilities, int networkType, boolean roaming) argument
241 notifyDataConnectionForSubscriber(int subId, int state, boolean isDataConnectivityPossible, String reason, String apn, String apnType, LinkProperties linkProperties, NetworkCapabilities networkCapabilities, int networkType, boolean roaming) argument
H A DConnectivityServiceMock.java266 //updateClat(null, nai.linkProperties, nai);
770 LinkProperties linkProperties, NetworkCapabilities networkCapabilities,
774 // linkProperties), new NetworkCapabilities(networkCapabilities), currentScore,
769 registerNetworkAgent(Messenger messenger, NetworkInfo networkInfo, LinkProperties linkProperties, NetworkCapabilities networkCapabilities, int currentScore, NetworkMisc networkMisc) argument
/frameworks/base/services/core/java/com/android/server/
H A DTelephonyRegistry.java1076 String reason, String apn, String apnType, LinkProperties linkProperties,
1079 isDataAllowed,reason, apn, apnType, linkProperties,
1085 LinkProperties linkProperties, NetworkCapabilities networkCapabilities,
1120 mDataConnectionLinkProperties[phoneId] = linkProperties;
1151 apnType, apn, reason, linkProperties, "");
1167 apnType, linkProperties, networkCapabilities, roaming, subId);
1169 linkProperties, "");
1536 String reason, String apn, String apnType, LinkProperties linkProperties,
1550 if (linkProperties != null) {
1551 intent.putExtra(PhoneConstants.DATA_LINK_PROPERTIES_KEY, linkProperties);
1075 notifyDataConnection(int state, boolean isDataAllowed, String reason, String apn, String apnType, LinkProperties linkProperties, NetworkCapabilities networkCapabilities, int networkType, boolean roaming) argument
1083 notifyDataConnectionForSubscriber(int subId, int state, boolean isDataAllowed, String reason, String apn, String apnType, LinkProperties linkProperties, NetworkCapabilities networkCapabilities, int networkType, boolean roaming) argument
1534 broadcastDataConnectionStateChanged(int state, boolean isDataAllowed, String reason, String apn, String apnType, LinkProperties linkProperties, NetworkCapabilities networkCapabilities, boolean roaming, int subId) argument
1589 broadcastPreciseDataConnectionStateChanged(int state, int networkType, String apnType, String apn, String reason, LinkProperties linkProperties, String failCause) argument
[all...]
H A DConnectivityService.java1054 if (state == null || state.networkInfo == null || state.linkProperties == null) return;
1056 if (isNetworkWithLinkPropertiesBlocked(state.linkProperties, uid, ignoreBlocked)) {
1109 && isNetworkWithLinkPropertiesBlocked(nai.linkProperties, uid, ignoreBlocked)) {
1181 if (!isNetworkWithLinkPropertiesBlocked(state.linkProperties, uid, false)) {
1267 return state.linkProperties;
1276 return new LinkProperties(nai.linkProperties);
1294 return new LinkProperties(nai.linkProperties);
1419 lp = nai.linkProperties;
1665 final String iface = networkAgent.linkProperties.getInterfaceName();
1701 final String iface = networkAgent.linkProperties
4370 registerNetworkAgent(Messenger messenger, NetworkInfo networkInfo, LinkProperties linkProperties, NetworkCapabilities networkCapabilities, int currentScore, NetworkMisc networkMisc) argument
[all...]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
H A DWifiAwareDataPathStateManager.java494 LinkProperties linkProperties = new LinkProperties();
517 networkInfo, networkCapabilities, linkProperties)) {
524 networkCapabilities, linkProperties, NETWORK_FACTORY_SCORE_AVAIL,
1240 LinkProperties linkProperties) {
1283 linkProperties.setInterfaceName(nnri.interfaceName);
1284 linkProperties.addLinkAddress(new LinkAddress(linkLocal, 64));
1285 linkProperties.addRoute(
1237 configureAgentProperties(AwareNetworkRequestInformation nnri, Set<WifiAwareNetworkSpecifier> networkSpecifiers, int ndpId, NetworkInfo networkInfo, NetworkCapabilities networkCapabilities, LinkProperties linkProperties) argument
/frameworks/base/services/core/java/com/android/server/net/
H A DNetworkStatsService.java1037 final String baseIface = state.linkProperties.getInterfaceName();
1067 final List<LinkProperties> stackedLinks = state.linkProperties.getStackedLinks();

Completed in 492 milliseconds

12