Home
last modified time | relevance | path

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

/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DLingerMonitorTest.java110 NetworkAgentInfo nai1 = wifiNai(100); in testTransitions()
111 NetworkAgentInfo nai2 = cellNai(101); in testTransitions()
121 NetworkAgentInfo from = wifiNai(100); in testNotificationOnLinger()
122 NetworkAgentInfo to = cellNai(101); in testNotificationOnLinger()
132 NetworkAgentInfo from = wifiNai(100); in testToastOnLinger()
133 NetworkAgentInfo to = cellNai(101); in testToastOnLinger()
143 NetworkAgentInfo from = wifiNai(100); in testNotificationClearedAfterDisconnect()
144 NetworkAgentInfo to = cellNai(101); in testNotificationClearedAfterDisconnect()
157 NetworkAgentInfo from = wifiNai(100); in testNotificationClearedAfterSwitchingBack()
158 NetworkAgentInfo to = cellNai(101); in testNotificationClearedAfterSwitchingBack()
[all …]
DIpConnectivityMetricsTest.java137 private void logDefaultNetworkEvent(long timeMs, NetworkAgentInfo nai, in logDefaultNetworkEvent()
138 NetworkAgentInfo oldNai) { in logDefaultNetworkEvent()
156 NetworkAgentInfo[][] defaultNetworks = { in testDefaultNetworkEvents()
171 for (NetworkAgentInfo[] pair : defaultNetworks) { in testDefaultNetworkEvents()
348 final NetworkAgentInfo cellNai = makeNai(100, false, true, cell); in testEndToEndLogging()
349 final NetworkAgentInfo wifiNai = makeNai(101, true, false, wifi); in testEndToEndLogging()
611 NetworkAgentInfo makeNai(int netId, boolean ipv4, boolean ipv6, long transports) { in makeNai()
612 NetworkAgentInfo nai = mock(NetworkAgentInfo.class); in makeNai()
DNetworkNotificationManagerTest.java163 @Mock NetworkAgentInfo mWifiNai;
164 @Mock NetworkAgentInfo mCellNai;
165 @Mock NetworkAgentInfo mVpnNai;
166 @Mock NetworkAgentInfo mBluetoothNai;
220 private void verifyTitleByNetwork(final int id, final NetworkAgentInfo nai, final int title) { in verifyTitleByNetwork()
553 private void runSignInNotificationTest(NetworkAgentInfo nai, String testTitle, in runSignInNotificationTest()
DNat464XlatTest.java85 @Mock NetworkAgentInfo mNai;
145 private void assertRequiresClat(boolean expected, NetworkAgentInfo nai) {
155 private void assertShouldStartClat(boolean expected, NetworkAgentInfo nai) {
DAutomaticOnOffKeepaliveTrackerTest.java123 @Mock NetworkAgentInfo mNai;
273 public KeepaliveInfo makeNattKeepaliveInfo(@Nullable final NetworkAgentInfo nai, in makeNattKeepaliveInfo()
286 public KeepaliveInfo makeTcpKeepaliveInfo(@Nullable final NetworkAgentInfo nai, in makeTcpKeepaliveInfo()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DLingerMonitor.java114 private static boolean hasTransport(NetworkAgentInfo nai, int transport) { in hasTransport()
118 private int getNotificationSource(NetworkAgentInfo toNai) { in getNotificationSource()
127 private boolean everNotified(NetworkAgentInfo nai) { in everNotified()
132 public boolean isNotificationEnabled(NetworkAgentInfo fromNai, NetworkAgentInfo toNai) { in isNotificationEnabled()
157 private void showNotification(NetworkAgentInfo fromNai, NetworkAgentInfo toNai) { in showNotification()
172 private void maybeStopNotifying(NetworkAgentInfo nai) { in maybeStopNotifying()
182 private void notify(NetworkAgentInfo fromNai, NetworkAgentInfo toNai, boolean forceToast) { in notify()
227 public void noteLingerDefaultNetwork(@NonNull final NetworkAgentInfo fromNai, in noteLingerDefaultNetwork()
228 @Nullable final NetworkAgentInfo toNai) { in noteLingerDefaultNetwork()
298 public void noteDisconnect(NetworkAgentInfo nai) { in noteDisconnect()
DKeepaliveTracker.java96 private final HashMap <NetworkAgentInfo, HashMap<Integer, KeepaliveInfo>> mKeepalives =
151 public final NetworkAgentInfo mNai;
179 @NonNull NetworkAgentInfo nai, in KeepaliveInfo()
189 @NonNull NetworkAgentInfo nai, in KeepaliveInfo()
241 public NetworkAgentInfo getNai() { in getNai()
515 private int findFirstFreeSlot(NetworkAgentInfo nai) { in findFirstFreeSlot()
551 final NetworkAgentInfo nai = newKi.getNai(); in handleStartKeepalive()
584 public void handleStopAllKeepalives(NetworkAgentInfo nai, int reason) { in handleStopAllKeepalives()
603 public void handleStopKeepalive(NetworkAgentInfo nai, int slot, int reason) { in handleStopKeepalive()
604 final String networkName = NetworkAgentInfo.toShortString(nai); in handleStopKeepalive()
[all …]
DNetworkAgentInfo.java168 public class NetworkAgentInfo implements NetworkRanker.Scoreable { class
631 public NetworkAgentInfo(INetworkAgent na, Network net, NetworkInfo info, in NetworkAgentInfo() method in NetworkAgentInfo
913 new Pair<>(NetworkAgentInfo.this, nc)).sendToTarget(); in sendNetworkCapabilities()
920 new Pair<>(NetworkAgentInfo.this, lp)).sendToTarget(); in sendLinkProperties()
927 new Pair<>(NetworkAgentInfo.this, info)).sendToTarget(); in sendNetworkInfo()
933 new Pair<>(NetworkAgentInfo.this, config)).sendToTarget(); in sendLocalNetworkConfig()
939 new Pair<>(NetworkAgentInfo.this, score)).sendToTarget(); in sendScore()
946 new Pair<>(NetworkAgentInfo.this, null)).sendToTarget(); in sendExplicitlySelected()
952 slot, reason, new Pair<>(NetworkAgentInfo.this, null)).sendToTarget(); in sendSocketKeepaliveEvent()
958 new Pair<>(NetworkAgentInfo.this, networks)).sendToTarget(); in sendUnderlyingNetworks()
[all …]
DDscpPolicyTracker.java130 private void sendStatus(NetworkAgentInfo nai, int policyId, int status) { in sendStatus()
152 private int getIfaceIndex(NetworkAgentInfo nai) { in getIfaceIndex()
234 public void addDscpPolicy(NetworkAgentInfo nai, DscpPolicy policy) { in addDscpPolicy()
259 private void removePolicyFromMap(NetworkAgentInfo nai, int policyId, int index, in removePolicyFromMap()
278 public void removeDscpPolicy(NetworkAgentInfo nai, int policyId) { in removeDscpPolicy()
306 public void removeAllDscpPolicies(NetworkAgentInfo nai, boolean sendCallback) { in removeAllDscpPolicies()
DNetworkRanker.java112 public NetworkAgentInfo getBestNetwork(@NonNull final NetworkRequest request, in getBestNetwork()
113 @NonNull final Collection<NetworkAgentInfo> nais, in getBestNetwork()
114 @Nullable final NetworkAgentInfo currentSatisfier) { in getBestNetwork()
115 final ArrayList<NetworkAgentInfo> candidates = filter(nais, nai -> nai.satisfies(request)); in getBestNetwork()
376 @Nullable final NetworkAgentInfo champion, in mightBeat()
DNetworkNotificationManager.java109 protected static int approximateTransportType(NetworkAgentInfo nai) { in approximateTransportType()
114 private static int getFirstTransportType(NetworkAgentInfo nai) { in getFirstTransportType()
160 public void showNotification(int id, NotificationType notifyType, NetworkAgentInfo nai, in showNotification()
161 NetworkAgentInfo switchToNai, PendingIntent intent, boolean highPriority) { in showNotification()
422 public void showToast(NetworkAgentInfo fromNai, NetworkAgentInfo toNai) { in showToast()
DQosCallbackTracker.java93 @NonNull final QosFilter filter, @NonNull final NetworkAgentInfo networkAgentInfo) { in registerCallback()
105 @NonNull final NetworkAgentInfo networkAgentInfo) { in handleRegisterCallback()
119 @NonNull final NetworkAgentInfo networkAgentInfo) { in handleRegisterCallbackInternal()
DNat464Xlat.java83 private final NetworkAgentInfo mNetwork;
112 public Nat464Xlat(NetworkAgentInfo nai, INetd netd, IDnsResolver dnsResolver, in Nat464Xlat()
134 protected boolean requiresClat(NetworkAgentInfo nai) { in requiresClat()
167 protected boolean shouldStartClat(NetworkAgentInfo nai) { in shouldStartClat()
DQosCallbackAgentConnection.java54 @NonNull private final NetworkAgentInfo mNetworkAgentInfo;
99 @NonNull final NetworkAgentInfo networkAgentInfo) { in QosCallbackAgentConnection()
DAutomaticOnOffKeepaliveTracker.java454 public void handleEventSocketKeepalive(@NonNull NetworkAgentInfo nai, int slot, int reason) { in handleEventSocketKeepalive()
474 public void handleStopAllKeepalives(NetworkAgentInfo nai, int reason) { in handleStopAllKeepalives()
602 public void startNattKeepalive(@Nullable NetworkAgentInfo nai, in startNattKeepalive()
634 public void startNattKeepalive(@Nullable NetworkAgentInfo nai, in startNattKeepalive()
673 public void startTcpKeepalive(@Nullable NetworkAgentInfo nai, in startTcpKeepalive()
725 public void handleCheckKeepalivesStillValid(NetworkAgentInfo nai) { in handleCheckKeepalivesStillValid()
/packages/modules/Connectivity/service/src/com/android/server/
DConnectivityService.java351 import com.android.server.connectivity.NetworkAgentInfo;
572 NetworkAgentInfo.class,
1114 private final ArrayList<NetworkAgentInfo>[] mTypeLists;
1182 public NetworkAgentInfo getNetworkForType(int type) { in getNetworkForType()
1219 private void maybeLogBroadcast(NetworkAgentInfo nai, DetailedState state, int type, in maybeLogBroadcast()
1230 private void maybeSendLegacyLockdownBroadcast(@NonNull NetworkAgentInfo vpnNai) { in maybeSendLegacyLockdownBroadcast()
1239 final NetworkAgentInfo underlyingNai = mService.getNetworkAgentInfoForNetwork( in maybeSendLegacyLockdownBroadcast()
1250 public void add(int type, NetworkAgentInfo nai) { in add()
1256 ArrayList<NetworkAgentInfo> list = mTypeLists[type]; in add()
1281 public void remove(int type, NetworkAgentInfo nai, boolean wasDefault) { in remove()
[all …]
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DLegacyTypeTrackerTest.kt51 import com.android.server.connectivity.NetworkAgentInfo
139 val mobileNai = mock(NetworkAgentInfo::class.java) in testSupl()
160 val mobileNai = mock(NetworkAgentInfo::class.java) in testAddNetwork()
161 val wifiNai = mock(NetworkAgentInfo::class.java) in testAddNetwork()
167 val secondMobileNai = mock(NetworkAgentInfo::class.java) in testAddNetwork()
188 val mobileNai1 = mock(NetworkAgentInfo::class.java) in testBroadcastOnDisconnect()
189 val mobileNai2 = mock(NetworkAgentInfo::class.java) in testBroadcastOnDisconnect()
DConnectivityServiceTest.java425 import com.android.server.connectivity.NetworkAgentInfo;
4196 final NetworkAgentInfo nai =
12946 public NetworkAgentInfo fakeMobileNai(NetworkCapabilities nc) {
12955 private NetworkAgentInfo fakeWifiNai(NetworkCapabilities nc) {
12963 private NetworkAgentInfo fakeVpnNai(NetworkCapabilities nc) {
12971 private NetworkAgentInfo fakeNai(NetworkCapabilities nc, NetworkInfo networkInfo) {
12972 return new NetworkAgentInfo(null, new Network(NET_ID), networkInfo, new LinkProperties(),
12982 final NetworkAgentInfo naiWithoutUid = fakeMobileNai(new NetworkCapabilities());
12994 final NetworkAgentInfo naiWithoutUid = fakeMobileNai(new NetworkCapabilities());
13010 final NetworkAgentInfo naiWithUid = fakeWifiNai(nc);
[all …]