Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/connectivity/
DNetworkNotificationManager.java99 private static String getTransportName(@TransportType int transportType) { in getTransportName() argument
103 return networkTypes[transportType]; in getTransportName()
109 private static int getIcon(int transportType, NotificationType notifyType) { in getIcon() argument
110 if (transportType != TRANSPORT_WIFI) { in getIcon()
145 final int transportType; in showNotification() local
148 transportType = getFirstTransportType(nai); in showNotification()
155 transportType = TRANSPORT_CELLULAR; in showNotification()
174 tag, nameOf(eventId), getTransportName(transportType), name, highPriority)); in showNotification()
180 int icon = getIcon(transportType, notifyType); in showNotification()
181 if (notifyType == NotificationType.NO_INTERNET && transportType == TRANSPORT_WIFI) { in showNotification()
[all …]
/frameworks/base/core/java/android/net/
DNetworkRequest.java266 public Builder addTransportType(@NetworkCapabilities.Transport int transportType) { in addTransportType() argument
267 mNetworkCapabilities.addTransportType(transportType); in addTransportType()
277 public Builder removeTransportType(@NetworkCapabilities.Transport int transportType) { in removeTransportType() argument
278 mNetworkCapabilities.removeTransportType(transportType); in removeTransportType()
460 public boolean hasTransport(@Transport int transportType) { in hasTransport() argument
461 return networkCapabilities.hasTransport(transportType); in hasTransport()
DNetworkCapabilities.java690 public static boolean isValidTransport(@Transport int transportType) { in isValidTransport() argument
691 return (MIN_TRANSPORT <= transportType) && (transportType <= MAX_TRANSPORT); in isValidTransport()
719 public @NonNull NetworkCapabilities addTransportType(@Transport int transportType) { in addTransportType() argument
720 checkValidTransportType(transportType); in addTransportType()
721 mTransportTypes |= 1 << transportType; in addTransportType()
733 public @NonNull NetworkCapabilities removeTransportType(@Transport int transportType) { in removeTransportType() argument
734 checkValidTransportType(transportType); in removeTransportType()
735 mTransportTypes &= ~(1 << transportType); in removeTransportType()
746 public @NonNull NetworkCapabilities setTransportType(@Transport int transportType, in setTransportType() argument
749 addTransportType(transportType); in setTransportType()
[all …]
/frameworks/base/telephony/java/android/telephony/
DAccessNetworkConstants.java67 public static String transportTypeToString(@TransportType int transportType) { in transportTypeToString() argument
68 switch (transportType) { in transportTypeToString()
71 default: return Integer.toString(transportType); in transportTypeToString()
DNetworkRegistrationInfo.java205 private NetworkRegistrationInfo(@Domain int domain, @TransportType int transportType, in NetworkRegistrationInfo() argument
212 mTransportType = transportType; in NetworkRegistrationInfo()
229 public NetworkRegistrationInfo(int domain, @TransportType int transportType, in NetworkRegistrationInfo() argument
236 this(domain, transportType, registrationState, accessNetworkTechnology, rejectCause, in NetworkRegistrationInfo()
247 public NetworkRegistrationInfo(int domain, @TransportType int transportType, in NetworkRegistrationInfo() argument
256 this(domain, transportType, registrationState, accessNetworkTechnology, rejectCause, in NetworkRegistrationInfo()
692 public @NonNull Builder setTransportType(@TransportType int transportType) { in setTransportType() argument
693 mTransportType = transportType; in setTransportType()
DServiceState.java1838 @TransportType int transportType) { in getNetworkRegistrationInfoListForTransportType()
1843 if (networkRegistrationInfo.getTransportType() == transportType) { in getNetworkRegistrationInfoListForTransportType()
1888 @TransportType int transportType) { in getNetworkRegistrationInfo() argument
1891 if (networkRegistrationInfo.getTransportType() == transportType in getNetworkRegistrationInfo()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDcNetworkAgent.java72 int transportType) { in DcNetworkAgent() argument
79 mTransportType = transportType; in DcNetworkAgent()
98 int factorySerialNumber, int transportType) { in createDcNetworkAgent() argument
103 transportType); in createDcNetworkAgent()
113 @TransportType int transportType) { in acquireOwnership() argument
115 mTransportType = transportType; in acquireOwnership()
DDataServiceManager.java142 for (int transportType : mPhone.getTransportManager().getAvailableTransports()) { in revokePermissionsFromUnusedDataServices()
143 dataServices.remove(getDataServicePackageName(transportType)); in revokePermissionsFromUnusedDataServices()
254 public DataServiceManager(Phone phone, @TransportType int transportType, String tagSuffix) { in DataServiceManager() argument
257 mTransportType = transportType; in DataServiceManager()
368 private String getDataServicePackageName(@TransportType int transportType) { in getDataServicePackageName() argument
373 switch (transportType) { in getDataServicePackageName()
DTelephonyNetworkFactory.java243 int transportType = getTransportTypeFromNetworkRequest(networkRequest); in onActivePhoneSwitch() local
253 shouldApply ? transportType : AccessNetworkConstants.TRANSPORT_TYPE_INVALID); in onActivePhoneSwitch()
DDcTracker.java498 int transportType = bundle.getInt(INTENT_RECONNECT_ALARM_EXTRA_TRANSPORT_TYPE, 0); in onDataReconnect() local
499 if (transportType != mTransportType) { in onDataReconnect()
541 int transportType = intent.getIntExtra(INTENT_DATA_STALL_ALARM_EXTRA_TRANSPORT_TYPE, 0); in onActionIntentDataStallAlarm() local
542 if (transportType != mTransportType) { in onActionIntentDataStallAlarm()
675 public DcTracker(Phone phone, @TransportType int transportType) { in DcTracker() argument
683 String tagSuffix = "-" + ((transportType == AccessNetworkConstants.TRANSPORT_TYPE_WWAN) in DcTracker()
690 mTransportType = transportType; in DcTracker()
691 mDataServiceManager = new DataServiceManager(phone, transportType, tagSuffix); in DcTracker()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DNetworkRegistrationManager.java89 public NetworkRegistrationManager(@TransportType int transportType, Phone phone) { in NetworkRegistrationManager() argument
90 mTransportType = transportType; in NetworkRegistrationManager()
93 String tagSuffix = "-" + ((transportType == AccessNetworkConstants.TRANSPORT_TYPE_WWAN) in NetworkRegistrationManager()
DCellularNetworkService.java212 int transportType = AccessNetworkConstants.TRANSPORT_TYPE_WWAN; in createRegistrationStateFromVoiceRegState() local
234 return new NetworkRegistrationInfo(domain, transportType, regState, in createRegistrationStateFromVoiceRegState()
257 return new NetworkRegistrationInfo(domain, transportType, regState, in createRegistrationStateFromVoiceRegState()
269 int transportType = AccessNetworkConstants.TRANSPORT_TYPE_WWAN; in createRegistrationStateFromDataRegState() local
345 return new NetworkRegistrationInfo(domain, transportType, regState, networkType, in createRegistrationStateFromDataRegState()
DPhone.java3003 for (int transportType : mTransportManager.getAvailableTransports()) { in getActiveApnTypes()
3004 if (getDcTracker(transportType) != null) { in getActiveApnTypes()
3006 getDcTracker(transportType).getActiveApnTypes())); in getActiveApnTypes()
3034 int transportType = mTransportManager.getCurrentTransport( in getActiveApnHost() local
3036 if (getDcTracker(transportType) != null) { in getActiveApnHost()
3037 return getDcTracker(transportType).getActiveApnString(apnType); in getActiveApnHost()
3063 int transportType = mTransportManager.getCurrentTransport( in getNetworkCapabilities() local
3065 if (getDcTracker(transportType) != null) { in getNetworkCapabilities()
3066 return getDcTracker(transportType).getNetworkCapabilities(apnType); in getNetworkCapabilities()
3300 int transportType = mTransportManager.getCurrentTransport( in getPcscfAddress() local
[all …]
DTelephonyComponentFactory.java314 public DcTracker makeDcTracker(Phone phone, @TransportType int transportType) {
315 return new DcTracker(phone, transportType);
DServiceStateTracker.java602 for (int transportType : mTransportManager.getAvailableTransports()) { in ServiceStateTracker()
603 mRegStateManagers.append(transportType, new NetworkRegistrationManager( in ServiceStateTracker()
604 transportType, phone)); in ServiceStateTracker()
605 mRegStateManagers.get(transportType).registerForNetworkRegistrationInfoChanged( in ServiceStateTracker()
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/
DUpstreamNetworkMonitorTest.java707 public final int transportType; field in UpstreamNetworkMonitorTest.TestNetworkAgent
711 public TestNetworkAgent(TestConnectivityManager cm, int transportType) { in TestNetworkAgent() argument
714 this.transportType = transportType; in TestNetworkAgent()
716 networkCapabilities.addTransportType(transportType); in TestNetworkAgent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DNetworkControllerImpl.java776 for (int transportType : nc.getTransportTypes()) { in updateConnectivity()
777 mConnectedTransports.set(transportType); in updateConnectivity()
779 mValidatedTransports.set(transportType); in updateConnectivity()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java1074 int transportType, NetworkRequest.Type type) { in createDefaultInternetRequestForTransport() argument
1078 if (transportType > -1) { in createDefaultInternetRequestForTransport()
1079 netCap.addTransportType(transportType); in createDefaultInternetRequestForTransport()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...