Home
last modified time | relevance | path

Searched refs:mConnectivityManager (Results 1 – 11 of 11) sorted by relevance

/cts/tests/tests/permission/src/android/permission/cts/
DNoNetworkStatePermissionTest.java29 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()
DConnectivityManagerPermissionTest.java30 private ConnectivityManager mConnectivityManager = null; field in ConnectivityManagerPermissionTest
35mConnectivityManager = (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/
DNoNetworkStatePermissionTest.java29 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()
DConnectivityManagerPermissionTest.java30 private ConnectivityManager mConnectivityManager = null; field in ConnectivityManagerPermissionTest
35mConnectivityManager = (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/
DConnectionStatus.java39 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/
DNetworkWatchlistTest.java61 private ConnectivityManager mConnectivityManager; field in NetworkWatchlistTest
67 mConnectivityManager = in setUp()
74 byte[] result = mConnectivityManager.getNetworkWatchlistConfigHash(); in setUp()
106 byte[] result = mConnectivityManager.getNetworkWatchlistConfigHash(); in testGetWatchlistConfigHash()
/cts/apps/VpnApp/src/com/android/cts/vpnfirewall/
DReflectorVpnService.java54 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/
DMultiNetworkConnectivityTestActivity.java193 private ConnectivityManager mConnectivityManager; field in MultiNetworkConnectivityTestActivity
201 mConnectivityManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); in onCreate()
328 Network[] allNetworks = mConnectivityManager.getAllNetworks(); in isMobileDataEnabled()
330 if (isNetworkCellularAndHasInternet(mConnectivityManager, network)) { in isMobileDataEnabled()
529 mConnectivityManager.unregisterNetworkCallback(mWifiNetworkCallback); in reset()
533 mConnectivityManager.unregisterNetworkCallback(mCellularNetworkCallback); in reset()
555 mConnectivityManager.requestNetwork(networkRequest, mWifiNetworkCallback, in legacyConnectToWifiNetwork()
573 mConnectivityManager.requestNetwork(networkRequest, mWifiNetworkCallback, in connectToWifiNetworkWithNoInternet()
584 mConnectivityManager.requestNetwork(networkRequest, mCellularNetworkCallback, in connectToCellularNetwork()
686 Network activeNetwork = mConnectivityManager.getActiveNetwork(); in isExpectedTransportForActiveNetwork()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifi/testcase/
DNetworkRequestTestCase.java72 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()
DNetworkSuggestionTestCase.java63 private ConnectivityManager mConnectivityManager; field in NetworkSuggestionTestCase
136 mConnectivityManager.registerNetworkCallback(mNetworkRequest, mNetworkCallback); in executeTest()
235 mConnectivityManager = ConnectivityManager.from(mContext); in setUp()
/cts/tests/tests/net/src/android/net/wifi/aware/cts/
DSingleDeviceTest.java78 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()