Home
last modified time | relevance | path

Searched refs:getConnectivityManager (Results 1 – 4 of 4) sorted by relevance

/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DNetworkPolicyTestUtils.java134 return getConnectivityManager().isActiveNetworkMetered() == metered; in isActiveNetworkMetered()
138 final Network activeNetwork = getConnectivityManager().getActiveNetwork(); in canChangeActiveNetworkMeteredness()
140 = getConnectivityManager().getNetworkCapabilities(activeNetwork); in canChangeActiveNetworkMeteredness()
199 getConnectivityManager().registerDefaultNetworkCallback(networkCallback); in assertActiveNetworkMetered()
203 + getConnectivityManager().getActiveNetwork()); in assertActiveNetworkMetered()
205 getConnectivityManager().unregisterNetworkCallback(networkCallback); in assertActiveNetworkMetered()
217 final int actualStatus = getConnectivityManager().getRestrictBackgroundStatus(); in isMyRestrictBackgroundStatus()
258 final int actualStatus = getConnectivityManager().getRestrictBackgroundStatus(); in assertMyRestrictBackgroundStatus()
263 public static ConnectivityManager getConnectivityManager() { in getConnectivityManager() method in NetworkPolicyTestUtils
DAbstractRestrictBackgroundNetworkTestCase.java25 import static com.android.cts.net.hostside.NetworkPolicyTestUtils.getConnectivityManager;
150 mCm = getConnectivityManager(); in setUp()
/cts/tests/tests/location/src/android/location/cts/
DTestUtils.java104 ConnectivityManager cm = getConnectivityManager(context); in getActiveNetworkInfo()
117 public static ConnectivityManager getConnectivityManager(Context context) { in getConnectivityManager() method in TestUtils
DGnssTtffTests.java98 ConnectivityManager connManager = TestUtils.getConnectivityManager(getContext()); in hasCellularData()