Home
last modified time | relevance | path

Searched refs:transportType (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/core/java/com/android/server/connectivity/
DNetworkNotificationManager.java91 private static String getTransportName(int transportType) { in getTransportName() argument
95 return networkTypes[transportType]; in getTransportName()
101 private static int getIcon(int transportType) { in getIcon() argument
102 return (transportType == TRANSPORT_WIFI) ? in getIcon()
132 final int transportType; in showNotification() local
135 transportType = getFirstTransportType(nai); in showNotification()
141 transportType = TRANSPORT_CELLULAR; in showNotification()
148 tag, nameOf(eventId), getTransportName(transportType), extraInfo, in showNotification()
155 int icon = getIcon(transportType); in showNotification()
156 if (notifyType == NotificationType.NO_INTERNET && transportType == TRANSPORT_WIFI) { in showNotification()
[all …]
/frameworks/base/core/java/android/net/
DNetworkCapabilities.java448 public NetworkCapabilities addTransportType(int transportType) { in addTransportType() argument
449 if (transportType < MIN_TRANSPORT || transportType > MAX_TRANSPORT) { in addTransportType()
452 mTransportTypes |= 1 << transportType; in addTransportType()
464 public NetworkCapabilities removeTransportType(int transportType) { in removeTransportType() argument
465 if (transportType < MIN_TRANSPORT || transportType > MAX_TRANSPORT) { in removeTransportType()
468 mTransportTypes &= ~(1 << transportType); in removeTransportType()
490 public boolean hasTransport(int transportType) { in hasTransport() argument
491 if (transportType < MIN_TRANSPORT || transportType > MAX_TRANSPORT) { in hasTransport()
494 return ((mTransportTypes & (1 << transportType)) != 0); in hasTransport()
DNetworkRequest.java217 public Builder addTransportType(int transportType) { in addTransportType() argument
218 mNetworkCapabilities.addTransportType(transportType); in addTransportType()
228 public Builder removeTransportType(int transportType) { in removeTransportType() argument
229 mNetworkCapabilities.removeTransportType(transportType); in removeTransportType()
/frameworks/base/tests/net/java/android/net/
DConnectivityManagerTest.java55 int legacyType, int transportType, int... capabilities) { in verifyNetworkCapabilities() argument
58 assertTrue(nc.hasTransport(transportType)); in verifyNetworkCapabilities()
66 static void verifyUnrestrictedNetworkCapabilities(int legacyType, int transportType) { in verifyUnrestrictedNetworkCapabilities() argument
69 transportType, in verifyUnrestrictedNetworkCapabilities()
/frameworks/base/packages/CaptivePortalLogin/src/com/android/captiveportallogin/
DCaptivePortalLoginActivity.java115 for (int transportType : networkCapabilities.getTransportTypes()) { in onCreate()
116 builder.addTransportType(transportType); in onCreate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DNetworkControllerImpl.java655 for (int transportType : nc.getTransportTypes()) { in updateConnectivity()
656 mConnectedTransports.set(transportType); in updateConnectivity()
658 mValidatedTransports.set(transportType); in updateConnectivity()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java844 int transportType, NetworkRequest.Type type) { in createInternetRequestForTransport() argument
848 if (transportType > -1) { in createInternetRequestForTransport()
849 netCap.addTransportType(transportType); in createInternetRequestForTransport()