Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java518 private void maybeLogBroadcast(NetworkAgentInfo nai, DetailedState state, int type, in maybeLogBroadcast() argument
522 " broadcast for type " + type + " " + nai.name() + in maybeLogBroadcast()
528 public void add(int type, NetworkAgentInfo nai) { in add() argument
532 if (VDBG) log("Adding agent " + nai + " for legacy network type " + type); in add()
535 if (list.contains(nai)) { in add()
539 list.add(nai); in add()
542 final boolean isDefaultNetwork = isDefaultNetwork(nai); in add()
544 maybeLogBroadcast(nai, DetailedState.CONNECTED, type, isDefaultNetwork); in add()
545 sendLegacyNetworkBroadcast(nai, DetailedState.CONNECTED, type); in add()
550 public void remove(int type, NetworkAgentInfo nai, boolean wasDefault) { in remove() argument
[all …]
/frameworks/base/services/core/java/com/android/server/connectivity/
DKeepaliveTracker.java101 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 …]
DNat464Xlat.java81 Handler handler, NetworkAgentInfo nai) { in Nat464Xlat() argument
84 mNetwork = nai; in Nat464Xlat()
92 public static boolean requiresClat(NetworkAgentInfo nai) { in requiresClat() argument
93 final int netType = nai.networkInfo.getType(); in requiresClat()
94 final boolean connected = nai.networkInfo.isConnected(); in requiresClat()
96 (nai.linkProperties != null) ? nai.linkProperties.hasIPv4Address() : false; in requiresClat()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
DConnectivityServiceMock.java259 NetworkAgentInfo nai = mNetworkAgentInfos.get(msg.replyTo); in handleMessage() local
260 if (nai != null) nai.asyncChannel.disconnect(); in handleMessage()
284 NetworkAgentInfo nai = null; in handleAsyncChannelHalfConnect() local
286 (nai != null ? nai.getCurrentScore() : 0), 0, nri.request); in handleAsyncChannelHalfConnect()
300 NetworkAgentInfo nai = mNetworkAgentInfos.remove(msg.replyTo); in handleAsyncChannelHalfConnect() local
315 NetworkAgentInfo nai = mNetworkAgentInfos.get(msg.replyTo); in handleAsyncChannelDisconnected() local
316 if (nai != null) { in handleAsyncChannelDisconnected()
318 log(nai.name() + " got DISCONNECTED, was satisfying " + nai.networkRequests.size()); in handleAsyncChannelDisconnected()
341 nai.networkMonitor.sendMessage(NetworkMonitor.CMD_NETWORK_DISCONNECTED); in handleAsyncChannelDisconnected()
951 private void sendUpdatedScoreToFactories(NetworkAgentInfo nai) { in sendUpdatedScoreToFactories() argument
[all …]
/frameworks/base/telephony/java/android/telephony/
DTelephonyManager.java886 String nai = info.getNaiForSubscriber(subId[0], mContext.getOpPackageName()); in getNai()
888 Rlog.v(TAG, "Nai = " + nai); in getNai()
890 return nai; in getNai()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DConnectivityServiceTest.java626 NetworkAgentInfo nai, NetworkRequest defaultRequest) { in createNetworkMonitor() argument
627 final WrappedNetworkMonitor monitor = new WrappedNetworkMonitor(context, handler, nai, in createNetworkMonitor()