/cts/tests/tests/permission/src/android/permission/cts/ |
D | NoNetworkStatePermissionTest.java | 30 private ConnectivityManager mConnectivityManager; field in NoNetworkStatePermissionTest 37 mConnectivityManager = (ConnectivityManager) mContext.getSystemService( in setUp() 39 assertNotNull(mConnectivityManager); in setUp() 50 mConnectivityManager.getActiveNetworkInfo(); in testGetActiveNetworkInfo() 66 mConnectivityManager.getNetworkInfo(TEST_NETWORK_TYPE); in testGetNetworkInfo() 82 mConnectivityManager.getAllNetworkInfo(); in testGetAllNetworkInfo()
|
D | ConnectivityManagerPermissionTest.java | 45 private ConnectivityManager mConnectivityManager; field in ConnectivityManagerPermissionTest 51 mConnectivityManager = mContext.getSystemService(ConnectivityManager.class); in setUp() 52 assertNotNull(mConnectivityManager); in setUp() 64 mConnectivityManager.getNetworkInfo(ConnectivityManager.TYPE_MOBILE); in testGetNetworkInfo() 89 mConnectivityManager.setOemNetworkPreference(preferences, null, null); in testSetOemNetworkPreference() 114 mConnectivityManager.setOemNetworkPreference(preferences, null, null); in testSetOemNetworkPreferenceHasAutomotiveFeature()
|
/cts/tests/netlegacy22.permission/src/android/net/cts/legacy/api22/permission/ |
D | NoNetworkStatePermissionTest.java | 29 private ConnectivityManager mConnectivityManager; field in NoNetworkStatePermissionTest 36 mConnectivityManager = (ConnectivityManager) mContext.getSystemService( in setUp() 38 assertNotNull(mConnectivityManager); in setUp() 49 mConnectivityManager.startUsingNetworkFeature(TEST_NETWORK_TYPE, TEST_FEATURE); in testStartUsingNetworkFeature() 65 mConnectivityManager.requestRouteToHost(TEST_NETWORK_TYPE, 0xffffffff); in testRequestRouteToHost()
|
D | ConnectivityManagerPermissionTest.java | 30 private ConnectivityManager mConnectivityManager = null; field in ConnectivityManagerPermissionTest 35 …mConnectivityManager = (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVIC… in setUp() 36 assertNotNull(mConnectivityManager); in setUp() 48 mConnectivityManager.requestRouteToHost(ConnectivityManager.TYPE_MOBILE, 1); in testRequestRouteToHost()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | ConnectionStatus.java | 39 private ConnectivityManager mConnectivityManager; field in ConnectionStatus 42 mConnectivityManager = in ConnectionStatus() 47 NetworkInfo networkInfo = mConnectivityManager.getActiveNetworkInfo(); in getNotConnectedReason() 56 NetworkInfo networkInfo = mConnectivityManager.getActiveNetworkInfo(); in isAvailable() 61 NetworkInfo networkInfo = mConnectivityManager.getActiveNetworkInfo(); in isConnected()
|
/cts/tests/tests/wifi/src/android/net/wifi/cts/ |
D | TestHelper.java | 74 private final ConnectivityManager mConnectivityManager; field in TestHelper 86 mConnectivityManager = context.getSystemService(ConnectivityManager.class); in TestHelper() 330 mConnectivityManager.registerNetworkCallback( in testConnectionFlowWithConnect() 362 mConnectivityManager.unregisterNetworkCallback(testNetworkCallback); in testConnectionFlowWithConnect() 478 mConnectivityManager.registerNetworkCallback( in testConnectionFlowWithSuggestionInternal() 484 mConnectivityManager.requestNetwork(nrBuilder.build(), testNetworkCallback); in testConnectionFlowWithSuggestionInternal() 532 mConnectivityManager.unregisterNetworkCallback(testNetworkCallback); in testConnectionFlowWithSuggestionInternal() 685 mConnectivityManager.unregisterNetworkCallback(testNetworkCallback); in testConnectionFlowWithSpecifierWithShellIdentity() 693 mConnectivityManager.requestNetwork( in testConnectionFlowWithSpecifierWithShellIdentity() 726 mConnectivityManager.unregisterNetworkCallback(testNetworkCallback); in testConnectionFlowWithSpecifierWithShellIdentity() [all …]
|
D | MultiStaConcurrencyWifiNetworkSpecifierTest.java | 81 private ConnectivityManager mConnectivityManager; field in MultiStaConcurrencyWifiNetworkSpecifierTest 144 mConnectivityManager = mContext.getSystemService(ConnectivityManager.class); in setUp() 212 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in tearDown() 215 mConnectivityManager.unregisterNetworkCallback(mNrNetworkCallback); in tearDown()
|
D | WifiNetworkSpecifierTest.java | 191 private ConnectivityManager mConnectivityManager; field in WifiNetworkSpecifierTest 280 mConnectivityManager = mContext.getSystemService(ConnectivityManager.class); in setUp() 311 mConnectivityManager.unregisterNetworkCallback(mNrNetworkCallback); in tearDown() 439 mConnectivityManager.registerNetworkCallback(request, callback); in testWifiBandInNetworkCallback() 456 mConnectivityManager.unregisterNetworkCallback(cb); in testWifiBandInNetworkCallback() 475 mConnectivityManager.unregisterNetworkCallback(mNrNetworkCallback); in testEnsureAutoConnectToInternetConnectionOnRelease()
|
D | MultiStaConcurrencyRestrictedWifiNetworkSuggestionTest.java | 83 private ConnectivityManager mConnectivityManager; field in MultiStaConcurrencyRestrictedWifiNetworkSuggestionTest 146 mConnectivityManager = mContext.getSystemService(ConnectivityManager.class); in setUp() 215 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in tearDown() 218 mConnectivityManager.unregisterNetworkCallback(mNsNetworkCallback); in tearDown()
|
D | ConnectedNetworkScorerTest.java | 96 private ConnectivityManager mConnectivityManager; field in ConnectedNetworkScorerTest 117 mConnectivityManager = mContext.getSystemService(ConnectivityManager.class); in setUp() 704 mConnectivityManager.unregisterNetworkCallback(networkCallback); in setWifiConnectedNetworkScorerAndInitiateConnectToSpecifierOrRestrictedSuggestion() 716 mConnectivityManager.unregisterNetworkCallback(networkCallback); in setWifiConnectedNetworkScorerAndInitiateConnectToSpecifierOrRestrictedSuggestion()
|
D | WifiManagerTest.java | 135 private ConnectivityManager mConnectivityManager; field in WifiManagerTest 321 mConnectivityManager = getContext().getSystemService(ConnectivityManager.class); in setUp() 2632 mConnectivityManager.registerNetworkCallback( in waitForNetworkCallbackAndCheckForMeteredness() 3368 mConnectivityManager.registerNetworkCallback( in testGetCurrentNetwork()
|
/cts/apps/VpnApp/src/com/android/cts/vpnfirewall/ |
D | ReflectorVpnService.java | 56 private ConnectivityManager mConnectivityManager = null; field in ReflectorVpnService 91 mConnectivityManager = getSystemService(ConnectivityManager.class); in onCreate() 104 if (null == mConnectivityManager || null == mNetworkCallback) return; in ensureNetworkCallbackUnregistered() 105 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in ensureNetworkCallbackUnregistered() 141 mConnectivityManager.registerNetworkCallback(request, mNetworkCallback); in start()
|
/cts/tests/tests/vcn/src/android/net/vcn/cts/ |
D | VcnManagerTest.java | 97 private final ConnectivityManager mConnectivityManager; field in VcnManagerTest 106 mConnectivityManager = mContext.getSystemService(ConnectivityManager.class); in VcnManagerTest() 450 mConnectivityManager.requestNetwork(cellNetworkReq, cellNetworkCb); in testSetVcnConfigOnTestNetwork() 463 mConnectivityManager.unregisterNetworkCallback(cellNetworkCb); in testSetVcnConfigOnTestNetwork() 537 if (mConnectivityManager.getNetworkCapabilities(vcnNetwork) != null) { in clearVcnConfigsAndVerifyNetworkTeardown() 548 assertNull(mConnectivityManager.getNetworkCapabilities(vcnNetwork)); in clearVcnConfigsAndVerifyNetworkTeardown() 573 mConnectivityManager.requestNetwork(cellNetworkReq, cellNetworkCb); in testVcnMigrationAfterNetworkDies() 605 mConnectivityManager.unregisterNetworkCallback(cellNetworkCb); in testVcnMigrationAfterNetworkDies() 674 mConnectivityManager.requestNetwork(cellNetworkReq, cellNetworkCb); in testVcnSafemodeOnTestNetwork() 705 mConnectivityManager.unregisterNetworkCallback(cellNetworkCb); in testVcnSafemodeOnTestNetwork()
|
D | TestNetworkWrapper.java | 88 private final ConnectivityManager mConnectivityManager; field in TestNetworkWrapper 106 mConnectivityManager = context.getSystemService(ConnectivityManager.class); in TestNetworkWrapper() 125 mConnectivityManager.requestNetwork(nr, vcnNetworkCallback); in TestNetworkWrapper() 222 mConnectivityManager.unregisterNetworkCallback(vcnNetworkCallback); in close()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/net/ |
D | MultiNetworkConnectivityTestActivity.java | 188 private ConnectivityManager mConnectivityManager; field in MultiNetworkConnectivityTestActivity 196 mConnectivityManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); in onCreate() 388 Network[] allNetworks = mConnectivityManager.getAllNetworks(); in isMobileDataEnabled() 390 if (isNetworkCellularAndHasInternet(mConnectivityManager, network)) { in isMobileDataEnabled() 595 mConnectivityManager.unregisterNetworkCallback(mWifiNetworkCallback); in reset() 599 mConnectivityManager.unregisterNetworkCallback(mCellularNetworkCallback); in reset() 621 mConnectivityManager.requestNetwork(networkRequest, mWifiNetworkCallback, in legacyConnectToWifiNetwork() 639 mConnectivityManager.requestNetwork(networkRequest, mWifiNetworkCallback, in connectToWifiNetworkWithNoInternet() 650 mConnectivityManager.requestNetwork(networkRequest, mCellularNetworkCallback, in connectToCellularNetwork() 761 Network activeNetwork = mConnectivityManager.getActiveNetwork(); in isExpectedTransportForActiveNetwork() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifi/testcase/ |
D | NetworkRequestTestCase.java | 77 private ConnectivityManager mConnectivityManager; field in NetworkRequestTestCase 189 mConnectivityManager.requestNetwork(mNetworkRequest, mNetworkCallback, in executeTest() 251 mConnectivityManager = mContext.getSystemService(ConnectivityManager.class); in setUp() 257 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in tearDown()
|
D | NetworkSuggestionTestCase.java | 75 private ConnectivityManager mConnectivityManager; field in NetworkSuggestionTestCase 258 mConnectivityManager.registerNetworkCallback(mNetworkRequest, mNetworkCallback); in executeTest() 462 mConnectivityManager = mContext.getSystemService(ConnectivityManager.class); in setUp()
|