/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
D | WifiStatusTracker.java | 81 Network network, NetworkCapabilities networkCapabilities) { 85 if (networkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR)) { 86 wifiInfo = Utils.tryGetWifiInfoForVcn(networkCapabilities); 88 } else if (networkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_WIFI)) { 89 wifiInfo = (WifiInfo) networkCapabilities.getTransportInfo(); 98 .append("networkCapabilities=").append(networkCapabilities) 290 NetworkCapabilities networkCapabilities; in updateStatusLabel() local 304 networkCapabilities = mDefaultNetworkCapabilities; in updateStatusLabel() 306 networkCapabilities = mConnectivityManager.getNetworkCapabilities( in updateStatusLabel() 310 if (networkCapabilities != null) { in updateStatusLabel() [all …]
|
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/ |
D | BaseWifiTracker.java | 185 @NonNull NetworkCapabilities networkCapabilities) { 190 if (!isPrimaryWifiNetwork(networkCapabilities)) { 194 mIsWifiValidated = networkCapabilities.hasCapability(NET_CAPABILITY_VALIDATED); 198 handleNetworkCapabilitiesChanged(networkCapabilities); 221 @NonNull NetworkCapabilities networkCapabilities) { 229 mIsWifiDefaultRoute = networkCapabilities.hasTransport(TRANSPORT_WIFI); 230 mIsCellDefaultRoute = networkCapabilities.hasTransport(TRANSPORT_CELLULAR); 257 private boolean isPrimaryWifiNetwork(@Nullable NetworkCapabilities networkCapabilities) { in isPrimaryWifiNetwork() argument 258 if (networkCapabilities == null) { in isPrimaryWifiNetwork() 261 final TransportInfo transportInfo = networkCapabilities.getTransportInfo(); in isPrimaryWifiNetwork()
|
D | Utils.java | 318 NetworkCapabilities networkCapabilities, in getConnectedDescription() argument 361 getCurrentNetworkCapabilitiesInformation(context, networkCapabilities); in getConnectedDescription() 635 NetworkCapabilities networkCapabilities) { in getCurrentNetworkCapabilitiesInformation() argument 636 if (context == null || networkCapabilities == null) { in getCurrentNetworkCapabilitiesInformation() 640 if (networkCapabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_CAPTIVE_PORTAL)) { in getCurrentNetworkCapabilitiesInformation() 645 if (networkCapabilities.hasCapability( in getCurrentNetworkCapabilitiesInformation() 650 if (!networkCapabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED)) { in getCurrentNetworkCapabilitiesInformation() 651 if (networkCapabilities.isPrivateDnsBroken()) { in getCurrentNetworkCapabilitiesInformation()
|
/frameworks/base/core/java/android/net/vcn/ |
D | VcnNetworkPolicyResult.java | 48 boolean isTearDownRequested, @NonNull NetworkCapabilities networkCapabilities) { in VcnNetworkPolicyResult() argument 49 Objects.requireNonNull(networkCapabilities, "networkCapabilities must be non-null"); in VcnNetworkPolicyResult() 52 mNetworkCapabilities = networkCapabilities; in VcnNetworkPolicyResult()
|
D | VcnManager.java | 272 @NonNull NetworkCapabilities networkCapabilities, in getUnderlyingNetworkPolicy() 274 requireNonNull(networkCapabilities, "networkCapabilities must not be null"); in getUnderlyingNetworkPolicy() 278 return mService.getUnderlyingNetworkPolicy(networkCapabilities, linkProperties); in getUnderlyingNetworkPolicy() 392 @NonNull NetworkCapabilities networkCapabilities, in applyVcnNetworkPolicy() 394 requireNonNull(networkCapabilities, "networkCapabilities must not be null"); in applyVcnNetworkPolicy() 398 getUnderlyingNetworkPolicy(networkCapabilities, linkProperties); in applyVcnNetworkPolicy()
|
/frameworks/base/services/core/java/com/android/server/vcn/ |
D | UnderlyingNetworkTracker.java | 501 @NonNull Network network, @NonNull NetworkCapabilities networkCapabilities) { in onCapabilitiesChanged() argument 509 builder.setNetworkCapabilities(networkCapabilities); in onCapabilitiesChanged() 570 @NonNull public final NetworkCapabilities networkCapabilities; field in UnderlyingNetworkTracker.UnderlyingNetworkRecord 577 @NonNull NetworkCapabilities networkCapabilities, in UnderlyingNetworkRecord() argument 581 this.networkCapabilities = networkCapabilities; in UnderlyingNetworkRecord() 593 && networkCapabilities.equals(that.networkCapabilities) in equals() 600 return Objects.hash(network, networkCapabilities, linkProperties, isBlocked); in hashCode() 619 final NetworkCapabilities caps = networkCapabilities; in calculatePriorityClass() 703 pw.println("mNetworkCapabilities: " + networkCapabilities); in dump() 729 private void setNetworkCapabilities(@NonNull NetworkCapabilities networkCapabilities) { in setNetworkCapabilities() argument [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | DcNetworkAgent.java | 297 public synchronized void sendNetworkCapabilities(NetworkCapabilities networkCapabilities, in sendNetworkCapabilities() argument 301 if (!networkCapabilities.equals(mNetworkCapabilities)) { in sendNetworkCapabilities() 303 + networkCapabilities + ", Data RAT=" in sendNetworkCapabilities() 308 if (networkCapabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in sendNetworkCapabilities() 311 || networkCapabilities.hasCapability( in sendNetworkCapabilities() 316 mPhone.getPhoneId(), networkCapabilities); in sendNetworkCapabilities() local 319 mNetworkCapabilities = networkCapabilities; in sendNetworkCapabilities() 321 sendNetworkCapabilities(networkCapabilities); in sendNetworkCapabilities()
|
D | LinkBandwidthEstimator.java | 246 @NonNull NetworkCapabilities networkCapabilities) { 247 obtainMessage(MSG_DEFAULT_NETWORK_CHANGED, networkCapabilities).sendToTarget(); 365 private void handleDefaultNetworkChanged(NetworkCapabilities networkCapabilities) { in handleDefaultNetworkChanged() argument 366 mNetworkCapabilities = networkCapabilities; in handleDefaultNetworkChanged() 368 if (networkCapabilities == null) { in handleDefaultNetworkChanged() 371 isOnDefaultRoute = networkCapabilities.hasTransport(TRANSPORT_CELLULAR); in handleDefaultNetworkChanged()
|
D | DataConnection.java | 1980 private boolean isVcnManaged(NetworkCapabilities networkCapabilities) { in isVcnManaged() argument 1982 mVcnManager.applyVcnNetworkPolicy(networkCapabilities, getLinkProperties()); in isVcnManaged() 4045 final NetworkCapabilities networkCapabilities = getNetworkCapabilities(); in onPolicyChanged() local 4048 networkCapabilities, getLinkProperties()); in onPolicyChanged() 4057 mNetworkAgent.sendNetworkCapabilities(networkCapabilities, DataConnection.this); in onPolicyChanged()
|
/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/ |
D | PasspointWifiEntryTest.java | 166 final NetworkCapabilities networkCapabilities = new NetworkCapabilities.Builder() in testGetSummary_connectedWifiNetwork_showsConnected() local 179 entry.updateNetworkCapabilities(networkCapabilities); in testGetSummary_connectedWifiNetwork_showsConnected() 206 final NetworkCapabilities networkCapabilities = new NetworkCapabilities.Builder() in testGetSummary_providerModelConnectedButNotDefault_doesNotShowConnected() local 219 entry.updateNetworkCapabilities(networkCapabilities); in testGetSummary_providerModelConnectedButNotDefault_doesNotShowConnected() 273 final NetworkCapabilities networkCapabilities = new NetworkCapabilities.Builder() in testShouldShowXLevelIcon_unvalidatedOrNotDefault_returnsTrue() local 300 entry.updateNetworkCapabilities(networkCapabilities); in testShouldShowXLevelIcon_unvalidatedOrNotDefault_returnsTrue() 458 final NetworkCapabilities networkCapabilities = new NetworkCapabilities.Builder() in testDisconnect_noScansOrWifiConfig_disconnectIsSuccessful() local 470 entry.updateNetworkCapabilities(networkCapabilities); in testDisconnect_noScansOrWifiConfig_disconnectIsSuccessful()
|
D | StandardWifiEntryTest.java | 661 final NetworkCapabilities networkCapabilities = new NetworkCapabilities.Builder() in testGetSummary_connectedWifiNetwork_showsConnected() local 680 entry.updateNetworkCapabilities(networkCapabilities); in testGetSummary_connectedWifiNetwork_showsConnected() 706 final NetworkCapabilities networkCapabilities = new NetworkCapabilities.Builder() in testGetSummary_providerModelConnectedButNotDefault_doesNotShowConnected() local 725 entry.updateNetworkCapabilities(networkCapabilities); in testGetSummary_providerModelConnectedButNotDefault_doesNotShowConnected() 736 final NetworkCapabilities networkCapabilities = new NetworkCapabilities.Builder() in testShouldShowXLevelIcon_unvalidatedOrNotDefault_returnsTrue() local 765 entry.updateNetworkCapabilities(networkCapabilities); in testShouldShowXLevelIcon_unvalidatedOrNotDefault_returnsTrue()
|
/frameworks/base/core/java/android/net/ |
D | NetworkStateSnapshot.java | 64 @NonNull NetworkCapabilities networkCapabilities, in NetworkStateSnapshot() argument 68 mNetworkCapabilities = Objects.requireNonNull(networkCapabilities); in NetworkStateSnapshot()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/ |
D | TelephonyEventBuilder.java | 224 NetworkCapabilitiesInfo networkCapabilities) { in setNetworkCapabilities() argument 226 mEvent.networkCapabilities = networkCapabilities; in setNetworkCapabilities()
|
/frameworks/base/services/core/java/com/android/server/ |
D | VcnManagementService.java | 832 @NonNull NetworkCapabilities networkCapabilities) { in getSubGroupForNetworkCapabilities() 844 for (int subId : networkCapabilities.getSubscriptionIds()) { in getSubGroupForNetworkCapabilities() 863 @NonNull NetworkCapabilities networkCapabilities, in getUnderlyingNetworkPolicy() 865 requireNonNull(networkCapabilities, "networkCapabilities was null"); in getUnderlyingNetworkPolicy() 877 if (isUsingManageTestNetworks && !networkCapabilities.hasTransport(TRANSPORT_TEST)) { in getUnderlyingNetworkPolicy() 886 final NetworkCapabilities ncCopy = new NetworkCapabilities(networkCapabilities); in getUnderlyingNetworkPolicy() 923 logVdbg("getUnderlyingNetworkPolicy() called for caps: " + networkCapabilities in getUnderlyingNetworkPolicy()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | Utils.java | 583 public static WifiInfo tryGetWifiInfoForVcn(NetworkCapabilities networkCapabilities) { in tryGetWifiInfoForVcn() argument 584 if (networkCapabilities.getTransportInfo() == null in tryGetWifiInfoForVcn() 585 || !(networkCapabilities.getTransportInfo() instanceof VcnTransportInfo)) { in tryGetWifiInfoForVcn() 589 (VcnTransportInfo) networkCapabilities.getTransportInfo(); in tryGetWifiInfoForVcn()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | NetworkControllerImpl.java | 370 Network network, NetworkCapabilities networkCapabilities) { in NetworkControllerImpl() 374 networkCapabilities.hasCapability(NET_CAPABILITY_VALIDATED); in NetworkControllerImpl() 381 int[] newTypes = getProcessedTransportTypes(networkCapabilities); in NetworkControllerImpl() 393 mLastNetworkCapabilities = networkCapabilities; in NetworkControllerImpl() 394 mLastDefaultNetworkCapabilities = networkCapabilities; in NetworkControllerImpl() 399 .append("networkCapabilities=").append(networkCapabilities) in NetworkControllerImpl() 552 private int[] getProcessedTransportTypes(NetworkCapabilities networkCapabilities) { in getProcessedTransportTypes() argument 553 int[] transportTypes = networkCapabilities.getTransportTypes(); in getProcessedTransportTypes() 559 && Utils.tryGetWifiInfoForVcn(networkCapabilities) != null) { in getProcessedTransportTypes()
|
/frameworks/base/tests/vcn/java/com/android/server/vcn/ |
D | UnderlyingNetworkTrackerTest.java | 352 NetworkCapabilities networkCapabilities) { in verifyRegistrationOnAvailableAndGetCallback() argument 361 cb.onCapabilitiesChanged(mNetwork, networkCapabilities); in verifyRegistrationOnAvailableAndGetCallback() 368 networkCapabilities, in verifyRegistrationOnAvailableAndGetCallback()
|
/frameworks/base/services/core/java/com/android/server/locksettings/ |
D | RebootEscrowManager.java | 257 NetworkCapabilities networkCapabilities = in isNetworkConnected() local 259 return networkCapabilities != null in isNetworkConnected() 260 && networkCapabilities.hasCapability( in isNetworkConnected() 262 && networkCapabilities.hasCapability( in isNetworkConnected()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | CellularNetworkValidator.java | 414 NetworkCapabilities networkCapabilities) { 415 if (networkCapabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED)) {
|
D | PhoneSwitcher.java | 317 NetworkCapabilities networkCapabilities) { in onCapabilitiesChanged() argument 318 if (networkCapabilities.hasTransport(TRANSPORT_CELLULAR) in onCapabilitiesChanged() 321 networkCapabilities.getNetworkSpecifier())) { in onCapabilitiesChanged()
|
/frameworks/layoutlib/bridge/src/android/net/ |
D | ConnectivityManager.java | 700 @NonNull NetworkCapabilities networkCapabilities, in onAvailable() argument 712 @NonNull NetworkCapabilities networkCapabilities) {} in onCapabilitiesChanged() argument
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/ |
D | TelephonyMetricsTest.java | 335 assertTrue(log.events[0].networkCapabilities.isNetworkUnmetered); in testWriteNetworkCapabilitiesChangedEvent() 339 assertFalse(log.events[1].networkCapabilities.isNetworkUnmetered); in testWriteNetworkCapabilitiesChangedEvent()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BatteryStatsService.java | 316 @NonNull NetworkCapabilities networkCapabilities) { 317 final String state = networkCapabilities.hasCapability(NET_CAPABILITY_NOT_SUSPENDED) 320 networkCapabilities.getTransportTypes()), state);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | NetworkPolicyManagerServiceTest.java | 2103 final NetworkCapabilities networkCapabilities = new NetworkCapabilities.Builder() in buildWifi() local 2105 return new NetworkStateSnapshot(TEST_NETWORK, networkCapabilities, prop, in buildWifi()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerService.java | 1258 NetworkCapabilities networkCapabilities) { 1259 if (network == null || networkCapabilities == null) return; 1262 final boolean newMetered = !networkCapabilities 1267 final boolean newRoaming = !networkCapabilities
|