Home
last modified time | relevance | path

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

/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DUpstreamNetworkMonitorTest.java103 private TestConnectivityManager mCM; field in UpstreamNetworkMonitorTest
115 mCM = spy(new TestConnectivityManager(mContext, mCS)); in setUp()
116 when(mContext.getSystemService(eq(Context.CONNECTIVITY_SERVICE))).thenReturn(mCM); in setUp()
130 assertTrue(mCM.hasNoCallbacks()); in testDoesNothingBeforeTrackDefaultAndStarted()
134 assertTrue(mCM.hasNoCallbacks()); in testDoesNothingBeforeTrackDefaultAndStarted()
136 assertTrue(mCM.hasNoCallbacks()); in testDoesNothingBeforeTrackDefaultAndStarted()
141 assertTrue(mCM.hasNoCallbacks()); in testDefaultNetworkIsTracked()
145 assertEquals(1, mCM.mTrackingDefault.size()); in testDefaultNetworkIsTracked()
148 assertTrue(mCM.onlyHasDefaultCallbacks()); in testDefaultNetworkIsTracked()
153 assertTrue(mCM.mListening.isEmpty()); in testListensForAllNetworks()
[all …]
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DMultinetworkApiTest.java87 private ConnectivityManager mCM; field in MultinetworkApiTest
95 mCM = mContext.getSystemService(ConnectivityManager.class); in setUp()
106 "getaddrinfo on " + mCM.getNetworkInfo(network), -errno); in testGetaddrinfo()
115 assertNull(mCM.getProcessDefaultNetwork()); in testSetprocnetwork()
119 mCM.setProcessDefaultNetwork(null); in testSetprocnetwork()
120 assertNull(mCM.getProcessDefaultNetwork()); in testSetprocnetwork()
125 "setprocnetwork on " + mCM.getNetworkInfo(network), -errno); in testSetprocnetwork()
127 Network processDefault = mCM.getProcessDefaultNetwork(); in testSetprocnetwork()
134 mCM.setProcessDefaultNetwork(null); in testSetprocnetwork()
139 assertNull(mCM.getBoundNetworkForProcess()); in testSetprocnetwork()
[all …]
DNetworkAgentTest.kt210 private val mCM = realContext.getSystemService(ConnectivityManager::class.java)!! constant
227 callbacksToCleanUp.forEach { mCM.unregisterNetworkCallback(it) } in tearDown()
267 mCM.requestNetwork(request, callback) in disconnect()
275 mCM.registerNetworkCallback(request, callback) in registerNetworkCallback()
284 mCM.registerBestMatchingNetworkCallback(request, callback, handler) in registerBestMatchingNetworkCallback()
368 mCM.unregisterNetworkCallback(callback) in connectNetwork()
396 val lp = mCM.getLinkProperties(n) in assertLinkPropertiesEventually()
421 val networkInfo = mCM.getNetworkInfo(agent.network) in testSetSubtypeNameAndExtraInfoByAgentConfig()
446 val networkInfo = mCM.getNetworkInfo(agent.network!!)!! in testSetLegacySubtypeInNetworkAgent()
464 mCM.requestBandwidthUpdate(agent.network!!) in testOnBandwidthUpdateRequested()
[all …]
DDnsResolverTest.java123 private ConnectivityManager mCM; field in DnsResolverTest
149 mCM = mContext.getSystemService(ConnectivityManager.class); in setUp()
163 mCM.unregisterNetworkCallback(mWifiRequestCallback); in tearDown()
192 mCM.requestNetwork(request, mWifiRequestCallback); in getTestableNetworks()
196 for (Network network : mCM.getAllNetworks()) { in getTestableNetworks()
197 final NetworkCapabilities nc = mCM.getNetworkCapabilities(network); in getTestableNetworks()
465 ? mCM.getNetworkCapabilities(network) in doTestRawQueryNXDomain()
466 : mCM.getNetworkCapabilities(mCM.getActiveNetwork()); in doTestRawQueryNXDomain()
490 (network != null) ? network : mCM.getActiveNetwork(); in doTestRawQueryNXDomainWithPrivateDns()
837 mCM.bindProcessToNetwork(network.getPrivateDnsBypassingCopy()); in doTestPrivateDnsBypass()
[all …]
DIpSecBaseTest.java118 protected ConnectivityManager mCM; field in IpSecBaseTest
127 mCM = in setUp()
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
DVpnTest.java223 private ConnectivityManager mCM; field in VpnTest
271 mCM = (ConnectivityManager) mActivity.getSystemService(Context.CONNECTIVITY_SERVICE); in setUp()
293 mCM.registerNetworkCallback(request, callback); in registerNetworkCallback()
298 mCM.registerDefaultNetworkCallback(callback); in registerDefaultNetworkCallback()
303 mCM.registerSystemDefaultNetworkCallback(callback, h); in registerSystemDefaultNetworkCallback()
309 mCM.registerDefaultNetworkCallbackForUid(uid, callback, h); in registerDefaultNetworkCallbackForUid()
315 mCM.unregisterNetworkCallback(callback); in unregisterRegisteredCallbacks()
650 int uid = mCM.getConnectionOwnerUid(OsConstants.IPPROTO_UDP, loc, rem); in checkConnectionOwnerUidUdp()
658 int uid = mCM.getConnectionOwnerUid(OsConstants.IPPROTO_TCP, loc, rem); in checkConnectionOwnerUidTcp()
904 final Network defaultNetwork = mCM.getActiveNetwork(); in testChangeUnderlyingNetworks()
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiNoInternetDialog.java54 private ConnectivityManager mCM; field in WifiNoInternetDialog
110 mCM = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); in onCreate()
111 mCM.registerNetworkCallback(request, mNetworkCallback); in onCreate()
113 final NetworkInfo ni = mCM.getNetworkInfo(mNetwork); in onCreate()
114 final NetworkCapabilities nc = mCM.getNetworkCapabilities(mNetwork); in onCreate()
170 mCM.unregisterNetworkCallback(mNetworkCallback); in onDestroy()
182 mCM.setAcceptPartialConnectivity(mNetwork, false /* accept */, false /* always */); in onDestroy()
184 mCM.setAcceptUnvalidated(mNetwork, false /* accept */, false /* always */); in onDestroy()
202 mCM.setAcceptUnvalidated(mNetwork, accept, always); in onClick()
207 mCM.setAcceptPartialConnectivity(mNetwork, accept, always); in onClick()
[all …]
/packages/services/Telephony/src/com/android/phone/
DCallNotifier.java77 private CallManager mCM; field in CallNotifier
130 mCM = app.mCM; in CallNotifier()
180 mCM.registerForDisconnect(this, PHONE_DISCONNECT, null); in registerForNotifications()
181 mCM.registerForDisplayInfo(this, PHONE_STATE_DISPLAYINFO, null); in registerForNotifications()
182 mCM.registerForSignalInfo(this, PHONE_STATE_SIGNALINFO, null); in registerForNotifications()
183 mCM.registerForInCallVoicePrivacyOn(this, PHONE_ENHANCED_VP_ON, null); in registerForNotifications()
184 mCM.registerForInCallVoicePrivacyOff(this, PHONE_ENHANCED_VP_OFF, null); in registerForNotifications()
185 mCM.registerForSuppServiceFailed(this, PHONE_SUPP_SERVICE_FAILED, null); in registerForNotifications()
186 mCM.registerForTtyModeReceived(this, PHONE_TTY_MODE_RECEIVED, null); in registerForNotifications()
307 int phoneType = mCM.getFgPhone().getPhoneType(); in run()
[all …]
DMMIDialogActivity.java47 private CallManager mCM = PhoneGlobals.getInstance().getCallManager(); field in MMIDialogActivity
77 mCM.registerForMmiComplete(mHandler, PhoneGlobals.MMI_COMPLETE, null); in onCreate()
90 mCM.unregisterForMmiComplete(mHandler); in onDestroy()
165 mCM.unregisterForMmiComplete(mHandler); in dismissDialogsAndFinish()
DPhoneGlobals.java162 CallManager mCM; field in PhoneGlobals
404 PhoneUtils.cancelMmiCode(mCM.getFgPhone());
544 if (mCM == null) { in onCreate()
610 mCM = CallManager.getInstance(); in onCreate()
660 mCM.registerForMmiComplete(mHandler, MMI_COMPLETE, null); in onCreate()
758 return mCM; in getCallManager()
DPhoneUtils.java172 connection = app.mCM.dial(phone, numberToDial, VideoProfile.STATE_AUDIO_ONLY); in placeOtaspCall()
694 return (state == Call.State.INCOMING && !PhoneGlobals.getInstance().mCM.hasActiveFgCall()); in isRealIncomingCall()
DPhoneInterfaceManager.java431 private final CallManager mCM; field in PhoneInterfaceManager
2475 mCM = PhoneGlobals.getInstance().mCM; in PhoneInterfaceManager()
2610 PhoneConstants.State state = mCM.getState(subId); in dialForSubscriber()
/packages/apps/Settings/src/com/android/settings/development/
DAdbIpAddressPreferenceController.java57 private final ConnectivityManager mCM; field in AdbIpAddressPreferenceController
62 mCM = context.getSystemService(ConnectivityManager.class); in AdbIpAddressPreferenceController()
116 return getDefaultIpAddresses(mCM); in getIpv4Address()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DUpstreamNetworkMonitor.java117 private ConnectivityManager mCM; field in UpstreamNetworkMonitor
143 mCM = (ConnectivityManager) ctx.getSystemService(Context.CONNECTIVITY_SERVICE); in UpstreamNetworkMonitor()
470 if (mCM == null) { in cm()
472 mCM = (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE); in cm()
474 return mCM; in cm()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DMultipathPolicyTrackerTest.java109 @Mock private ConnectivityManager mCM; field in MultipathPolicyTrackerTest
162 mockService(Context.CONNECTIVITY_SERVICE, ConnectivityManager.class, mCM); in setUp()
260 verify(mCM).registerNetworkCallback(any(), networkCallback.capture(), any()); in prepareGetMultipathPreferenceTest()
/packages/apps/DocumentsUI/tests/res/raw/
Dimages_tar2010 t�!@�u�?��j��5w{��y��㻥q^/��Νr�;��s��WiJw�Χ'O��mCM�f1��j\��Y����!�r3�?J�GA��n-5x�k�1��}䜏oν�…