Merge "Improve annotation and javadoc for set/getTransportType APIs" into main

This commit is contained in:
Treehugger Robot 2025-06-12 04:34:11 -07:00 • committed by Android (Google) Code Review
commit da3cfacbf6

View file

@ -1291,6 +1291,7 @@ public final class NetworkCapabilities implements Parcelable {
private long mTransportTypes;
/** @hide */
// LINT.IfChange
@Retention(RetentionPolicy.SOURCE)
@IntDef(prefix = { "TRANSPORT_" }, value = {
TRANSPORT_CELLULAR,
@ -1306,6 +1307,7 @@ public final class NetworkCapabilities implements Parcelable {
TRANSPORT_SATELLITE,
})
public @interface Transport { }
// LINT.ThenChange(../../../../framework-t/src/android/net/NetworkTemplate.java)
/**
* Indicates this network uses a Cellular transport.