/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/ |
D | UpstreamNetworkMonitorTest.java | 92 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/ |
D | NtpTrustedTime.java | 46 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/ |
D | Blur25G.java | 39 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/ |
D | AbstractIpAddressPreferenceController.java | 49 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/ |
D | ConnectionUtil.java | 70 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/ |
D | UpstreamNetworkMonitor.java | 94 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/ |
D | NetworkTimeUpdateService.java | 79 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/ |
D | BandwidthEnforcementTestService.java | 146 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/ |
D | SntpClientTest.java | 69 ConnectivityManager mCM = getContext().getSystemService(ConnectivityManager.class); in setUp() local 70 mNetwork = mCM.getActiveNetwork(); in setUp()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | MultipathPolicyTracker.java | 108 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/ |
D | MultipathPolicyTrackerTest.java | 97 @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/ |
D | SubscriptionController.java | 154 protected CallManager mCM; field in SubscriptionController 205 mCM = CallManager.getInstance(); in init() 224 mCM = CallManager.getInstance(); in SubscriptionController()
|