HomeSort by relevance Sort by last modified time
    Searched refs:nai (Results 1 - 18 of 18) sorted by null

  /frameworks/base/services/core/java/com/android/server/
ConnectivityService.java 567 private void maybeLogBroadcast(NetworkAgentInfo nai, DetailedState state, int type,
571 " broadcast for type " + type + " " + nai.name() +
577 public void add(int type, NetworkAgentInfo nai) {
581 if (VDBG) log("Adding agent " + nai + " for legacy network type " + type);
584 if (list.contains(nai)) {
588 list.add(nai);
592 final boolean isDefaultNetwork = isDefaultNetwork(nai);
594 maybeLogBroadcast(nai, DetailedState.CONNECTED, type, isDefaultNetwork);
595 sendLegacyNetworkBroadcast(nai, DetailedState.CONNECTED, type);
600 public void remove(int type, NetworkAgentInfo nai, boolean wasDefault)
939 final NetworkAgentInfo nai = mLegacyTypeTracker.getNetworkForType(networkType); local
982 NetworkAgentInfo nai = getDefaultNetwork(); local
1100 NetworkAgentInfo nai; local
1152 final NetworkAgentInfo nai = getNetworkAgentInfoForNetwork(network); local
1219 NetworkAgentInfo nai = getDefaultNetwork(); local
1273 NetworkAgentInfo nai = mLegacyTypeTracker.getNetworkForType(networkType); local
1322 final NetworkAgentInfo nai = getNetworkAgentInfoForNetwork(network); local
1388 NetworkAgentInfo nai = mLegacyTypeTracker.getNetworkForType(networkType); local
2003 NetworkAgentInfo nai = mNetworkAgentInfos.get(msg.replyTo); local
2016 NetworkAgentInfo nai = mNetworkAgentInfos.get(msg.replyTo); local
2032 updateCapabilities(nai.getCurrentScore(), nai, networkCapabilities); local
2087 final NetworkAgentInfo nai; local
2122 final NetworkAgentInfo nai; local
2170 NetworkAgentInfo nai = (NetworkAgentInfo) msg.obj; local
2217 NetworkAgentInfo nai = getNetworkForRequest(nri.request.requestId); local
2233 NetworkAgentInfo nai = mNetworkAgentInfos.remove(msg.replyTo); local
2248 NetworkAgentInfo nai = mNetworkAgentInfos.get(msg.replyTo); local
2494 NetworkAgentInfo nai = getNetworkForRequest(nri.request.requestId); local
2514 updateCapabilities(nai.getCurrentScore(), nai, nai.networkCapabilities); local
2591 NetworkAgentInfo nai = getNetworkAgentInfoForNetwork(network); local
2628 NetworkAgentInfo nai = getNetworkAgentInfoForNetwork(network); local
2736 NetworkAgentInfo nai = getNetworkAgentInfoForNetwork(network); local
2762 NetworkAgentInfo nai = getNetworkAgentInfoForNetwork(network); local
2851 NetworkAgentInfo nai = getNetworkAgentInfoForNetwork((Network) msg.obj); local
3075 NetworkAgentInfo nai = mLegacyTypeTracker.getNetworkForType(networkType); local
3092 final NetworkAgentInfo nai; local
4134 NetworkAgentInfo nai = null; local
4378 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 72 public Nat464Xlat(INetworkManagementService nmService, NetworkAgentInfo nai) {
74 mNetwork = nai;
82 public static boolean requiresClat(NetworkAgentInfo nai) {
84 final int netType = nai.networkInfo.getType();
85 final boolean supported = ArrayUtils.contains(NETWORK_TYPES, nai.networkInfo.getType());
88 final boolean connected = nai.networkInfo.isConnected();
91 (nai.linkProperties != null) && nai.linkProperties.hasIPv4Address();
241 Slog.d(TAG, "clatd running, updating NAI for " + mIface);
NetworkNotificationManager.java 84 private static int getFirstTransportType(NetworkAgentInfo nai) {
86 if (nai.networkCapabilities.hasTransport(i)) return i;
121 * @param nai the network with which the notification is associated. For a SIGN_IN, NO_INTERNET,
128 public void showNotification(int id, NotificationType notifyType, NetworkAgentInfo nai,
134 if (nai != null) {
135 transportType = getFirstTransportType(nai);
136 extraInfo = nai.networkInfo.getExtraInfo();
138 if (!nai.networkCapabilities.hasCapability(NET_CAPABILITY_INTERNET)) return;
  /frameworks/base/packages/Osu2/src/com/android/osu/
NetworkConnection.java 79 * @param nai The network access identifier associated with the AP
83 public NetworkConnection(Context context, Handler handler, WifiSsid ssid, String nai,
87 mNetworkId = connect(ssid, nai);
122 * @param nai Network access identifier of the network
127 private int connect(WifiSsid ssid, String nai) throws IOException {
130 if (TextUtils.isEmpty(nai)) {
  /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...]
  /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/base/wifi/java/android/net/wifi/hotspot2/
OsuProvider.java 85 Uri serverUri, String nai, List<Integer> methodList, Icon icon) {
90 mNetworkAccessIdentifier = nai;
218 String nai = in.readString();
223 nai, methodList, icon);
  /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,
  /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.getSlotIndex(subId)); local
503 LogUtil.v("getNai: nai=" + nai);
506 if (!TextUtils.isEmpty(nai)) {
509 nai = nai + naiSuffix
    [all...]
  /frameworks/base/tests/net/java/com/android/server/connectivity/
LingerMonitorTest.java 336 NetworkAgentInfo nai(int netId, int transport, int networkType, String networkTypeName) { method in class:LingerMonitorTest
341 NetworkAgentInfo nai = new NetworkAgentInfo(null, null, new Network(netId), info, null, local
343 nai.everValidated = true;
344 return nai;
348 return nai(netId, NetworkCapabilities.TRANSPORT_WIFI,
353 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");
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...]
  /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
2182 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");
1609 char nai[254]; local
    [all...]
  /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
PasspointManagerTest.java 922 String nai = "access.test.com"; local
    [all...]
  /frameworks/base/telephony/java/android/telephony/
TelephonyManager.java     [all...]
  /frameworks/base/tests/net/java/com/android/server/
ConnectivityServiceTest.java 762 NetworkAgentInfo nai, NetworkRequest defaultRequest) {
764 context, handler, nai, defaultRequest, mock(IpConnectivityLog.class));
    [all...]

Completed in 615 milliseconds