diff options
| author | Junyu Lai <junyulai@google.com> | 2022-04-18 06:50:56 +0000 |
|---|---|---|
| committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2022-04-18 06:50:56 +0000 |
| commit | 2a244d1f81f89063090be7b21d45fb2b78f5eba9 (patch) | |
| tree | f9d3ee506f4309e028714e9fced2800873a7a722 /framework-t/src | |
| parent | 227c24f6fb1ee2df3d58d3ba9fead3441604ce9f (diff) | |
| parent | 13b1d94286b26fb04c99990d149dea1328dda207 (diff) | |
Merge changes from topic "ms83-module-lib" am: 4513595a54 am: 13b1d94286
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2046384
Change-Id: I8583a468cd691527f2188057470e2363e239446f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'framework-t/src')
| -rw-r--r-- | framework-t/src/android/net/NetworkStats.java | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/framework-t/src/android/net/NetworkStats.java b/framework-t/src/android/net/NetworkStats.java index bcfeab9608..51ff5ec7ad 100644 --- a/framework-t/src/android/net/NetworkStats.java +++ b/framework-t/src/android/net/NetworkStats.java @@ -16,8 +16,6 @@ package android.net; -import static android.annotation.SystemApi.Client.MODULE_LIBRARIES; - import static com.android.net.module.util.NetworkStatsUtils.multiplySafeByRational; import android.annotation.IntDef; @@ -391,102 +389,80 @@ public final class NetworkStats implements Parcelable, Iterable<NetworkStats.Ent /** * @return the uid of this entry. - * @hide */ - @SystemApi(client = MODULE_LIBRARIES) public int getUid() { return uid; } /** * @return the set state of this entry. - * @hide */ - @SystemApi(client = MODULE_LIBRARIES) @State public int getSet() { return set; } /** * @return the tag value of this entry. - * @hide */ - @SystemApi(client = MODULE_LIBRARIES) public int getTag() { return tag; } /** * @return the metered state. - * @hide */ @Meteredness - @SystemApi(client = MODULE_LIBRARIES) public int getMetered() { return metered; } /** * @return the roaming state. - * @hide */ @Roaming - @SystemApi(client = MODULE_LIBRARIES) public int getRoaming() { return roaming; } /** * @return the default network state. - * @hide */ @DefaultNetwork - @SystemApi(client = MODULE_LIBRARIES) public int getDefaultNetwork() { return defaultNetwork; } /** * @return the number of received bytes. - * @hide */ - @SystemApi(client = MODULE_LIBRARIES) public long getRxBytes() { return rxBytes; } /** * @return the number of received packets. - * @hide */ - @SystemApi(client = MODULE_LIBRARIES) public long getRxPackets() { return rxPackets; } /** * @return the number of transmitted bytes. - * @hide */ - @SystemApi(client = MODULE_LIBRARIES) public long getTxBytes() { return txBytes; } /** * @return the number of transmitted packets. - * @hide */ - @SystemApi(client = MODULE_LIBRARIES) public long getTxPackets() { return txPackets; } /** * @return the count of network operations performed for this entry. - * @hide */ - @SystemApi(client = MODULE_LIBRARIES) public long getOperations() { return operations; } @@ -708,7 +684,7 @@ public final class NetworkStats implements Parcelable, Iterable<NetworkStats.Ent * The remove() method is not implemented and will throw UnsupportedOperationException. * @hide */ - @SystemApi(client = MODULE_LIBRARIES) + @SystemApi @NonNull public Iterator<Entry> iterator() { return new Iterator<Entry>() { int mIndex = 0; |
