Searched refs:transportType (Results 1 – 7 of 7) sorted by relevance
91 private static String getTransportName(int transportType) { in getTransportName() argument95 return networkTypes[transportType]; in getTransportName()101 private static int getIcon(int transportType) { in getIcon() argument102 return (transportType == TRANSPORT_WIFI) ? in getIcon()132 final int transportType; in showNotification() local135 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 …]
448 public NetworkCapabilities addTransportType(int transportType) { in addTransportType() argument449 if (transportType < MIN_TRANSPORT || transportType > MAX_TRANSPORT) { in addTransportType()452 mTransportTypes |= 1 << transportType; in addTransportType()464 public NetworkCapabilities removeTransportType(int transportType) { in removeTransportType() argument465 if (transportType < MIN_TRANSPORT || transportType > MAX_TRANSPORT) { in removeTransportType()468 mTransportTypes &= ~(1 << transportType); in removeTransportType()490 public boolean hasTransport(int transportType) { in hasTransport() argument491 if (transportType < MIN_TRANSPORT || transportType > MAX_TRANSPORT) { in hasTransport()494 return ((mTransportTypes & (1 << transportType)) != 0); in hasTransport()
217 public Builder addTransportType(int transportType) { in addTransportType() argument218 mNetworkCapabilities.addTransportType(transportType); in addTransportType()228 public Builder removeTransportType(int transportType) { in removeTransportType() argument229 mNetworkCapabilities.removeTransportType(transportType); in removeTransportType()
55 int legacyType, int transportType, int... capabilities) { in verifyNetworkCapabilities() argument58 assertTrue(nc.hasTransport(transportType)); in verifyNetworkCapabilities()66 static void verifyUnrestrictedNetworkCapabilities(int legacyType, int transportType) { in verifyUnrestrictedNetworkCapabilities() argument69 transportType, in verifyUnrestrictedNetworkCapabilities()
115 for (int transportType : networkCapabilities.getTransportTypes()) { in onCreate()116 builder.addTransportType(transportType); in onCreate()
655 for (int transportType : nc.getTransportTypes()) { in updateConnectivity()656 mConnectedTransports.set(transportType); in updateConnectivity()658 mValidatedTransports.set(transportType); in updateConnectivity()
844 int transportType, NetworkRequest.Type type) { in createInternetRequestForTransport() argument848 if (transportType > -1) { in createInternetRequestForTransport()849 netCap.addTransportType(transportType); in createInternetRequestForTransport()