Home
last modified time | relevance | path

Searched refs:mDeps (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/tests/vcn/java/com/android/server/vcn/
DVcnGatewayConnectionTestBase.java140 @NonNull protected final VcnGatewayConnection.Dependencies mDeps; field in VcnGatewayConnectionTestBase
161 mDeps = mock(VcnGatewayConnection.Dependencies.class); in VcnGatewayConnectionTestBase()
181 .when(mDeps) in VcnGatewayConnectionTestBase()
184 .when(mDeps) in VcnGatewayConnectionTestBase()
192 doReturn(ELAPSED_REAL_TIME).when(mDeps).getElapsedRealTime(); in VcnGatewayConnectionTestBase()
196 doReturn(msg).when(mDeps).newWakeupMessage(eq(mVcnContext), any(), eq(cmdName), any()); in setUpWakeupMessage()
209 doReturn(mMockIkeSession).when(mDeps).newIkeSession(any(), any(), any(), any(), any()); in setUp()
219 mDeps); in setUp()
229 verify(mDeps).newIkeSession(any(), any(), any(), captor.capture(), any()); in getIkeSessionCallback()
236 verify(mDeps, atLeastOnce()).newIkeSession(any(), any(), any(), any(), captor.capture()); in getChildSessionCallback()
[all …]
DVcnNetworkProviderTest.java57 @NonNull private VcnNetworkProvider.Dependencies mDeps; field in VcnNetworkProviderTest
69 mDeps = mock(VcnNetworkProvider.Dependencies.class); in setUp()
74 mVcnNetworkProvider = new VcnNetworkProvider(mContext, mTestLooper.getLooper(), mDeps); in setUp()
85 verify(mDeps) in verifyRegisterAndGetOfferCallback()
DVcnTest.java96 private Vcn.Dependencies mDeps; field in VcnTest
115 mDeps = mock(Vcn.Dependencies.class); in setUp()
123 doReturn(mContentResolver).when(mDeps).newVcnContentResolver(eq(mVcnContext)); in setUp()
129 }).when(mDeps).newVcnGatewayConnection(any(), any(), any(), any(), any(), anyBoolean()); in setUp()
149 mDeps); in setUp()
229 mDeps); in testMobileDataStateCheckedOnInitialization_disabled()
280 verify(mDeps, times(numExpectedGateways)) in startGatewaysAndGetGatewayConnections()
357 verify(mDeps, times(gatewayConnections.size() + 1)) in verifyGatewayQuit()
DVcnGatewayConnectionConnectedStateTest.java97 .when(mDeps) in setUp()
111 verify(mDeps).newIkeSession(any(), any(), any(), any(), any()); in testEnterStateCreatesNewIkeSession()
190 mDeps); in testCreatedTransformsAreAppliedWithDun()
260 verify(mDeps) in triggerValidation()
288 verify(mDeps) in testChildOpenedRegistersNetwork()
340 verify(mDeps) in testInternalAndDnsAddressesChanged()
410 verify(mDeps, times(2)) in testSubsequentFailedValidationTriggersSafeMode()
428 verify(mDeps) in setupNetworkAndGetUnwantedCallback()
DTelephonySubscriptionTrackerTest.java105 @NonNull private final TelephonySubscriptionTracker.Dependencies mDeps; field in TelephonySubscriptionTrackerTest
118 mDeps = mock(TelephonySubscriptionTracker.Dependencies.class); in TelephonySubscriptionTrackerTest()
156 new TelephonySubscriptionTracker(mContext, mHandler, mCallback, mDeps); in setUp()
159 doReturn(true).when(mDeps).isConfigForIdentifiedCarrier(any()); in setUp()
274 doReturn(TEST_SUBSCRIPTION_ID_2).when(mDeps).getActiveDataSubscriptionId(); in testOnSubscriptionsChangedFired_onActiveSubIdsChanged()
350 doReturn(false).when(mDeps).isConfigForIdentifiedCarrier(any()); in testReceiveBroadcast_ConfigNotReady()
DVcnGatewayConnectionDisconnectedStateTest.java69 mDeps); in testEnterWhileQuittingTriggersQuit()
DVcnGatewayConnectionConnectingStateTest.java59 verify(mDeps).newIkeSession(any(), paramsCaptor.capture(), any(), any(), any()); in testEnterStateCreatesNewIkeSession()
/frameworks/base/services/core/java/com/android/server/
DVpnManagerService.java86 private final Dependencies mDeps; field in VpnManagerService
137 mDeps = deps; in VpnManagerService()
138 mHandlerThread = mDeps.makeHandlerThread(); in VpnManagerService()
141 mVpnProfileStore = mDeps.getVpnProfileStore(); in VpnManagerService()
144 mNMS = mDeps.getINetworkManagementService(); in VpnManagerService()
145 mNetd = mDeps.getNetd(); in VpnManagerService()
244 int user = UserHandle.getUserId(mDeps.getCallingUid()); in establishVpn()
253 int user = UserHandle.getUserId(mDeps.getCallingUid()); in addVpnAddress()
262 int user = UserHandle.getUserId(mDeps.getCallingUid()); in removeVpnAddress()
271 int user = UserHandle.getUserId(mDeps.getCallingUid()); in setUnderlyingNetworksForVpn()
[all …]
DVcnManagementService.java173 @NonNull private final Dependencies mDeps; field in VcnManagementService
214 mDeps = requireNonNull(deps, "Missing dependencies"); in VcnManagementService()
216 mLooper = mDeps.getLooper(); in VcnManagementService()
220 mTelephonySubscriptionTracker = mDeps.newTelephonySubscriptionTracker( in VcnManagementService()
223 mConfigDiskRwHelper = mDeps.newPersistableBundleLockingReadWriteHelper(VCN_CONFIG_FILE); in VcnManagementService()
384 final int uid = mDeps.getBinderCallingUid(); in enforcePrimaryUser()
600 mDeps.newVcnContext( in startVcnLocked()
603 mDeps.newVcn(vcnContext, subscriptionGroup, config, mLastSnapshot, vcnCallback); in startVcnLocked()
649 .checkPackage(mDeps.getBinderCallingUid(), config.getProvisioningPackageName()); in setVcnConfig()
675 .checkPackage(mDeps.getBinderCallingUid(), opPkgName); in clearVcnConfig()
[all …]
DNetworkManagementService.java158 private final Dependencies mDeps; field in NetworkManagementService
239 mDeps = deps; in NetworkManagementService()
245 mDeps.registerLocalService(new LocalService()); in NetworkManagementService()
255 mDeps = null; in NetworkManagementService()
292 IBatteryStats.Stub.asInterface(mDeps.getService(BatteryStats.SERVICE_NAME)); in getBatteryStats()
432 mNetdService = mDeps.getNetd(); in connectNativeNetdService()
1265 if (mDeps.getCallingUid() != uid) { in setUidCleartextNetworkPolicy()
1668 final int uid = mDeps.getCallingUid(); in enforceSystemUid()
/frameworks/base/services/core/java/com/android/server/vcn/
DVcnNetworkProvider.java64 private final Dependencies mDeps; field in VcnNetworkProvider
87 mDeps = Objects.requireNonNull(dependencies, "Missing dependencies"); in VcnNetworkProvider()
93 mDeps.registerNetworkOffer( in register()
DTelephonySubscriptionTracker.java83 @NonNull private final Dependencies mDeps; field in TelephonySubscriptionTracker
113 mDeps = Objects.requireNonNull(deps, "Missing deps"); in TelephonySubscriptionTracker()
197 mDeps.getActiveDataSubscriptionId(), newSubIdToInfoMap, privilegedPackages); in handleSubscriptionsChanged()
232 if (mDeps.isConfigForIdentifiedCarrier(carrierConfigs)) { in onReceive()
DVcn.java145 @NonNull private final Dependencies mDeps; field in Vcn
209 mDeps = Objects.requireNonNull(deps, "Missing deps"); in Vcn()
211 mContentResolver = mDeps.newVcnContentResolver(mVcnContext); in Vcn()
411 mDeps.newVcnGatewayConnection( in handleNetworkRequested()
DVcnGatewayConnection.java527 @NonNull private final Dependencies mDeps; field in VcnGatewayConnection
672 mDeps = Objects.requireNonNull(deps, "Missing deps"); in VcnGatewayConnection()
679 mDeps.newWakeLock(mVcnContext.getContext(), PowerManager.PARTIAL_WAKE_LOCK, TAG); in VcnGatewayConnection()
682 mDeps.newUnderlyingNetworkTracker( in VcnGatewayConnection()
963 mDeps.newWakeupMessage( in createScheduledAlarm()
968 alarm.schedule(mDeps.getElapsedRealTime() + delay); in createScheduledAlarm()
1618 mDeps.newNetworkAgent( in buildNetworkAgent()
2342 return mDeps.newIkeSession( in buildIkeSession()
DUnderlyingNetworkTracker.java126 @NonNull private final Dependencies mDeps; field in UnderlyingNetworkTracker
168 mDeps = Objects.requireNonNull(deps, "Missing deps"); in UnderlyingNetworkTracker()
/frameworks/base/services/net/java/android/net/
DConnectivityModuleConnector.java81 private final Dependencies mDeps; field in ConnectivityModuleConnector
89 mDeps = deps; in ConnectivityModuleConnector()
222 Intent intent = mDeps.getModuleServiceIntent(pm, serviceIntentBaseAction, in startModuleService()
227 intent = mDeps.getModuleServiceIntent(pm, serviceIntentBaseAction, in startModuleService()
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/create/
DAsmGenerator.java54 private Map<String, ClassReader> mDeps; field in AsmGenerator
248 for (Entry<String, ClassReader> entry : mDeps.entrySet()) {
271 mLog.info("# deps classes: %d", mDeps.size());
434 mDeps = analysisResult.getDeps();
DAsmAnalyzer.java63 private final Map<String, ClassReader> mDeps; field in AsmAnalyzer.Result
70 mDeps = deps; in Result()
80 return mDeps; in getDeps()
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java201 @VisibleForTesting final Dependencies mDeps; field in Vpn
436 mDeps = deps; in Vpn()
842 DeviceIdleInternal idleController = mDeps.getDeviceIdleInternal(); in startAlwaysOnVpn()
1838 mStatusIntent = mDeps.getIntentForStatusPanel(mContext);
2913 mDeps.stopService(daemon);
2961 final InetAddress endpointAddress = mDeps.resolve(mProfile.server);
2972 while (!mDeps.isServiceStopped(daemon)) {
2978 final File state = mDeps.getStateFile();
2996 mDeps.startService(daemon);
2999 while (!mDeps.isServiceRunning(daemon)) {
[all …]
DMultipathPolicyTracker.java107 private final Dependencies mDeps; field in MultipathPolicyTracker
144 mDeps = deps; in MultipathPolicyTracker()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsService.java349 private final Dependencies mDeps; field in NetworkStatsService
442 mDeps = Objects.requireNonNull(deps, "missing Dependencies"); in NetworkStatsService()
444 final HandlerThread handlerThread = mDeps.makeHandlerThread(); in NetworkStatsService()
450 mContentObserver = mDeps.makeContentObserver(mHandler, mSettings, in NetworkStatsService()