/frameworks/base/services/core/java/com/android/server/ |
D | ConnectivityService.java | 743 private void maybeLogBroadcast(NetworkAgentInfo nai, DetailedState state, int type, in maybeLogBroadcast() argument 747 + " broadcast for type " + type + " " + nai.toShortString() in maybeLogBroadcast() 753 public void add(int type, NetworkAgentInfo nai) { in add() argument 757 if (VDBG) log("Adding agent " + nai + " for legacy network type " + type); in add() 760 if (list.contains(nai)) { in add() 764 list.add(nai); in add() 768 final boolean isDefaultNetwork = mService.isDefaultNetwork(nai); in add() 770 maybeLogBroadcast(nai, DetailedState.CONNECTED, type, isDefaultNetwork); in add() 771 mService.sendLegacyNetworkBroadcast(nai, DetailedState.CONNECTED, type); in add() 776 public void remove(int type, NetworkAgentInfo nai, boolean wasDefault) { in remove() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | KeepaliveTracker.java | 157 @NonNull NetworkAgentInfo nai, in KeepaliveInfo() argument 167 mNai = nai; in KeepaliveInfo() 440 private int findFirstFreeSlot(NetworkAgentInfo nai) { in findFirstFreeSlot() argument 441 HashMap networkKeepalives = mKeepalives.get(nai); in findFirstFreeSlot() 444 mKeepalives.put(nai, networkKeepalives); in findFirstFreeSlot() 460 NetworkAgentInfo nai = ki.getNai(); in handleStartKeepalive() local 461 int slot = findFirstFreeSlot(nai); in handleStartKeepalive() 462 mKeepalives.get(nai).put(slot, ki); in handleStartKeepalive() 466 public void handleStopAllKeepalives(NetworkAgentInfo nai, int reason) { in handleStopAllKeepalives() argument 467 final HashMap<Integer, KeepaliveInfo> networkKeepalives = mKeepalives.get(nai); in handleStopAllKeepalives() [all …]
|
D | NetworkRanker.java | 41 for (final NetworkAgentInfo nai : nais) { in getBestNetwork() 42 if (!nai.satisfies(request)) continue; in getBestNetwork() 43 if (nai.getCurrentScore() > bestScore) { in getBestNetwork() 44 bestNetwork = nai; in getBestNetwork() 45 bestScore = nai.getCurrentScore(); in getBestNetwork()
|
D | NetworkNotificationManager.java | 92 protected static int approximateTransportType(NetworkAgentInfo nai) { in approximateTransportType() argument 93 return nai.isVPN() ? TRANSPORT_VPN : getFirstTransportType(nai); in approximateTransportType() 97 private static int getFirstTransportType(NetworkAgentInfo nai) { in getFirstTransportType() argument 101 if (nai.networkCapabilities.hasTransport(i)) return i; in getFirstTransportType() 144 public void showNotification(int id, NotificationType notifyType, NetworkAgentInfo nai, in showNotification() argument 150 if (nai != null) { in showNotification() 151 transportType = approximateTransportType(nai); in showNotification() 152 final String extraInfo = nai.networkInfo.getExtraInfo(); in showNotification() 153 name = TextUtils.isEmpty(extraInfo) ? nai.networkCapabilities.getSsid() : extraInfo; in showNotification() 155 if (!nai.networkCapabilities.hasCapability(NET_CAPABILITY_INTERNET)) return; in showNotification() [all …]
|
D | LingerMonitor.java | 111 private static boolean hasTransport(NetworkAgentInfo nai, int transport) { in hasTransport() argument 112 return nai.networkCapabilities.hasTransport(transport); in hasTransport() 124 private boolean everNotified(NetworkAgentInfo nai) { in everNotified() argument 125 return mEverNotified.get(nai.network.netId, false); in everNotified() 167 private void maybeStopNotifying(NetworkAgentInfo nai) { in maybeStopNotifying() argument 168 int fromNetId = getNotificationSource(nai); in maybeStopNotifying() 294 public void noteDisconnect(NetworkAgentInfo nai) { in noteDisconnect() argument 295 mNotifications.delete(nai.network.netId); in noteDisconnect() 296 mEverNotified.delete(nai.network.netId); in noteDisconnect() 297 maybeStopNotifying(nai); in noteDisconnect()
|
D | Nat464Xlat.java | 101 public Nat464Xlat(NetworkAgentInfo nai, INetd netd, IDnsResolver dnsResolver, in Nat464Xlat() argument 106 mNetwork = nai; in Nat464Xlat() 118 protected static boolean requiresClat(NetworkAgentInfo nai) { in requiresClat() argument 120 final boolean supported = ArrayUtils.contains(NETWORK_TYPES, nai.networkInfo.getType()); in requiresClat() 121 final boolean connected = ArrayUtils.contains(NETWORK_STATES, nai.networkInfo.getState()); in requiresClat() 125 LinkProperties lp = nai.linkProperties; in requiresClat() 130 final boolean skip464xlat = (nai.netAgentConfig() != null) in requiresClat() 131 && nai.netAgentConfig().skip464xlat; in requiresClat() 144 protected static boolean shouldStartClat(NetworkAgentInfo nai) { in shouldStartClat() argument 145 LinkProperties lp = nai.linkProperties; in shouldStartClat() [all …]
|
D | DefaultNetworkMetrics.java | 162 private static void fillLinkInfo(DefaultNetworkEvent ev, NetworkAgentInfo nai) { in fillLinkInfo() argument 163 LinkProperties lp = nai.linkProperties; in fillLinkInfo() 164 ev.netId = nai.network().netId; in fillLinkInfo() 165 ev.transports |= BitUtils.packBits(nai.networkCapabilities.getTransportTypes()); in fillLinkInfo()
|
D | NetworkAgentInfo.java | 702 public static String toShortString(@Nullable final NetworkAgentInfo nai) { in toShortString() argument 703 return null != nai ? nai.toShortString() : "[null]"; in toShortString()
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | IpConnectivityMetricsTest.java | 586 NetworkAgentInfo nai = mock(NetworkAgentInfo.class); in makeNai() local 587 when(nai.network()).thenReturn(new Network(netId)); in makeNai() 588 when(nai.getCurrentScore()).thenReturn(score); in makeNai() 589 nai.linkProperties = new LinkProperties(); in makeNai() 590 nai.networkCapabilities = new NetworkCapabilities(); in makeNai() 591 nai.lastValidated = true; in makeNai() 593 nai.networkCapabilities.addTransportType(t); in makeNai() 596 nai.linkProperties.addLinkAddress(new LinkAddress("192.0.2.12/24")); in makeNai() 597 nai.linkProperties.addRoute(new RouteInfo(new IpPrefix("0.0.0.0/0"))); in makeNai() 600 nai.linkProperties.addLinkAddress(new LinkAddress("2001:db8:dead:beef:f00::a0/64")); in makeNai() [all …]
|
D | Nat464XlatTest.java | 114 private void assertRequiresClat(boolean expected, NetworkAgentInfo nai) { 116 + "nat64Prefix=%s addresses=%s", expected, nai.networkInfo.getType(), 117 nai.networkInfo.getDetailedState(), 118 mAgentConfig.skip464xlat, nai.linkProperties.getNat64Prefix(), 119 nai.linkProperties.getLinkAddresses()); 120 assertEquals(msg, expected, Nat464Xlat.requiresClat(nai)); 123 private void assertShouldStartClat(boolean expected, NetworkAgentInfo nai) { 125 + "nat64Prefix=%s addresses=%s", expected, nai.networkInfo.getType(), 126 nai.networkInfo.getDetailedState(), 127 mAgentConfig.skip464xlat, nai.linkProperties.getNat64Prefix(), [all …]
|
D | LingerMonitorTest.java | 351 NetworkAgentInfo nai(int netId, int transport, int networkType, String networkTypeName) { in nai() method in LingerMonitorTest 356 NetworkAgentInfo nai = new NetworkAgentInfo(null, null, new Network(netId), info, null, in nai() local 359 nai.everValidated = true; in nai() 360 return nai; in nai() 364 return nai(netId, NetworkCapabilities.TRANSPORT_WIFI, in wifiNai() 369 return nai(netId, NetworkCapabilities.TRANSPORT_CELLULAR, in cellNai()
|
D | NetworkNotificationManagerTest.java | 113 private void verifyTitleByNetwork(final int id, final NetworkAgentInfo nai, final int title) { in verifyTitleByNetwork() argument 115 mManager.showNotification(id, PRIVATE_DNS_BROKEN, nai, null, null, true); in verifyTitleByNetwork() 118 final int transportType = NetworkNotificationManager.approximateTransportType(nai); in verifyTitleByNetwork()
|
/frameworks/base/wifi/java/android/net/wifi/hotspot2/ |
D | OsuProvider.java | 95 String serviceDescription, Uri serverUri, String nai, List<Integer> methodList, in OsuProvider() argument 101 mNetworkAccessIdentifier = nai; in OsuProvider() 269 String nai = in.readString(); 277 serverUri, nai, methodList, icon);
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/ |
D | OsuProviderInfo.java | 84 List<IconInfo> iconInfoList, String nai, List<I18Name> serviceDescriptions) { in OsuProviderInfo() argument 93 mNetworkAccessIdentifier = nai; in OsuProviderInfo() 142 String nai = ByteBufferReader.readStringWithByteLength(payload, StandardCharsets.UTF_8); in parse() local 150 return new OsuProviderInfo(friendlyNameList, serverUri, methodList, iconInfoList, nai, in parse()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | OsuNetworkConnection.java | 167 public boolean connect(WifiSsid ssid, String nai, String friendlyName) { in connect() argument 192 if (TextUtils.isEmpty(nai)) { in connect()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | PasspointManagerTest.java | 1162 String nai = "access.test.com"; in getMatchingOsuProvidersWithMatch() local 1174 serverUri, nai, methodList, null)); in getMatchingOsuProvidersWithMatch() 1178 friendlyNames, serverUri, methodList, null, nai, serviceDescriptions)); in getMatchingOsuProvidersWithMatch() 1183 friendlyNames, serverUri, methodList, null, nai, serviceDescriptions)); in getMatchingOsuProvidersWithMatch() 1186 serverUri, nai, methodList, in getMatchingOsuProvidersWithMatch()
|
/frameworks/base/telephony/java/android/telephony/ |
D | TelephonyManager.java | 2137 String nai = info.getNaiForSubscriber(subId, mContext.getOpPackageName(), in getNaiBySubscriberId() 2140 Rlog.v(TAG, "Nai = " + nai); in getNaiBySubscriberId() 2142 return nai; in getNaiBySubscriberId()
|