/frameworks/base/services/core/java/com/android/server/ |
D | ConnectivityService.java | 602 private void maybeLogBroadcast(NetworkAgentInfo nai, DetailedState state, int type, in maybeLogBroadcast() argument 606 " broadcast for type " + type + " " + nai.name() + in maybeLogBroadcast() 612 public void add(int type, NetworkAgentInfo nai) { in add() argument 616 if (VDBG) log("Adding agent " + nai + " for legacy network type " + type); in add() 619 if (list.contains(nai)) { in add() 623 list.add(nai); in add() 627 final boolean isDefaultNetwork = isDefaultNetwork(nai); in add() 629 maybeLogBroadcast(nai, DetailedState.CONNECTED, type, isDefaultNetwork); in add() 630 sendLegacyNetworkBroadcast(nai, DetailedState.CONNECTED, type); in add() 635 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 | 101 public KeepaliveInfo(Messenger messenger, IBinder binder, NetworkAgentInfo nai, in KeepaliveInfo() argument 108 mNai = nai; in KeepaliveInfo() 230 private int findFirstFreeSlot(NetworkAgentInfo nai) { in findFirstFreeSlot() argument 231 HashMap networkKeepalives = mKeepalives.get(nai); in findFirstFreeSlot() 234 mKeepalives.put(nai, networkKeepalives); in findFirstFreeSlot() 250 NetworkAgentInfo nai = ki.getNai(); in handleStartKeepalive() local 251 int slot = findFirstFreeSlot(nai); in handleStartKeepalive() 252 mKeepalives.get(nai).put(slot, ki); in handleStartKeepalive() 256 public void handleStopAllKeepalives(NetworkAgentInfo nai, int reason) { in handleStopAllKeepalives() argument 257 HashMap <Integer, KeepaliveInfo> networkKeepalives = mKeepalives.get(nai); in handleStopAllKeepalives() [all …]
|
D | LingerMonitor.java | 107 private static boolean hasTransport(NetworkAgentInfo nai, int transport) { in hasTransport() argument 108 return nai.networkCapabilities.hasTransport(transport); in hasTransport() 120 private boolean everNotified(NetworkAgentInfo nai) { in everNotified() argument 121 return mEverNotified.get(nai.network.netId, false); in everNotified() 163 private void maybeStopNotifying(NetworkAgentInfo nai) { in maybeStopNotifying() argument 164 int fromNetId = getNotificationSource(nai); in maybeStopNotifying() 273 public void noteDisconnect(NetworkAgentInfo nai) { in noteDisconnect() argument 274 mNotifications.delete(nai.network.netId); in noteDisconnect() 275 mEverNotified.delete(nai.network.netId); in noteDisconnect() 276 maybeStopNotifying(nai); in noteDisconnect()
|
D | Nat464Xlat.java | 79 public Nat464Xlat(INetworkManagementService nmService, NetworkAgentInfo nai) { in Nat464Xlat() argument 81 mNetwork = nai; in Nat464Xlat() 89 public static boolean requiresClat(NetworkAgentInfo nai) { in requiresClat() argument 91 final boolean supported = ArrayUtils.contains(NETWORK_TYPES, nai.networkInfo.getType()); in requiresClat() 92 final boolean connected = ArrayUtils.contains(NETWORK_STATES, nai.networkInfo.getState()); in requiresClat() 95 (nai.linkProperties != null) && nai.linkProperties.hasIPv4Address(); in requiresClat()
|
D | NetworkNotificationManager.java | 86 private static int getFirstTransportType(NetworkAgentInfo nai) { in getFirstTransportType() argument 88 if (nai.networkCapabilities.hasTransport(i)) return i; in getFirstTransportType() 130 public void showNotification(int id, NotificationType notifyType, NetworkAgentInfo nai, in showNotification() argument 136 if (nai != null) { in showNotification() 137 transportType = getFirstTransportType(nai); in showNotification() 138 final String extraInfo = nai.networkInfo.getExtraInfo(); in showNotification() 139 name = TextUtils.isEmpty(extraInfo) ? nai.networkCapabilities.getSSID() : extraInfo; in showNotification() 141 if (!nai.networkCapabilities.hasCapability(NET_CAPABILITY_INTERNET)) return; in showNotification() 182 WifiInfo.removeDoubleQuotes(nai.networkCapabilities.getSSID())); in showNotification()
|
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()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/ |
D | ConnectivityServiceMock.java | 182 NetworkAgentInfo nai = mNetworkAgentInfos.get(msg.replyTo); in handleMessage() local 183 if (nai != null) nai.asyncChannel.disconnect(); in handleMessage() 207 NetworkAgentInfo nai = null; in handleAsyncChannelHalfConnect() local 209 (nai != null ? nai.getCurrentScore() : 0), 0, nri.request); in handleAsyncChannelHalfConnect() 223 NetworkAgentInfo nai = mNetworkAgentInfos.remove(msg.replyTo); in handleAsyncChannelHalfConnect() local 238 NetworkAgentInfo nai = mNetworkAgentInfos.get(msg.replyTo); in handleAsyncChannelDisconnected() local 239 if (nai != null) { in handleAsyncChannelDisconnected() 241 log(nai.name() + " got DISCONNECTED, was satisfying " + nai.numNetworkRequests()); in handleAsyncChannelDisconnected() 264 nai.networkMonitor.sendMessage(NetworkMonitor.CMD_NETWORK_DISCONNECTED); in handleAsyncChannelDisconnected() 896 private void sendUpdatedScoreToFactories(NetworkAgentInfo nai) { in sendUpdatedScoreToFactories() argument [all …]
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | IpConnectivityMetricsTest.java | 630 NetworkAgentInfo nai = mock(NetworkAgentInfo.class); in makeNai() local 631 when(nai.network()).thenReturn(new Network(netId)); in makeNai() 632 when(nai.getCurrentScore()).thenReturn(score); in makeNai() 633 nai.linkProperties = new LinkProperties(); in makeNai() 634 nai.networkCapabilities = new NetworkCapabilities(); in makeNai() 635 nai.lastValidated = true; in makeNai() 637 nai.networkCapabilities.addTransportType(t); in makeNai() 640 nai.linkProperties.addLinkAddress(new LinkAddress("192.0.2.12/24")); in makeNai() 641 nai.linkProperties.addRoute(new RouteInfo(new IpPrefix("0.0.0.0/0"))); in makeNai() 644 nai.linkProperties.addLinkAddress(new LinkAddress("2001:db8:dead:beef:f00::a0/64")); in makeNai() [all …]
|
D | LingerMonitorTest.java | 346 NetworkAgentInfo nai(int netId, int transport, int networkType, String networkTypeName) { in nai() method in LingerMonitorTest 351 NetworkAgentInfo nai = new NetworkAgentInfo(null, null, new Network(netId), info, null, in nai() local 353 nai.everValidated = true; in nai() 354 return nai; in nai() 358 return nai(netId, NetworkCapabilities.TRANSPORT_WIFI, in wifiNai() 363 return nai(netId, NetworkCapabilities.TRANSPORT_CELLULAR, in cellNai()
|
/frameworks/base/wifi/java/android/net/wifi/hotspot2/ |
D | OsuProvider.java | 85 Uri serverUri, String nai, List<Integer> methodList, Icon icon) { in OsuProvider() argument 90 mNetworkAccessIdentifier = nai; in OsuProvider() 218 String nai = in.readString(); 223 nai, methodList, icon);
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/ |
D | OsuProviderInfo.java | 82 List<IconInfo> iconInfoList, String nai, List<I18Name> serviceDescriptions) { in OsuProviderInfo() argument 87 mNetworkAccessIdentifier = nai; in OsuProviderInfo() 136 String nai = ByteBufferReader.readStringWithByteLength(payload, StandardCharsets.UTF_8); in parse() local 144 return new OsuProviderInfo(friendlyNameList, serverUri, methodList, iconInfoList, nai, in parse()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | OsuNetworkConnection.java | 165 public boolean connect(WifiSsid ssid, String nai) { in connect() argument 179 if (TextUtils.isEmpty(nai)) { in connect()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | PasspointManagerTest.java | 1047 String nai = "access.test.com"; in getMatchingOsuProvidersWithMatch() local 1057 friendlyNames, serverUri, methodList, null, nai, serviceDescriptions)); in getMatchingOsuProvidersWithMatch() 1065 osuSsid, friendlyName, serviceDescription, serverUri, nai, methodList, null); in getMatchingOsuProvidersWithMatch()
|
/frameworks/base/tests/net/java/com/android/server/ |
D | ConnectivityServiceTest.java | 946 NetworkAgentInfo nai, NetworkRequest defaultRequest) { in createNetworkMonitor() argument 948 context, handler, nai, defaultRequest, mock(IpConnectivityLog.class)); in createNetworkMonitor()
|