/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | NetworkNotificationManager.java | 106 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/ |
D | AdbService.java | 128 public boolean isAdbEnabled(byte transportType) { in isAdbEnabled() argument 129 if (transportType == AdbTransportType.USB) { in isAdbEnabled() 131 } else if (transportType == AdbTransportType.WIFI) { in isAdbEnabled() 135 "isAdbEnabled called with unimplemented transport type=" + transportType); in isAdbEnabled() 149 public void startAdbdForTransport(byte transportType) { in startAdbdForTransport() argument 151 AdbService::setAdbdEnabledForTransport, AdbService.this, true, transportType)); in startAdbdForTransport() 155 public void stopAdbdForTransport(byte transportType) { in stopAdbdForTransport() argument 157 AdbService::setAdbdEnabledForTransport, AdbService.this, false, transportType)); in stopAdbdForTransport() 447 private void setAdbdEnabledForTransport(boolean enable, byte transportType) { in setAdbdEnabledForTransport() argument 448 if (transportType == AdbTransportType.USB) { in setAdbdEnabledForTransport() [all …]
|
D | AdbDebuggingManager.java | 431 byte transportType = buffer[2]; in listenToSocket() 433 if (transportType == AdbTransportType.USB) { in listenToSocket() 439 } else if (transportType == AdbTransportType.WIFI) { in listenToSocket() 446 Slog.e(TAG, "Got unknown transport type from adbd (" + transportType in listenToSocket() 450 byte transportType = buffer[2]; in listenToSocket() 452 if (transportType == AdbTransportType.USB) { in listenToSocket() 458 } else if (transportType == AdbTransportType.WIFI) { in listenToSocket() 465 Slog.e(TAG, "Got unknown transport type from adbd (" + transportType in listenToSocket() 1606 public void setAdbEnabled(boolean enabled, byte transportType) { in setAdbEnabled() argument 1607 if (transportType == AdbTransportType.USB) { in setAdbEnabled() [all …]
|
/frameworks/base/core/java/android/debug/ |
D | AdbManagerInternal.java | 45 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
|
/frameworks/base/core/java/android/net/ |
D | NetworkCapabilities.java | 775 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 …]
|
D | NetworkRequest.java | 266 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/ |
D | CellularNetworkService.java | 217 final int transportType = AccessNetworkConstants.TRANSPORT_TYPE_WWAN; in createRegistrationStateFromVoiceRegState() local 224 transportType, in createRegistrationStateFromVoiceRegState() 242 return new NetworkRegistrationInfo(domain, transportType, regState, in createRegistrationStateFromVoiceRegState() 262 return new NetworkRegistrationInfo(domain, transportType, regState, in createRegistrationStateFromVoiceRegState() 273 final int transportType = AccessNetworkConstants.TRANSPORT_TYPE_WWAN; in createRegistrationStateFromDataRegState() local 293 transportType, in createRegistrationStateFromDataRegState() 351 return new NetworkRegistrationInfo(domain, transportType, regState, networkType, in createRegistrationStateFromDataRegState() 358 int domain, int transportType, in getNetworkRegistrationInfo() argument 422 return new NetworkRegistrationInfo(domain, transportType, regState, in getNetworkRegistrationInfo() 430 return new NetworkRegistrationInfo(domain, transportType, regState, networkType, in getNetworkRegistrationInfo()
|
D | NetworkRegistrationManager.java | 91 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()
|
D | Phone.java | 2531 for (int transportType : mTransportManager.getAvailableTransports()) { in notifyAllActiveDataConnections() 2532 DcTracker dct = getDcTracker(transportType); in notifyAllActiveDataConnections() 3307 for (int transportType : mTransportManager.getAvailableTransports()) { in getActiveApnTypes() 3308 DcTracker dct = getDcTracker(transportType); in getActiveApnTypes() 3334 int transportType = mTransportManager.getCurrentTransport( in getActiveApnHost() local 3336 if (getDcTracker(transportType) != null) { in getActiveApnHost() 3337 return getDcTracker(transportType).getActiveApnString(apnType); in getActiveApnHost() 3363 int transportType = mTransportManager.getCurrentTransport( in getNetworkCapabilities() local 3365 if (getDcTracker(transportType) != null) { in getNetworkCapabilities() 3366 return getDcTracker(transportType).getNetworkCapabilities(apnType); in getNetworkCapabilities() [all …]
|
D | TelephonyComponentFactory.java | 307 public DcTracker makeDcTracker(Phone phone, @TransportType int transportType) { 308 return new DcTracker(phone, transportType);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | DataServiceManager.java | 153 for (int transportType : mPhone.getTransportManager().getAvailableTransports()) { in revokePermissionsFromUnusedDataServices() 154 dataServices.remove(getDataServicePackageName(transportType)); in revokePermissionsFromUnusedDataServices() 277 public DataServiceManager(Phone phone, @TransportType int transportType, String tagSuffix) { in DataServiceManager() argument 280 mTransportType = transportType; in DataServiceManager() 442 private String getDataServicePackageName(@TransportType int transportType) { in getDataServicePackageName() argument 447 switch (transportType) { in getDataServicePackageName() 492 private String getDataServiceClassName(int transportType) { in getDataServiceClassName() argument 496 switch (transportType) { in getDataServiceClassName() 509 + transportType); in getDataServiceClassName()
|
D | DcNetworkAgent.java | 87 NetworkAgentConfig config, NetworkProvider networkProvider, int transportType) { in DcNetworkAgent() argument 96 mTransportType = transportType; in DcNetworkAgent() 140 @TransportType int transportType) { in acquireOwnership() argument 142 mTransportType = transportType; in acquireOwnership()
|
D | TelephonyNetworkFactory.java | 256 int transportType = getTransportTypeFromNetworkRequest(networkRequest); in onActivePhoneSwitch() local 266 shouldApply ? transportType : AccessNetworkConstants.TRANSPORT_TYPE_INVALID); in onActivePhoneSwitch()
|
D | DcTracker.java | 534 int transportType = intent.getIntExtra(INTENT_DATA_STALL_ALARM_EXTRA_TRANSPORT_TYPE, 0); in onActionIntentDataStallAlarm() local 535 if (transportType != mTransportType) { in onActionIntentDataStallAlarm() 668 public DcTracker(Phone phone, @TransportType int transportType) { in DcTracker() argument 676 mLogTagSuffix = "-" + ((transportType == AccessNetworkConstants.TRANSPORT_TYPE_WWAN) in DcTracker() 680 mTransportType = transportType; in DcTracker() 681 mDataServiceManager = new DataServiceManager(phone, transportType, mLogTagSuffix); in DcTracker()
|
/frameworks/base/telephony/java/android/telephony/ |
D | NetworkRegistrationInfo.java | 246 private NetworkRegistrationInfo(@Domain int domain, @TransportType int transportType, in NetworkRegistrationInfo() argument 253 mTransportType = transportType; in NetworkRegistrationInfo() 271 public NetworkRegistrationInfo(int domain, @TransportType int transportType, in NetworkRegistrationInfo() argument 278 this(domain, transportType, registrationState, accessNetworkTechnology, rejectCause, in NetworkRegistrationInfo() 289 public NetworkRegistrationInfo(int domain, @TransportType int transportType, in NetworkRegistrationInfo() argument 297 this(domain, transportType, registrationState, accessNetworkTechnology, rejectCause, in NetworkRegistrationInfo() 826 public @NonNull Builder setTransportType(@TransportType int transportType) { in setTransportType() argument 827 mTransportType = transportType; in setTransportType()
|
D | AccessNetworkConstants.java | 66 public static String transportTypeToString(@TransportType int transportType) { in transportTypeToString() argument 67 switch (transportType) { in transportTypeToString() 70 default: return Integer.toString(transportType); in transportTypeToString()
|
D | ServiceState.java | 1894 @TransportType int transportType) { in getNetworkRegistrationInfoListForTransportType() 1899 if (networkRegistrationInfo.getTransportType() == transportType) { in getNetworkRegistrationInfoListForTransportType() 1945 @TransportType int transportType) { in getNetworkRegistrationInfo() argument 1948 if (networkRegistrationInfo.getTransportType() == transportType in getNetworkRegistrationInfo()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/vendor/dataconnection/ |
D | VendorDcTracker.java | 60 public VendorDcTracker(Phone phone, int transportType) { in VendorDcTracker() argument 61 super(phone, transportType); in VendorDcTracker() 62 mTransportType = transportType; in VendorDcTracker() 64 ((transportType == AccessNetworkConstants.TRANSPORT_TYPE_WWAN) ? "C" : "I"); in VendorDcTracker()
|
D | VendorDataResetEventTracker.java | 107 public VendorDataResetEventTracker(int transportType, Phone phone, in VendorDataResetEventTracker() argument 113 mTransportType = transportType; in VendorDataResetEventTracker()
|
/frameworks/base/tests/net/java/android/net/ |
D | ConnectivityManagerTest.java | 85 int legacyType, int transportType, int... capabilities) { in verifyNetworkCapabilities() argument 88 assertTrue(nc.hasTransport(transportType)); in verifyNetworkCapabilities() 96 static void verifyUnrestrictedNetworkCapabilities(int legacyType, int transportType) { in verifyUnrestrictedNetworkCapabilities() argument 99 transportType, in verifyUnrestrictedNetworkCapabilities()
|
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | IPv6TetheringCoordinatorTest.java | 81 private UpstreamNetworkState createDualStackUpstream(final int transportType) { in createDualStackUpstream() argument 84 new NetworkCapabilities.Builder().addTransportType(transportType).build(); in createDualStackUpstream()
|
D | UpstreamNetworkMonitorTest.java | 711 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/ |
D | NetworkNotificationManagerTest.java | 118 final int transportType = NetworkNotificationManager.approximateTransportType(nai); in verifyTitleByNetwork() local 119 if (transportType == NetworkCapabilities.TRANSPORT_WIFI) { in verifyTitleByNetwork()
|
/frameworks/base/telephony/java/android/telephony/ims/ |
D | ImsMmTelManager.java | 796 @AccessNetworkConstants.TransportType int transportType, in isSupported() argument 818 }, capability, transportType); in isSupported()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | NetworkControllerImpl.java | 815 for (int transportType : nc.getTransportTypes()) { in updateConnectivity() 816 mConnectedTransports.set(transportType); in updateConnectivity() 818 mValidatedTransports.set(transportType); in updateConnectivity()
|