Home
last modified time | relevance | path

Searched refs:mCM (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/
DUpstreamNetworkMonitorTest.java98 private TestConnectivityManager mCM; field in UpstreamNetworkMonitorTest
109 mCM = spy(new TestConnectivityManager(mContext, mCS)); in setUp()
112 (ConnectivityManager) mCM, mSM, mLog, EVENT_UNM_UPDATE); in setUp()
131 assertTrue(mCM.hasNoCallbacks()); in testDoesNothingBeforeTrackDefaultAndStarted()
135 assertTrue(mCM.hasNoCallbacks()); in testDoesNothingBeforeTrackDefaultAndStarted()
137 assertTrue(mCM.hasNoCallbacks()); in testDoesNothingBeforeTrackDefaultAndStarted()
142 assertTrue(mCM.hasNoCallbacks()); in testDefaultNetworkIsTracked()
146 assertEquals(1, mCM.trackingDefault.size()); in testDefaultNetworkIsTracked()
149 assertTrue(mCM.onlyHasDefaultCallbacks()); in testDefaultNetworkIsTracked()
154 assertTrue(mCM.listening.isEmpty()); in testListensForAllNetworks()
[all …]
/frameworks/base/core/java/android/util/
DNtpTrustedTime.java47 private ConnectivityManager mCM; field in NtpTrustedTime
89 if (mCM == null) { in forceRefresh()
90 mCM = sContext.getSystemService(ConnectivityManager.class); in forceRefresh()
94 final Network network = mCM == null ? null : mCM.getActiveNetwork(); in forceRefresh()
106 if (mCM == null) { in forceRefresh()
107 mCM = sContext.getSystemService(ConnectivityManager.class); in forceRefresh()
111 final NetworkInfo ni = mCM == null ? null : mCM.getNetworkInfo(network); in forceRefresh()
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
DBlur25G.java39 private ScriptIntrinsicColorMatrix mCM; field in Blur25G
73 mCM = ScriptIntrinsicColorMatrix.create(mRS); in createTest()
74 mCM.forEach(mInPixelsAllocation, mScratchPixelsAllocation1); in createTest()
102 mCM.setColorMatrix(m); in updateBitmap()
103 mCM.setAdd(0.f, 0.f, 0.f, 1.f); in updateBitmap()
105 mCM.forEach(mScratchPixelsAllocation2, mOutPixelsAllocation); in updateBitmap()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/
DAbstractIpAddressPreferenceController.java50 private final ConnectivityManager mCM; field in AbstractIpAddressPreferenceController
54 mCM = context.getSystemService(ConnectivityManager.class); in AbstractIpAddressPreferenceController()
81 String ipAddress = getDefaultIpAddresses(mCM); in updateConnectivity()
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/
DConnectionUtil.java70 private ConnectivityManager mCM; field in ConnectionUtil
113 mCM = (ConnectivityManager)mContext.getSystemService(Context.CONNECTIVITY_SERVICE); in initialize()
439 " is: " + mCM.getNetworkInfo(networkType).getState()); in waitForNetworkState()
440 if (mCM.getNetworkInfo(networkType).getState() != expectedState) { in waitForNetworkState()
445 mCM.getNetworkInfo(networkType)); in waitForNetworkState()
459 mNetworkInfo = mCM.getActiveNetworkInfo(); in waitForNetworkState()
518 NetworkInfo networkInfo = mCM.getNetworkInfo(ConnectivityManager.TYPE_MOBILE); in isConnectedToMobile()
527 NetworkInfo networkInfo = mCM.getNetworkInfo(ConnectivityManager.TYPE_WIFI); in isConnectedToWifi()
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/
DUpstreamNetworkMonitor.java95 private ConnectivityManager mCM; field in UpstreamNetworkMonitor
122 mCM = cm; in UpstreamNetworkMonitor()
392 if (mCM == null) { in cm()
394 mCM = (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE); in cm()
396 return mCM; in cm()
/frameworks/base/services/core/java/com/android/server/
DOldNetworkTimeUpdateService.java79 private final ConnectivityManager mCM; field in OldNetworkTimeUpdateService
105 mCM = mContext.getSystemService(ConnectivityManager.class); in OldNetworkTimeUpdateService()
132 mCM.registerDefaultNetworkCallback(mNetworkTimeUpdateCallback, mHandler); in systemRunning()
DNewNetworkTimeUpdateService.java79 private final ConnectivityManager mCM; field in NewNetworkTimeUpdateService
105 mCM = mContext.getSystemService(ConnectivityManager.class); in NewNetworkTimeUpdateService()
132 mCM.registerDefaultNetworkCallback(mNetworkTimeUpdateCallback, mHandler); in systemRunning()
/frameworks/base/tests/BandwidthTests/src/com/android/tests/bandwidthenforcement/
DBandwidthEnforcementTestService.java146 final ConnectivityManager mCM = context.getSystemService(ConnectivityManager.class); in testSntp() local
147 final Network network = mCM.getActiveNetwork(); in testSntp()
/frameworks/base/services/core/java/com/android/server/connectivity/
DMultipathPolicyTracker.java108 private ConnectivityManager mCM; field in MultipathPolicyTracker
146 mCM = mContext.getSystemService(ConnectivityManager.class); in start()
481 mCM.registerNetworkCallback(request, mMobileNetworkCallback, mHandler); in registerTrackMobileCallback()
495 mCM.unregisterNetworkCallback(mMobileNetworkCallback); in maybeUnregisterTrackMobileCallback()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DMultipathPolicyTrackerTest.java97 @Mock private ConnectivityManager mCM; field in MultipathPolicyTrackerTest
142 mockService(Context.CONNECTIVITY_SERVICE, ConnectivityManager.class, mCM); in setUp()
229 verify(mCM).registerNetworkCallback(any(), networkCallback.capture(), any()); in testGetMultipathPreference()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt77290 Landroid/util/NtpTrustedTime;->mCM:Landroid/net/ConnectivityManager;