Searched refs:transportType (Results 1 – 5 of 5) sorted by relevance
424 public NetworkCapabilities addTransportType(int transportType) { in addTransportType() argument425 if (transportType < MIN_TRANSPORT || transportType > MAX_TRANSPORT) { in addTransportType()428 mTransportTypes |= 1 << transportType; in addTransportType()440 public NetworkCapabilities removeTransportType(int transportType) { in removeTransportType() argument441 if (transportType < MIN_TRANSPORT || transportType > MAX_TRANSPORT) { in removeTransportType()444 mTransportTypes &= ~(1 << transportType); in removeTransportType()466 public boolean hasTransport(int transportType) { in hasTransport() argument467 if (transportType < MIN_TRANSPORT || transportType > MAX_TRANSPORT) { in hasTransport()470 return ((mTransportTypes & (1 << transportType)) != 0); in hasTransport()
145 public Builder addTransportType(int transportType) { in addTransportType() argument146 mNetworkCapabilities.addTransportType(transportType); in addTransportType()156 public Builder removeTransportType(int transportType) { in removeTransportType() argument157 mNetworkCapabilities.removeTransportType(transportType); in removeTransportType()
109 for (int transportType : networkCapabilities.getTransportTypes()) { in onCreate()110 builder.addTransportType(transportType); in onCreate()
603 for (int transportType : nc.getTransportTypes()) { in updateConnectivity()604 mConnectedTransports.set(transportType); in updateConnectivity()606 mValidatedTransports.set(transportType); in updateConnectivity()
788 private NetworkRequest createInternetRequestForTransport(int transportType) { in createInternetRequestForTransport() argument792 if (transportType > -1) { in createInternetRequestForTransport()793 netCap.addTransportType(transportType); in createInternetRequestForTransport()