Home
last modified time | relevance | path

Searched refs:nai (Results 1 – 25 of 33) sorted by relevance

12

/packages/modules/Connectivity/service/src/com/android/server/
DConnectivityService.java1219 private void maybeLogBroadcast(NetworkAgentInfo nai, DetailedState state, int type, in maybeLogBroadcast() argument
1223 + " broadcast for type " + type + " " + nai.toShortString() in maybeLogBroadcast()
1250 public void add(int type, NetworkAgentInfo nai) { in add() argument
1254 if (VDBG) log("Adding agent " + nai + " for legacy network type " + type); in add()
1257 if (list.contains(nai)) { in add()
1261 list.add(nai); in add()
1265 final boolean isDefaultNetwork = mService.isDefaultNetwork(nai); in add()
1271 maybeLogBroadcast(nai, state, type, isDefaultNetwork); in add()
1272 mService.sendLegacyNetworkBroadcast(nai, state, type); in add()
1276 maybeSendLegacyLockdownBroadcast(nai); in add()
[all …]
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DDscpPolicyTracker.java130 private void sendStatus(NetworkAgentInfo nai, int policyId, int status) { in sendStatus() argument
132 nai.networkAgent.onDscpPolicyStatusUpdated(policyId, status); in sendStatus()
152 private int getIfaceIndex(NetworkAgentInfo nai) { in getIfaceIndex() argument
153 String iface = nai.linkProperties.getInterfaceName(); in getIfaceIndex()
234 public void addDscpPolicy(NetworkAgentInfo nai, DscpPolicy policy) { in addDscpPolicy() argument
235 String iface = nai.linkProperties.getInterfaceName(); in addDscpPolicy()
238 sendStatus(nai, policy.getPolicyId(), DSCP_POLICY_STATUS_REQUEST_DECLINED); in addDscpPolicy()
243 sendStatus(nai, policy.getPolicyId(), in addDscpPolicy()
248 final int ifIndex = getIfaceIndex(nai); in addDscpPolicy()
251 sendStatus(nai, policy.getPolicyId(), DSCP_POLICY_STATUS_REQUEST_DECLINED); in addDscpPolicy()
[all …]
DNetworkRanker.java115 final ArrayList<NetworkAgentInfo> candidates = filter(nais, nai -> nai.satisfies(request)); in getBestNetwork()
250 partitionInto(candidates, nai -> nai.getScore().hasPolicy(POLICY_IS_INVINCIBLE), in getBestNetworkByPolicy()
256 partitionInto(candidates, nai -> nai.getScore().hasPolicy(POLICY_IS_VPN), in getBestNetworkByPolicy()
263 partitionInto(candidates, nai -> nai.getScore().hasPolicy(POLICY_EVER_USER_SELECTED) in getBestNetworkByPolicy()
264 && nai.getScore().hasPolicy(POLICY_ACCEPT_UNVALIDATED), in getBestNetworkByPolicy()
271 partitionInto(candidates, nai -> nai.getScore().hasPolicy(POLICY_IS_VALIDATED) in getBestNetworkByPolicy()
272 || nai.getScore().hasPolicy(POLICY_ACCEPT_UNVALIDATED), in getBestNetworkByPolicy()
282 partitionInto(candidates, nai -> !nai.getScore().hasPolicy(POLICY_EXITING), in getBestNetworkByPolicy()
304 partitionInto(candidates, nai -> nai.getScore().hasPolicy(POLICY_TRANSPORT_PRIMARY), in getBestNetworkByPolicy()
315 nai -> Arrays.equals(transports, nai.getCapsNoCopy().getTransportTypes())); in getBestNetworkByPolicy()
[all …]
DKeepaliveTracker.java179 @NonNull NetworkAgentInfo nai, in KeepaliveInfo() argument
184 this(callback, nai, packet, Binder.getCallingPid(), Binder.getCallingUid(), interval, in KeepaliveInfo()
189 @NonNull NetworkAgentInfo nai, in KeepaliveInfo() argument
203 mNai = nai; in KeepaliveInfo()
515 private int findFirstFreeSlot(NetworkAgentInfo nai) { in findFirstFreeSlot() argument
516 HashMap networkKeepalives = mKeepalives.get(nai); in findFirstFreeSlot()
519 mKeepalives.put(nai, networkKeepalives); in findFirstFreeSlot()
551 final NetworkAgentInfo nai = newKi.getNai(); in handleStartKeepalive() local
554 final int slot = NO_KEEPALIVE != newKi.mSlot ? newKi.mSlot : findFirstFreeSlot(nai); in handleStartKeepalive()
555 mKeepalives.get(nai).put(slot, newKi); in handleStartKeepalive()
[all …]
DNetworkNotificationManager.java109 protected static int approximateTransportType(NetworkAgentInfo nai) { in approximateTransportType() argument
110 return nai.isVPN() ? TRANSPORT_VPN : getFirstTransportType(nai); in approximateTransportType()
114 private static int getFirstTransportType(NetworkAgentInfo nai) { in getFirstTransportType() argument
118 if (nai.networkCapabilities.hasTransport(i)) return i; in getFirstTransportType()
160 public void showNotification(int id, NotificationType notifyType, NetworkAgentInfo nai, in showNotification() argument
166 if (nai != null) { in showNotification()
167 transportType = approximateTransportType(nai); in showNotification()
168 final String extraInfo = nai.networkInfo.getExtraInfo(); in showNotification()
169 if (nai.linkProperties != null && nai.linkProperties.getCaptivePortalData() != null in showNotification()
170 && !TextUtils.isEmpty(nai.linkProperties.getCaptivePortalData() in showNotification()
[all …]
DLingerMonitor.java114 private static boolean hasTransport(NetworkAgentInfo nai, int transport) { in hasTransport() argument
115 return nai.networkCapabilities.hasTransport(transport); in hasTransport()
127 private boolean everNotified(NetworkAgentInfo nai) { in everNotified() argument
128 return mEverNotified.get(nai.network.getNetId(), false); in everNotified()
172 private void maybeStopNotifying(NetworkAgentInfo nai) { in maybeStopNotifying() argument
173 int fromNetId = getNotificationSource(nai); in maybeStopNotifying()
298 public void noteDisconnect(NetworkAgentInfo nai) { in noteDisconnect() argument
299 mNotifications.delete(nai.network.getNetId()); in noteDisconnect()
300 mEverNotified.delete(nai.network.getNetId()); in noteDisconnect()
301 maybeStopNotifying(nai); in noteDisconnect()
DNat464Xlat.java112 public Nat464Xlat(NetworkAgentInfo nai, INetd netd, IDnsResolver dnsResolver, in Nat464Xlat() argument
116 mNetwork = nai; in Nat464Xlat()
134 protected boolean requiresClat(NetworkAgentInfo nai) { in requiresClat() argument
136 final boolean supported = contains(NETWORK_TYPES, nai.networkInfo.getType()); in requiresClat()
137 final boolean connected = contains(NETWORK_STATES, nai.networkInfo.getState()); in requiresClat()
142 final boolean isTestNetwork = nai.networkCapabilities.hasTransport(TRANSPORT_TEST); in requiresClat()
146 LinkProperties lp = nai.linkProperties; in requiresClat()
151 final boolean skip464xlat = (nai.netAgentConfig() != null) in requiresClat()
152 && nai.netAgentConfig().skip464xlat; in requiresClat()
155 && !nai.isDestroyed() && (nai.networkCapabilities.hasTransport(TRANSPORT_CELLULAR) in requiresClat()
[all …]
DAutomaticOnOffKeepaliveTracker.java454 public void handleEventSocketKeepalive(@NonNull NetworkAgentInfo nai, int slot, int reason) { in handleEventSocketKeepalive() argument
455 if (mKeepaliveTracker.handleEventSocketKeepalive(nai, slot, reason)) return; in handleEventSocketKeepalive()
460 mAutomaticOnOffKeepalives, it -> it.match(nai.network(), slot)); in handleEventSocketKeepalive()
474 public void handleStopAllKeepalives(NetworkAgentInfo nai, int reason) { in handleStopAllKeepalives() argument
475 mEventLog.log("Stop all keepalives on " + nai.network + " because " + reason); in handleStopAllKeepalives()
476 mKeepaliveTracker.handleStopAllKeepalives(nai, reason); in handleStopAllKeepalives()
478 CollectionUtils.filter(mAutomaticOnOffKeepalives, it -> it.mKi.getNai() == nai); in handleStopAllKeepalives()
602 public void startNattKeepalive(@Nullable NetworkAgentInfo nai, in startNattKeepalive() argument
610 final KeepaliveTracker.KeepaliveInfo ki = mKeepaliveTracker.makeNattKeepaliveInfo(nai, fd, in startNattKeepalive()
616 mEventLog.log("Start natt keepalive " + cb + " on " + nai.network in startNattKeepalive()
[all …]
DNetworkAgentInfo.java1656 public static String toShortString(@Nullable final NetworkAgentInfo nai) {
1657 return null != nai ? nai.toShortString() : "[null]";
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DIpConnectivityMetricsTest.java137 private void logDefaultNetworkEvent(long timeMs, NetworkAgentInfo nai, in logDefaultNetworkEvent() argument
139 final Network network = (nai != null) ? nai.network() : null; in logDefaultNetworkEvent()
140 final boolean validated = (nai != null) ? nai.isValidated() : false; in logDefaultNetworkEvent()
141 final LinkProperties lp = (nai != null) ? nai.linkProperties : null; in logDefaultNetworkEvent()
142 final NetworkCapabilities nc = (nai != null) ? nai.networkCapabilities : null; in logDefaultNetworkEvent()
612 NetworkAgentInfo nai = mock(NetworkAgentInfo.class); in makeNai() local
613 when(nai.network()).thenReturn(new Network(netId)); in makeNai()
614 nai.linkProperties = new LinkProperties(); in makeNai()
615 nai.networkCapabilities = new NetworkCapabilities(); in makeNai()
616 nai.setValidated(true); in makeNai()
[all …]
DNat464XlatTest.java145 private void assertRequiresClat(boolean expected, NetworkAgentInfo nai) {
148 + "nat64Prefix=%s addresses=%s", expected, nai.networkInfo.getType(),
149 nai.networkInfo.getDetailedState(),
150 mAgentConfig.skip464xlat, nai.linkProperties.getNat64Prefix(),
151 nai.linkProperties.getLinkAddresses());
152 assertEquals(msg, expected, nat.requiresClat(nai));
155 private void assertShouldStartClat(boolean expected, NetworkAgentInfo nai) {
158 + "nat64Prefix=%s addresses=%s", expected, nai.networkInfo.getType(),
159 nai.networkInfo.getDetailedState(),
160 mAgentConfig.skip464xlat, nai.linkProperties.getNat64Prefix(),
[all …]
DLingerMonitorTest.java368 NetworkAgentInfo nai(int netId, int transport, int networkType, String networkTypeName, in nai() method in LingerMonitorTest
374 NetworkAgentInfo nai = new NetworkAgentInfo(null, new Network(netId), info, in nai() local
384 nai.setValidated(true); in nai()
385 nai.setValidated(false); in nai()
387 return nai; in nai()
395 return nai(netId, NetworkCapabilities.TRANSPORT_WIFI, in wifiNai()
404 return nai(netId, NetworkCapabilities.TRANSPORT_CELLULAR, in cellNai()
DNetworkNotificationManagerTest.java220 private void verifyTitleByNetwork(final int id, final NetworkAgentInfo nai, final int title) { in verifyTitleByNetwork() argument
222 mManager.showNotification(id, PRIVATE_DNS_BROKEN, nai, null, null, true); in verifyTitleByNetwork()
225 final int transportType = NetworkNotificationManager.approximateTransportType(nai); in verifyTitleByNetwork()
553 private void runSignInNotificationTest(NetworkAgentInfo nai, String testTitle, in runSignInNotificationTest() argument
557 mManager.showNotification(id, SIGN_IN, nai, null, null, false); in runSignInNotificationTest()
DAutomaticOnOffKeepaliveTrackerTest.java273 public KeepaliveInfo makeNattKeepaliveInfo(@Nullable final NetworkAgentInfo nai, in makeNattKeepaliveInfo() argument
286 public KeepaliveInfo makeTcpKeepaliveInfo(@Nullable final NetworkAgentInfo nai, in makeTcpKeepaliveInfo() argument
/packages/modules/Wifi/framework/java/android/net/wifi/hotspot2/
DOsuProvider.java90 String serviceDescription, Uri serverUri, String nai, List<Integer> methodList) { in OsuProvider() argument
92 friendlyNames, serviceDescription, serverUri, nai, methodList); in OsuProvider()
97 String serviceDescription, Uri serverUri, String nai, List<Integer> methodList) { in OsuProvider() argument
102 mNetworkAccessIdentifier = nai; in OsuProvider()
255 String nai = in.readString();
262 serverUri, nai, methodList);
/packages/services/Mms/src/com/android/mms/service/
DMmsHttpClient.java512 String nai = telephonyManager.getNai(); in getNai() local
514 LogUtil.v("getNai: nai=" + nai); in getNai()
517 if (!TextUtils.isEmpty(nai)) { in getNai()
520 nai = nai + naiSuffix; in getNai()
524 encoded = Base64.encode(nai.getBytes("UTF-8"), Base64.NO_WRAP); in getNai()
526 encoded = Base64.encode(nai.getBytes(), Base64.NO_WRAP); in getNai()
529 nai = new String(encoded, "UTF-8"); in getNai()
531 nai = new String(encoded); in getNai()
534 return nai; in getNai()
/packages/apps/Messaging/src/android/support/v7/mms/
DMmsHttpClient.java441 String nai; in getEncodedNai() local
443 nai = getNaiBySystemApi( in getEncodedNai()
446 nai = getNaiBySystemProperty(); in getEncodedNai()
448 if (!TextUtils.isEmpty(nai)) { in getEncodedNai()
451 nai = nai + naiSuffix; in getEncodedNai()
455 encoded = Base64.encode(nai.getBytes("UTF-8"), Base64.NO_WRAP); in getEncodedNai()
457 encoded = Base64.encode(nai.getBytes(), Base64.NO_WRAP); in getEncodedNai()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/anqp/
DOsuProviderInfo.java84 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()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DOsuNetworkConnection.java168 public boolean connect(WifiSsid ssid, String nai, String friendlyName) { in connect() argument
193 if (TextUtils.isEmpty(nai)) { in connect()
198 config.enterpriseConfig.setDomainSuffixMatch(nai); in connect()
/packages/services/Iwlan/src/com/google/android/iwlan/epdg/
DEpdgTunnelManager.java1761 String nai; in getLocalIdentification() local
1763 nai = IwlanHelper.getNai(mContext, mSlotId, mNextReauthId); in getLocalIdentification()
1765 if (nai == null) { in getLocalIdentification()
1769 Log.d(TAG, "getLocalIdentification: Nai: " + nai); in getLocalIdentification()
1770 return getId(nai, true); in getLocalIdentification()
1793 String nai = IwlanHelper.getNai(mContext, mSlotId, null); in getEapConfig() local
1795 if (nai == null) { in getEapConfig()
1804 Log.d(TAG, "getEapConfig: Nai: " + nai); in getEapConfig()
1807 .setEapIdentity(nai.getBytes(StandardCharsets.US_ASCII)) in getEapConfig()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointManagerTest.java1520 String nai = "access.test.com"; in getMatchingOsuProvidersWithMatch() local
1532 serverUri, nai, methodList)); in getMatchingOsuProvidersWithMatch()
1536 friendlyNames, serverUri, methodList, null, nai, serviceDescriptions)); in getMatchingOsuProvidersWithMatch()
1541 friendlyNames, serverUri, methodList, null, nai, serviceDescriptions)); in getMatchingOsuProvidersWithMatch()
1544 serverUri, nai, methodList)); in getMatchingOsuProvidersWithMatch()
/packages/inputmethods/LatinIME/dictionaries/
Dlt_wordlist.combined.gz1dictionary=main:lt,locale=lt,description=Lietuvių,date=1393228136, ...
Dlv_wordlist.combined.gz1dictionary=main:lv,locale=lv,description=Latviešu,date=1393228136, ...
Dhr_wordlist.combined.gz1dictionary=main:hr,locale=hr,description=Hrvatski,date=1393228135, ...
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java4196 final NetworkAgentInfo nai =
4198 final long firstEvaluation = nai.getFirstEvaluationConcludedTime();
4207 assertEquals(firstEvaluation, nai.getFirstEvaluationConcludedTime());
4209 assertNotEquals(0L, nai.getFirstEvaluationConcludedTime());
13767 final NetworkAgentInfo nai =
13769 mService.registerQosCallbackInternal(filter, callback, nai);
17481 final NetworkAgentInfo nai = mService.getNetworkAgentInfoForNetwork(
18733 NetworkAgentInfo nai = fakeWifiNai(new NetworkCapabilities());
18738 assertEquals(0, nai.lastRoamTime);
18739 assertFalse(mService.shouldIgnoreValidationFailureAfterRoam(nai));
[all …]

12