Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/net/
DNetworkCapabilities.java424 public NetworkCapabilities addTransportType(int transportType) { in addTransportType() argument
425 if (transportType < MIN_TRANSPORT || transportType > MAX_TRANSPORT) { in addTransportType()
428 mTransportTypes |= 1 << transportType; in addTransportType()
440 public NetworkCapabilities removeTransportType(int transportType) { in removeTransportType() argument
441 if (transportType < MIN_TRANSPORT || transportType > MAX_TRANSPORT) { in removeTransportType()
444 mTransportTypes &= ~(1 << transportType); in removeTransportType()
466 public boolean hasTransport(int transportType) { in hasTransport() argument
467 if (transportType < MIN_TRANSPORT || transportType > MAX_TRANSPORT) { in hasTransport()
470 return ((mTransportTypes & (1 << transportType)) != 0); in hasTransport()
DNetworkRequest.java145 public Builder addTransportType(int transportType) { in addTransportType() argument
146 mNetworkCapabilities.addTransportType(transportType); in addTransportType()
156 public Builder removeTransportType(int transportType) { in removeTransportType() argument
157 mNetworkCapabilities.removeTransportType(transportType); in removeTransportType()
/frameworks/base/packages/CaptivePortalLogin/src/com/android/captiveportallogin/
DCaptivePortalLoginActivity.java109 for (int transportType : networkCapabilities.getTransportTypes()) { in onCreate()
110 builder.addTransportType(transportType); in onCreate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DNetworkControllerImpl.java603 for (int transportType : nc.getTransportTypes()) { in updateConnectivity()
604 mConnectedTransports.set(transportType); in updateConnectivity()
606 mValidatedTransports.set(transportType); in updateConnectivity()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java788 private NetworkRequest createInternetRequestForTransport(int transportType) { in createInternetRequestForTransport() argument
792 if (transportType > -1) { in createInternetRequestForTransport()
793 netCap.addTransportType(transportType); in createInternetRequestForTransport()