Home
last modified time | relevance | path

Searched refs:CONNECTIVITY_SERVICE (Results 1 – 25 of 46) sorted by relevance

12

/frameworks/opt/net/ims/tests/src/com/android/ims/
DContextFixture.java100 case Context.CONNECTIVITY_SERVICE: in getSystemService()
118 return Context.CONNECTIVITY_SERVICE; in getSystemServiceName()
/frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/
DNetworkActivity.java130 (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); in updateConnectedFlags()
291 (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); in onReceive()
/frameworks/base/core/java/com/android/server/net/
DNetworkPinner.java81 sCM = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); in maybeInitConnectivityManager()
/frameworks/base/tests/vcn/java/com/android/server/vcn/routeselection/
DUnderlyingNetworkControllerTest.java189 Context.CONNECTIVITY_SERVICE, in setUp()
254 setupSystemService(mContext, cm, Context.CONNECTIVITY_SERVICE, ConnectivityManager.class); in testNetworkCallbacksRegisteredOnStartupForTestMode()
297 setupSystemService(mContext, cm, Context.CONNECTIVITY_SERVICE, ConnectivityManager.class); in testNetworkCallbacksRegisteredOnStartupForNonInternetCapabilities()
343 setupSystemService(mContext, cm, Context.CONNECTIVITY_SERVICE, ConnectivityManager.class); in testNetworkCallbacksRegisteredOnStartupWithDedupedtCapabilities()
774 setupSystemService(mContext, cm, Context.CONNECTIVITY_SERVICE, ConnectivityManager.class); in setupControllerAndGetNetworkListener()
DNetworkEvaluationTestBase.java146 Context.CONNECTIVITY_SERVICE, in setUp()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DTetherUtilTest.java57 .when(mContext).getSystemService(Context.CONNECTIVITY_SERVICE); in setUp()
/frameworks/base/tests/vcn/java/com/android/server/vcn/
DVcnNetworkProviderTest.java72 mContext, mConnMgr, Context.CONNECTIVITY_SERVICE, ConnectivityManager.class); in setUp()
DVcnGatewayConnectionTestBase.java208 mContext, mConnMgr, Context.CONNECTIVITY_SERVICE, ConnectivityManager.class); in VcnGatewayConnectionTestBase()
/frameworks/opt/photoviewer/src/com/android/ex/photo/fragments/
DPhotoViewFragment.java262 getActivity().getSystemService(Context.CONNECTIVITY_SERVICE); in onResume()
588 context.getSystemService(Context.CONNECTIVITY_SERVICE); in onReceive()
/frameworks/base/startop/apps/test/src/
DSystemServerBenchmarks.java194 .getSystemService(Context.CONNECTIVITY_SERVICE); in initializeBenchmarks()
/frameworks/base/services/core/java/com/android/server/location/gnss/
DNtpNetworkTimeHelper.java93 mConnMgr = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); in NtpNetworkTimeHelper()
DGnssNetworkConnectivityHandler.java219 mConnMgr = (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE); in GnssNetworkConnectivityHandler()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkManagementServiceTest.java140 doReturn(Context.CONNECTIVITY_SERVICE).when(mContext).getSystemServiceName( in setUp()
142 doReturn(mCm).when(mContext).getSystemService(eq(Context.CONNECTIVITY_SERVICE)); in setUp()
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/
DConnectionUtil.java116 mCM = (ConnectivityManager)mContext.getSystemService(Context.CONNECTIVITY_SERVICE); in initialize()
161 .getSystemService(Context.CONNECTIVITY_SERVICE); in onReceive()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DSecurityControllerTest.java91 mContext.addMockSystemService(Context.CONNECTIVITY_SERVICE, mConnectivityManager); in setUp()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/data/
DCellularNetworkValidator.java238 mContext.getSystemService(Context.CONNECTIVITY_SERVICE);
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DConnectivityManagerTestBase.java130 mCm = (ConnectivityManager)mContext.getSystemService(Context.CONNECTIVITY_SERVICE); in setUp()
/frameworks/base/services/tests/VpnTests/java/com/android/server/net/
DLockdownVpnTrackerTest.java86 if (Context.CONNECTIVITY_SERVICE.equals(name)) return mCm;
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/
DDownloadManagerBaseTest.java105 Context.CONNECTIVITY_SERVICE); in getWiFiIsOn()
/frameworks/base/services/tests/VpnTests/java/com/android/server/
DVpnManagerServiceTest.java153 mockService(mContext, ConnectivityManager.class, Context.CONNECTIVITY_SERVICE, mCm); in setUp()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DContextFixture.java279 case Context.CONNECTIVITY_SERVICE: in getSystemService()
335 return Context.CONNECTIVITY_SERVICE; in getSystemServiceName()
DCarrierKeyDownloadMgrTest.java114 Context.CONNECTIVITY_SERVICE); in setUp()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmMockContext.java238 case Context.CONNECTIVITY_SERVICE: in getSystemService()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DDeviceStateMonitor.java318 Context.CONNECTIVITY_SERVICE); in DeviceStateMonitor()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSecurityControllerImpl.java142 context.getSystemService(Context.CONNECTIVITY_SERVICE); in SecurityControllerImpl()

12