/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/ |
D | MdnsSocketProviderTest.java | 114 private static final Network TEST_NETWORK = new Network(123); field in MdnsSocketProviderTest 330 runOnHandler(() -> mNetworkCallback.onCapabilitiesChanged(TEST_NETWORK, testNc)); 331 runOnHandler(() -> mNetworkCallback.onLinkPropertiesChanged(TEST_NETWORK, testLp)); 340 runOnHandler(() -> mSocketProvider.requestSocket(TEST_NETWORK, testCallback1)); 344 testCallback1.expectedSocketCreatedForNetwork(TEST_NETWORK, List.of(LINKADDRV4)); 345 cbMonitorOrder.verify(mSocketRequestMonitor).onSocketRequestFulfilled(eq(TEST_NETWORK), 349 runOnHandler(() -> mSocketProvider.requestSocket(TEST_NETWORK, testCallback2)); 351 testCallback2.expectedSocketCreatedForNetwork(TEST_NETWORK, List.of(LINKADDRV4)); 352 cbMonitorOrder.verify(mSocketRequestMonitor).onSocketRequestFulfilled(eq(TEST_NETWORK), 359 testCallback3.expectedSocketCreatedForNetwork(TEST_NETWORK, List.of(LINKADDRV4)); [all …]
|
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/ |
D | NetworkStackNotifierTest.kt | 133 private val TEST_NETWORK = Network(42) constant 134 private val TEST_NETWORK_TAG = TEST_NETWORK.networkHandle.toString() 216 onLost(TEST_NETWORK) in verifyCanceledNotificationAfterNetworkLost() 222 onDefaultNetworkLost(TEST_NETWORK) in verifyCanceledNotificationAfterDefaultNetworkLost() 230 mNotifier.notifyCaptivePortalValidationPending(TEST_NETWORK) in testConnectedNotification_NoSsid() 244 mNotifier.notifyCaptivePortalValidationPending(TEST_NETWORK) in testConnectedNotification_WithSsid() 258 mNotifier.notifyCaptivePortalValidationPending(TEST_NETWORK) in testConnectedVenueInfoNotification() 260 onDefaultNetworkAvailable(TEST_NETWORK) in testConnectedVenueInfoNotification() 278 mNotifier.notifyCaptivePortalValidationPending(TEST_NETWORK) in testConnectedVenueInfoNotification_VenueInfoDisabled() 280 onDefaultNetworkAvailable(TEST_NETWORK) in testConnectedVenueInfoNotification_VenueInfoDisabled() [all …]
|
/packages/modules/NetworkStack/tests/unit/src/android/net/networkstack/ |
D | ModuleNetworkStackClientTest.kt | 51 private val TEST_NETWORK = Network(43) constant 129 ModuleNetworkStackClient.getInstance(mContext).makeNetworkMonitor(TEST_NETWORK, testName, in testNetworkMonitorAvailableImmediately() 131 verify(mConnector).makeNetworkMonitor(TEST_NETWORK, testName, mNetworkMonitorCb) in testNetworkMonitorAvailableImmediately()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | KeepaliveStatsTrackerTest.java | 99 private static final Network TEST_NETWORK = new Network(123); field in KeepaliveStatsTrackerTest 292 mKeepaliveStatsTracker.onStartKeepalive(TEST_NETWORK, slot, nc, intervalSeconds, in onStartKeepalive() 299 mTestHandler, () -> mKeepaliveStatsTracker.onPauseKeepalive(TEST_NETWORK, slot)); in onPauseKeepalive() 305 mTestHandler, () -> mKeepaliveStatsTracker.onResumeKeepalive(TEST_NETWORK, slot)); in onResumeKeepalive() 311 mTestHandler, () -> mKeepaliveStatsTracker.onStopKeepalive(TEST_NETWORK, slot)); in onStopKeepalive() 320 TEST_NETWORK, in testEnsureRunningOnHandlerThread() 328 () -> mKeepaliveStatsTracker.onPauseKeepalive(TEST_NETWORK, TEST_SLOT)); in testEnsureRunningOnHandlerThread() 331 () -> mKeepaliveStatsTracker.onResumeKeepalive(TEST_NETWORK, TEST_SLOT)); in testEnsureRunningOnHandlerThread() 334 () -> mKeepaliveStatsTracker.onStopKeepalive(TEST_NETWORK, TEST_SLOT)); in testEnsureRunningOnHandlerThread()
|
D | MultipathPolicyTrackerTest.java | 99 private static final Network TEST_NETWORK = new Network(123); field in MultipathPolicyTrackerTest 201 when(mNPMI.getSubscriptionOpportunisticQuota(TEST_NETWORK, QUOTA_TYPE_MULTIPATH)) in prepareGetMultipathPreferenceTest() 271 TEST_NETWORK, in prepareGetMultipathPreferenceTest() 284 TEST_NETWORK, in prepareGetMultipathPreferenceTest() 439 when(mNPMI.getSubscriptionOpportunisticQuota(TEST_NETWORK, QUOTA_TYPE_MULTIPATH)) in testOnThresholdReached()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/ |
D | NetworkStatsServiceTest.java | 239 private static final Network TEST_NETWORK = new Network(103); field in NetworkStatsServiceTest 243 private static final Network[] NETWORKS_TEST = new Network[]{ TEST_NETWORK };
|