/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/netlink/ |
D | TcpSocketTrackerTest.java | 209 @Mock private TcpSocketTracker.Dependencies mDependencies; field in TcpSocketTrackerTest 227 when(mDependencies.getNetd()).thenReturn(mNetd); in setUp() 228 when(mDependencies.isTcpInfoParsingSupported()).thenReturn(true); in setUp() 229 when(mDependencies.connectToKernel()).thenReturn(mMockFd); in setUp() 230 when(mDependencies.getDeviceConfigPropertyInt( in setUp() 265 final TcpSocketTracker tst = new TcpSocketTracker(mDependencies, mNetwork); in testParseSockInfo() 294 when(mDependencies.isTcpInfoParsingSupported()).thenReturn(false); in testPollSocketsInfo() 295 final TcpSocketTracker tst = new TcpSocketTracker(mDependencies, mNetwork); in testPollSocketsInfo() 298 when(mDependencies.isTcpInfoParsingSupported()).thenReturn(true); in testPollSocketsInfo() 302 when(mDependencies.recvMessage(any())).thenReturn(invalidBuffer); in testPollSocketsInfo() [all …]
|
/packages/services/Car/car-lib/src/android/car/vms/ |
D | VmsLayersOffering.java | 43 private final Set<VmsLayerDependency> mDependencies; field in VmsLayersOffering 53 mDependencies = Collections.unmodifiableSet(dependencies); in VmsLayersOffering() 61 return mDependencies; in getDependencies() 87 mDependencies + in toString() 93 out.writeParcelableList(new ArrayList<>(mDependencies), flags); in writeToParcel() 104 && p.mDependencies.equals(mDependencies); in equals() 109 return Objects.hash(mPublisherId, mDependencies); in hashCode() 120 mDependencies = Collections.unmodifiableSet(new HashSet<>(dependencies)); in VmsLayersOffering()
|
/packages/modules/NetworkStack/src/com/android/networkstack/netlink/ |
D | TcpSocketTracker.java | 119 private final Dependencies mDependencies; field in TcpSocketTracker 133 mMinPacketsThreshold = mDependencies.getDeviceConfigPropertyInt( 137 mTcpPacketsFailRateThreshold = mDependencies.getDeviceConfigPropertyInt( 145 mDependencies = dps; in TcpSocketTracker() 147 mNetd = mDependencies.getNetd(); in TcpSocketTracker() 157 if (!mDependencies.isTcpInfoParsingSupported()) return; in TcpSocketTracker() 171 mDependencies.addDeviceConfigChangedListener(mConfigListener); in TcpSocketTracker() 194 if (!mDependencies.isTcpInfoParsingSupported()) return false; in pollSocketsInfo() 198 fd = mDependencies.connectToKernel(); in pollSocketsInfo() 202 mDependencies.sendPollingRequest(fd, mSockDiagMsg.get(family)); in pollSocketsInfo() [all …]
|
/packages/services/Telecomm/src/com/android/server/telecom/callfiltering/ |
D | CallFilter.java | 25 private List<CallFilter> mDependencies; field in CallFilter 33 mDependencies = new ArrayList<>(); in CallFilter() 44 return mDependencies; in getDependencies() 49 mDependencies.add(filter); in addDependency() 50 mIndegree = mDependencies.size(); in addDependency()
|
/packages/modules/NetworkStack/tests/unit/src/android/net/ip/ |
D | IpClientTest.java | 118 @Mock private IpClient.Dependencies mDependencies; field in IpClientTest 136 when(mDependencies.getNetd(any())).thenReturn(mNetd); in setUp() 141 when(mDependencies.getInterfaceParams(any())).thenReturn(mInterfaceParams); in setUp() 142 when(mDependencies.getIpMemoryStore(mContext, mNetworkStackServiceManager)) in setUp() 144 when(mDependencies.getIpConnectivityLog()).thenReturn(mMetricsLog); in setUp() 153 when(mDependencies.getInterfaceParams(anyString())).thenReturn(mIfParams); in setTestInterfaceParams() 159 mNetworkStackServiceManager, mDependencies); in makeIpClient() 190 mNetworkStackServiceManager, mDependencies); in testNullInterfaceNameMostDefinitelyThrows() 204 mNetworkStackServiceManager, mDependencies); in testNullCallbackMostDefinitelyThrows() 216 mNetworkStackServiceManager, mDependencies); in testInvalidInterfaceDoesNotThrow() [all …]
|
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/ |
D | NetworkMonitorTest.java | 230 private @Mock NetworkMonitor.Dependencies mDependencies; field in NetworkMonitorTest 444 when(mDependencies.getPrivateDnsBypassNetwork(any())).thenReturn(mCleartextDnsNetwork); in setUp() 445 when(mDependencies.getDnsResolver()).thenReturn(mDnsResolver); in setUp() 446 when(mDependencies.getRandom()).thenReturn(mRandom); in setUp() 447 when(mDependencies.getSetting(any(), eq(Settings.Global.CAPTIVE_PORTAL_MODE), anyInt())) in setUp() 449 when(mDependencies.getDeviceConfigPropertyInt(any(), eq(CAPTIVE_PORTAL_USE_HTTPS), in setUp() 451 when(mDependencies.getSetting(any(), eq(Settings.Global.CAPTIVE_PORTAL_HTTP_URL), any())) in setUp() 453 when(mDependencies.getSetting(any(), eq(Settings.Global.CAPTIVE_PORTAL_HTTPS_URL), any())) in setUp() 595 mDependencies, getTcpSocketTrackerOrNull(mDependencies)); in WrappedNetworkMonitor() 848 when(mDependencies.getSetting(any(), eq(Settings.Global.CAPTIVE_PORTAL_HTTP_URL), any())) in testGetHttpProbeUrl() [all …]
|
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/ |
D | IpClientIntegrationTest.java | 221 private Dependencies mDependencies; field in IpClientIntegrationTest 382 mDependencies = new Dependencies(); 390 mDependencies.setDeviceConfigProperty(IpClient.CONFIG_MIN_RDNSS_LIFETIME, 67); 391 mDependencies.setDeviceConfigProperty(DhcpClient.DHCP_RESTART_CONFIG_DELAY, 10); 392 mDependencies.setDeviceConfigProperty(DhcpClient.ARP_FIRST_PROBE_DELAY_MS, 10); 393 mDependencies.setDeviceConfigProperty(DhcpClient.ARP_PROBE_MIN_MS, 10); 394 mDependencies.setDeviceConfigProperty(DhcpClient.ARP_PROBE_MAX_MS, 20); 395 mDependencies.setDeviceConfigProperty(DhcpClient.ARP_FIRST_ANNOUNCE_DELAY_MS, 10); 396 mDependencies.setDeviceConfigProperty(DhcpClient.ARP_ANNOUNCE_INTERVAL_MS, 10); 462 mNetworkStackServiceManager, mDependencies); [all …]
|
/packages/modules/NetworkStack/src/com/android/server/connectivity/ |
D | NetworkMonitor.java | 429 private final Dependencies mDependencies; field in NetworkMonitor 568 mDependencies = deps; in NetworkMonitor() 1099 mDependencies.writeDataStallDetectionStats(stats, result); in maybeWriteDataStallStats() 1202 return aboveQ && mDependencies.isFeatureEnabled(mContext, NAMESPACE_CONNECTIVITY, in useRedirectUrlForPortal() 1456 final InetAddress[] ips = DnsUtils.getAllByName(mDependencies.getDnsResolver(), in resolveStrictModeHostname() 1789 int mode = mDependencies.getSetting(mContext, symbol, defaultValue); in getIsCaptivePortalCheckEnabled() 1794 return mDependencies.isFeatureEnabled(mContext, DNS_PROBE_PRIVATE_IP_NO_INTERNET_VERSION) in getIsPrivateIpNoInternetEnabled() 1800 return mDependencies.getDeviceConfigPropertyInt(NAMESPACE_CONNECTIVITY, in getUseHttpsValidation() 1908 final String strExpiration = mDependencies.getDeviceConfigProperty(NAMESPACE_CONNECTIVITY, in getTestUrl() 1923 return mDependencies.getDeviceConfigProperty(NAMESPACE_CONNECTIVITY, in getTestUrl() [all …]
|
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/ |
D | NetworkStackNotifierTest.kt | 80 private lateinit var mDependencies: Dependencies variable in com.android.networkstack.NetworkStackNotifierTest 154 doReturn(mPendingIntent).`when`(mDependencies).getActivityPendingIntent( in setUp() 156 mNotifier = NetworkStackNotifier(mContext, mLooper.looper, mDependencies) in setUp() 190 verify(mDependencies).getActivityPendingIntent( in verifyConnectedNotification() 281 verify(mDependencies).getActivityPendingIntent( in testVenueInfoNotification()
|
/packages/modules/NetworkStack/src/android/net/dhcp/ |
D | DhcpClient.java | 340 private Dependencies mDependencies; field in DhcpClient 455 mDependencies = deps; in DhcpClient() 528 return mDependencies.isFeatureEnabled(mContext, DHCP_INIT_REBOOT_VERSION, defaultEnabled); in isDhcpLeaseCacheEnabled() 535 return mDependencies.isFeatureEnabled(mContext, DHCP_RAPID_COMMIT_VERSION, in isDhcpRapidCommitEnabled() 543 return mDependencies.isFeatureEnabled(mContext, DHCP_IP_CONFLICT_DETECT_VERSION, in isDhcpIpConflictDetectEnabled() 1587 mTimeoutWakeLock = mDependencies.getWakeLock(powerManager); in enter() 1659 mArpFirstProbeDelayMs = mDependencies.getIntDeviceConfig(ARP_FIRST_PROBE_DELAY_MS, in readIpConflictParametersFromDeviceConfig() 1663 mArpProbeMinDelayMs = mDependencies.getIntDeviceConfig(ARP_PROBE_MIN_MS, 10, in readIpConflictParametersFromDeviceConfig() 1668 mDependencies.getIntDeviceConfig(ARP_PROBE_MAX_MS, 20, MAX_ARP_PROBE_MAX_MS, in readIpConflictParametersFromDeviceConfig() 1672 mArpFirstAnnounceDelayMs = mDependencies.getIntDeviceConfig(ARP_FIRST_ANNOUNCE_DELAY_MS, in readIpConflictParametersFromDeviceConfig() [all …]
|
/packages/modules/NetworkStack/src/com/android/networkstack/ |
D | NetworkStackNotifier.java | 59 private final Dependencies mDependencies; field in NetworkStackNotifier 114 mDependencies = dependencies; in NetworkStackNotifier() 240 .setContentIntent(mDependencies.getActivityPendingIntent( in updateNotifications() 252 .setContentIntent(mDependencies.getActivityPendingIntent( in updateNotifications()
|
/packages/modules/NetworkStack/src/android/net/ip/ |
D | IpReachabilityMonitor.java | 187 private final Dependencies mDependencies; 219 mDependencies = dependencies; 234 mIpNeighborMonitor = mDependencies.makeIpNeighborMonitor(h, mLog, 414 mDependencies.acquireWakeLock(getProbeWakeLockDuration());
|
D | IpClient.java | 456 private final Dependencies mDependencies; field in IpClient 574 mDependencies = deps; in IpClient() 593 mMinRdnssLifetimeSec = mDependencies.getDeviceConfigPropertyInt( in IpClient() 1580 InterfaceParams params = mDependencies.getInterfaceParams(mInterfaceName); in maybeRestoreInterfaceMtu() 1749 mDhcpClient = mDependencies.makeDhcpClient(mContext, IpClient.this, mInterfaceParams, in startDhcpClient() 1750 mDependencies.getDhcpClientDependencies(mIpMemoryStore, mIpProvisioningMetrics)); in startDhcpClient() 1767 mInterfaceParams = mDependencies.getInterfaceParams(mInterfaceName); in enter()
|