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.java166 @Mock NetworkAgentInfo mWifiNai;
167 @Mock NetworkAgentInfo mCellNai;
168 @Mock NetworkAgentInfo mVpnNai;
169 @Mock NetworkAgentInfo mBluetoothNai;
225 private void verifyTitleByNetwork(final int id, final NetworkAgentInfo nai, final int title) { in verifyTitleByNetwork()
578 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.java181 public class NetworkAgentInfo implements NetworkRanker.Scoreable { class
651 public NetworkAgentInfo(INetworkAgent na, Network net, NetworkInfo info, in NetworkAgentInfo() method in NetworkAgentInfo
972 new Pair<>(NetworkAgentInfo.this, nc)).sendToTarget(); in sendNetworkCapabilities()
979 new Pair<>(NetworkAgentInfo.this, lp)).sendToTarget(); in sendLinkProperties()
986 new Pair<>(NetworkAgentInfo.this, info)).sendToTarget(); in sendNetworkInfo()
992 new Pair<>(NetworkAgentInfo.this, config)).sendToTarget(); in sendLocalNetworkConfig()
998 new Pair<>(NetworkAgentInfo.this, score)).sendToTarget(); in sendScore()
1005 new Pair<>(NetworkAgentInfo.this, null)).sendToTarget(); in sendExplicitlySelected()
1011 slot, reason, new Pair<>(NetworkAgentInfo.this, null)).sendToTarget(); in sendSocketKeepaliveEvent()
1017 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()
264 private void removePolicyFromMap(NetworkAgentInfo nai, int policyId, int index, in removePolicyFromMap()
283 public void removeDscpPolicy(NetworkAgentInfo nai, int policyId) { in removeDscpPolicy()
311 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.java126 protected static int approximateTransportType(NetworkAgentInfo nai) { in approximateTransportType()
131 private static int getFirstTransportType(NetworkAgentInfo nai) { in getFirstTransportType()
177 public void showNotification(int id, NotificationType notifyType, NetworkAgentInfo nai, in showNotification()
178 NetworkAgentInfo switchToNai, PendingIntent intent, boolean highPriority) { in showNotification()
439 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.java84 private final NetworkAgentInfo mNetwork;
113 public Nat464Xlat(NetworkAgentInfo nai, INetd netd, IDnsResolver dnsResolver, in Nat464Xlat()
135 protected boolean requiresClat(NetworkAgentInfo nai) { in requiresClat()
168 protected boolean shouldStartClat(NetworkAgentInfo nai) { in shouldStartClat()
DAutomaticOnOffKeepaliveTracker.java455 public void handleEventSocketKeepalive(@NonNull NetworkAgentInfo nai, int slot, int reason) { in handleEventSocketKeepalive()
475 public void handleStopAllKeepalives(NetworkAgentInfo nai, int reason) { in handleStopAllKeepalives()
603 public void startNattKeepalive(@Nullable NetworkAgentInfo nai, in startNattKeepalive()
635 public void startNattKeepalive(@Nullable NetworkAgentInfo nai, in startNattKeepalive()
674 public void startTcpKeepalive(@Nullable NetworkAgentInfo nai, in startTcpKeepalive()
726 public void handleCheckKeepalivesStillValid(NetworkAgentInfo nai) { in handleCheckKeepalivesStillValid()
DQosCallbackAgentConnection.java54 @NonNull private final NetworkAgentInfo mNetworkAgentInfo;
99 @NonNull final NetworkAgentInfo networkAgentInfo) { in QosCallbackAgentConnection()
/packages/modules/Connectivity/service/src/com/android/server/
DConnectivityService.java380 import com.android.server.connectivity.NetworkAgentInfo;
607 NetworkAgentInfo.class,
1151 private final ArrayList<NetworkAgentInfo>[] mTypeLists;
1219 public NetworkAgentInfo getNetworkForType(int type) { in getNetworkForType()
1256 private void maybeLogBroadcast(NetworkAgentInfo nai, DetailedState state, int type, in maybeLogBroadcast()
1267 private void maybeSendLegacyLockdownBroadcast(@NonNull NetworkAgentInfo vpnNai) { in maybeSendLegacyLockdownBroadcast()
1276 final NetworkAgentInfo underlyingNai = mService.getNetworkAgentInfoForNetwork( in maybeSendLegacyLockdownBroadcast()
1287 public void add(int type, NetworkAgentInfo nai) { in add()
1293 ArrayList<NetworkAgentInfo> list = mTypeLists[type]; in add()
1318 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.java421 import com.android.server.connectivity.NetworkAgentInfo;
4263 final NetworkAgentInfo nai =
13013 public NetworkAgentInfo fakeMobileNai(NetworkCapabilities nc) {
13022 private NetworkAgentInfo fakeWifiNai(NetworkCapabilities nc) {
13030 private NetworkAgentInfo fakeVpnNai(NetworkCapabilities nc) {
13038 private NetworkAgentInfo fakeNai(NetworkCapabilities nc, NetworkInfo networkInfo) {
13039 return new NetworkAgentInfo(null, new Network(NET_ID), networkInfo, new LinkProperties(),
13049 final NetworkAgentInfo naiWithoutUid = fakeMobileNai(new NetworkCapabilities());
13061 final NetworkAgentInfo naiWithoutUid = fakeMobileNai(new NetworkCapabilities());
13077 final NetworkAgentInfo naiWithUid = fakeWifiNai(nc);
[all …]