/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | UpstreamNetworkMonitorTest.java | 101 private TestConnectivityManager mCM; field in UpstreamNetworkMonitorTest 114 mCM = spy(new TestConnectivityManager(mContext, mCS)); in setUp() 115 when(mContext.getSystemService(eq(Context.CONNECTIVITY_SERVICE))).thenReturn(mCM); in setUp() 136 assertTrue(mCM.hasNoCallbacks()); in testDoesNothingBeforeTrackDefaultAndStarted() 140 assertTrue(mCM.hasNoCallbacks()); in testDoesNothingBeforeTrackDefaultAndStarted() 142 assertTrue(mCM.hasNoCallbacks()); in testDoesNothingBeforeTrackDefaultAndStarted() 147 assertTrue(mCM.hasNoCallbacks()); in testDefaultNetworkIsTracked() 151 assertEquals(1, mCM.mTrackingDefault.size()); in testDefaultNetworkIsTracked() 154 assertTrue(mCM.onlyHasDefaultCallbacks()); in testDefaultNetworkIsTracked() 159 assertTrue(mCM.mListening.isEmpty()); in testListensForAllNetworks() [all …]
|
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/ |
D | VpnTest.java | 147 private ConnectivityManager mCM; field in VpnTest 176 mCM = (ConnectivityManager) mActivity.getSystemService(Context.CONNECTIVITY_SERVICE); in setUp() 188 mCM.unregisterNetworkCallback(mCallback); in tearDown() 269 mCM.registerNetworkCallback(request, mCallback); // Unregistered in tearDown. in startVpn() 319 mCM.registerNetworkCallback(request, mCallback); // Unregistered in tearDown. in stopVpn() 490 int uid = mCM.getConnectionOwnerUid(OsConstants.IPPROTO_UDP, loc, rem); in checkConnectionOwnerUidUdp() 498 int uid = mCM.getConnectionOwnerUid(OsConstants.IPPROTO_TCP, loc, rem); in checkConnectionOwnerUidTcp() 655 mCM.registerNetworkCallback(request, callback); in expectPrivateDnsHostname() 661 mCM.unregisterNetworkCallback(callback); in expectPrivateDnsHostname() 721 final Network defaultNetwork = mCM.getActiveNetwork(); in testDefault() [all …]
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | MultinetworkApiTest.java | 60 private ConnectivityManager mCM; field in MultinetworkApiTest 68 mCM = (ConnectivityManager) getContext().getSystemService(Context.CONNECTIVITY_SERVICE); in setUp() 80 for (Network network : mCM.getAllNetworks()) { in getTestableNetworks() 81 final NetworkCapabilities nc = mCM.getNetworkCapabilities(network); in getTestableNetworks() 101 "getaddrinfo on " + mCM.getNetworkInfo(network), -errno); in testGetaddrinfo() 109 assertNull(mCM.getProcessDefaultNetwork()); in testSetprocnetwork() 113 mCM.setProcessDefaultNetwork(null); in testSetprocnetwork() 114 assertNull(mCM.getProcessDefaultNetwork()); in testSetprocnetwork() 119 "setprocnetwork on " + mCM.getNetworkInfo(network), -errno); in testSetprocnetwork() 121 Network processDefault = mCM.getProcessDefaultNetwork(); in testSetprocnetwork() [all …]
|
D | NetworkAgentTest.kt | 165 private val mCM = realContext.getSystemService(ConnectivityManager::class.java)!! constant 185 callbacksToCleanUp.forEach { mCM.unregisterNetworkCallback(it) } in tearDown() 363 mCM.requestNetwork(request, callback) in requestNetwork() 371 mCM.registerNetworkCallback(request, callback) in registerNetworkCallback() 380 mCM!!.registerBestMatchingNetworkCallback(request, callback, handler) in registerBestMatchingNetworkCallback() 462 val networkInfo = mCM.getNetworkInfo(agent.network) in testSetSubtypeNameAndExtraInfoByAgentConfig() 489 val networkInfo = mCM.getNetworkInfo(agent.network) in testSetLegacySubtypeInNetworkAgent() 507 mCM.requestBandwidthUpdate(agent.network!!) in testOnBandwidthUpdateRequested() 552 mCM.unregisterNetworkCallback(it) in testSignalStrengthThresholds() 672 val defaultNetwork = mCM.activeNetwork in testSetUnderlyingNetworksAndVpnSpecifier() [all …]
|
D | DnsResolverTest.java | 94 private ConnectivityManager mCM; field in DnsResolverTest 107 mCM = (ConnectivityManager) getContext().getSystemService(Context.CONNECTIVITY_SERVICE); in setUp() 138 for (Network network : mCM.getAllNetworks()) { in getTestableNetworks() 139 final NetworkCapabilities nc = mCM.getNetworkCapabilities(network); in getTestableNetworks() 387 ? mCM.getNetworkCapabilities(network) in doTestRawQueryNXDomain() 388 : mCM.getNetworkCapabilities(mCM.getActiveNetwork()); in doTestRawQueryNXDomain() 412 (network != null) ? network : mCM.getActiveNetwork(); in doTestRawQueryNXDomainWithPrivateDns() 726 mCM.bindProcessToNetwork(network.getPrivateDnsBypassingCopy()); in testPrivateDnsBypass() 739 mCM.bindProcessToNetwork(null); in testPrivateDnsBypass()
|
D | IpSecBaseTest.java | 110 protected ConnectivityManager mCM; field in IpSecBaseTest 119 mCM = in setUp()
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | WifiNoInternetDialog.java | 54 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/ |
D | CallNotifier.java | 77 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() 320 int phoneType = mCM.getFgPhone().getPhoneType(); in run() [all …]
|
D | MMIDialogActivity.java | 47 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()
|
D | PhoneGlobals.java | 156 CallManager mCM; field in PhoneGlobals 304 PhoneUtils.cancelMmiCode(mCM.getFgPhone()); 392 if (mCM == null) { in onCreate() 439 mCM = CallManager.getInstance(); in onCreate() 489 mCM.registerForMmiComplete(mHandler, MMI_COMPLETE, null); in onCreate() 568 return mCM; in getCallManager()
|
D | PhoneUtils.java | 171 connection = app.mCM.dial(phone, numberToDial, VideoProfile.STATE_AUDIO_ONLY); in placeOtaspCall() 690 return (state == Call.State.INCOMING && !PhoneGlobals.getInstance().mCM.hasActiveFgCall()); in isRealIncomingCall()
|
D | PhoneInterfaceManager.java | 356 private CallManager mCM; field in PhoneInterfaceManager 2167 mCM = PhoneGlobals.getInstance().mCM; in PhoneInterfaceManager() 2260 PhoneConstants.State state = mCM.getState(subId); in dialForSubscriber()
|
/packages/apps/Settings/src/com/android/settings/development/ |
D | AdbIpAddressPreferenceController.java | 56 private final ConnectivityManager mCM; field in AdbIpAddressPreferenceController 61 mCM = context.getSystemService(ConnectivityManager.class); in AdbIpAddressPreferenceController() 104 return getDefaultIpAddresses(mCM); in getIpv4Address() 109 String ipAddress = getDefaultIpAddresses(mCM); in updateConnectivity()
|
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/ |
D | UpstreamNetworkMonitor.java | 120 private ConnectivityManager mCM; field in UpstreamNetworkMonitor 148 mCM = (ConnectivityManager) ctx.getSystemService(Context.CONNECTIVITY_SERVICE); in UpstreamNetworkMonitor() 480 if (mCM == null) { in cm() 482 mCM = (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE); in cm() 484 return mCM; in cm()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | MultipathPolicyTrackerTest.java | 104 @Mock private ConnectivityManager mCM; field in MultipathPolicyTrackerTest 157 mockService(Context.CONNECTIVITY_SERVICE, ConnectivityManager.class, mCM); in setUp() 244 verify(mCM).registerNetworkCallback(any(), networkCallback.capture(), any()); in testGetMultipathPreference()
|
/packages/apps/DocumentsUI/tests/res/raw/ |
D | images_tar | 2010 t�!@�u�?��j��5w{��y��㻥q^/��Νr�;��s��WiJw�Χ'O��mCM�f1��j\��Y����!�r3�?J�GA��n-5x�k�1��}䜏oν�…
|