/cts/tests/tests/permission/src/android/permission/cts/ |
D | NoNetworkStatePermissionTest.java | 29 private ConnectivityManager mConnectivityManager; field in NoNetworkStatePermissionTest 36 mConnectivityManager = (ConnectivityManager) mContext.getSystemService( in setUp() 38 assertNotNull(mConnectivityManager); in setUp() 49 mConnectivityManager.getActiveNetworkInfo(); in testGetActiveNetworkInfo() 65 mConnectivityManager.getNetworkInfo(TEST_NETWORK_TYPE); in testGetNetworkInfo() 81 mConnectivityManager.getAllNetworkInfo(); in testGetAllNetworkInfo()
|
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() 50 mConnectivityManager.getNetworkInfo(ConnectivityManager.TYPE_MOBILE); in testGetNetworkInfo()
|
/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/net/src/android/net/cts/ |
D | ConnectivityDiagnosticsManagerTest.java | 128 private ConnectivityManager mConnectivityManager; field in ConnectivityDiagnosticsManagerTest 145 mConnectivityManager = mContext.getSystemService(ConnectivityManager.class); in setUp() 152 mConnectivityManager.requestNetwork(TEST_NETWORK_REQUEST, mTestNetworkCallback); in setUp() 159 mConnectivityManager.unregisterNetworkCallback(mTestNetworkCallback); in tearDown() 187 mConnectivityManager.getLinkProperties(mTestNetwork).getInterfaceName(); in testRegisterConnectivityDiagnosticsCallback() 217 mConnectivityManager.unregisterNetworkCallback(testNetworkCallback); in testRegisterCallbackWithCarrierPrivileges() 252 () -> mConnectivityManager.requestNetwork( in doBroadcastCarrierConfigsAndVerifyOnConnectivityReportAvailable() 277 mConnectivityManager.getLinkProperties(network).getInterfaceName(); in doBroadcastCarrierConfigsAndVerifyOnConnectivityReportAvailable() 317 mConnectivityManager.getLinkProperties(mTestNetwork).getInterfaceName(); in testOnConnectivityReportAvailable() 369 mConnectivityManager.getLinkProperties(mTestNetwork).getInterfaceName(); in verifyOnDataStallSuspected() [all …]
|
D | NetworkWatchlistTest.java | 62 private ConnectivityManager mConnectivityManager; field in NetworkWatchlistTest 68 mConnectivityManager = in setUp() 75 byte[] result = mConnectivityManager.getNetworkWatchlistConfigHash(); in setUp() 108 byte[] result = mConnectivityManager.getNetworkWatchlistConfigHash(); in testGetWatchlistConfigHash()
|
/cts/apps/VpnApp/src/com/android/cts/vpnfirewall/ |
D | ReflectorVpnService.java | 54 private ConnectivityManager mConnectivityManager = null; field in ReflectorVpnService 83 mConnectivityManager = getSystemService(ConnectivityManager.class); in onCreate() 96 if (null == mConnectivityManager || null == mNetworkCallback) return; in ensureNetworkCallbackUnregistered() 97 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in ensureNetworkCallbackUnregistered() 133 mConnectivityManager.registerNetworkCallback(request, mNetworkCallback); in start()
|
/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 | 72 private ConnectivityManager mConnectivityManager; field in NetworkRequestTestCase 148 mConnectivityManager.requestNetwork(mNetworkRequest, mNetworkCallback, in executeTest() 203 mConnectivityManager = ConnectivityManager.from(mContext); in setUp() 209 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in tearDown()
|
D | NetworkSuggestionTestCase.java | 63 private ConnectivityManager mConnectivityManager; field in NetworkSuggestionTestCase 136 mConnectivityManager.registerNetworkCallback(mNetworkRequest, mNetworkCallback); in executeTest() 235 mConnectivityManager = ConnectivityManager.from(mContext); in setUp()
|
/cts/tests/tests/wifi/src/android/net/wifi/aware/cts/ |
D | SingleDeviceTest.java | 78 private ConnectivityManager mConnectivityManager; field in SingleDeviceTest 374 mConnectivityManager = (ConnectivityManager) getContext().getSystemService( in setUp() 376 assertNotNull("Connectivity Manager", mConnectivityManager); in setUp() 735 mConnectivityManager.requestNetwork(nr, networkCb); in testDataPathOpenOutOfBandFail() 768 mConnectivityManager.requestNetwork(nr, networkCb); in testDataPathPassphraseOutOfBandFail()
|