Home | History | Annotate | Download | only in server

Lines Matching refs:LinkProperties

55 import android.net.LinkProperties;
56 import android.net.LinkProperties.CompareResult;
829 LinkProperties lp = null;
839 lp = new LinkProperties(nai.linkProperties);
851 lp = new LinkProperties();
885 LinkProperties lp = null;
909 lp = new LinkProperties(nai.linkProperties);
922 * Check if UID should be blocked from using the network with the given LinkProperties.
924 private boolean isNetworkWithLinkPropertiesBlocked(LinkProperties lp, int uid) {
948 private NetworkInfo getFilteredNetworkInfo(NetworkInfo info, LinkProperties lp, int uid) {
977 return getFilteredNetworkInfo(state.networkInfo, state.linkProperties, uid);
998 if (nai != null && isNetworkWithLinkPropertiesBlocked(nai.linkProperties, uid)) nai = null;
1013 return getFilteredNetworkInfo(state.networkInfo, state.linkProperties, uid);
1026 return getFilteredNetworkInfo(state.networkInfo, state.linkProperties, uid);
1042 info = getFilteredNetworkInfo(info, nai.linkProperties, uid);
1067 if (!isNetworkWithLinkPropertiesBlocked(state.linkProperties, uid)) {
1141 * Return LinkProperties for the active (i.e., connected) default
1149 public LinkProperties getActiveLinkProperties() {
1153 return state.linkProperties;
1157 public LinkProperties getLinkPropertiesForType(int networkType) {
1162 return new LinkProperties(nai.linkProperties);
1170 public LinkProperties getLinkProperties(Network network) {
1175 return new LinkProperties(nai.linkProperties);
1210 result.add(new NetworkState(nai.networkInfo, nai.linkProperties,
1323 LinkProperties lp;
1326 lp = nai.linkProperties;
1337 private boolean addLegacyRouteToHost(LinkProperties lp, InetAddress addr, int netId, int uid) {
1579 final String iface = networkAgent.linkProperties.getInterfaceName();
1615 final String iface = networkAgent.linkProperties.getInterfaceName();
1633 private void updateMtu(LinkProperties newLp, LinkProperties oldLp) {
1641 if (LinkProperties.isValidMtu(mtu, newLp.hasGlobalIPv6Address()) == false) {
1674 String tcpBufferSizes = nai.linkProperties.getTcpBufferSizes();
1776 new LinkProperties(nai.linkProperties), // Must be a copy.
1937 log("Update of LinkProperties for " + nai.name() +
1940 LinkProperties oldLp = nai.linkProperties;
1942 nai.linkProperties = (LinkProperties)msg.obj;
2153 updateClat(null, nai.linkProperties, nai);
2675 if (isNetworkWithLinkPropertiesBlocked(nai.linkProperties, uid)) return;
2703 final ProxyInfo proxyInfo = nai.linkProperties.getHttpProxy();
2859 private void updateProxy(LinkProperties newLp, LinkProperties oldLp, NetworkAgentInfo nai) {
3034 final LinkProperties egress = getActiveLinkProperties();
3099 if (defaultNetwork != null && defaultNetwork.linkProperties != null) {
3100 info.primaryUnderlyingIface = getDefaultNetwork().linkProperties.getInterfaceName();
3103 LinkProperties linkProperties = getLinkProperties(underlyingNetworks[0]);
3104 if (linkProperties != null) {
3105 info.primaryUnderlyingIface = linkProperties.getInterfaceName();
3800 LinkProperties linkProperties, NetworkCapabilities networkCapabilities,
3807 new Network(reserveNetId()), new NetworkInfo(networkInfo), new LinkProperties(
3808 linkProperties), new NetworkCapabilities(networkCapabilities), currentScore,
3831 private void updateLinkProperties(NetworkAgentInfo networkAgent, LinkProperties oldLp) {
3832 LinkProperties newLp = networkAgent.linkProperties;
3836 // we do anything else, make sure its LinkProperties are accurate.
3844 // for (LinkProperties lp : newLp.getStackedLinks()) {
3871 private void updateClat(LinkProperties newLp, LinkProperties oldLp, NetworkAgentInfo nai) {
3883 private void updateInterfaces(LinkProperties newLp, LinkProperties oldLp, int netId) {
3912 private boolean updateRoutes(LinkProperties newLp, LinkProperties oldLp, int netId) {
3957 private void updateDnses(LinkProperties newLp, LinkProperties oldLp, int netId,
4120 bundle.putParcelable(LinkProperties.class.getSimpleName(),
4121 new LinkProperties(networkAgent.linkProperties));
4168 handleApplyDefaultProxy(newNetwork.linkProperties.getHttpProxy());
4170 setDefaultDnsSystemProperties(newNetwork.linkProperties.getDnsServers());
4360 final String baseIface = newNetwork.linkProperties.getInterfaceName();
4362 for (LinkProperties stacked : newNetwork.linkProperties.getStackedLinks()) {
4501 !networkAgent.linkProperties.getDnsServers().isEmpty(),