diff options
author | junyulai <junyulai@google.com> | 2020-12-30 19:03:32 +0800 |
---|---|---|
committer | junyulai <junyulai@google.com> | 2021-03-02 23:09:16 +0800 |
commit | 604fd08ca8eb2f2a7353159c34d43199593b973f (patch) | |
tree | 88811ea490903a2e7acd82beb9c78bf97c53d803 /core/api | |
parent | 6b704360478c78e65d7f0a700b5b5333352a16aa (diff) |
[FUI09] Expose NetworkStateSnapshot as system API
This is needed by NetworkStatsService and
NetworkPolicyManagerService to utilize the snapshots of
information of networks that grabbed from ConnectivityService.
Test: atest FrameworksNetTests NetworkPolicyManagerServiceTest
Bug: 174123988
Change-Id: I7e974ef7b23ba9ba6ee775eed9899b0c0e2eca55
Diffstat (limited to 'core/api')
-rw-r--r-- | core/api/module-lib-current.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/core/api/module-lib-current.txt b/core/api/module-lib-current.txt index c0e79f62236b..a3846561b8d2 100644 --- a/core/api/module-lib-current.txt +++ b/core/api/module-lib-current.txt @@ -14,6 +14,18 @@ package android.net { method public int getResourceId(); } + public final class NetworkStateSnapshot implements android.os.Parcelable { + ctor public NetworkStateSnapshot(@NonNull android.net.Network, @NonNull android.net.NetworkCapabilities, @NonNull android.net.LinkProperties, @Nullable String, int); + method public int describeContents(); + method public void writeToParcel(@NonNull android.os.Parcel, int); + field @NonNull public static final android.os.Parcelable.Creator<android.net.NetworkStateSnapshot> CREATOR; + field public final int legacyType; + field @NonNull public final android.net.LinkProperties linkProperties; + field @NonNull public final android.net.Network network; + field @NonNull public final android.net.NetworkCapabilities networkCapabilities; + field @Nullable public final String subscriberId; + } + public class NetworkWatchlistManager { method @Nullable public byte[] getWatchlistConfigHash(); } |