/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/ |
D | AutoReleaseNetworkCallbackRule.kt | 67 private var cellRequestCb: TestableNetworkCallback? = null 102 cb: TestableNetworkCallback, in addCallback() 103 registrar: (TestableNetworkCallback) -> Unit in addCallback() 104 ): TestableNetworkCallback { in addCallback() 122 cb: TestableNetworkCallback = TestableNetworkCallback(), in requestNetwork() 138 cb: TestableNetworkCallback = TestableNetworkCallback(), in requestNetwork() 154 cb: TestableNetworkCallback = TestableNetworkCallback() in registerNetworkCallback() 162 cb: TestableNetworkCallback = TestableNetworkCallback(), in registerDefaultNetworkCallback() 177 cb: TestableNetworkCallback = TestableNetworkCallback(), in registerSystemDefaultNetworkCallback() 187 cb: TestableNetworkCallback = TestableNetworkCallback(), in registerDefaultNetworkCallbackForUid() [all …]
|
D | PacketBridge.kt | 58 private val internalNetworkCallback: TestableNetworkCallback 59 private val externalNetworkCallback: TestableNetworkCallback 117 ): Pair<TestableNetworkCallback, Network> { in createTestNetwork() 124 val testCb = TestableNetworkCallback() in createTestNetwork()
|
D | ConnectUtil.kt | 67 val cb = TestableNetworkCallback() in ensureWifiConnected() 86 val callback = TestableNetworkCallback(timeoutMs = WIFI_CONNECT_TIMEOUT_MS) in ensureWifiConnected() 242 private inline fun <reified T : CallbackEntry> TestableNetworkCallback.eventuallyExpect( in eventuallyExpect()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/ |
D | CSNetworkRequestStateStatsMetricsTests.kt | 25 import com.android.testutils.TestableNetworkCallback in <lambda>() 54 cm.requestNetwork(CELL_INTERNET_NOT_METERED_NR, TestableNetworkCallback()) in <lambda>() 64 cm.registerNetworkCallback(CELL_INTERNET_NOT_METERED_NR, TestableNetworkCallback()) in <lambda>() 71 val cb = TestableNetworkCallback() in <lambda>()
|
D | CSLocalAgentTests.kt | 47 import com.android.testutils.TestableNetworkCallback 131 val cb = TestableNetworkCallback() in keepScore() 160 val cb = TestableNetworkCallback() in keepScore() 246 val cb = TestableNetworkCallback() in keepScore() 322 val cb = TestableNetworkCallback() in keepScore() 374 val cb = TestableNetworkCallback() in keepScore() 426 val cb = TestableNetworkCallback() in keepScore() 483 val cb = TestableNetworkCallback() in keepScore() 548 val cb = TestableNetworkCallback() in keepScore() 591 val localCb = TestableNetworkCallback() in keepScore() [all …]
|
D | CSDestroyedNetworkTests.kt | 27 import com.android.testutils.TestableNetworkCallback 48 val cbRequest = TestableNetworkCallback() in testDestroyNetworkNotKeptWhenUnvalidated() 49 val cbCallback = TestableNetworkCallback() in testDestroyNetworkNotKeptWhenUnvalidated()
|
D | CSIngressDiscardRuleTests.kt | 37 import com.android.testutils.TestableNetworkCallback 114 val cb = TestableNetworkCallback() in testVpnIngressDiscardRule_UpdateVpnAddress() 147 val cb = TestableNetworkCallback() in testVpnIngressDiscardRule_UpdateInterfaceName() 187 val cb = TestableNetworkCallback() in testVpnIngressDiscardRule_DuplicatedIpAddress_UpdateVpnAddress() 237 val cb = TestableNetworkCallback() in testVpnIngressDiscardRule_DuplicatedIpAddress_UpdateNonVpnAddress() 302 val cb = TestableNetworkCallback() in testVpnIngressDiscardRule_FeatureDisabled()
|
D | CSNetworkActivityTest.kt | 43 import com.android.testutils.TestableNetworkCallback in <lambda>() 88 val cellCb = TestableNetworkCallback() in <lambda>() 92 val defaultCb = TestableNetworkCallback() in <lambda>() 173 val dataNetworkCb = TestableNetworkCallback() in <lambda>() 191 val imsNetworkCb = TestableNetworkCallback() in <lambda>()
|
D | CSKeepConnectedTest.kt | 32 import com.android.testutils.TestableNetworkCallback 67 val cb = TestableNetworkCallback() in doTestKeepConnected()
|
D | CSCaptivePortalAppTest.kt | 47 import com.android.testutils.TestableNetworkCallback 90 val captivePortalCallback = TestableNetworkCallback() in testCaptivePortalApp_Reevaluate_Nopermission()
|
D | CSLocalAgentCreationTests.kt | 35 import com.android.testutils.TestableNetworkCallback 89 val allNetworksCb = TestableNetworkCallback() in keepConnectedScore()
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | ConnectivityManagerTest.java | 222 import com.android.testutils.TestableNetworkCallback; 451 final TestableNetworkCallback callback = in tearDown() 587 final TestableNetworkCallback allNetworkLinkPropertiesListener = in testGetAllNetworkStateSnapshots() 588 new TestableNetworkCallback(); in testGetAllNetworkStateSnapshots() 1064 final TestableNetworkCallback cb = in testIsPrivateDnsBroken() 1103 final TestableNetworkCallback callback = networkCallbackRule.registerNetworkCallback( in testRegisterNetworkCallback() 1106 final TestableNetworkCallback defaultTrackingCallback = in testRegisterNetworkCallback() 1109 final TestableNetworkCallback systemDefaultCallback = new TestableNetworkCallback(); in testRegisterNetworkCallback() 1110 final TestableNetworkCallback perUidCallback = new TestableNetworkCallback(); in testRegisterNetworkCallback() 1111 final TestableNetworkCallback bestMatchingCallback = new TestableNetworkCallback(); in testRegisterNetworkCallback() [all …]
|
D | NetworkScoreTest.kt | 39 import com.android.testutils.TestableNetworkCallback in <lambda>() 40 import com.android.testutils.TestableNetworkCallback.HasNetwork in <lambda>() 74 private val callbacksToCleanUp = mutableListOf<TestableNetworkCallback>() in <lambda>() 83 val agentCleanUpCb = TestableNetworkCallback(TIMEOUT_MS).also { cb -> in <lambda>() 104 private fun makeTestNetworkCallback() = TestableNetworkCallback(TIMEOUT_MS).also { cb -> in <lambda>()
|
D | EthernetManagerTest.kt | 76 import com.android.testutils.TestableNetworkCallback in <lambda>() 144 private val registeredCallbacks = ArrayList<TestableNetworkCallback>() in <lambda>() 445 private fun requestNetwork(request: NetworkRequest): TestableNetworkCallback { in <lambda>() 446 return TestableNetworkCallback( in <lambda>() 454 private fun registerNetworkListener(request: NetworkRequest): TestableNetworkCallback { in <lambda>() 455 return TestableNetworkCallback( in <lambda>() 476 private fun releaseRequest(cb: TestableNetworkCallback) { in <lambda>() 526 private fun TestableNetworkCallback.eventuallyExpectLost(n: Network? = null) = in <lambda>() method 529 private fun TestableNetworkCallback.assertNeverLost(n: Network? = null) = in <lambda>() method 532 private fun TestableNetworkCallback.assertNeverAvailable(n: Network? = null) = in <lambda>() method [all …]
|
D | NetworkAgentTest.kt | 132 import com.android.testutils.TestableNetworkCallback in <lambda>() 214 private val callbacksToCleanUp = mutableListOf<TestableNetworkCallback>() 266 private fun requestNetwork(request: NetworkRequest, callback: TestableNetworkCallback) { in disconnect() 273 callback: TestableNetworkCallback in registerNetworkCallback() 281 callback: TestableNetworkCallback, in registerBestMatchingNetworkCallback() 347 ): Pair<TestableNetworkAgent, TestableNetworkCallback> { in createConnectedNetworkAgent() 348 val callback = TestableNetworkCallback() in createConnectedNetworkAgent() 478 TestableNetworkCallback(DEFAULT_TIMEOUT_MS).also { in testSignalStrengthThresholds() 586 val callback = TestableNetworkCallback(DEFAULT_TIMEOUT_MS) in doTestAllowedUids() 842 val callback = TestableNetworkCallback(DEFAULT_TIMEOUT_MS) in testRejectedUpdates() [all …]
|
D | Ikev2VpnTest.java | 73 import com.android.testutils.TestableNetworkCallback; 198 private final List<TestableNetworkCallback> mCallbacksToUnregister = new ArrayList<>(); 214 for (TestableNetworkCallback callback : mCallbacksToUnregister) { in tearDown() 525 final TestableNetworkCallback cb = new TestableNetworkCallback(TIMEOUT_MS); in checkStartStopVpnProfileBuildsNetworks() 592 private void registerNetworkCallback(NetworkRequest request, TestableNetworkCallback callback) { in registerNetworkCallback()
|
D | NetworkValidationTest.kt | 53 import com.android.testutils.TestableNetworkCallback 99 private val ethRequestCb = TestableNetworkCallback() 180 val testCb = TestableNetworkCallback(TEST_TIMEOUT_MS) in testCapportApiCallbacks()
|
D | RateLimitTest.java | 63 import com.android.testutils.TestableNetworkCallback; 106 private TestableNetworkCallback mNetworkCallback; 151 mNetworkCallback = new TestableNetworkCallback(); in setUp()
|
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/testutils/ |
D | TestableNetworkCallbackTestJava.java | 31 final TestableNetworkCallback callback = new TestableNetworkCallback(); in testAllExpectOverloads() 32 TestableNetworkCallback.HasNetwork hn = TestableNetworkCallbackKt::anyNetwork; in testAllExpectOverloads()
|
D | TestableNetworkCallbackTest.kt | 60 private lateinit var mCallback: TestableNetworkCallback in <lambda>() 62 private fun makeHasNetwork(netId: Int) = object : TestableNetworkCallback.HasNetwork { in <lambda>() 68 mCallback = TestableNetworkCallback() in <lambda>() 280 val hn = object : TestableNetworkCallback.HasNetwork { override val network = ANY_NETWORK } in <lambda>() 411 private object TNCInterpreter : ConcurrentInterpreter<TestableNetworkCallback>(interpretTable) 419 private val interpretTable = listOf<InterpretMatcher<TestableNetworkCallback>>(
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/base/ |
D | CSAgentWrapper.kt | 42 import com.android.testutils.TestableNetworkCallback 78 ) : TestableNetworkCallback.HasNetwork { in ArgumentCaptor() 148 val cb = TestableNetworkCallback() in ArgumentCaptor() 177 val cb = TestableNetworkCallback(timeoutMs = SHORT_TIMEOUT_MS) in ArgumentCaptor()
|
/packages/modules/Connectivity/thread/tests/utils/src/android/net/thread/utils/ |
D | TapTestNetworkTracker.java | 46 import com.android.testutils.TestableNetworkCallback; 66 private final TestableNetworkCallback mNetworkCallback; 81 mNetworkCallback = new TestableNetworkCallback(); in TapTestNetworkTracker()
|
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/ |
D | VpnTest.java | 134 import com.android.testutils.TestableNetworkCallback; 879 private void expectUnderlyingNetworks(TestableNetworkCallback callback, in expectUnderlyingNetworks() 887 private void expectVpnNetwork(TestableNetworkCallback callback) { in expectVpnNetwork() 897 final TestableNetworkCallback callback = new TestableNetworkCallback(); in testChangeUnderlyingNetworks() 970 final TestableNetworkCallback systemDefaultCallback = new TestableNetworkCallback(); in testDefault() 971 final TestableNetworkCallback otherUidCallback = new TestableNetworkCallback(); in testDefault() 972 final TestableNetworkCallback myUidCallback = new TestableNetworkCallback(); in testDefault() 986 for (TestableNetworkCallback callback : List.of(systemDefaultCallback, myUidCallback)) { in testDefault() 1049 private void assertNoCallbackExceptCapOrLpChange(TestableNetworkCallback callback) { in assertNoCallbackExceptCapOrLpChange() 1165 final TestableNetworkCallback cb = new TestableNetworkCallback(); in doTestAutomaticOnOffKeepaliveMode() [all …]
|
/packages/modules/Connectivity/tests/unit/java/com/android/metrics/ |
D | ConnectivitySampleMetricsTest.kt | 42 import com.android.testutils.TestableNetworkCallback in <lambda>() 202 TestableNetworkCallback() in fileNetworkRequest() 207 TestableNetworkCallback(), in fileNetworkRequest()
|
/packages/modules/Connectivity/tests/cts/multidevices/snippet/ |
D | ConnectivityMultiDevicesSnippet.kt | 42 import com.android.testutils.TestableNetworkCallback 117 val networkCallback = TestableNetworkCallback() in connectToWifi()
|