/aosp14/frameworks/base/tests/vcn/java/com/android/server/vcn/ |
H A D | VcnGatewayConnectionTestBase.java | 171 @NonNull protected final VcnGatewayConnection.Dependencies mDeps; field in VcnGatewayConnectionTestBase 196 mDeps = mock(VcnGatewayConnection.Dependencies.class); in VcnGatewayConnectionTestBase() 227 .when(mDeps) in VcnGatewayConnectionTestBase() 230 .when(mDeps) in VcnGatewayConnectionTestBase() 233 .when(mDeps) in VcnGatewayConnectionTestBase() 241 doReturn(ELAPSED_REAL_TIME).when(mDeps).getElapsedRealTime(); in VcnGatewayConnectionTestBase() 245 doReturn(msg).when(mDeps).newWakeupMessage(eq(mVcnContext), any(), eq(cmdName), any()); in setUpWakeupMessage() 268 mDeps); in setUp() 278 verify(mDeps).newIkeSession(any(), any(), any(), captor.capture(), any()); in getIkeSessionCallback() 290 verify(mDeps).newWakeLock(eq(mContext), eq(PowerManager.PARTIAL_WAKE_LOCK), any()); in verifyWakeLockSetUp() [all …]
|
H A D | VcnNetworkProviderTest.java | 57 @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()
|
H A D | VcnTest.java | 97 private Vcn.Dependencies mDeps; field in VcnTest 116 mDeps = mock(Vcn.Dependencies.class); in setUp() 124 doReturn(mContentResolver).when(mDeps).newVcnContentResolver(eq(mVcnContext)); in setUp() 130 }).when(mDeps).newVcnGatewayConnection(any(), any(), any(), any(), any(), anyBoolean()); in setUp() 150 mDeps); in setUp() 237 mDeps); in testMobileDataStateCheckedOnInitialization_disabled() 306 verify(mDeps, times(numExpectedGateways)) in startGatewaysAndGetGatewayConnections() 383 verify(mDeps, times(gatewayConnections.size() + 1)) in verifyGatewayQuit()
|
H A D | VcnGatewayConnectionConnectedStateTest.java | 109 .when(mDeps) in setUp() 126 verify(mDeps).newIkeSession(any(), any(), any(), any(), any()); in testEnterStateCreatesNewIkeSession() 136 doReturn(false).when(mDeps).isAirplaneModeOn(any()); in testNullNetworkDoesNotTriggerDisconnect() 150 doReturn(true).when(mDeps).isAirplaneModeOn(any()); in testNullNetworkAirplaneModeDisconnects() 283 mDeps); in testCreatedTransformsAreAppliedWithDun() 367 verify(mDeps) in triggerValidation() 396 verify(mDeps) in testChildOpenedRegistersNetwork() 447 .when(mDeps) in openChildAndVerifyParallelSasRequested() 540 verify(mDeps) in testInternalAndDnsAddressesChanged() 614 verify(mDeps, times(2)) in testSubsequentFailedValidationTriggersSafeMode() [all …]
|
H A D | VcnGatewayConnectionTest.java | 206 doReturn(TEST_MTU).when(mDeps).getUnderlyingIfaceMtu(LOOPBACK_IFACE); in testBuildLinkProperties() 228 verify(mDeps).getUnderlyingIfaceMtu(LOOPBACK_IFACE); in testBuildLinkProperties() 232 doReturn(TEST_MTU - TEST_MTU_DELTA).when(mDeps).getUnderlyingIfaceMtu(LOOPBACK_IFACE); in testBuildLinkProperties() 242 verify(mDeps, times(2)).getUnderlyingIfaceMtu(LOOPBACK_IFACE); in testBuildLinkProperties() 322 mDeps); in buildConnectionWithDataStallHandling()
|
H A D | TelephonySubscriptionTrackerTest.java | 134 @NonNull private final TelephonySubscriptionTracker.Dependencies mDeps; field in TelephonySubscriptionTrackerTest 149 mDeps = mock(TelephonySubscriptionTracker.Dependencies.class); in TelephonySubscriptionTrackerTest() 195 new TelephonySubscriptionTracker(mContext, mHandler, mCallback, mDeps); in setUp() 201 doReturn(true).when(mDeps).isConfigForIdentifiedCarrier(any()); in setUp() 393 doReturn(TEST_SUBSCRIPTION_ID_2).when(mDeps).getActiveDataSubscriptionId(); in testOnSubscriptionsChangedFired_onActiveSubIdsChanged() 480 doReturn(false).when(mDeps).isConfigForIdentifiedCarrier(any()); in testReceiveBroadcast_ConfigNotReady()
|
H A D | VcnGatewayConnectionDisconnectedStateTest.java | 69 mDeps); in testEnterWhileQuittingTriggersQuit()
|
H A D | VcnGatewayConnectionConnectingStateTest.java | 59 verify(mDeps).newIkeSession(any(), paramsCaptor.capture(), any(), any(), any()); in testEnterStateCreatesNewIkeSession()
|
/aosp14/frameworks/base/services/core/java/com/android/server/ |
H A D | VpnManagerService.java | 92 private final Dependencies mDeps; field in VpnManagerService 162 mDeps = deps; in VpnManagerService() 163 mHandlerThread = mDeps.makeHandlerThread(); in VpnManagerService() 166 mVpnProfileStore = mDeps.getVpnProfileStore(); in VpnManagerService() 169 mNMS = mDeps.getINetworkManagementService(); in VpnManagerService() 170 mNetd = mDeps.getNetd(); in VpnManagerService() 172 mMainUserId = mDeps.getMainUserId(); in VpnManagerService() 274 int user = UserHandle.getUserId(mDeps.getCallingUid()); in establishVpn() 283 int user = UserHandle.getUserId(mDeps.getCallingUid()); in addVpnAddress() 494 if (mDeps.getCallingUid() != Process.SYSTEM_UID in updateLockdownVpn() [all …]
|
H A D | VcnManagementService.java | 188 @NonNull private final Dependencies mDeps; field in VcnManagementService 231 mDeps = requireNonNull(deps, "Missing dependencies"); in VcnManagementService() 233 mLooper = mDeps.getLooper(); in VcnManagementService() 237 mTelephonySubscriptionTracker = mDeps.newTelephonySubscriptionTracker( in VcnManagementService() 240 mConfigDiskRwHelper = mDeps.newPersistableBundleLockingReadWriteHelper(VCN_CONFIG_FILE); in VcnManagementService() 435 final int uid = mDeps.getBinderCallingUid(); in enforcePrimaryUser() 721 mDeps.newVcnContext( in startVcnLocked() 830 .checkPackage(mDeps.getBinderCallingUid(), opPkgName); in clearVcnConfig() 890 .checkPackage(mDeps.getBinderCallingUid(), opPkgName); in getConfiguredSubscriptionGroups() 1084 final Set<Integer> restrictedTransports = mDeps.getRestrictedTransports( in getUnderlyingNetworkPolicy() [all …]
|
/aosp14/frameworks/base/services/net/java/android/net/ |
H A D | ConnectivityModuleConnector.java | 78 private final Dependencies mDeps; field in ConnectivityModuleConnector 86 mDeps = deps; in ConnectivityModuleConnector() 219 Intent intent = mDeps.getModuleServiceIntent(pm, serviceIntentBaseAction, in startModuleService() 224 intent = mDeps.getModuleServiceIntent(pm, serviceIntentBaseAction, in startModuleService()
|
/aosp14/frameworks/base/services/core/java/com/android/server/vcn/ |
H A D | VcnNetworkProvider.java | 64 private final Dependencies mDeps; field in VcnNetworkProvider 87 mDeps = Objects.requireNonNull(dependencies, "Missing dependencies"); in VcnNetworkProvider() 93 mDeps.registerNetworkOffer( in register()
|
H A D | TelephonySubscriptionTracker.java | 87 @NonNull private final Dependencies mDeps; field in TelephonySubscriptionTracker 130 mDeps = Objects.requireNonNull(deps, "Missing deps"); in TelephonySubscriptionTracker() 264 mDeps.getActiveDataSubscriptionId(), in handleSubscriptionsChanged() 323 if (mDeps.isConfigForIdentifiedCarrier(carrierConfig)) { in handleActionCarrierConfigChanged()
|
H A D | Vcn.java | 149 @NonNull private final Dependencies mDeps; field in Vcn 217 mDeps = Objects.requireNonNull(deps, "Missing deps"); in Vcn() 219 mContentResolver = mDeps.newVcnContentResolver(mVcnContext); in Vcn() 430 mDeps.newVcnGatewayConnection( in handleNetworkRequested()
|
H A D | VcnGatewayConnection.java | 621 @NonNull private final Dependencies mDeps; field in VcnGatewayConnection 781 mDeps = Objects.requireNonNull(deps, "Missing deps"); in VcnGatewayConnection() 788 mDeps.newWakeLock(mVcnContext.getContext(), PowerManager.PARTIAL_WAKE_LOCK, TAG); in VcnGatewayConnection() 791 mDeps.newUnderlyingNetworkController( in VcnGatewayConnection() 928 if (mDeps.isAirplaneModeOn(mVcnContext)) { in onSelectedUnderlyingNetworkChanged() 1114 mDeps.newWakeupMessage( in createScheduledAlarm() 1119 alarm.schedule(mDeps.getElapsedRealTime() + delay); in createScheduledAlarm() 1796 mDeps.newNetworkAgent( in buildNetworkAgent() 1997 mDeps.getParallelTunnelCount(mLastSnapshot, mSubscriptionGroup); in processStateMsg() 2322 underlyingMtu = mDeps.getUnderlyingIfaceMtu(underlyingLp.getInterfaceName()); in buildConnectedLinkProperties() [all …]
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
H A D | NetworkPolicyManagerServiceTest.java | 286 private TestDependencies mDeps; field in NetworkPolicyManagerServiceTest 503 mDeps = new TestDependencies(mServiceContext); in callSystemReady() 505 mNetworkManager, mIpm, mClock, mPolicyDir, true, mDeps); in callSystemReady() 1325 mDeps.setMockedTotalBytes(UID_A, 256L, 256L); 1485 mDeps.setMockedTotalBytes(UID_C, 0, 0); 1515 mDeps.setMockedTotalBytes(UID_A, 0L, 0L); 1821 mDeps.setMockedTotalBytes(UID_A, DataUnit.MEGABYTES.toBytes(360), 0); 1953 mDeps.setMockedTotalBytes(UID_A, 2999, 2000); 1974 mDeps.increaseMockedTotalBytes(UID_A, 1000, 999); 1982 mDeps.increaseMockedTotalBytes(UID_A, 1000L, 1000); [all …]
|
H A D | NetworkManagementServiceTest.java | 91 private final MockDependencies mDeps = new MockDependencies(); field in NetworkManagementServiceTest 138 mNMService = NetworkManagementService.create(mContext, mDeps); in setUp()
|
/aosp14/frameworks/base/services/core/java/com/android/server/connectivity/ |
H A D | Vpn.java | 369 @VisibleForTesting final Dependencies mDeps; field in Vpn 767 mDeps = deps; in Vpn() 2377 mStatusIntent = mDeps.getIntentForStatusPanel(mContext); in prepareStatusIntent() 3539 return mDeps.calculateVpnMtu( in calculateVpnMtu() 3825 : mDeps.getNextRetryDelayMs(mRetryCount++); in scheduleStartIkeSession() 4379 mDeps.stopService(daemon); in run() 4438 while (!mDeps.isServiceStopped(daemon)) { in bringup() 4444 final File state = mDeps.getStateFile(); in bringup() 4462 mDeps.startService(daemon); in bringup() 4465 while (!mDeps.isServiceRunning(daemon)) { in bringup() [all …]
|
H A D | MultipathPolicyTracker.java | 103 private final Dependencies mDeps; field in MultipathPolicyTracker 140 mDeps = deps; in MultipathPolicyTracker()
|
/aosp14/frameworks/base/services/core/java/com/android/server/net/ |
H A D | NetworkManagementService.java | 146 private final Dependencies mDeps; field in NetworkManagementService 233 mDeps = deps; in NetworkManagementService() 239 mDeps.registerLocalService(new LocalService()); in NetworkManagementService() 249 mDeps = null; in NetworkManagementService() 286 IBatteryStats.Stub.asInterface(mDeps.getService(BatteryStats.SERVICE_NAME)); in getBatteryStats() 426 mNetdService = mDeps.getNetd(); in connectNativeNetdService() 1263 if (mDeps.getCallingUid() != uid) { in setUidCleartextNetworkPolicy() 1536 final int uid = mDeps.getCallingUid(); in enforceSystemUid()
|
H A D | NetworkPolicyManagerService.java | 479 private final Dependencies mDeps; field in NetworkPolicyManagerService 832 mDeps = Objects.requireNonNull(deps, "missing Dependencies"); in NetworkPolicyManagerService() 1554 final List<NetworkStats.Bucket> stats = mDeps.getNetworkUidBytes(template, start, end); in findRapidBlame() 5868 return mDeps.getNetworkTotalBytes(template, start, end);
|
/aosp14/frameworks/base/services/core/java/com/android/server/vcn/routeselection/ |
H A D | UnderlyingNetworkController.java | 80 @NonNull private final Dependencies mDeps; field in UnderlyingNetworkController 120 mDeps = Objects.requireNonNull(deps, "Missing deps"); in UnderlyingNetworkController()
|