Searched defs:transportType (Results 1 - 3 of 3) sorted by relevance

/frameworks/base/core/java/android/net/
H A DNetworkRequest.java142 * @param transportType The {@code NetworkCapabilities.TRANSPORT_*} to add.
145 public Builder addTransportType(int transportType) { argument
146 mNetworkCapabilities.addTransportType(transportType);
153 * @param transportType The {@code NetworkCapabilities.TRANSPORT_*} to remove.
156 public Builder removeTransportType(int transportType) { argument
157 mNetworkCapabilities.removeTransportType(transportType);
H A DNetworkCapabilities.java355 * @param transportType the {@code NetworkCapabilities.TRANSPORT_*} to be added.
359 public NetworkCapabilities addTransportType(int transportType) { argument
360 if (transportType < MIN_TRANSPORT || transportType > MAX_TRANSPORT) {
363 mTransportTypes |= 1 << transportType;
371 * @param transportType the {@code NetworkCapabilities.TRANSPORT_*} to be removed.
375 public NetworkCapabilities removeTransportType(int transportType) { argument
376 if (transportType < MIN_TRANSPORT || transportType > MAX_TRANSPORT) {
379 mTransportTypes &= ~(1 << transportType);
401 hasTransport(int transportType) argument
[all...]
/frameworks/base/services/core/java/com/android/server/
H A DConnectivityService.java769 private NetworkRequest createInternetRequestForTransport(int transportType) { argument
773 if (transportType > -1) {
774 netCap.addTransportType(transportType);

Completed in 82 milliseconds