Home
last modified time | relevance | path

Searched refs:NetworkAgentInfo (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/tests/net/java/com/android/server/connectivity/
DLingerMonitorTest.java93 NetworkAgentInfo nai1 = wifiNai(100); in testTransitions()
94 NetworkAgentInfo nai2 = cellNai(101); in testTransitions()
104 NetworkAgentInfo from = wifiNai(100); in testNotificationOnLinger()
105 NetworkAgentInfo to = cellNai(101); in testNotificationOnLinger()
115 NetworkAgentInfo from = wifiNai(100); in testToastOnLinger()
116 NetworkAgentInfo to = cellNai(101); in testToastOnLinger()
126 NetworkAgentInfo from = wifiNai(100); in testNotificationClearedAfterDisconnect()
127 NetworkAgentInfo to = cellNai(101); in testNotificationClearedAfterDisconnect()
140 NetworkAgentInfo from = wifiNai(100); in testNotificationClearedAfterSwitchingBack()
141 NetworkAgentInfo to = cellNai(101); in testNotificationClearedAfterSwitchingBack()
[all …]
DIpConnectivityMetricsTest.java132 NetworkAgentInfo[][] defaultNetworks = { in testDefaultNetworkEvents()
147 for (NetworkAgentInfo[] pair : defaultNetworks) { in testDefaultNetworkEvents()
332 NetworkAgentInfo cellNai = makeNai(100, 50, false, true, cell); in testEndToEndLogging()
333 NetworkAgentInfo wifiNai = makeNai(101, 60, true, false, wifi); in testEndToEndLogging()
585 NetworkAgentInfo makeNai(int netId, int score, boolean ipv4, boolean ipv6, long transports) { in makeNai()
586 NetworkAgentInfo nai = mock(NetworkAgentInfo.class); in makeNai()
DNat464XlatTest.java71 @Mock NetworkAgentInfo mNai;
103 private void assertRequiresClat(boolean expected, NetworkAgentInfo nai) {
112 private void assertShouldStartClat(boolean expected, NetworkAgentInfo nai) {
DNetworkNotificationManagerTest.java76 @Mock NetworkAgentInfo mWifiNai;
77 @Mock NetworkAgentInfo mCellNai;
/frameworks/base/services/core/java/com/android/server/connectivity/
DLingerMonitor.java109 private static boolean hasTransport(NetworkAgentInfo nai, int transport) { in hasTransport()
113 private int getNotificationSource(NetworkAgentInfo toNai) { in getNotificationSource()
122 private boolean everNotified(NetworkAgentInfo nai) { in everNotified()
127 public boolean isNotificationEnabled(NetworkAgentInfo fromNai, NetworkAgentInfo toNai) { in isNotificationEnabled()
153 private void showNotification(NetworkAgentInfo fromNai, NetworkAgentInfo toNai) { in showNotification()
165 private void maybeStopNotifying(NetworkAgentInfo nai) { in maybeStopNotifying()
175 private void notify(NetworkAgentInfo fromNai, NetworkAgentInfo toNai, boolean forceToast) { in notify()
210 public void noteLingerDefaultNetwork(NetworkAgentInfo fromNai, NetworkAgentInfo toNai) { in noteLingerDefaultNetwork()
275 public void noteDisconnect(NetworkAgentInfo nai) { in noteDisconnect()
DDefaultNetworkMetrics.java116 long timeMs, NetworkAgentInfo newNai, NetworkAgentInfo oldNai) { in logDefaultNetworkEvent()
121 private void logCurrentDefaultNetwork(long timeMs, NetworkAgentInfo oldNai) { in logCurrentDefaultNetwork()
145 private void newDefaultNetwork(long timeMs, NetworkAgentInfo newNai) { in newDefaultNetwork()
162 private static void fillLinkInfo(DefaultNetworkEvent ev, NetworkAgentInfo nai) { in fillLinkInfo()
DKeepaliveTracker.java89 private final HashMap <NetworkAgentInfo, HashMap<Integer, KeepaliveInfo>> mKeepalives =
134 private final NetworkAgentInfo mNai;
157 @NonNull NetworkAgentInfo nai, in KeepaliveInfo()
203 public NetworkAgentInfo getNai() { in getNai()
439 private int findFirstFreeSlot(NetworkAgentInfo nai) { in findFirstFreeSlot()
459 NetworkAgentInfo nai = ki.getNai(); in handleStartKeepalive()
465 public void handleStopAllKeepalives(NetworkAgentInfo nai, int reason) { in handleStopAllKeepalives()
480 public void handleStopKeepalive(NetworkAgentInfo nai, int slot, int reason) { in handleStopKeepalive()
497 private void cleanupStoppedKeepalive(NetworkAgentInfo nai, int slot) { in cleanupStoppedKeepalive()
517 public void handleCheckKeepalivesStillValid(NetworkAgentInfo nai) { in handleCheckKeepalivesStillValid()
[all …]
DNat464Xlat.java74 private final NetworkAgentInfo mNetwork;
89 public Nat464Xlat(NetworkAgentInfo nai, INetd netd, IDnsResolver dnsResolver, in Nat464Xlat()
106 protected static boolean requiresClat(NetworkAgentInfo nai) { in requiresClat()
131 protected static boolean shouldStartClat(NetworkAgentInfo nai) { in shouldStartClat()
DNetworkNotificationManager.java92 private static int getFirstTransportType(NetworkAgentInfo nai) { in getFirstTransportType()
141 public void showNotification(int id, NotificationType notifyType, NetworkAgentInfo nai, in showNotification()
142 NetworkAgentInfo switchToNai, PendingIntent intent, boolean highPriority) { in showNotification()
331 public void showToast(NetworkAgentInfo fromNai, NetworkAgentInfo toNai) { in showToast()
DNetworkAgentInfo.java117 public class NetworkAgentInfo implements Comparable<NetworkAgentInfo> { class
258 public NetworkAgentInfo(Messenger messenger, AsyncChannel ac, Network net, NetworkInfo info, in NetworkAgentInfo() method in NetworkAgentInfo
646 public int compareTo(NetworkAgentInfo other) { in compareTo()
/frameworks/base/tests/net/java/com/android/server/
DLegacyTypeTrackerTest.kt28 import com.android.server.connectivity.NetworkAgentInfo
74 val mobileNai = mock(NetworkAgentInfo::class.java) in testAddNetwork()
75 val wifiNai = mock(NetworkAgentInfo::class.java) in testAddNetwork()
81 val secondMobileNai = mock(NetworkAgentInfo::class.java) in testAddNetwork()
101 val mobileNai1 = mock(NetworkAgentInfo::class.java) in testBroadcastOnDisconnect()
102 val mobileNai2 = mock(NetworkAgentInfo::class.java) in testBroadcastOnDisconnect()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
DConnectivityServiceMock.java44 import com.android.server.connectivity.NetworkAgentInfo;
133 handleRegisterNetworkAgent((NetworkAgentInfo)msg.obj); in handleMessage()
163 NetworkAgentInfo nai = mNetworkAgentInfos.get(msg.replyTo); in handleMessage()
188 NetworkAgentInfo nai = null; in handleAsyncChannelHalfConnect()
204 NetworkAgentInfo nai = mNetworkAgentInfos.remove(msg.replyTo); in handleAsyncChannelHalfConnect()
219 NetworkAgentInfo nai = mNetworkAgentInfos.get(msg.replyTo); in handleAsyncChannelDisconnected()
303 private final HashMap<Messenger, NetworkAgentInfo> mNetworkAgentInfos =
304 new HashMap<Messenger, NetworkAgentInfo>();
464 private void handleRegisterNetworkAgent(NetworkAgentInfo na) { in handleRegisterNetworkAgent()
480 for (NetworkAgentInfo network : mNetworkAgentInfos.values()) { in handleRegisterNetworkRequest()
[all …]
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java183 import com.android.server.connectivity.NetworkAgentInfo;
334 NetworkAgentInfo.class });
667 private final ArrayList<NetworkAgentInfo> mTypeLists[];
688 public NetworkAgentInfo getNetworkForType(int type) { in getNetworkForType()
697 private void maybeLogBroadcast(NetworkAgentInfo nai, DetailedState state, int type, in maybeLogBroadcast()
707 public void add(int type, NetworkAgentInfo nai) { in add()
713 ArrayList<NetworkAgentInfo> list = mTypeLists[type]; in add()
730 public void remove(int type, NetworkAgentInfo nai, boolean wasDefault) { in remove()
731 ArrayList<NetworkAgentInfo> list = mTypeLists[type]; in remove()
751 final NetworkAgentInfo replacement = list.get(0); in remove()
[all …]
/frameworks/base/services/
Dart-profile742 …r/ConnectivityService$LegacyTypeTracker;->add(ILcom/android/server/connectivity/NetworkAgentInfo;)V
745 …yService$LegacyTypeTracker;->getNetworkForType(I)Lcom/android/server/connectivity/NetworkAgentInfo;
747 …acyTypeTracker;->maybeLogBroadcast(Lcom/android/server/connectivity/NetworkAgentInfo;Landroid/net/…
748 …ce$LegacyTypeTracker;->naiToString(Lcom/android/server/connectivity/NetworkAgentInfo;)Ljava/lang/S…
749 …nnectivityService$LegacyTypeTracker;->remove(ILcom/android/server/connectivity/NetworkAgentInfo;Z)V
750 …onnectivityService$LegacyTypeTracker;->remove(Lcom/android/server/connectivity/NetworkAgentInfo;Z)V
751 …ConnectivityService$LegacyTypeTracker;->update(Lcom/android/server/connectivity/NetworkAgentInfo;)V
752 …<init>(Lcom/android/server/ConnectivityService;Lcom/android/server/connectivity/NetworkAgentInfo;)V
774 …erver/ConnectivityService$NetworkRequestInfo;Lcom/android/server/connectivity/NetworkAgentInfo;II)V
778 …nectivityService;->disconnectAndDestroyNetwork(Lcom/android/server/connectivity/NetworkAgentInfo;)V
[all …]