/frameworks/base/services/core/java/com/android/server/ |
ConnectivityService.java | 573 private void maybeLogBroadcast(NetworkAgentInfo nai, DetailedState state, int type, 577 " broadcast for type " + type + " " + nai.name() + 583 public void add(int type, NetworkAgentInfo nai) { 587 if (VDBG) log("Adding agent " + nai + " for legacy network type " + type); 590 if (list.contains(nai)) { 594 list.add(nai); 598 final boolean isDefaultNetwork = isDefaultNetwork(nai); 600 maybeLogBroadcast(nai, DetailedState.CONNECTED, type, isDefaultNetwork); 601 sendLegacyNetworkBroadcast(nai, DetailedState.CONNECTED, type); 606 public void remove(int type, NetworkAgentInfo nai, boolean wasDefault) 941 final NetworkAgentInfo nai = mLegacyTypeTracker.getNetworkForType(networkType); local 984 NetworkAgentInfo nai = getDefaultNetwork(); local 1144 NetworkAgentInfo nai; local 1196 final NetworkAgentInfo nai = getNetworkAgentInfoForNetwork(network); local 1263 NetworkAgentInfo nai = getDefaultNetwork(); local 1317 NetworkAgentInfo nai = mLegacyTypeTracker.getNetworkForType(networkType); local 1330 NetworkAgentInfo nai = getNetworkAgentInfoForNetwork(network); local 1363 final NetworkAgentInfo nai = getNetworkAgentInfoForNetwork(network); local 1435 NetworkAgentInfo nai = mLegacyTypeTracker.getNetworkForType(networkType); local 2131 NetworkAgentInfo nai = mNetworkAgentInfos.get(msg.replyTo); local 2144 NetworkAgentInfo nai = mNetworkAgentInfos.get(msg.replyTo); local 2161 updateCapabilities(nai.getCurrentScore(), nai, networkCapabilities); local 2225 final NetworkAgentInfo nai; local 2260 final NetworkAgentInfo nai; local 2294 NetworkAgentInfo nai = (NetworkAgentInfo) msg.obj; local 2341 NetworkAgentInfo nai = mNetworkForRequestId.get(nri.request.requestId); local 2357 NetworkAgentInfo nai = mNetworkAgentInfos.remove(msg.replyTo); local 2372 NetworkAgentInfo nai = mNetworkAgentInfos.get(msg.replyTo); local 2621 NetworkAgentInfo nai = mNetworkForRequestId.get(nri.request.requestId); local 2641 updateCapabilities(nai.getCurrentScore(), nai, nai.networkCapabilities); local 2719 NetworkAgentInfo nai = getNetworkAgentInfoForNetwork(network); local 2756 NetworkAgentInfo nai = getNetworkAgentInfoForNetwork(network); local 2853 NetworkAgentInfo nai = getNetworkAgentInfoForNetwork(network); local 2973 NetworkAgentInfo nai = getNetworkAgentInfoForNetwork((Network) msg.obj); local 3148 NetworkAgentInfo nai = mLegacyTypeTracker.getNetworkForType(networkType); local 3158 NetworkAgentInfo nai; local 4179 NetworkAgentInfo nai = null; local 4419 final NetworkAgentInfo nai = new NetworkAgentInfo(messenger, new AsyncChannel(), local [all...] |
/frameworks/base/services/core/java/com/android/server/connectivity/ |
KeepaliveTracker.java | 101 public KeepaliveInfo(Messenger messenger, IBinder binder, NetworkAgentInfo nai, 108 mNai = nai; 230 private int findFirstFreeSlot(NetworkAgentInfo nai) { 231 HashMap networkKeepalives = mKeepalives.get(nai); 234 mKeepalives.put(nai, networkKeepalives); 250 NetworkAgentInfo nai = ki.getNai(); local 251 int slot = findFirstFreeSlot(nai); 252 mKeepalives.get(nai).put(slot, ki); 256 public void handleStopAllKeepalives(NetworkAgentInfo nai, int reason) { 257 HashMap <Integer, KeepaliveInfo> networkKeepalives = mKeepalives.get(nai); [all...] |
LingerMonitor.java | 107 private static boolean hasTransport(NetworkAgentInfo nai, int transport) { 108 return nai.networkCapabilities.hasTransport(transport); 120 private boolean everNotified(NetworkAgentInfo nai) { 121 return mEverNotified.get(nai.network.netId, false); 162 // Removes any notification that was put up as a result of switching to nai. 163 private void maybeStopNotifying(NetworkAgentInfo nai) { 164 int fromNetId = getNotificationSource(nai); 273 public void noteDisconnect(NetworkAgentInfo nai) { 274 mNotifications.delete(nai.network.netId); 275 mEverNotified.delete(nai.network.netId) [all...] |
Nat464Xlat.java | 81 Handler handler, NetworkAgentInfo nai) { 84 mNetwork = nai; 92 public static boolean requiresClat(NetworkAgentInfo nai) { 93 final int netType = nai.networkInfo.getType(); 94 final boolean connected = nai.networkInfo.isConnected(); 96 (nai.linkProperties != null) ? nai.linkProperties.hasIPv4Address() : false; 191 Slog.d(TAG, "clatd running, updating NAI for " + mIface);
|
NetworkNotificationManager.java | 57 private static int getFirstTransportType(NetworkAgentInfo nai) { 59 if (nai.networkCapabilities.hasTransport(i)) return i; 94 * @param nai the network with which the notification is associated. For a SIGN_IN, NO_INTERNET, 101 public void showNotification(int id, NotificationType notifyType, NetworkAgentInfo nai, 105 if (nai != null) { 106 transportType = getFirstTransportType(nai); 107 extraInfo = nai.networkInfo.getExtraInfo(); 109 if (!nai.networkCapabilities.hasCapability(NET_CAPABILITY_INTERNET)) return;
|
/packages/apps/Messaging/src/android/support/v7/mms/ |
MmsHttpClient.java | 77 // NAI (Network Access Identifier) 78 private static final String MACRO_NAI = "NAI"; 80 // The possible NAI system property name 81 private static final String NAI_PROPERTY = "persist.radio.cdma.nai"; 341 * macros like "##LINE1##" or "##NAI##" which is resolved with methods in this class 433 * Get encoded NAI string to use as the HTTP header for some carriers. 437 * @param naiSuffix the suffix to append to NAI before encoding 438 * @return the Base64 encoded NAI string to use as HTTP header 441 String nai; local 443 nai = getNaiBySystemApi [all...] |
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/ |
ConnectivityServiceMock.java | 259 NetworkAgentInfo nai = mNetworkAgentInfos.get(msg.replyTo); local 260 if (nai != null) nai.asyncChannel.disconnect(); 283 //NetworkAgentInfo nai = mNetworkForRequestId.get(nri.request.requestId); 284 NetworkAgentInfo nai = null; local 286 (nai != null ? nai.getCurrentScore() : 0), 0, nri.request); 300 NetworkAgentInfo nai = mNetworkAgentInfos.remove(msg.replyTo); local 301 //if (nai != null) { 302 // final boolean wasDefault = isDefaultNetwork(nai); 315 NetworkAgentInfo nai = mNetworkAgentInfos.get(msg.replyTo); local [all...] |
/packages/services/Mms/src/com/android/mms/service/ |
MmsHttpClient.java | 348 * macros like "##LINE1##" or "##NAI##" which is resolved with methods in this class 449 // NAI (Network Access Identifier), used by Sprint for authentication 450 private static final String MACRO_NAI = "NAI"; 456 * @param mmsConfig The MMS config which contains NAI suffix. 495 * Returns the NAI (Network Access Identifier) from SystemProperties for the given subscription 501 String nai = telephonyManager.getNai(SubscriptionManager.getSlotId(subId)); local 503 LogUtil.v("getNai: nai=" + nai); 506 if (!TextUtils.isEmpty(nai)) { 509 nai = nai + naiSuffix [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/connectivity/ |
LingerMonitorTest.java | 320 NetworkAgentInfo nai(int netId, int transport, int networkType, String networkTypeName) { method in class:LingerMonitorTest 325 NetworkAgentInfo nai = new NetworkAgentInfo(null, null, new Network(netId), info, null, local 327 nai.everValidated = true; 328 return nai; 332 return nai(netId, NetworkCapabilities.TRANSPORT_WIFI, 337 return nai(netId, NetworkCapabilities.TRANSPORT_CELLULAR,
|
/external/wpa_supplicant_8/src/eap_server/ |
eap_server.c | 433 * keyName-NAI has a maximum length of 253 octet to fit in 437 "EAP: Too long realm for ERP keyName-NAI maximum length"); 693 u8 flags, u16 seq, const char *nai) 715 plen = 1 + 2 + 2 + os_strlen(nai); 726 wpabuf_put_u8(msg, os_strlen(nai)); 727 wpabuf_put_str(msg, nai); 791 char nai[254]; local 828 * just try to find the keyName-NAI first so that we can check the 836 "EAP: No keyName-NAI in EAP-Initiate/Re-auth Packet"); 840 wpa_hexdump_ascii(MSG_DEBUG, "EAP: EAP-Initiate/Re-auth - keyName-NAI", [all...] |
/external/wpa_supplicant_8/wpa_supplicant/ |
interworking.c | 464 wpa_printf(MSG_DEBUG, "No room for NAI Realm Data " 469 len = WPA_GET_LE16(pos); /* NAI Realm Data field Length */ 472 wpa_printf(MSG_DEBUG, "No room for NAI Realm Data " 482 wpa_printf(MSG_DEBUG, "No room for NAI Realm " 487 wpa_hexdump_ascii(MSG_DEBUG, "NAI Realm", pos, realm_len); 533 wpa_printf(MSG_DEBUG, "NAI Realm Count: %u", num); 538 wpa_printf(MSG_DEBUG, "Invalid NAI Realm Count %u - not " 601 "nai-realm-cred-username: EAP method not supported: %d", 610 "nai-realm-cred-username: Method: %d is not TTLS, PEAP, or FAST", 619 "nai-realm-cred-username: PEAP/FAST: Inner method not supported: %d" 865 char nai[100]; local 2192 char nai[100], *realm; local [all...] |
/external/wpa_supplicant_8/src/eap_peer/ |
eap.c | 441 eap_erp_get_key_nai(struct eap_sm *sm, const char *nai) 446 if (os_strcmp(erp->keyname_nai, nai) == 0) 502 wpa_printf(MSG_DEBUG, "EAP: Realm for ERP keyName-NAI: %s", realm); 508 * keyName-NAI has a maximum length of 253 octet to fit in 512 "EAP: Too long realm for ERP keyName-NAI maximum length"); 1594 char nai[254]; local [all...] |
/frameworks/base/telephony/java/android/telephony/ |
TelephonyManager.java | [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
ConnectivityServiceTest.java | 662 NetworkAgentInfo nai, NetworkRequest defaultRequest) { 664 context, handler, nai, defaultRequest, mock(IpConnectivityLog.class)); [all...] |