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

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
H A DDataCallResponseTest.java61 LinkProperties linkProperties = new LinkProperties();
63 mDcResponse.setLinkProperties(linkProperties, true));
64 logd(linkProperties.toString());
65 assertEquals(mDcResponse.ifname, linkProperties.getInterfaceName());
66 assertEquals(mDcResponse.addresses.length, linkProperties.getAddresses().size());
69 linkProperties.getLinkAddresses().get(i).getAddress().getHostAddress());
72 assertEquals(mDcResponse.dnses.length, linkProperties.getDnsServers().size());
75 linkProperties.getDnsServers().get(i).getHostAddress());
78 assertEquals(mDcResponse.gateways.length, linkProperties.getRoutes().size());
81 linkProperties
[all...]
H A DDcTrackerTest.java388 LinkProperties linkProperties = mDct.getLinkProperties(PhoneConstants.APN_TYPE_DEFAULT);
389 assertEquals(FAKE_IFNAME, linkProperties.getInterfaceName());
390 assertEquals(1, linkProperties.getAddresses().size());
391 assertEquals(FAKE_ADDRESS, linkProperties.getAddresses().get(0).getHostAddress());
392 assertEquals(1, linkProperties.getDnsServers().size());
393 assertEquals(FAKE_DNS, linkProperties.getDnsServers().get(0).getHostAddress());
394 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.java2615 * @param linkProperties The new {@link LinkProperties} for this network.
2617 public void onLinkPropertiesChanged(Network network, LinkProperties linkProperties) {} argument
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
H A DDataCallResponse.java117 public SetupResult setLinkProperties(LinkProperties linkProperties, argument
123 if (linkProperties == null)
124 linkProperties = new LinkProperties();
126 linkProperties.clear();
133 linkProperties.setInterfaceName(ifname);
169 linkProperties.addLinkAddress(la);
188 linkProperties.addDnsServer(ia);
205 linkProperties.addDnsServer(ia);
231 linkProperties.addRoute(new RouteInfo(ia));
236 linkProperties
[all...]
/frameworks/base/services/core/java/com/android/server/connectivity/
H A DNat464Xlat.java96 (nai.linkProperties != null) ? nai.linkProperties.hasIPv4Address() : false;
128 if (mNetwork.linkProperties == null) {
140 mBaseIface = mNetwork.linkProperties.getInterfaceName();
189 mNetwork.linkProperties != null &&
190 !mNetwork.linkProperties.getAllInterfaceNames().contains(mIface)) {
194 mNetwork.linkProperties.addStackedLink(stacked);
254 LinkProperties lp = new LinkProperties(mNetwork.linkProperties);
282 LinkProperties lp = new LinkProperties(mNetwork.linkProperties);
H A DNetworkAgentInfo.java124 public LinkProperties linkProperties; field in class:NetworkAgentInfo
261 linkProperties = lp;
459 new LinkProperties(linkProperties),
557 "lp{" + linkProperties + "} " +
H A DTethering.java1163 new NetworkState(null, prev.linkProperties, ns.networkCapabilities,
1177 ns.network, ns.linkProperties));
1182 new NetworkState(null, ns.linkProperties, prev.networkCapabilities,
1203 if (ns != null && ns.linkProperties != null && mCurrentUpstreamIface != null) {
1204 for (String ifname : ns.linkProperties.getAllInterfaceNames()) {
1442 LinkProperties linkProperties = cm.getLinkProperties(upType);
1443 if (linkProperties != null) {
1445 // interface described by linkProperties, or one of the interfaces
1447 Log.i(TAG, "Finding IPv4 upstream interface on: " + linkProperties);
1449 linkProperties
[all...]
H A DKeepaliveTracker.java166 for (InetAddress address : mNai.linkProperties.getAddresses()) {
H A DNetworkMonitor.java656 final ProxyInfo proxyInfo = mNetworkAgentInfo.linkProperties.getHttpProxy();
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/
H A DIPv6TetheringCoordinator.java105 new LinkProperties(ns.linkProperties),
141 mUpstreamNetworkState.linkProperties);
168 (ns.linkProperties != null) && (ns.networkCapabilities != null) &&
170 ns.linkProperties.isProvisioned() &&
172 ns.linkProperties.hasIPv6DefaultRoute() &&
173 ns.linkProperties.hasGlobalIPv6Address() &&
184 for (RouteInfo r : ns.linkProperties.getAllRoutes()) {
273 ns.linkProperties);
/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/net/ethernet/java/com/android/server/ethernet/
H A DEthernetNetworkFactory.java294 LinkProperties linkProperties;
303 linkProperties = config.getStaticIpConfiguration().toLinkProperties(mIface);
340 linkProperties = ipmCallback.waitForProvisioning();
341 if (linkProperties == null) {
360 mLinkProperties = linkProperties;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DDefaultPhoneNotifier.java171 LinkProperties linkProperties = null;
176 linkProperties = sender.getLinkProperties(apnType);
189 linkProperties,
/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.java343 //updateClat(null, nai.linkProperties, nai);
843 LinkProperties linkProperties, NetworkCapabilities networkCapabilities,
847 // linkProperties), new NetworkCapabilities(networkCapabilities), currentScore,
842 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.java1002 String reason, String apn, String apnType, LinkProperties linkProperties,
1005 isDataConnectivityPossible,reason, apn, apnType, linkProperties,
1011 LinkProperties linkProperties, NetworkCapabilities networkCapabilities,
1048 mDataConnectionLinkProperties[phoneId] = linkProperties;
1077 apnType, apn, reason, linkProperties, "");
1092 apnType, linkProperties, networkCapabilities, roaming, subId);
1094 linkProperties, "");
1441 String reason, String apn, String apnType, LinkProperties linkProperties,
1455 if (linkProperties != null) {
1456 intent.putExtra(PhoneConstants.DATA_LINK_PROPERTIES_KEY, linkProperties);
1001 notifyDataConnection(int state, boolean isDataConnectivityPossible, String reason, String apn, String apnType, LinkProperties linkProperties, NetworkCapabilities networkCapabilities, int networkType, boolean roaming) argument
1009 notifyDataConnectionForSubscriber(int subId, int state, boolean isDataConnectivityPossible, String reason, String apn, String apnType, LinkProperties linkProperties, NetworkCapabilities networkCapabilities, int networkType, boolean roaming) argument
1439 broadcastDataConnectionStateChanged(int state, boolean isDataConnectivityPossible, String reason, String apn, String apnType, LinkProperties linkProperties, NetworkCapabilities networkCapabilities, boolean roaming, int subId) argument
1494 broadcastPreciseDataConnectionStateChanged(int state, int networkType, String apnType, String apn, String reason, LinkProperties linkProperties, String failCause) argument
[all...]
H A DConnectivityService.java1089 if (state == null || state.networkInfo == null || state.linkProperties == null) return;
1091 if (isNetworkWithLinkPropertiesBlocked(state.linkProperties, uid, ignoreBlocked)) {
1153 && isNetworkWithLinkPropertiesBlocked(nai.linkProperties, uid, ignoreBlocked)) {
1225 if (!isNetworkWithLinkPropertiesBlocked(state.linkProperties, uid, false)) {
1311 return state.linkProperties;
1320 return new LinkProperties(nai.linkProperties);
1333 return new LinkProperties(nai.linkProperties);
1465 lp = nai.linkProperties;
1757 final String iface = networkAgent.linkProperties.getInterfaceName();
1793 final String iface = networkAgent.linkProperties
4412 registerNetworkAgent(Messenger messenger, NetworkInfo networkInfo, LinkProperties linkProperties, NetworkCapabilities networkCapabilities, int currentScore, NetworkMisc networkMisc) argument
[all...]
/frameworks/base/services/core/java/com/android/server/net/
H A DNetworkStatsService.java973 final String baseIface = state.linkProperties.getInterfaceName();
1003 final List<LinkProperties> stackedLinks = state.linkProperties.getStackedLinks();
H A DNetworkPolicyManagerService.java1275 final String baseIface = state.linkProperties.getInterfaceName();
1282 final List<LinkProperties> stackedLinks = state.linkProperties.getStackedLinks();
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
H A DNetworkStatsServiceTest.java1074 final LinkProperties linkProp = state.length > 0 ? state[0].linkProperties : null;

Completed in 513 milliseconds