/packages/modules/Connectivity/framework/src/android/net/ |
D | NetworkAgentConfig.java | 171 public int legacyType = ConnectivityManager.TYPE_NONE; field in NetworkAgentConfig 178 return legacyType; in getLegacyType() 289 legacyType = nac.legacyType; in NetworkAgentConfig() 388 public Builder setLegacyType(int legacyType) { in setLegacyType() argument 389 mConfig.legacyType = legacyType; in setLegacyType() 506 && legacyType == that.legacyType in equals() 520 skip464xlat, legacyType, legacySubType, legacyTypeName, legacySubTypeName, in hashCode() 534 + ", legacyType = " + legacyType in toString() 559 out.writeInt(legacyType); in writeToParcel() 580 networkAgentConfig.legacyType = in.readInt();
|
D | NetworkRequest.java | 187 public final int legacyType; field in NetworkRequest 248 public NetworkRequest(NetworkCapabilities nc, int legacyType, int rId, Type type) { in NetworkRequest() argument 254 this.legacyType = legacyType; in NetworkRequest() 264 this.legacyType = that.legacyType; in NetworkRequest() 656 dest.writeInt(legacyType); in writeToParcel() 665 int legacyType = in.readInt(); 668 NetworkRequest result = new NetworkRequest(nc, legacyType, requestId, type); 793 (legacyType != ConnectivityManager.TYPE_NONE ? ", legacyType=" + legacyType : "") + in toString() 800 return (that.legacyType == this.legacyType && in equals() 807 return Objects.hash(requestId, legacyType, networkCapabilities, type); in hashCode()
|
D | ConnectivityManager.java | 4509 NetworkCallback callback, int timeoutMs, NetworkRequest.Type reqType, int legacyType, in sendRequestForNetwork() argument 4536 legacyType, callbackFlags, callingPackageName, getAttributionTag()); in sendRequestForNetwork() 4566 int timeoutMs, NetworkRequest.Type reqType, int legacyType, CallbackHandler handler) { in sendRequestForNetwork() argument 4568 legacyType, handler); in sendRequestForNetwork() 4592 int timeoutMs, int legacyType, @NonNull Handler handler, in requestNetwork() argument 4594 if (legacyType == TYPE_NONE) { in requestNetwork() 4599 sendRequestForNetwork(nc, networkCallback, timeoutMs, REQUEST, legacyType, cbHandler); in requestNetwork()
|
D | NetworkAgent.java | 496 final NetworkInfo ni = new NetworkInfo(config.legacyType, config.legacySubType, in getLegacyNetworkInfo()
|
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | TestConnectivityManager.java | 141 sendConnectivityAction(formerDefault.legacyType, false /* connected */); in sendDefaultNetworkBroadcasts() 144 sendConnectivityAction(defaultNetwork.legacyType, true /* connected */); in sendDefaultNetworkBroadcasts() 240 int timeoutMs, int legacyType, Handler h, NetworkCallback cb) { in requestNetwork() argument 242 NetworkRequest newReq = new NetworkRequest(req.networkCapabilities, legacyType, in requestNetwork() 248 if (legacyType != ConnectivityManager.TYPE_NONE) { in requestNetwork() 249 mLegacyTypeMap.put(cb, legacyType); in requestNetwork() 314 public final int legacyType; field in TestConnectivityManager.TestNetworkAgent 321 legacyType = toLegacyType(nc); in TestNetworkAgent() 329 this.legacyType = toLegacyType(networkCapabilities); in TestNetworkAgent() 339 private static boolean matchesLegacyType(NetworkCapabilities nc, int legacyType) { in matchesLegacyType() argument [all …]
|
D | UpstreamNetworkMonitorTest.java | 662 private void assertSatisfiesLegacyType(int legacyType, UpstreamNetworkState ns) { in assertSatisfiesLegacyType() argument 663 if (legacyType == TYPE_NONE) { in assertSatisfiesLegacyType() 669 UpstreamNetworkMonitor.networkCapabilitiesForType(legacyType); in assertSatisfiesLegacyType()
|
/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | ConnectivityManagerTest.java | 110 int legacyType, int transportType, int... capabilities) { in verifyNetworkCapabilities() argument 111 final NetworkCapabilities nc = ConnectivityManager.networkCapabilitiesForType(legacyType); in verifyNetworkCapabilities() 121 static void verifyUnrestrictedNetworkCapabilities(int legacyType, int transportType) { in verifyUnrestrictedNetworkCapabilities() argument 123 legacyType, in verifyUnrestrictedNetworkCapabilities() 131 static void verifyRestrictedMobileNetworkCapabilities(int legacyType, int capability) { in verifyRestrictedMobileNetworkCapabilities() argument 133 legacyType, in verifyRestrictedMobileNetworkCapabilities()
|
/packages/modules/IntentResolver/java/src/com/android/intentresolver/chooser/ |
D | ImmutableTargetInfo.java | 297 Builder setLegacyType(@NonNull LegacyTargetType legacyType) { in setLegacyType() argument 298 mLegacyType = legacyType; in setLegacyType() 608 LegacyTargetType legacyType) { in ImmutableTargetInfo() argument 628 mLegacyType = legacyType; in ImmutableTargetInfo()
|
/packages/modules/Connectivity/framework-t/src/android/net/ |
D | NetworkStateSnapshot.java | 68 @Nullable String subscriberId, int legacyType) { in NetworkStateSnapshot() argument 73 mLegacyType = legacyType; in NetworkStateSnapshot()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/base/ |
D | CSTestHelpers.kt | 72 internal fun emptyAgentConfig(legacyType: Int) = NetworkAgentConfig.Builder() in <lambda>() 73 .setLegacyType(legacyType) in <lambda>()
|
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/ |
D | UpstreamNetworkMonitor.java | 264 final int legacyType = mDunRequired ? TYPE_MOBILE_DUN : TYPE_MOBILE_HIPRI; in registerMobileNetworkRequest() local 273 cm().requestNetwork(mobileUpstreamRequest, 0, legacyType, mHandler, in registerMobileNetworkRequest()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/ |
D | NetworkStatsServiceTest.java | 2755 private static NetworkStateSnapshot buildStateOfTransport(int transport, int legacyType, in buildStateOfTransport() argument 2766 if (legacyType == TYPE_TEST && !TextUtils.isEmpty(wifiNetworkKey)) { in buildStateOfTransport() 2770 MOBILE_NETWORK, capabilities, prop, subscriberId, legacyType); in buildStateOfTransport()
|
/packages/modules/Connectivity/service/src/com/android/server/ |
D | ConnectivityService.java | 6017 final int requestLegacyType = nri.getActiveRequest().legacyType; 6053 if (otherRequest.legacyType == requestLegacyType 7958 int legacyType, int callbackFlags, @NonNull String callingPackageName, 7960 if (legacyType != TYPE_NONE && !hasNetworkStackPermission()) { 8047 final NetworkRequest networkRequest = new NetworkRequest(networkCapabilities, legacyType, 8670 nr.legacyType, nextNetworkRequestId(), nr.type)); 11125 if (nr.legacyType != TYPE_NONE && nr.isRequest()) { 11127 mLegacyTypeTracker.add(nr.legacyType, nai); 12483 if (request.legacyType != TYPE_NONE) {
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/ |
D | ConnectivityServiceTest.java | 11428 final int legacyType = transportToLegacyType(transportType); 11460 mServiceContext.expectDataActivityBroadcast(legacyType, false /* isActive */, 11486 mServiceContext.expectDataActivityBroadcast(legacyType, true /* isActive */, TIMESTAMP);
|