/frameworks/base/tests/net/java/com/android/server/connectivity/ |
IpConnectivityMetricsTest.java | 630 NetworkAgentInfo nai = mock(NetworkAgentInfo.class); local 631 when(nai.network()).thenReturn(new Network(netId)); 632 when(nai.getCurrentScore()).thenReturn(score); 633 nai.linkProperties = new LinkProperties(); 634 nai.networkCapabilities = new NetworkCapabilities(); 635 nai.lastValidated = true; 637 nai.networkCapabilities.addTransportType(t); 640 nai.linkProperties.addLinkAddress(new LinkAddress("192.0.2.12/24")); 641 nai.linkProperties.addRoute(new RouteInfo(new IpPrefix("0.0.0.0/0"))); 644 nai.linkProperties.addLinkAddress(new LinkAddress("2001:db8:dead:beef:f00::a0/64")) [all...] |
LingerMonitorTest.java | 346 NetworkAgentInfo nai(int netId, int transport, int networkType, String networkTypeName) { method in class:LingerMonitorTest 351 NetworkAgentInfo nai = new NetworkAgentInfo(null, null, new Network(netId), info, null, local 353 nai.everValidated = true; 354 return nai; 358 return nai(netId, NetworkCapabilities.TRANSPORT_WIFI, 363 return nai(netId, NetworkCapabilities.TRANSPORT_CELLULAR,
|
/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...] |
/frameworks/base/services/core/java/com/android/server/ |
ConnectivityService.java | 602 private void maybeLogBroadcast(NetworkAgentInfo nai, DetailedState state, int type, 606 " broadcast for type " + type + " " + nai.name() + 612 public void add(int type, NetworkAgentInfo nai) { 616 if (VDBG) log("Adding agent " + nai + " for legacy network type " + type); 619 if (list.contains(nai)) { 623 list.add(nai); 627 final boolean isDefaultNetwork = isDefaultNetwork(nai); 629 maybeLogBroadcast(nai, DetailedState.CONNECTED, type, isDefaultNetwork); 630 sendLegacyNetworkBroadcast(nai, DetailedState.CONNECTED, type); 635 public void remove(int type, NetworkAgentInfo nai, boolean wasDefault) 1027 final NetworkAgentInfo nai = mLegacyTypeTracker.getNetworkForType(networkType); local 1077 NetworkAgentInfo nai = getDefaultNetwork(); local 1199 NetworkAgentInfo nai; local 1255 final NetworkAgentInfo nai = getNetworkAgentInfoForNetwork(network); local 1322 NetworkAgentInfo nai = getDefaultNetwork(); local 1376 NetworkAgentInfo nai = mLegacyTypeTracker.getNetworkForType(networkType); local 1449 final NetworkAgentInfo nai = getNetworkAgentInfoForNetwork(network); local 1520 NetworkAgentInfo nai = mLegacyTypeTracker.getNetworkForType(networkType); local 2161 NetworkAgentInfo nai = mNetworkAgentInfos.get(msg.replyTo); local 2174 NetworkAgentInfo nai = mNetworkAgentInfos.get(msg.replyTo); local 2190 updateCapabilities(nai.getCurrentScore(), nai, networkCapabilities); local 2227 final NetworkAgentInfo nai = getNetworkAgentInfoForNetId(msg.arg2); local 2270 final NetworkAgentInfo nai = getNetworkAgentInfoForNetId(netId); local 2301 final NetworkAgentInfo nai = getNetworkAgentInfoForNetId(msg.arg2); local 2322 NetworkAgentInfo nai = (NetworkAgentInfo) msg.obj; local 2380 NetworkAgentInfo nai = getNetworkAgentInfoForNetId(update.netId); local 2415 NetworkAgentInfo nai = getNetworkForRequest(nri.request.requestId); local 2431 NetworkAgentInfo nai = mNetworkAgentInfos.remove(msg.replyTo); local 2449 NetworkAgentInfo nai = mNetworkAgentInfos.get(msg.replyTo); local 2709 NetworkAgentInfo nai = getNetworkForRequest(nri.request.requestId); local 2729 updateCapabilities(nai.getCurrentScore(), nai, nai.networkCapabilities); local 2806 NetworkAgentInfo nai = getNetworkAgentInfoForNetwork(network); local 2843 NetworkAgentInfo nai = getNetworkAgentInfoForNetwork(network); local 2951 NetworkAgentInfo nai = getNetworkAgentInfoForNetwork(network); local 2977 NetworkAgentInfo nai = getNetworkAgentInfoForNetwork(network); local 3071 NetworkAgentInfo nai = getNetworkAgentInfoForNetwork((Network) msg.obj); local 3303 NetworkAgentInfo nai = mLegacyTypeTracker.getNetworkForType(networkType); local 3320 final NetworkAgentInfo nai; local 4403 NetworkAgentInfo nai = null; local 4656 final NetworkAgentInfo nai = new NetworkAgentInfo(messenger, new AsyncChannel(), local [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/ |
OsuProviderInfo.java | 47 * | Icon Available Length | Icon Available | NAI Length | NAI | Description Length | 62 * - NAI Length (1) 82 List<IconInfo> iconInfoList, String nai, List<I18Name> serviceDescriptions) { 87 mNetworkAccessIdentifier = nai; 136 String nai = ByteBufferReader.readStringWithByteLength(payload, StandardCharsets.UTF_8); local 144 return new OsuProviderInfo(friendlyNameList, serverUri, methodList, iconInfoList, nai,
|
/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"); 695 u8 flags, u16 seq, const char *nai) 717 plen = 1 + 2 + 2 + os_strlen(nai); 728 wpabuf_put_u8(msg, os_strlen(nai)); 729 wpabuf_put_str(msg, nai); 793 char nai[254]; local 830 * just try to find the keyName-NAI first so that we can check the 838 "EAP: No keyName-NAI in EAP-Initiate/Re-auth Packet"); 842 wpa_hexdump_ascii(MSG_DEBUG, "EAP: EAP-Initiate/Re-auth - keyName-NAI", [all...] |
/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...] |
/packages/services/Mms/src/com/android/mms/service/ |
MmsHttpClient.java | 351 * macros like "##LINE1##" or "##NAI##" which is resolved with methods in this class 452 // NAI (Network Access Identifier), used by Sprint for authentication 453 private static final String MACRO_NAI = "NAI"; 459 * @param mmsConfig The MMS config which contains NAI suffix. 498 * Returns the NAI (Network Access Identifier) from SystemProperties for the given subscription 504 String nai = telephonyManager.getNai(SubscriptionManager.getSlotIndex(subId)); local 506 LogUtil.v("getNai: nai=" + nai); 509 if (!TextUtils.isEmpty(nai)) { 512 nai = nai + naiSuffix [all...] |
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/ |
ConnectivityServiceMock.java | 182 NetworkAgentInfo nai = mNetworkAgentInfos.get(msg.replyTo); local 183 if (nai != null) nai.asyncChannel.disconnect(); 206 //NetworkAgentInfo nai = mNetworkForRequestId.get(nri.request.requestId); 207 NetworkAgentInfo nai = null; local 209 (nai != null ? nai.getCurrentScore() : 0), 0, nri.request); 223 NetworkAgentInfo nai = mNetworkAgentInfos.remove(msg.replyTo); local 224 //if (nai != null) { 225 // final boolean wasDefault = isDefaultNetwork(nai); 238 NetworkAgentInfo nai = mNetworkAgentInfos.get(msg.replyTo); local [all...] |
/external/wpa_supplicant_8/src/eap_peer/ |
eap.c | 543 eap_erp_get_key_nai(struct eap_sm *sm, const char *nai) 548 if (os_strcmp(erp->keyname_nai, nai) == 0) 691 wpa_printf(MSG_DEBUG, "EAP: Realm for ERP keyName-NAI: %s", realm); 697 * keyName-NAI has a maximum length of 253 octet to fit in 701 "EAP: Too long realm for ERP keyName-NAI maximum length"); 1790 char nai[254]; local [all...] |
/external/wpa_supplicant_8/wpa_supplicant/ |
interworking.c | 466 wpa_printf(MSG_DEBUG, "No room for NAI Realm Data " 471 len = WPA_GET_LE16(pos); /* NAI Realm Data field Length */ 474 wpa_printf(MSG_DEBUG, "No room for NAI Realm Data " 484 wpa_printf(MSG_DEBUG, "No room for NAI Realm " 489 wpa_hexdump_ascii(MSG_DEBUG, "NAI Realm", pos, realm_len); 535 wpa_printf(MSG_DEBUG, "NAI Realm Count: %u", num); 540 wpa_printf(MSG_DEBUG, "Invalid NAI Realm Count %u - not " 603 "nai-realm-cred-username: EAP method not supported: %d", 612 "nai-realm-cred-username: Method: %d is not TTLS, PEAP, or FAST", 621 "nai-realm-cred-username: PEAP/FAST: Inner method not supported: %d" 867 char nai[100]; local 2185 char nai[100], *realm; local [all...] |
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
PasspointManagerTest.java | 1047 String nai = "access.test.com"; local [all...] |
/prebuilts/misc/common/robolectric/android-all/ |
android-all-7.0.0_r1-robolectric-0.jar | |