Searched refs:TestNetworkAgent (Results 1 – 5 of 5) sorted by relevance
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | UpstreamNetworkMonitorTest.java | 64 import com.android.networkstack.tethering.TestConnectivityManager.TestNetworkAgent; 313 final TestNetworkAgent wifiAgent = new TestNetworkAgent(mCM, WIFI_CAPABILITIES); in testSelectPreferredUpstreamType() 323 final TestNetworkAgent cellAgent = new TestNetworkAgent(mCM, CELL_CAPABILITIES); in testSelectPreferredUpstreamType() 358 final TestNetworkAgent dunAgent = new TestNetworkAgent(mCM, DUN_CAPABILITIES); in testSelectPreferredUpstreamType() 387 final TestNetworkAgent cellAgent = new TestNetworkAgent(mCM, CELL_CAPABILITIES); in testGetCurrentPreferredUpstream() 401 final TestNetworkAgent wifiAgent = new TestNetworkAgent(mCM, WIFI_CAPABILITIES); in testGetCurrentPreferredUpstream() 427 final TestNetworkAgent dunAgent = new TestNetworkAgent(mCM, CELL_CAPABILITIES); in testGetCurrentPreferredUpstream() 463 final TestNetworkAgent wifiAgent = new TestNetworkAgent(mCM, WIFI_CAPABILITIES); in testLocalPrefixes() 491 final TestNetworkAgent cellAgent = new TestNetworkAgent(mCM, CELL_CAPABILITIES); in testLocalPrefixes() 513 final TestNetworkAgent dunAgent = new TestNetworkAgent(mCM, DUN_CAPABILITIES); in testLocalPrefixes() [all …]
|
D | TestConnectivityManager.java | 82 private TestNetworkAgent mDefaultNetwork = null; 142 private void sendDefaultNetworkBroadcasts(TestNetworkAgent formerDefault, in sendDefaultNetworkBroadcasts() 143 TestNetworkAgent defaultNetwork) { in sendDefaultNetworkBroadcasts() 152 private void sendDefaultNetworkCallbacks(TestNetworkAgent formerDefault, in sendDefaultNetworkCallbacks() 153 TestNetworkAgent defaultNetwork) { in sendDefaultNetworkCallbacks() 168 void makeDefaultNetwork(TestNetworkAgent agent, boolean order, @Nullable Runnable inBetween) { in makeDefaultNetwork() 171 final TestNetworkAgent formerDefault = mDefaultNetwork; in makeDefaultNetwork() 185 void makeDefaultNetwork(TestNetworkAgent agent, boolean order) { in makeDefaultNetwork() 189 void makeDefaultNetwork(TestNetworkAgent agent) { in makeDefaultNetwork() 297 public static class TestNetworkAgent { class in TestConnectivityManager [all …]
|
D | TetheringTest.java | 185 import com.android.networkstack.tethering.TestConnectivityManager.TestNetworkAgent; 1117 TestNetworkAgent mobile, TestNetworkAgent wifi) throws Exception { in upstreamSelectionTestCommon() 1145 TestNetworkAgent mobile = new TestNetworkAgent(mCm, buildMobileDualStackUpstreamState()); in testAutomaticUpstreamSelection() 1146 TestNetworkAgent wifi = new TestNetworkAgent(mCm, buildWifiUpstreamState()); in testAutomaticUpstreamSelection() 1193 mobile = new TestNetworkAgent(mCm, buildMobile464xlatUpstreamState()); in testAutomaticUpstreamSelection() 1211 mobile = new TestNetworkAgent(mCm, buildMobileDualStackUpstreamState()); in testAutomaticUpstreamSelection() 1230 TestNetworkAgent mobile = new TestNetworkAgent(mCm, buildMobileDualStackUpstreamState()); in testLegacyUpstreamSelection() 1231 TestNetworkAgent wifi = new TestNetworkAgent(mCm, buildWifiUpstreamState()); in testLegacyUpstreamSelection() 1257 TestNetworkAgent mobile = new TestNetworkAgent(mCm, buildMobileDualStackUpstreamState()); in testChooseDunUpstreamByAutomaticMode() 1258 TestNetworkAgent wifi = new TestNetworkAgent(mCm, buildWifiUpstreamState()); in testChooseDunUpstreamByAutomaticMode() [all …]
|
/packages/modules/Connectivity/service/src/com/android/server/ |
D | TestNetworkService.java | 160 private final SparseArray<TestNetworkAgent> mTestNetworkTracker = new SparseArray<>(); 162 public class TestNetworkAgent extends NetworkAgent implements IBinder.DeathRecipient { class in TestNetworkService 173 private TestNetworkAgent( in TestNetworkAgent() method in TestNetworkService.TestNetworkAgent 231 private TestNetworkAgent registerTestNetworkAgent( in registerTestNetworkAgent() 295 final TestNetworkAgent agent = new TestNetworkAgent(context, looper, nc, lp, in registerTestNetworkAgent() 334 TestNetworkAgent agent = in setupTestNetwork() 359 final TestNetworkAgent agent; in teardownTestNetwork()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/ |
D | ConnectivityServiceTest.java | 9612 class TestNetworkAgent extends NetworkAgent { in testLegacyExtraInfoSentToNetworkMonitor() class 9613 TestNetworkAgent(Context context, Looper looper, NetworkAgentConfig config) { in testLegacyExtraInfoSentToNetworkMonitor() method in TestNetworkAgent 9618 final NetworkAgent naNoExtraInfo = new TestNetworkAgent( in testLegacyExtraInfoSentToNetworkMonitor() 9627 final NetworkAgent naExtraInfo = new TestNetworkAgent( in testLegacyExtraInfoSentToNetworkMonitor()
|