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

/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.java396 LinkProperties linkProperties = mDct.getLinkProperties(PhoneConstants.APN_TYPE_DEFAULT);
397 assertEquals(FAKE_IFNAME, linkProperties.getInterfaceName());
398 assertEquals(1, linkProperties.getAddresses().size());
399 assertEquals(FAKE_ADDRESS, linkProperties.getAddresses().get(0).getHostAddress());
400 assertEquals(1, linkProperties.getDnsServers().size());
401 assertEquals(FAKE_DNS, linkProperties.getDnsServers().get(0).getHostAddress());
402 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.java2645 * @param linkProperties The new {@link LinkProperties} for this network.
2647 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.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.java1041 if (ns != null && ns.linkProperties != null && mCurrentUpstreamIface != null) {
1042 for (String ifname : ns.linkProperties.getAllInterfaceNames()) {
1276 LinkProperties linkProperties = cm.getLinkProperties(upType);
1277 if (linkProperties != null) {
1279 // interface described by linkProperties, or one of the interfaces
1281 Log.i(TAG, "Finding IPv4 upstream interface on: " + linkProperties);
1283 linkProperties.getAllRoutes(), Inet4Address.ANY);
1297 setDnsForwarders(network, linkProperties);
1348 (ns != null) ? ns.linkProperties : null);
1653 setDnsForwarders(ns.network, ns.linkProperties);
[all...]
H A DKeepaliveTracker.java166 for (InetAddress address : mNai.linkProperties.getAddresses()) {
H A DNetworkMonitor.java741 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.java259 null, prev.linkProperties, newNc, network, null, null));
267 if (prev == null || newLp.equals(prev.linkProperties)) {
/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/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);
764 LinkProperties linkProperties, NetworkCapabilities networkCapabilities,
768 // linkProperties), new NetworkCapabilities(networkCapabilities), currentScore,
763 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.java1084 String reason, String apn, String apnType, LinkProperties linkProperties,
1087 isDataConnectivityPossible,reason, apn, apnType, linkProperties,
1093 LinkProperties linkProperties, NetworkCapabilities networkCapabilities,
1130 mDataConnectionLinkProperties[phoneId] = linkProperties;
1161 apnType, apn, reason, linkProperties, "");
1177 apnType, linkProperties, networkCapabilities, roaming, subId);
1179 linkProperties, "");
1548 String reason, String apn, String apnType, LinkProperties linkProperties,
1562 if (linkProperties != null) {
1563 intent.putExtra(PhoneConstants.DATA_LINK_PROPERTIES_KEY, linkProperties);
1083 notifyDataConnection(int state, boolean isDataConnectivityPossible, String reason, String apn, String apnType, LinkProperties linkProperties, NetworkCapabilities networkCapabilities, int networkType, boolean roaming) argument
1091 notifyDataConnectionForSubscriber(int subId, int state, boolean isDataConnectivityPossible, String reason, String apn, String apnType, LinkProperties linkProperties, NetworkCapabilities networkCapabilities, int networkType, boolean roaming) argument
1546 broadcastDataConnectionStateChanged(int state, boolean isDataConnectivityPossible, String reason, String apn, String apnType, LinkProperties linkProperties, NetworkCapabilities networkCapabilities, boolean roaming, int subId) argument
1601 broadcastPreciseDataConnectionStateChanged(int state, int networkType, String apnType, String apn, String reason, LinkProperties linkProperties, String failCause) argument
[all...]
H A DConnectivityService.java1034 if (state == null || state.networkInfo == null || state.linkProperties == null) return;
1036 if (isNetworkWithLinkPropertiesBlocked(state.linkProperties, uid, ignoreBlocked)) {
1098 && isNetworkWithLinkPropertiesBlocked(nai.linkProperties, uid, ignoreBlocked)) {
1170 if (!isNetworkWithLinkPropertiesBlocked(state.linkProperties, uid, false)) {
1256 return state.linkProperties;
1265 return new LinkProperties(nai.linkProperties);
1283 return new LinkProperties(nai.linkProperties);
1413 lp = nai.linkProperties;
1653 final String iface = networkAgent.linkProperties.getInterfaceName();
1689 final String iface = networkAgent.linkProperties
4315 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.java455 LinkProperties linkProperties = new LinkProperties();
468 networkCapabilities, linkProperties)) {
475 networkCapabilities, linkProperties, NETWORK_FACTORY_SCORE_AVAIL,
944 NetworkCapabilities networkCapabilities, LinkProperties linkProperties) {
983 linkProperties.setInterfaceName(nnri.interfaceName);
984 linkProperties.addLinkAddress(new LinkAddress(linkLocal, 64));
985 linkProperties.addRoute(
942 configureAgentProperties(AwareNetworkRequestInformation nnri, WifiAwareNetworkSpecifier networkSpecifier, int ndpId, NetworkInfo networkInfo, NetworkCapabilities networkCapabilities, LinkProperties linkProperties) argument
/frameworks/base/services/core/java/com/android/server/net/
H A DNetworkStatsService.java984 final String baseIface = state.linkProperties.getInterfaceName();
1014 final List<LinkProperties> stackedLinks = state.linkProperties.getStackedLinks();
H A DNetworkPolicyManagerService.java1595 final String baseIface = state.linkProperties.getInterfaceName();
1602 final List<LinkProperties> stackedLinks = state.linkProperties.getStackedLinks();
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
H A DNetworkStatsServiceTest.java1008 final LinkProperties linkProp = state.length > 0 ? state[0].linkProperties : null;

Completed in 2115 milliseconds