/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/netlink/ |
D | TcpSocketTrackerTest.java | 209 @Mock private TcpSocketTracker.Dependencies mDependencies; field in TcpSocketTrackerTest 226 when(mDependencies.getNetd()).thenReturn(mNetd); in setUp() 227 when(mDependencies.isTcpInfoParsingSupported()).thenReturn(true); in setUp() 228 when(mDependencies.connectToKernel()).thenReturn(new FileDescriptor()); in setUp() 229 when(mDependencies.getDeviceConfigPropertyInt( in setUp() 264 final TcpSocketTracker tst = new TcpSocketTracker(mDependencies, mNetwork); in testParseSockInfo() 293 when(mDependencies.isTcpInfoParsingSupported()).thenReturn(false); in testPollSocketsInfo() 294 final TcpSocketTracker tst = new TcpSocketTracker(mDependencies, mNetwork); in testPollSocketsInfo() 297 when(mDependencies.isTcpInfoParsingSupported()).thenReturn(true); in testPollSocketsInfo() 301 when(mDependencies.recvMessage(any())).thenReturn(invalidBuffer); in testPollSocketsInfo() [all …]
|
/packages/services/Car/car-lib/src/android/car/vms/ |
D | VmsLayersOffering.java | 48 private @NonNull Set<VmsLayerDependency> mDependencies; field in VmsLayersOffering 56 mDependencies = Collections.unmodifiableSet(mDependencies); in onConstructed() 60 dest.writeArraySet(new ArraySet<>(mDependencies)); in parcelDependencies() 95 this.mDependencies = dependencies; in VmsLayersOffering() 97 NonNull.class, null, mDependencies); in VmsLayersOffering() 108 return mDependencies; in getDependencies() 126 "dependencies = " + mDependencies + ", " + in toString() 144 && java.util.Objects.equals(mDependencies, that.mDependencies) in equals() 155 _hash = 31 * _hash + java.util.Objects.hashCode(mDependencies); in hashCode() 184 this.mDependencies = dependencies; in VmsLayersOffering() [all …]
|
D | VmsLayerDependency.java | 50 private @NonNull Set<VmsLayer> mDependencies; field in VmsLayerDependency 53 mDependencies = Collections.unmodifiableSet(mDependencies); in onConstructed() 57 dest.writeArraySet(new ArraySet<>(mDependencies)); in parcelDependencies() 105 this.mDependencies = dependencies; in VmsLayerDependency() 107 NonNull.class, null, mDependencies); in VmsLayerDependency() 125 return mDependencies; in getDependencies() 136 "dependencies = " + mDependencies + in toString() 154 && Objects.equals(mDependencies, that.mDependencies); in equals() 165 _hash = 31 * _hash + Objects.hashCode(mDependencies); in hashCode() 196 this.mDependencies = dependencies; in VmsLayerDependency() [all …]
|
/packages/apps/Car/Calendar/src/com/android/car/calendar/ |
D | CarCalendarActivity.java | 52 @VisibleForTesting Dependencies mDependencies; field in CarCalendarActivity 60 if (mDependencies == null) { in onCreate() 61 mDependencies = new Dependencies( in onCreate() 72 mDependencies.mResolver, in onCreate() 73 mDependencies.mLocale, in onCreate() 74 mDependencies.mTelephonyManager, in onCreate() 75 mDependencies.mClock)) in onCreate() 86 mDependencies.mLocale, in onCreate() 87 mDependencies.mClock)); in onCreate()
|
/packages/modules/NetworkStack/src/com/android/networkstack/netlink/ |
D | TcpSocketTracker.java | 120 private final Dependencies mDependencies; field in TcpSocketTracker 134 mMinPacketsThreshold = mDependencies.getDeviceConfigPropertyInt( 138 mTcpPacketsFailRateThreshold = mDependencies.getDeviceConfigPropertyInt( 146 mDependencies = dps; in TcpSocketTracker() 148 mNetd = mDependencies.getNetd(); in TcpSocketTracker() 158 if (!mDependencies.isTcpInfoParsingSupported()) return; in TcpSocketTracker() 172 mDependencies.addDeviceConfigChangedListener(mConfigListener); in TcpSocketTracker() 195 if (!mDependencies.isTcpInfoParsingSupported()) return false; in pollSocketsInfo() 199 fd = mDependencies.connectToKernel(); in pollSocketsInfo() 203 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 | 131 @Mock private IpClient.Dependencies mDependencies; field in IpClientTest 149 when(mDependencies.getNetd(any())).thenReturn(mNetd); in setUp() 154 when(mDependencies.getInterfaceParams(any())).thenReturn(mInterfaceParams); in setUp() 155 when(mDependencies.getIpMemoryStore(mContext, mNetworkStackServiceManager)) in setUp() 157 when(mDependencies.getIpConnectivityLog()).thenReturn(mMetricsLog); in setUp() 166 when(mDependencies.getInterfaceParams(anyString())).thenReturn(mIfParams); in setTestInterfaceParams() 172 mNetworkStackServiceManager, mDependencies); in makeIpClient() 203 mNetworkStackServiceManager, mDependencies); in testNullInterfaceNameMostDefinitelyThrows() 217 mNetworkStackServiceManager, mDependencies); in testNullCallbackMostDefinitelyThrows() 229 mNetworkStackServiceManager, mDependencies); in testInvalidInterfaceDoesNotThrow() [all …]
|
/packages/modules/NetworkStack/src/com/android/networkstack/metrics/ |
D | NetworkQuirkMetrics.java | 28 private final Dependencies mDependencies; field in NetworkQuirkMetrics 54 mDependencies = deps; in NetworkQuirkMetrics() 69 mDependencies.writeStats(stats.getEvent().getNumber()); in statsWrite()
|
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/ |
D | IpClientIntegrationTestCommon.java | 271 protected Dependencies mDependencies; field in IpClientIntegrationTestCommon 514 mDependencies = new Dependencies(); 522 mDependencies.setDeviceConfigProperty(IpClient.CONFIG_MIN_RDNSS_LIFETIME, 67); 523 mDependencies.setDeviceConfigProperty(DhcpClient.DHCP_RESTART_CONFIG_DELAY, 10); 524 mDependencies.setDeviceConfigProperty(DhcpClient.ARP_FIRST_PROBE_DELAY_MS, 10); 525 mDependencies.setDeviceConfigProperty(DhcpClient.ARP_PROBE_MIN_MS, 10); 526 mDependencies.setDeviceConfigProperty(DhcpClient.ARP_PROBE_MAX_MS, 20); 527 mDependencies.setDeviceConfigProperty(DhcpClient.ARP_FIRST_ANNOUNCE_DELAY_MS, 10); 528 mDependencies.setDeviceConfigProperty(DhcpClient.ARP_ANNOUNCE_INTERVAL_MS, 10); 599 mNetworkStackServiceManager, mDependencies); [all …]
|
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/ |
D | NetworkMonitorTest.java | 240 private @Mock NetworkMonitor.Dependencies mDependencies; field in NetworkMonitorTest 465 when(mDependencies.getPrivateDnsBypassNetwork(any())).thenReturn(mCleartextDnsNetwork); in setUp() 466 when(mDependencies.getDnsResolver()).thenReturn(mDnsResolver); in setUp() 467 when(mDependencies.getRandom()).thenReturn(mRandom); in setUp() 468 when(mDependencies.getSetting(any(), eq(Settings.Global.CAPTIVE_PORTAL_MODE), anyInt())) in setUp() 470 when(mDependencies.getDeviceConfigPropertyInt(any(), eq(CAPTIVE_PORTAL_USE_HTTPS), in setUp() 472 when(mDependencies.getSetting(any(), eq(Settings.Global.CAPTIVE_PORTAL_HTTP_URL), any())) in setUp() 474 when(mDependencies.getSetting(any(), eq(Settings.Global.CAPTIVE_PORTAL_HTTPS_URL), any())) in setUp() 616 mDependencies, getTcpSocketTrackerOrNull(mDependencies)); in WrappedNetworkMonitor() 869 when(mDependencies.getSetting(any(), eq(Settings.Global.CAPTIVE_PORTAL_HTTP_URL), any())) in testGetHttpProbeUrl() [all …]
|
/packages/modules/NetworkStack/src/com/android/server/connectivity/ |
D | NetworkMonitor.java | 429 private final Dependencies mDependencies; field in NetworkMonitor 570 mDependencies = deps; in NetworkMonitor() 1109 mDependencies.writeDataStallDetectionStats(stats, result); in maybeWriteDataStallStats() 1212 return aboveQ && mDependencies.isFeatureEnabled(mContext, NAMESPACE_CONNECTIVITY, in useRedirectUrlForPortal() 1482 final InetAddress[] ips = DnsUtils.getAllByName(mDependencies.getDnsResolver(), in resolveStrictModeHostname() 1825 int mode = mDependencies.getSetting(mContext, symbol, defaultValue); in getIsCaptivePortalCheckEnabled() 1830 return mDependencies.isFeatureEnabled(mContext, DNS_PROBE_PRIVATE_IP_NO_INTERNET_VERSION) in getIsPrivateIpNoInternetEnabled() 1836 return mDependencies.getDeviceConfigPropertyInt(NAMESPACE_CONNECTIVITY, in getUseHttpsValidation() 1944 final String strExpiration = mDependencies.getDeviceConfigProperty(NAMESPACE_CONNECTIVITY, in getTestUrl() 1959 final String strUrl = mDependencies.getDeviceConfigProperty(NAMESPACE_CONNECTIVITY, in getTestUrl() [all …]
|
/packages/modules/Connectivity/Tethering/tests/unit/src/android/net/ip/ |
D | IpServerTest.java | 180 @Mock private IpServer.Dependencies mDependencies; field in IpServerTest 210 when(mDependencies.getDadProxy(any(), any())).thenReturn(mDadProxy); in initStateMachine() 211 when(mDependencies.getRouterAdvertisementDaemon(any())).thenReturn(mRaDaemon); in initStateMachine() 212 when(mDependencies.getInterfaceParams(IFACE_NAME)).thenReturn(TEST_IFACE_PARAMS); in initStateMachine() 213 when(mDependencies.getInterfaceParams(UPSTREAM_IFACE)).thenReturn(UPSTREAM_IFACE_PARAMS); in initStateMachine() 214 when(mDependencies.getInterfaceParams(UPSTREAM_IFACE2)).thenReturn(UPSTREAM_IFACE_PARAMS2); in initStateMachine() 215 when(mDependencies.getInterfaceParams(IPSEC_IFACE)).thenReturn(IPSEC_IFACE_PARAMS); in initStateMachine() 226 doReturn(mIpNeighborMonitor).when(mDependencies).getIpNeighborMonitor(any(), any(), in initStateMachine() 231 mCallback, usingLegacyDhcp, usingBpfOffload, mAddressCoordinator, mDependencies); in initStateMachine() 274 }).when(mDependencies).makeDhcpServer(any(), mDhcpParamsCaptor.capture(), any()); in setUpDhcpServer() [all …]
|
/packages/modules/NetworkStack/src/android/net/dhcp/ |
D | DhcpClient.java | 356 private Dependencies mDependencies; field in DhcpClient 476 mDependencies = deps; in DhcpClient() 550 return mDependencies.isFeatureEnabled(mContext, DHCP_INIT_REBOOT_VERSION, defaultEnabled); in isDhcpLeaseCacheEnabled() 557 return mDependencies.isFeatureEnabled(mContext, DHCP_RAPID_COMMIT_VERSION, in isDhcpRapidCommitEnabled() 565 return mDependencies.isFeatureEnabled(mContext, DHCP_IP_CONFLICT_DETECT_VERSION, in isDhcpIpConflictDetectEnabled() 576 return mDependencies.isFeatureEnabled(mContext, DHCP_IPV6_ONLY_PREFERRED_VERSION, in isIPv6OnlyPreferredModeEnabled() 1647 mTimeoutWakeLock = mDependencies.getWakeLock(powerManager); in enter() 1719 mArpFirstProbeDelayMs = mDependencies.getIntDeviceConfig(ARP_FIRST_PROBE_DELAY_MS, in readIpConflictParametersFromDeviceConfig() 1723 mArpProbeMinDelayMs = mDependencies.getIntDeviceConfig(ARP_PROBE_MIN_MS, 10, in readIpConflictParametersFromDeviceConfig() 1728 mDependencies.getIntDeviceConfig(ARP_PROBE_MAX_MS, 20, MAX_ARP_PROBE_MAX_MS, in readIpConflictParametersFromDeviceConfig() [all …]
|
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/ |
D | NetworkStackNotifierTest.kt | 81 private lateinit var mDependencies: Dependencies variable in com.android.networkstack.NetworkStackNotifierTest 172 doReturn(mPendingIntent).`when`(mDependencies).getActivityPendingIntent( in setUp() 174 mNotifier = NetworkStackNotifier(mContext, mLooper.looper, mDependencies) in setUp() 208 verify(mDependencies).getActivityPendingIntent( in verifyConnectedNotification() 300 verify(mDependencies).getActivityPendingIntent( in testVenueInfoNotification()
|
/packages/modules/NetworkStack/src/com/android/networkstack/ |
D | NetworkStackNotifier.java | 59 private final Dependencies mDependencies; field in NetworkStackNotifier 114 mDependencies = dependencies; in NetworkStackNotifier() 246 .setContentIntent(mDependencies.getActivityPendingIntent( in updateNotifications() 258 .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 | 496 private final Dependencies mDependencies; field in IpClient 640 mDependencies = deps; in IpClient() 660 mMinRdnssLifetimeSec = mDependencies.getDeviceConfigPropertyInt( in IpClient() 866 return mDependencies.isFeatureEnabled(mContext, IPCLIENT_GRATUITOUS_NA_VERSION, in isGratuitousNaEnabled() 871 return mDependencies.isFeatureEnabled(mContext, IPCLIENT_GARP_NA_ROAMING_VERSION, in isGratuitousArpNaRoamingEnabled() 898 return mDependencies.isFeatureEnabled(mContext, IPCLIENT_DISABLE_ACCEPT_RA_VERSION, in shouldDisableAcceptRaOnProvisioningLoss() 1814 InterfaceParams params = mDependencies.getInterfaceParams(mInterfaceName); in maybeRestoreInterfaceMtu() 2026 mDhcpClient = mDependencies.makeDhcpClient(mContext, IpClient.this, mInterfaceParams, in startDhcpClient() 2027 mDependencies.getDhcpClientDependencies(mIpMemoryStore, mIpProvisioningMetrics)); in startDhcpClient() 2047 mInterfaceParams = mDependencies.getInterfaceParams(mInterfaceName); in enter() [all …]
|
/packages/apps/Car/Calendar/tests/ui/src/com/android/car/calendar/ |
D | CarCalendarUiTest.java | 131 activity.mDependencies = in setActivityDependencies()
|