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.java92 private TestConnectivityManager mCM; field in UpstreamNetworkMonitorTest
102 mCM = spy(new TestConnectivityManager(mContext, mCS)); in setUp()
105 (ConnectivityManager) mCM, mSM, mLog, EVENT_UNM_UPDATE); in setUp()
117 assertTrue(mCM.hasNoCallbacks()); in testDoesNothingBeforeStarted()
121 assertTrue(mCM.hasNoCallbacks()); in testDoesNothingBeforeStarted()
123 assertTrue(mCM.hasNoCallbacks()); in testDoesNothingBeforeStarted()
128 assertEquals(0, mCM.trackingDefault.size()); in testDefaultNetworkIsTracked()
131 assertEquals(1, mCM.trackingDefault.size()); in testDefaultNetworkIsTracked()
134 assertTrue(mCM.hasNoCallbacks()); in testDefaultNetworkIsTracked()
139 assertTrue(mCM.listening.isEmpty()); in testListensForAllNetworks()
[all …]
/frameworks/base/core/java/android/util/
DNtpTrustedTime.java46 private ConnectivityManager mCM; field in NtpTrustedTime
86 if (mCM == null) { in forceRefresh()
87 mCM = sContext.getSystemService(ConnectivityManager.class); in forceRefresh()
91 final Network network = mCM == null ? null : mCM.getActiveNetwork(); in forceRefresh()
103 if (mCM == null) { in forceRefresh()
104 mCM = sContext.getSystemService(ConnectivityManager.class); in forceRefresh()
108 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.java49 private final ConnectivityManager mCM; field in AbstractIpAddressPreferenceController
53 mCM = context.getSystemService(ConnectivityManager.class); in AbstractIpAddressPreferenceController()
80 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.java94 private ConnectivityManager mCM; field in UpstreamNetworkMonitor
117 mCM = cm; in UpstreamNetworkMonitor()
398 if (mCM == null) { in cm()
400 mCM = (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE); in cm()
402 return mCM; in cm()
/frameworks/base/services/core/java/com/android/server/
DNetworkTimeUpdateService.java79 private final ConnectivityManager mCM; field in NetworkTimeUpdateService
105 mCM = mContext.getSystemService(ConnectivityManager.class); in NetworkTimeUpdateService()
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/core/tests/coretests/src/android/net/
DSntpClientTest.java69 ConnectivityManager mCM = getContext().getSystemService(ConnectivityManager.class); in setUp() local
70 mNetwork = mCM.getActiveNetwork(); in setUp()
/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/opt/telephony/src/java/com/android/internal/telephony/
DSubscriptionController.java154 protected CallManager mCM; field in SubscriptionController
205 mCM = CallManager.getInstance(); in init()
224 mCM = CallManager.getInstance(); in SubscriptionController()