Home
last modified time | relevance | path

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

/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DConnectivityController.java74 private final ConnectivityManager mConnManager; field in ConnectivityController
103 mConnManager = mContext.getSystemService(ConnectivityManager.class); in ConnectivityController()
110 mConnManager.registerNetworkCallback(request, mNetworkCallback); in ConnectivityController()
169 final NetworkCapabilities capabilities = mConnManager.getNetworkCapabilities( in isNetworkAvailable()
431 final Network network = mConnManager.getActiveNetworkForUid(jobStatus.getSourceUid()); in updateConstraintsSatisfied()
432 final NetworkCapabilities capabilities = mConnManager.getNetworkCapabilities(network); in updateConstraintsSatisfied()
441 final NetworkInfo info = mConnManager.getNetworkInfoForUid(network, in updateConstraintsSatisfied()
499 final Network network = mConnManager.getActiveNetworkForUid(jobs.valueAt(0).getSourceUid()); in updateTrackedJobsLocked()
502 capabilities = mConnManager.getNetworkCapabilities(network); in updateTrackedJobsLocked()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DConnectivityControllerTest.java86 private ConnectivityManager mConnManager; field in ConnectivityControllerTest
128 .thenReturn(mConnManager); in setUp()
269 doNothing().when(mConnManager).registerNetworkCallback(any(), callback.capture()); in testUpdates()
288 reset(mConnManager); in testUpdates()
301 reset(mConnManager); in testUpdates()
313 reset(mConnManager); in testUpdates()
325 reset(mConnManager); in testUpdates()
337 reset(mConnManager); in testUpdates()
587 reset(mConnManager); in testRestrictedJobTracking()
618 when(mConnManager.getActiveNetworkForUid(eq(uid))).thenReturn(net); in answerNetwork()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java235 private @Mock IConnectivityManager mConnManager; field in NetworkPolicyManagerServiceTest
381 mService.bindConnectivityManager(mConnManager); in callSystemReady()
1075 when(mConnManager.getAllNetworkState()).thenReturn(state);
1083 when(mConnManager.getAllNetworkState()).thenReturn(state);
1344 when(mConnManager.getAllNetworkState()).thenReturn(state);
1467 when(mConnManager.getAllNetworkState()).thenReturn(new NetworkState[0]);
1479 when(mConnManager.getAllNetworkState()).thenReturn(new NetworkState[0]);
1975 when(mConnManager.getAllNetworkState()).thenReturn(new NetworkState[] { in expectNetworkState()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java411 private IConnectivityManager mConnManager; field in NetworkPolicyManagerService
652 mConnManager = Objects.requireNonNull(connManager, "missing IConnectivityManager"); in bindConnectivityManager()
1864 states = defeatNullable(mConnManager.getAllNetworkState());