/packages/modules/NetworkStack/src/com/android/networkstack/ |
D | NetworkStackNotifier.java | 167 public void notifyCaptivePortalValidationPending(@NonNull Network network) { in notifyCaptivePortalValidationPending() argument 168 mHandler.post(() -> setCaptivePortalValidationPending(network)); in notifyCaptivePortalValidationPending() 171 private void setCaptivePortalValidationPending(@NonNull Network network) { in setCaptivePortalValidationPending() argument 172 updateNetworkStatus(network, status -> { in setCaptivePortalValidationPending() 187 private void updateNetworkStatus(@NonNull Network network, in updateNetworkStatus() argument 190 mNetworkStatus.computeIfAbsent(network, n -> new TrackedNetworkStatus()); in updateNetworkStatus() 194 private void updateNotifications(@NonNull Network network) { in updateNotifications() argument 195 final TrackedNetworkStatus networkStatus = mNetworkStatus.get(network); in updateNotifications() 211 && network.equals(mDefaultNetwork) in updateNotifications() 216 final String notificationTag = getNotificationTag(network); in updateNotifications() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/slice/ |
D | WifiScanWorkerTest.java | 135 final Network network = mConnectivityManager.getActiveNetwork(); in NetworkCallback_onCapabilitiesChanged_shouldNotifyChange() local 136 mWifiScanWorker.registerNetworkCallback(network); in NetworkCallback_onCapabilitiesChanged_shouldNotifyChange() 138 mWifiScanWorker.mNetworkCallback.onCapabilitiesChanged(network, in NetworkCallback_onCapabilitiesChanged_shouldNotifyChange() 148 final Network network = mConnectivityManager.getActiveNetwork(); in NetworkCallback_onCapabilitiesChanged_isClickedWifi_shouldSendBroadcast() local 149 mWifiScanWorker.registerNetworkCallback(network); in NetworkCallback_onCapabilitiesChanged_isClickedWifi_shouldSendBroadcast() 152 mWifiScanWorker.mNetworkCallback.onCapabilitiesChanged(network, in NetworkCallback_onCapabilitiesChanged_isClickedWifi_shouldSendBroadcast() 162 final Network network = mConnectivityManager.getActiveNetwork(); in NetworkCallback_onCapabilitiesChanged_isNotClickedWifi_shouldNotSendBroadcast() local 163 mWifiScanWorker.registerNetworkCallback(network); in NetworkCallback_onCapabilitiesChanged_isNotClickedWifi_shouldNotSendBroadcast() 166 mWifiScanWorker.mNetworkCallback.onCapabilitiesChanged(network, in NetworkCallback_onCapabilitiesChanged_isNotClickedWifi_shouldNotSendBroadcast() 175 final Network network = mConnectivityManager.getActiveNetwork(); in NetworkCallback_onCapabilitiesChanged_neverClickWifi_shouldNotSendBroadcast() local [all …]
|
D | ContextualWifiScanWorkerTest.java | 78 final Network network = mConnectivityManager.getActiveNetwork(); in NetworkCallback_onCapabilitiesChanged_sliceIsUnpinned_shouldSendBroadcast() local 79 mWifiScanWorker.registerNetworkCallback(network); in NetworkCallback_onCapabilitiesChanged_sliceIsUnpinned_shouldSendBroadcast() 85 callback.onCapabilitiesChanged(network, in NetworkCallback_onCapabilitiesChanged_sliceIsUnpinned_shouldSendBroadcast() 95 final Network network = mConnectivityManager.getActiveNetwork(); in NetworkCallback_onCapabilitiesChanged_newSession_shouldNotSendBroadcast() local 96 mWifiScanWorker.registerNetworkCallback(network); in NetworkCallback_onCapabilitiesChanged_newSession_shouldNotSendBroadcast() 100 mWifiScanWorker.mNetworkCallback.onCapabilitiesChanged(network, in NetworkCallback_onCapabilitiesChanged_newSession_shouldNotSendBroadcast()
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/ |
D | IkeUdp6Socket.java | 54 private IkeUdp6Socket(FileDescriptor socket, Network network, Handler handler) { in IkeUdp6Socket() argument 55 super(socket, network, handler == null ? new Handler() : handler); in IkeUdp6Socket() 68 public static IkeUdp6Socket getInstance(Network network, IkeSessionStateMachine ikeSession) in getInstance() argument 70 return getInstance(network, ikeSession, null); in getInstance() 76 Network network, IkeSessionStateMachine ikeSession, Handler handler) in getInstance() argument 78 IkeUdp6Socket ikeSocket = sNetworkToUdp6SocketMap.get(network); in getInstance() 85 network.bindSocket(sock); in getInstance() 87 ikeSocket = new IkeUdp6Socket(sock, network, handler); in getInstance() 92 sNetworkToUdp6SocketMap.put(network, ikeSocket); in getInstance()
|
D | IkeUdp4Socket.java | 54 private IkeUdp4Socket(FileDescriptor socket, Network network, Handler handler) { in IkeUdp4Socket() argument 55 super(socket, network, handler == null ? new Handler() : handler); in IkeUdp4Socket() 68 public static IkeUdp4Socket getInstance(Network network, IkeSessionStateMachine ikeSession) in getInstance() argument 70 return getInstance(network, ikeSession, null); in getInstance() 76 Network network, IkeSessionStateMachine ikeSession, Handler handler) in getInstance() argument 78 IkeUdp4Socket ikeSocket = sNetworkToUdp4SocketMap.get(network); in getInstance() 85 network.bindSocket(sock); in getInstance() 87 ikeSocket = new IkeUdp4Socket(sock, network, handler); in getInstance() 92 sNetworkToUdp4SocketMap.put(network, ikeSocket); in getInstance()
|
D | IkeUdpEncapSocket.java | 68 UdpEncapsulationSocket udpEncapSocket, Network network, Handler handler) { in IkeUdpEncapSocket() argument 69 super(network, handler); in IkeUdpEncapSocket() 85 Network network, in getIkeUdpEncapSocket() argument 90 IkeUdpEncapSocket ikeSocket = sNetworkToIkeSocketMap.get(network); in getIkeUdpEncapSocket() 97 network.bindSocket(fd); in getIkeUdpEncapSocket() 99 ikeSocket = new IkeUdpEncapSocket(udpEncapSocket, network, new Handler(looper)); in getIkeUdpEncapSocket() 104 sNetworkToIkeSocketMap.put(network, ikeSocket); in getIkeUdpEncapSocket()
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | CaptivePortalNetworkCallback.java | 33 Network network, ConnectedAccessPointPreference connectedApPreference) { in CaptivePortalNetworkCallback() argument 34 mNetwork = Preconditions.checkNotNull(network); in CaptivePortalNetworkCallback() 39 public void onLost(Network network) { in onLost() argument 40 if (mNetwork.equals(network)) { in onLost() 46 public void onCapabilitiesChanged(Network network, NetworkCapabilities networkCapabilities) { in onCapabilitiesChanged() argument 47 if (mNetwork.equals(network)) { in onCapabilitiesChanged() 58 Network network, ConnectedAccessPointPreference connectedApPreference) { in isSameNetworkAndPreference() argument 59 return mNetwork.equals(network) && mConnectedApPreference == connectedApPreference; in isSameNetworkAndPreference()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/ |
D | CaptivePortalNetworkCallback.java | 33 Network network, ConnectedAccessPointPreference connectedApPreference) { in CaptivePortalNetworkCallback() argument 34 mNetwork = Preconditions.checkNotNull(network); in CaptivePortalNetworkCallback() 39 public void onLost(Network network) { in onLost() argument 40 if (mNetwork.equals(network)) { in onLost() 46 public void onCapabilitiesChanged(Network network, NetworkCapabilities networkCapabilities) { in onCapabilitiesChanged() argument 47 if (mNetwork.equals(network)) { in onCapabilitiesChanged() 58 Network network, ConnectedAccessPointPreference connectedApPreference) { in isSameNetworkAndPreference() argument 59 return mNetwork.equals(network) && mConnectedApPreference == connectedApPreference; in isSameNetworkAndPreference()
|
/packages/services/Mms/src/com/android/mms/service/ |
D | MmsNetworkManager.java | 85 public void onAvailable(Network network) { in onAvailable() argument 86 super.onAvailable(network); in onAvailable() 87 LogUtil.i("NetworkCallbackListener.onAvailable: network=" + network); in onAvailable() 89 mNetwork = network; in onAvailable() 95 public void onLost(Network network) { in onLost() argument 96 super.onLost(network); in onLost() 97 LogUtil.w("NetworkCallbackListener.onLost: network=" + network); in onLost() 306 Network network = null; in getApnName() local 311 network = mNetwork; in getApnName() 315 final NetworkInfo mmsNetworkInfo = connectivityManager.getNetworkInfo(network); in getApnName()
|
/packages/apps/Dialer/java/com/android/voicemail/impl/sync/ |
D | VvmNetworkRequest.java | 47 private final Network network; field in VvmNetworkRequest.NetworkWrapper 50 private NetworkWrapper(Network network, VvmNetworkRequestCallback callback) { in NetworkWrapper() argument 51 this.network = network; in NetworkWrapper() 56 return network; in get() 108 public void onAvailable(Network network) { in onAvailable() argument 109 super.onAvailable(network); in onAvailable() 110 future.complete(new NetworkWrapper(network, this)); in onAvailable()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/network/ |
D | NetworkUtilsTest.java | 17 package com.android.car.settings.network; 40 Network network = mock(Network.class); in hasMobileNetwork_hasCellularCapabilities_returnsTrue() local 43 when(connectivityManager.getAllNetworks()).thenReturn(new Network[]{network}); in hasMobileNetwork_hasCellularCapabilities_returnsTrue() 44 when(connectivityManager.getNetworkCapabilities(network)).thenReturn(capabilities); in hasMobileNetwork_hasCellularCapabilities_returnsTrue() 53 Network network = mock(Network.class); in hasMobileNetwork_hasNoCellularCapabilities_returnsFalse() local 56 when(connectivityManager.getAllNetworks()).thenReturn(new Network[]{network}); in hasMobileNetwork_hasNoCellularCapabilities_returnsFalse() 57 when(connectivityManager.getNetworkCapabilities(network)).thenReturn(capabilities); in hasMobileNetwork_hasNoCellularCapabilities_returnsFalse()
|
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/ |
D | MailTransport.java | 57 private final Network network; field in MailTransport 70 Network network, in MailTransport() argument 76 this.network = network; in MailTransport() 88 return new MailTransport(context, imapHelper, network, host, port, flags); in clone() 108 if (network == null) { in open() 112 InetAddress[] inetAddresses = network.getAllByName(host); in open() 186 if (network == null) { in createSocket() 194 return network.getSocketFactory().createSocket(); in createSocket()
|
/packages/modules/DnsResolver/ |
D | stats.proto | 173 // Indicates this network uses a Cellular transport. 175 // Indicates this network uses a Wi-Fi transport. 177 // Indicates this network uses a Bluetooth transport. 179 // Indicates this network uses an Ethernet transport. 181 // Indicates this network uses a VPN transport, now deprecated. 183 // Indicates this network uses a Wi-Fi Aware transport. 185 // Indicates this network uses a LoWPAN transport. 187 // Indicates this network uses a Cellular+VPN transport. 189 // Indicates this network uses a Wi-Fi+VPN transport. 191 // Indicates this network uses a Bluetooth+VPN transport. [all …]
|
/packages/apps/Settings/src/com/android/settings/wifi/slice/ |
D | WifiScanWorker.java | 207 WifiNetworkCallback(Network network) { in WifiNetworkCallback() argument 208 mNetwork = Preconditions.checkNotNull(network); in WifiNetworkCallback() 212 public void onCapabilitiesChanged(Network network, NetworkCapabilities nc) { in onCapabilitiesChanged() argument 213 if (!isSameNetwork(network)) { in onCapabilitiesChanged() 238 .putExtra(ConnectivityManager.EXTRA_NETWORK, network) in onCapabilitiesChanged() 249 public boolean isSameNetwork(Network network) { in isSameNetwork() argument 250 return mNetwork.equals(network); in isSameNetwork()
|
/packages/modules/NetworkStack/apishim/30/com/android/networkstack/apishim/api30/ |
D | NetworkShimImpl.java | 31 protected NetworkShimImpl(@NonNull Network network) { in NetworkShimImpl() argument 32 super(network); in NetworkShimImpl() 38 public static NetworkShim newInstance(@NonNull Network network) { in newInstance() argument 40 return com.android.networkstack.apishim.api29.NetworkShimImpl.newInstance(network); in newInstance() 42 return new NetworkShimImpl(network); in newInstance()
|
/packages/apps/Settings/src/com/android/settings/network/telephony/ |
D | DataConnectivityListener.java | 17 package com.android.settings.network.telephony; 57 public void onCapabilitiesChanged(Network network, NetworkCapabilities networkCapabilities) { in onCapabilitiesChanged() argument 59 if (activeNetwork != null && activeNetwork.equals(network)) { in onCapabilitiesChanged() 65 public void onLosing(Network network, int maxMsToLive) { in onLosing() argument 70 public void onLost(Network network) { in onLost() argument
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
D | ShadowConnectivityManager.java | 61 public void addNetworkCapabilities(Network network, NetworkCapabilities capabilities) { in addNetworkCapabilities() argument 62 super.addNetwork(network, mock(NetworkInfo.class)); in addNetworkCapabilities() 63 mCapabilitiesMap.put(network, capabilities); in addNetworkCapabilities() 67 protected NetworkCapabilities getNetworkCapabilities(Network network) { in getNetworkCapabilities() argument 68 return mCapabilitiesMap.get(network); in getNetworkCapabilities()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/slice/ |
D | WifiScanWorker.java | 187 CaptivePortalNetworkCallback(Network network) { in CaptivePortalNetworkCallback() argument 188 mNetwork = Preconditions.checkNotNull(network); in CaptivePortalNetworkCallback() 192 public void onCapabilitiesChanged(Network network, in onCapabilitiesChanged() argument 194 if (!mNetwork.equals(network)) { in onCapabilitiesChanged() 211 public boolean isSameNetwork(Network network) { in isSameNetwork() argument 212 return mNetwork.equals(network); in isSameNetwork()
|
/packages/modules/NetworkStack/src/com/android/networkstack/util/ |
D | DnsUtils.java | 63 @NonNull final Network network, @NonNull String host, int timeout, in getAllByName() argument 70 getAllByName(dnsResolver, network, host, TYPE_AAAA, FLAG_NO_CACHE_LOOKUP, in getAllByName() 78 getAllByName(dnsResolver, network, host, TYPE_A, FLAG_NO_CACHE_LOOKUP, in getAllByName() 99 @NonNull final Network network, @NonNull final String host, int type, int flag, in getAllByName() argument 132 dnsResolver.query(network, host, flag, r -> r.run(), null /* cancellationSignal */, in getAllByName() 135 dnsResolver.query(network, host, type, flag, r -> r.run(), in getAllByName()
|
/packages/modules/NetworkStack/apishim/29/com/android/networkstack/apishim/api29/ |
D | NetworkShimImpl.java | 32 protected NetworkShimImpl(@NonNull Network network) { in NetworkShimImpl() argument 33 mNetwork = network; in NetworkShimImpl() 42 public static NetworkShim newInstance(@NonNull Network network) { in newInstance() argument 43 return new NetworkShimImpl(network); in newInstance()
|
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/ |
D | WifiInfoProviderImpl.java | 110 public void onLinkPropertiesChanged(Network network, LinkProperties lp) { 111 if (network.equals(mNetwork) && !lp.equals(mLinkProperties)) { 128 public void onCapabilitiesChanged(Network network, NetworkCapabilities nc) { 130 if (network.equals(mNetwork) && !nc.equals(mNetworkCapabilities)) { 143 public void onLost(Network network) { 144 if (network.equals(mNetwork)) {
|
/packages/modules/CaptivePortalLogin/src/com/android/captiveportallogin/ |
D | DownloadService.java | 110 private DownloadTask(int id, Network network, String userAgent, String url, in DownloadTask() argument 113 this.mNetwork = network; in DownloadTask() 152 public static Intent makeDownloadIntent(Context packageContext, Network network, in makeDownloadIntent() argument 155 intent.putExtra(ARG_NETWORK, network); in makeDownloadIntent() 205 final Network network = intent.getParcelableExtra(ARG_NETWORK); in onStartCommand() local 211 if (network == null || userAgent == null || url == null || filename == null in onStartCommand() 214 + "filename: %s, outFile: %s", network, userAgent, url, filename, outFile)); in onStartCommand() 220 network.getPrivateDnsBypassingCopy(), userAgent, url, filename, outFile, this); in onStartCommand()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/connectivity/ |
D | ConnectivityFragment.java | 191 Network network = mNetworks.get(netId); in requestNetworkById() local 192 if (network == null) { in requestNetworkById() 196 NetworkRequest request = getRequestForNetwork(network); in requestNetworkById() 197 NetworkByIdCallback cb = new NetworkByIdCallback(network); in requestNetworkById() 219 Network network = mNetworks.get(netId); in bindToNetwork() local 220 if (network == null) { in bindToNetwork() 228 mConnectivityManager.bindProcessToNetwork(network); in bindToNetwork() 238 Network network = mNetworks.get(netId); in reportNetworkbyId() local 239 if (network == null) { in reportNetworkbyId() 242 mConnectivityManager.reportNetworkConnectivity(network, false); in reportNetworkbyId()
|
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
D | FakeSystemFacade.java | 80 final Network network = mock(Network.class); in getNetwork() local 82 when(network.openConnection(any())).then(new Answer<URLConnection>() { in getNetwork() 91 return network; in getNetwork() 96 public NetworkInfo getNetworkInfo(Network network, int uid, boolean ignoreBlocked) { in getNetworkInfo() argument 107 public NetworkCapabilities getNetworkCapabilities(Network network) { in getNetworkCapabilities() argument
|
/packages/modules/IPsec/src/java/android/net/ipsec/ike/ |
D | IkeSessionParams.java | 163 @NonNull Network network, in IkeSessionParams() argument 177 mNetwork = network; in IkeSessionParams() 553 public Builder setNetwork(@NonNull Network network) { in setNetwork() argument 554 if (network == null) { in setNetwork() 558 mNetwork = network; in setNetwork() 933 Network network = mNetwork != null ? mNetwork : mConnectivityManager.getActiveNetwork(); in build() local 934 if (network == null) { in build() 969 network, in build()
|