Home
last modified time | relevance | path

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

12

/frameworks/base/services/core/java/com/android/server/connectivity/
DNetworkNotificationManager.java106 private static String getTransportName(final int transportType) { in getTransportName() argument
110 return networkTypes[transportType]; in getTransportName()
116 private static int getIcon(int transportType) { in getIcon() argument
117 return (transportType == TRANSPORT_WIFI) in getIcon()
148 final int transportType; in showNotification() local
151 transportType = approximateTransportType(nai); in showNotification()
158 transportType = TRANSPORT_CELLULAR; in showNotification()
177 tag, nameOf(eventId), getTransportName(transportType), name, highPriority)); in showNotification()
183 int icon = getIcon(transportType); in showNotification()
184 if (notifyType == NotificationType.NO_INTERNET && transportType == TRANSPORT_WIFI) { in showNotification()
[all …]
/frameworks/base/services/core/java/com/android/server/adb/
DAdbService.java129 public boolean isAdbEnabled(byte transportType) { in isAdbEnabled() argument
130 if (transportType == AdbTransportType.USB) { in isAdbEnabled()
132 } else if (transportType == AdbTransportType.WIFI) { in isAdbEnabled()
136 "isAdbEnabled called with unimplemented transport type=" + transportType); in isAdbEnabled()
150 public void startAdbdForTransport(byte transportType) { in startAdbdForTransport() argument
152 AdbService::setAdbdEnabledForTransport, AdbService.this, true, transportType)); in startAdbdForTransport()
156 public void stopAdbdForTransport(byte transportType) { in stopAdbdForTransport() argument
158 AdbService::setAdbdEnabledForTransport, AdbService.this, false, transportType)); in stopAdbdForTransport()
448 private void setAdbdEnabledForTransport(boolean enable, byte transportType) { in setAdbdEnabledForTransport() argument
449 if (transportType == AdbTransportType.USB) { in setAdbdEnabledForTransport()
[all …]
DAdbDebuggingManager.java440 byte transportType = buffer[2]; in listenToSocket()
442 if (transportType == AdbTransportType.USB) { in listenToSocket()
448 } else if (transportType == AdbTransportType.WIFI) { in listenToSocket()
455 Slog.e(TAG, "Got unknown transport type from adbd (" + transportType in listenToSocket()
459 byte transportType = buffer[2]; in listenToSocket()
461 if (transportType == AdbTransportType.USB) { in listenToSocket()
467 } else if (transportType == AdbTransportType.WIFI) { in listenToSocket()
474 Slog.e(TAG, "Got unknown transport type from adbd (" + transportType in listenToSocket()
1616 public void setAdbEnabled(boolean enabled, byte transportType) { in setAdbEnabled() argument
1617 if (transportType == AdbTransportType.USB) { in setAdbEnabled()
[all …]
/frameworks/base/core/java/android/debug/
DAdbManagerInternal.java45 public abstract boolean isAdbEnabled(byte transportType); in isAdbEnabled() argument
60 public abstract void startAdbdForTransport(byte transportType); in startAdbdForTransport() argument
65 public abstract void stopAdbdForTransport(byte transportType); in stopAdbdForTransport() argument
DAdbNotifications.java51 byte transportType) { in createNotification() argument
56 if (transportType == AdbTransportType.USB) { in createNotification()
59 } else if (transportType == AdbTransportType.WIFI) { in createNotification()
64 "createNotification called with unknown transport type=" + transportType); in createNotification()
/frameworks/base/core/java/android/net/
DNetworkCapabilities.java775 public static boolean isValidTransport(@Transport int transportType) { in isValidTransport() argument
776 return (MIN_TRANSPORT <= transportType) && (transportType <= MAX_TRANSPORT); in isValidTransport()
810 public @NonNull NetworkCapabilities addTransportType(@Transport int transportType) { in addTransportType() argument
811 checkValidTransportType(transportType); in addTransportType()
812 mTransportTypes |= 1 << transportType; in addTransportType()
824 public @NonNull NetworkCapabilities removeTransportType(@Transport int transportType) { in removeTransportType() argument
825 checkValidTransportType(transportType); in removeTransportType()
826 mTransportTypes &= ~(1 << transportType); in removeTransportType()
837 public @NonNull NetworkCapabilities setTransportType(@Transport int transportType, in setTransportType() argument
840 addTransportType(transportType); in setTransportType()
[all …]
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()
484 public boolean hasTransport(@Transport int transportType) { in hasTransport() argument
485 return networkCapabilities.hasTransport(transportType); in hasTransport()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCellularNetworkService.java217 final int transportType = AccessNetworkConstants.TRANSPORT_TYPE_WWAN; in createRegistrationStateFromVoiceRegState() local
224 transportType, in createRegistrationStateFromVoiceRegState()
245 return new NetworkRegistrationInfo(domain, transportType, regState, in createRegistrationStateFromVoiceRegState()
268 return new NetworkRegistrationInfo(domain, transportType, regState, in createRegistrationStateFromVoiceRegState()
279 final int transportType = AccessNetworkConstants.TRANSPORT_TYPE_WWAN; in createRegistrationStateFromDataRegState() local
300 transportType, in createRegistrationStateFromDataRegState()
363 return new NetworkRegistrationInfo(domain, transportType, regState, networkType, in createRegistrationStateFromDataRegState()
370 int domain, int transportType, in getNetworkRegistrationInfo() argument
440 return new NetworkRegistrationInfo(domain, transportType, regState, in getNetworkRegistrationInfo()
448 return new NetworkRegistrationInfo(domain, transportType, regState, networkType, in getNetworkRegistrationInfo()
DNetworkRegistrationManager.java91 public NetworkRegistrationManager(@TransportType int transportType, Phone phone) { in NetworkRegistrationManager() argument
92 mTransportType = transportType; in NetworkRegistrationManager()
95 String tagSuffix = "-" + ((transportType == AccessNetworkConstants.TRANSPORT_TYPE_WWAN) in NetworkRegistrationManager()
DPhone.java3315 for (int transportType : mTransportManager.getAvailableTransports()) { in getActiveApnTypes()
3316 DcTracker dct = getDcTracker(transportType); in getActiveApnTypes()
3342 int transportType = mTransportManager.getCurrentTransport( in getActiveApnHost() local
3344 if (getDcTracker(transportType) != null) { in getActiveApnHost()
3345 return getDcTracker(transportType).getActiveApnString(apnType); in getActiveApnHost()
3371 int transportType = mTransportManager.getCurrentTransport( in getNetworkCapabilities() local
3373 if (getDcTracker(transportType) != null) { in getNetworkCapabilities()
3374 return getDcTracker(transportType).getNetworkCapabilities(apnType); in getNetworkCapabilities()
3616 int transportType = mTransportManager.getCurrentTransport( in getPcscfAddress() local
3618 if (getDcTracker(transportType) != null) { in getPcscfAddress()
[all …]
DTelephonyComponentFactory.java305 public DcTracker makeDcTracker(Phone phone, @TransportType int transportType) {
306 return new DcTracker(phone, transportType);
/frameworks/base/telephony/java/android/telephony/
DNetworkRegistrationInfo.java243 private NetworkRegistrationInfo(@Domain int domain, @TransportType int transportType, in NetworkRegistrationInfo() argument
250 mTransportType = transportType; in NetworkRegistrationInfo()
268 public NetworkRegistrationInfo(int domain, @TransportType int transportType, in NetworkRegistrationInfo() argument
275 this(domain, transportType, registrationState, accessNetworkTechnology, rejectCause, in NetworkRegistrationInfo()
286 public NetworkRegistrationInfo(int domain, @TransportType int transportType, in NetworkRegistrationInfo() argument
295 this(domain, transportType, registrationState, accessNetworkTechnology, rejectCause, in NetworkRegistrationInfo()
799 public @NonNull Builder setTransportType(@TransportType int transportType) { in setTransportType() argument
800 mTransportType = transportType; in setTransportType()
DAccessNetworkConstants.java66 public static String transportTypeToString(@TransportType int transportType) { in transportTypeToString() argument
67 switch (transportType) { in transportTypeToString()
70 default: return Integer.toString(transportType); in transportTypeToString()
DServiceState.java1908 @TransportType int transportType) { in getNetworkRegistrationInfoListForTransportType()
1913 if (networkRegistrationInfo.getTransportType() == transportType) { in getNetworkRegistrationInfoListForTransportType()
1959 @TransportType int transportType) { in getNetworkRegistrationInfo() argument
1962 if (networkRegistrationInfo.getTransportType() == transportType in getNetworkRegistrationInfo()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDataServiceManager.java165 for (int transportType : mPhone.getTransportManager().getAvailableTransports()) { in revokePermissionsFromUnusedDataServices()
166 dataServices.remove(getDataServicePackageName(transportType)); in revokePermissionsFromUnusedDataServices()
298 public DataServiceManager(Phone phone, @TransportType int transportType, String tagSuffix) { in DataServiceManager() argument
301 mTransportType = transportType; in DataServiceManager()
467 private String getDataServicePackageName(@TransportType int transportType) { in getDataServicePackageName() argument
472 switch (transportType) { in getDataServicePackageName()
517 private String getDataServiceClassName(int transportType) { in getDataServiceClassName() argument
521 switch (transportType) { in getDataServiceClassName()
534 + transportType); in getDataServiceClassName()
DDcNetworkAgent.java84 NetworkAgentConfig config, NetworkProvider networkProvider, int transportType) { in DcNetworkAgent() argument
92 mTransportType = transportType; in DcNetworkAgent()
133 @TransportType int transportType) { in acquireOwnership() argument
135 mTransportType = transportType; in acquireOwnership()
DTelephonyNetworkFactory.java256 int transportType = getTransportTypeFromNetworkRequest(networkRequest); in onActivePhoneSwitch() local
266 shouldApply ? transportType : AccessNetworkConstants.TRANSPORT_TYPE_INVALID); in onActivePhoneSwitch()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/vendor/dataconnection/
DVendorDcTracker.java75 public VendorDcTracker(Phone phone, int transportType) { in VendorDcTracker() argument
76 super(phone, transportType); in VendorDcTracker()
77 mTransportType = transportType; in VendorDcTracker()
79 ((transportType == AccessNetworkConstants.TRANSPORT_TYPE_WWAN) ? "C" : "I"); in VendorDcTracker()
DVendorDataResetEventTracker.java107 public VendorDataResetEventTracker(int transportType, Phone phone, in VendorDataResetEventTracker() argument
113 mTransportType = transportType; in VendorDataResetEventTracker()
/frameworks/base/tests/net/java/android/net/
DConnectivityManagerTest.java84 int legacyType, int transportType, int... capabilities) { in verifyNetworkCapabilities() argument
87 assertTrue(nc.hasTransport(transportType)); in verifyNetworkCapabilities()
95 static void verifyUnrestrictedNetworkCapabilities(int legacyType, int transportType) { in verifyUnrestrictedNetworkCapabilities() argument
98 transportType, in verifyUnrestrictedNetworkCapabilities()
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DIPv6TetheringCoordinatorTest.java81 private UpstreamNetworkState createDualStackUpstream(final int transportType) { in createDualStackUpstream() argument
84 new NetworkCapabilities.Builder().addTransportType(transportType).build(); in createDualStackUpstream()
DUpstreamNetworkMonitorTest.java711 public final int transportType; field in UpstreamNetworkMonitorTest.TestNetworkAgent
715 public TestNetworkAgent(TestConnectivityManager cm, int transportType) { in TestNetworkAgent() argument
718 this.transportType = transportType; in TestNetworkAgent()
720 networkCapabilities.addTransportType(transportType); in TestNetworkAgent()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DNetworkNotificationManagerTest.java118 final int transportType = NetworkNotificationManager.approximateTransportType(nai); in verifyTitleByNetwork() local
119 if (transportType == NetworkCapabilities.TRANSPORT_WIFI) { in verifyTitleByNetwork()
/frameworks/base/telephony/java/android/telephony/ims/
DImsMmTelManager.java795 @AccessNetworkConstants.TransportType int transportType, in isSupported() argument
817 }, capability, transportType); in isSupported()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DNetworkControllerImpl.java847 for (int transportType : nc.getTransportTypes()) { in updateConnectivity()
848 mConnectedTransports.set(transportType); in updateConnectivity()
850 mValidatedTransports.set(transportType); in updateConnectivity()

12