Home
last modified time | relevance | path

Searched refs:NetworkMonitor (Results 1 – 13 of 13) sorted by relevance

/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/wifi/
DNetworkMonitorTest.java48 @Mock private NetworkMonitor.NetworkConnectedCallback mCallback;
61 final NetworkMonitor nm = new NetworkMonitor(mContext, false /* waitForValidated */); in testStartListening()
81 final NetworkMonitor nm = new NetworkMonitor(mContext, false /* waitForValidated */); in testStopListening()
98 final NetworkMonitor nm = new NetworkMonitor(mContext, /* waitForValidated */ true); in testWaitForValidated_NoCallbackBeforeValidated()
115 final NetworkMonitor nm = new NetworkMonitor(mContext, /* waitForValidated */ true); in testWaitForValidated_NetworkChange()
147 final NetworkMonitor nm = new NetworkMonitor(mContext, /* waitForValidated */ true); in testWaitForValidated_NoCallbackOnCapabilitiesChange()
171 final NetworkMonitor nm = new NetworkMonitor(mContext, /* waitForValidated */ true); in testWaitForValidated_ToggleBlocked()
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/
DNetworkMonitorTest.java57 import static com.android.server.connectivity.NetworkMonitor.INITIAL_REEVALUATE_DELAY_MS;
58 import static com.android.server.connectivity.NetworkMonitor.extractCharset;
240 private @Mock NetworkMonitor.Dependencies mDependencies;
602 private TcpSocketTracker getTcpSocketTrackerOrNull(NetworkMonitor.Dependencies dp) { in getTcpSocketTrackerOrNull()
610 private class WrappedNetworkMonitor extends NetworkMonitor {
677 private void setNetworkCapabilities(NetworkMonitor nm, NetworkCapabilities nc) { in setNetworkCapabilities()
747 final NetworkMonitor nm = runNetworkTest(TEST_LINK_PROPERTIES, meteredCap, in testEvaluatingBandwidthState_meteredNetwork()
767 final NetworkMonitor nm = runNetworkTest(TEST_LINK_PROPERTIES, nonMeteredCap, in testEvaluatingBandwidthState_nonMeteredNetworkWithWrongConfig()
1053 eq(NetworkMonitor.CONFIG_CAPTIVE_PORTAL_DNS_PROBE_TIMEOUT), in testGetIntSetting()
1057 NetworkMonitor.CONFIG_CAPTIVE_PORTAL_DNS_PROBE_TIMEOUT, in testGetIntSetting()
[all …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DConnectMobileNetworkTask.java26 import com.android.managedprovisioning.task.wifi.NetworkMonitor;
33 implements NetworkMonitor.NetworkConnectedCallback {
36 private final NetworkMonitor mNetworkMonitor;
49 mNetworkMonitor = new NetworkMonitor(context, /* waitForValidated */ true); in ConnectMobileNetworkTask()
DAddWifiNetworkTask.java36 import com.android.managedprovisioning.task.wifi.NetworkMonitor;
44 implements NetworkMonitor.NetworkConnectedCallback {
53 private final NetworkMonitor mNetworkMonitor;
67 new NetworkMonitor(context, /* waitForValidated */ false), in AddWifiNetworkTask()
77 NetworkMonitor networkMonitor, in AddWifiNetworkTask()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/wifi/
DNetworkMonitor.java34 public class NetworkMonitor { class
53 public NetworkMonitor(Context context, boolean waitForValidated) { in NetworkMonitor() method in NetworkMonitor
130 synchronized (NetworkMonitor.this) {
/packages/modules/Connectivity/tests/integration/src/com/android/server/net/integrationtests/
DTestNetworkStackService.kt31 import com.android.server.connectivity.NetworkMonitor
62 NetworkMonitor.Dependencies() { in enforceNetworkStackCallingPermission()
91 val nm = NetworkMonitor(this@TestNetworkStackService, cb, in makeNetworkMonitor()
/packages/modules/NetworkStack/src/com/android/server/
DNetworkStackService.java65 import com.android.server.connectivity.NetworkMonitor;
165 public NetworkMonitor makeNetworkMonitor(@NonNull Context context, in makeNetworkMonitor()
168 return new NetworkMonitor(context, cb, network, log, nsServiceManager); in makeNetworkMonitor()
371 final NetworkMonitor nm = mDeps.makeNetworkMonitor(mContext, cb, network, log, this); in makeNetworkMonitor()
563 private final NetworkMonitor mNm;
567 public NetworkMonitorConnector(@NonNull NetworkMonitor nm, in NetworkMonitorConnector()
/packages/modules/NetworkStack/tests/unit/src/com/android/server/
DNetworkStackServiceTest.kt41 import com.android.server.connectivity.NetworkMonitor
80 private val mockNetworkMonitor = mock(NetworkMonitor::class.java)
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
DAddWifiNetworkTaskTest.java42 import com.android.managedprovisioning.task.wifi.NetworkMonitor;
74 @Mock private NetworkMonitor mNetworkMonitor;
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/util/
DDnsUtilsTest.kt29 import com.android.server.connectivity.NetworkMonitor.DnsLogFunc
/packages/modules/NetworkStack/src/com/android/networkstack/util/
DDnsUtils.java33 import com.android.server.connectivity.NetworkMonitor.DnsLogFunc;
/packages/modules/NetworkStack/src/com/android/networkstack/metrics/
Dstats.proto140 * src/com/android/server/connectivity/NetworkMonitor.java
/packages/modules/NetworkStack/src/com/android/server/connectivity/
DNetworkMonitor.java219 public class NetworkMonitor extends StateMachine { class
220 private static final String TAG = NetworkMonitor.class.getSimpleName();
547 public NetworkMonitor(Context context, INetworkMonitorCallbacks cb, Network network, in NetworkMonitor() method in NetworkMonitor
554 public NetworkMonitor(Context context, INetworkMonitorCallbacks cb, Network network, in NetworkMonitor() method in NetworkMonitor