[API] make ThreadNetworkSpecifier @SystemApi
This class can be used with ConnectivityManager#requestNetwork to request connecting to a specific Thread network from system apps. Bug: 377258309 Flag: com.android.net.thread.flags.thread_mobile_enabled Change-Id: I80cb992380236b045e4e331b9861274d8cd10cfd
This commit is contained in:
parent
78c5e676b8
commit
c4d212c5d4
1 changed files with 30 additions and 1 deletions
|
|
@ -580,5 +580,20 @@ package android.net.thread {
|
|||
method @NonNull public java.util.List<android.net.thread.ThreadNetworkController> getAllThreadNetworkControllers();
|
||||
}
|
||||
|
||||
@FlaggedApi("com.android.net.thread.flags.thread_mobile_enabled") public final class ThreadNetworkSpecifier extends android.net.NetworkSpecifier implements android.os.Parcelable {
|
||||
method public int describeContents();
|
||||
method @Nullable public android.net.thread.ActiveOperationalDataset getActiveOperationalDataset();
|
||||
method public boolean shouldCreatePartitionIfNotFound();
|
||||
method public void writeToParcel(@NonNull android.os.Parcel, int);
|
||||
field @NonNull public static final android.os.Parcelable.Creator<android.net.thread.ThreadNetworkSpecifier> CREATOR;
|
||||
}
|
||||
|
||||
public static final class ThreadNetworkSpecifier.Builder {
|
||||
ctor public ThreadNetworkSpecifier.Builder();
|
||||
method @NonNull public android.net.thread.ThreadNetworkSpecifier build();
|
||||
method @NonNull public android.net.thread.ThreadNetworkSpecifier.Builder setActiveOperationalDataset(@Nullable android.net.thread.ActiveOperationalDataset);
|
||||
method @NonNull public android.net.thread.ThreadNetworkSpecifier.Builder setShouldCreatePartitionIfNotFound(boolean);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue