paulhu | 667e8fb | 2021-12-14 01:30:22 +0000 | [diff] [blame] | 1 | // Signature format: 2.0 |
Junyu Lai | 2ef865e | 2022-01-17 11:52:57 +0000 | [diff] [blame] | 2 | package android.app.usage { |
| 3 | |
| 4 | public class NetworkStatsManager { |
| 5 | method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK}) public void forceUpdate(); |
| 6 | method public static int getCollapsedRatType(int); |
| 7 | method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK}) public void notifyNetworkStatus(@NonNull java.util.List<android.net.Network>, @NonNull java.util.List<android.net.NetworkStateSnapshot>, @Nullable String, @NonNull java.util.List<android.net.UnderlyingNetworkInfo>); |
| 8 | method @NonNull @WorkerThread public android.app.usage.NetworkStats queryDetailsForDevice(@NonNull android.net.NetworkTemplate, long, long); |
| 9 | method @NonNull @WorkerThread public android.app.usage.NetworkStats queryDetailsForUidTagState(@NonNull android.net.NetworkTemplate, long, long, int, int, int) throws java.lang.SecurityException; |
| 10 | method @NonNull @WorkerThread public android.app.usage.NetworkStats querySummary(@NonNull android.net.NetworkTemplate, long, long) throws java.lang.SecurityException; |
| 11 | method @NonNull @WorkerThread public android.app.usage.NetworkStats.Bucket querySummaryForDevice(@NonNull android.net.NetworkTemplate, long, long); |
| 12 | method @NonNull @WorkerThread public android.app.usage.NetworkStats queryTaggedSummary(@NonNull android.net.NetworkTemplate, long, long) throws java.lang.SecurityException; |
Frank | 21d9760 | 2022-02-05 14:59:05 +0800 | [diff] [blame] | 13 | method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK}, conditional=true) public void registerUsageCallback(@NonNull android.net.NetworkTemplate, long, @NonNull java.util.concurrent.Executor, @NonNull android.app.usage.NetworkStatsManager.UsageCallback); |
Junyu Lai | 2ef865e | 2022-01-17 11:52:57 +0000 | [diff] [blame] | 14 | method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK}) public void setDefaultGlobalAlert(long); |
Remi NGUYEN VAN | 0046059 | 2022-02-03 11:32:46 +0900 | [diff] [blame] | 15 | method public void setPollForce(boolean); |
Junyu Lai | 2ef865e | 2022-01-17 11:52:57 +0000 | [diff] [blame] | 16 | method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK}) public void setPollOnOpen(boolean); |
| 17 | method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK}) public void setStatsProviderWarningAndLimitAsync(@NonNull String, long, long); |
| 18 | method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK}) public void setUidForeground(int, boolean); |
| 19 | field public static final int NETWORK_TYPE_5G_NSA = -2; // 0xfffffffe |
| 20 | } |
| 21 | |
| 22 | public abstract static class NetworkStatsManager.UsageCallback { |
| 23 | method public void onThresholdReached(@NonNull android.net.NetworkTemplate); |
| 24 | } |
| 25 | |
| 26 | } |
| 27 | |
Xinyi Zhou | ff98750 | 2022-03-09 17:38:41 -0800 | [diff] [blame^] | 28 | package android.nearby { |
| 29 | |
| 30 | public final class NearbyFrameworkInitializer { |
| 31 | method public static void registerServiceWrappers(); |
| 32 | } |
| 33 | |
| 34 | } |
| 35 | |
paulhu | 667e8fb | 2021-12-14 01:30:22 +0000 | [diff] [blame] | 36 | package android.net { |
| 37 | |
| 38 | public final class ConnectivityFrameworkInitializerTiramisu { |
| 39 | method public static void registerServiceWrappers(); |
| 40 | } |
| 41 | |
Yan Yan | f8063e3 | 2022-02-08 19:26:29 -0800 | [diff] [blame] | 42 | public class IpSecManager { |
Aaron Huang | 68ca373 | 2022-01-06 19:30:43 +0800 | [diff] [blame] | 43 | field public static final int DIRECTION_FWD = 2; // 0x2 |
| 44 | } |
| 45 | |
| 46 | public static final class IpSecManager.UdpEncapsulationSocket implements java.lang.AutoCloseable { |
| 47 | method public int getResourceId(); |
| 48 | } |
| 49 | |
Junyu Lai | 2ef865e | 2022-01-17 11:52:57 +0000 | [diff] [blame] | 50 | public class NetworkIdentity { |
| 51 | method public int getOemManaged(); |
| 52 | method public int getRatType(); |
lifr | 1f78860 | 2021-11-18 02:37:28 +0800 | [diff] [blame] | 53 | method public int getSubId(); |
Junyu Lai | 2ef865e | 2022-01-17 11:52:57 +0000 | [diff] [blame] | 54 | method @Nullable public String getSubscriberId(); |
| 55 | method public int getType(); |
| 56 | method @Nullable public String getWifiNetworkKey(); |
| 57 | method public boolean isDefaultNetwork(); |
| 58 | method public boolean isMetered(); |
| 59 | method public boolean isRoaming(); |
| 60 | } |
| 61 | |
| 62 | public static final class NetworkIdentity.Builder { |
| 63 | ctor public NetworkIdentity.Builder(); |
| 64 | method @NonNull public android.net.NetworkIdentity build(); |
| 65 | method @NonNull public android.net.NetworkIdentity.Builder clearRatType(); |
| 66 | method @NonNull public android.net.NetworkIdentity.Builder setDefaultNetwork(boolean); |
| 67 | method @NonNull public android.net.NetworkIdentity.Builder setMetered(boolean); |
| 68 | method @NonNull public android.net.NetworkIdentity.Builder setNetworkStateSnapshot(@NonNull android.net.NetworkStateSnapshot); |
| 69 | method @NonNull public android.net.NetworkIdentity.Builder setOemManaged(int); |
| 70 | method @NonNull public android.net.NetworkIdentity.Builder setRatType(int); |
| 71 | method @NonNull public android.net.NetworkIdentity.Builder setRoaming(boolean); |
lifr | 1f78860 | 2021-11-18 02:37:28 +0800 | [diff] [blame] | 72 | method @NonNull public android.net.NetworkIdentity.Builder setSubId(int); |
Junyu Lai | 2ef865e | 2022-01-17 11:52:57 +0000 | [diff] [blame] | 73 | method @NonNull public android.net.NetworkIdentity.Builder setSubscriberId(@Nullable String); |
| 74 | method @NonNull public android.net.NetworkIdentity.Builder setType(int); |
| 75 | method @NonNull public android.net.NetworkIdentity.Builder setWifiNetworkKey(@Nullable String); |
| 76 | } |
| 77 | |
| 78 | public final class NetworkStateSnapshot implements android.os.Parcelable { |
| 79 | ctor public NetworkStateSnapshot(@NonNull android.net.Network, @NonNull android.net.NetworkCapabilities, @NonNull android.net.LinkProperties, @Nullable String, int); |
| 80 | method public int describeContents(); |
| 81 | method public int getLegacyType(); |
| 82 | method @NonNull public android.net.LinkProperties getLinkProperties(); |
| 83 | method @NonNull public android.net.Network getNetwork(); |
| 84 | method @NonNull public android.net.NetworkCapabilities getNetworkCapabilities(); |
lifr | 1f78860 | 2021-11-18 02:37:28 +0800 | [diff] [blame] | 85 | method public int getSubId(); |
| 86 | method @Deprecated @Nullable public String getSubscriberId(); |
Junyu Lai | 2ef865e | 2022-01-17 11:52:57 +0000 | [diff] [blame] | 87 | method public void writeToParcel(@NonNull android.os.Parcel, int); |
| 88 | field @NonNull public static final android.os.Parcelable.Creator<android.net.NetworkStateSnapshot> CREATOR; |
| 89 | } |
| 90 | |
| 91 | public class NetworkStatsCollection { |
| 92 | method @NonNull public java.util.Map<android.net.NetworkStatsCollection.Key,android.net.NetworkStatsHistory> getEntries(); |
| 93 | } |
| 94 | |
| 95 | public static final class NetworkStatsCollection.Builder { |
| 96 | ctor public NetworkStatsCollection.Builder(long); |
| 97 | method @NonNull public android.net.NetworkStatsCollection.Builder addEntry(@NonNull android.net.NetworkStatsCollection.Key, @NonNull android.net.NetworkStatsHistory); |
| 98 | method @NonNull public android.net.NetworkStatsCollection build(); |
| 99 | } |
| 100 | |
| 101 | public static class NetworkStatsCollection.Key { |
| 102 | ctor public NetworkStatsCollection.Key(@NonNull java.util.Set<android.net.NetworkIdentity>, int, int, int); |
| 103 | } |
| 104 | |
| 105 | public final class NetworkStatsHistory implements android.os.Parcelable { |
| 106 | method public int describeContents(); |
| 107 | method @NonNull public java.util.List<android.net.NetworkStatsHistory.Entry> getEntries(); |
| 108 | method public void writeToParcel(@NonNull android.os.Parcel, int); |
| 109 | field @NonNull public static final android.os.Parcelable.Creator<android.net.NetworkStatsHistory> CREATOR; |
| 110 | } |
| 111 | |
| 112 | public static final class NetworkStatsHistory.Builder { |
| 113 | ctor public NetworkStatsHistory.Builder(long, int); |
| 114 | method @NonNull public android.net.NetworkStatsHistory.Builder addEntry(@NonNull android.net.NetworkStatsHistory.Entry); |
| 115 | method @NonNull public android.net.NetworkStatsHistory build(); |
| 116 | } |
| 117 | |
| 118 | public static final class NetworkStatsHistory.Entry { |
| 119 | ctor public NetworkStatsHistory.Entry(long, long, long, long, long, long, long); |
| 120 | method public long getActiveTime(); |
| 121 | method public long getBucketStart(); |
| 122 | method public long getOperations(); |
| 123 | method public long getRxBytes(); |
| 124 | method public long getRxPackets(); |
| 125 | method public long getTxBytes(); |
| 126 | method public long getTxPackets(); |
| 127 | } |
| 128 | |
| 129 | public final class NetworkTemplate implements android.os.Parcelable { |
| 130 | method public int describeContents(); |
| 131 | method public int getDefaultNetworkStatus(); |
| 132 | method public int getMatchRule(); |
| 133 | method public int getMeteredness(); |
| 134 | method public int getOemManaged(); |
| 135 | method public int getRatType(); |
| 136 | method public int getRoaming(); |
| 137 | method @NonNull public java.util.Set<java.lang.String> getSubscriberIds(); |
| 138 | method @NonNull public java.util.Set<java.lang.String> getWifiNetworkKeys(); |
| 139 | method public boolean matches(@NonNull android.net.NetworkIdentity); |
| 140 | method public void writeToParcel(@NonNull android.os.Parcel, int); |
| 141 | field @NonNull public static final android.os.Parcelable.Creator<android.net.NetworkTemplate> CREATOR; |
| 142 | field public static final int MATCH_BLUETOOTH = 8; // 0x8 |
| 143 | field public static final int MATCH_CARRIER = 10; // 0xa |
| 144 | field public static final int MATCH_ETHERNET = 5; // 0x5 |
| 145 | field public static final int MATCH_MOBILE = 1; // 0x1 |
Lorenzo Colitti | 2d869d5 | 2022-02-04 03:08:12 +0900 | [diff] [blame] | 146 | field public static final int MATCH_PROXY = 9; // 0x9 |
Junyu Lai | 2ef865e | 2022-01-17 11:52:57 +0000 | [diff] [blame] | 147 | field public static final int MATCH_WIFI = 4; // 0x4 |
| 148 | field public static final int NETWORK_TYPE_ALL = -1; // 0xffffffff |
| 149 | field public static final int OEM_MANAGED_ALL = -1; // 0xffffffff |
| 150 | field public static final int OEM_MANAGED_NO = 0; // 0x0 |
| 151 | field public static final int OEM_MANAGED_PAID = 1; // 0x1 |
| 152 | field public static final int OEM_MANAGED_PRIVATE = 2; // 0x2 |
| 153 | field public static final int OEM_MANAGED_YES = -2; // 0xfffffffe |
| 154 | } |
| 155 | |
| 156 | public static final class NetworkTemplate.Builder { |
| 157 | ctor public NetworkTemplate.Builder(int); |
| 158 | method @NonNull public android.net.NetworkTemplate build(); |
| 159 | method @NonNull public android.net.NetworkTemplate.Builder setDefaultNetworkStatus(int); |
| 160 | method @NonNull public android.net.NetworkTemplate.Builder setMeteredness(int); |
| 161 | method @NonNull public android.net.NetworkTemplate.Builder setOemManaged(int); |
| 162 | method @NonNull public android.net.NetworkTemplate.Builder setRatType(int); |
| 163 | method @NonNull public android.net.NetworkTemplate.Builder setRoaming(int); |
| 164 | method @NonNull public android.net.NetworkTemplate.Builder setSubscriberIds(@NonNull java.util.Set<java.lang.String>); |
| 165 | method @NonNull public android.net.NetworkTemplate.Builder setWifiNetworkKeys(@NonNull java.util.Set<java.lang.String>); |
| 166 | } |
| 167 | |
| 168 | public class TrafficStats { |
| 169 | method public static void attachSocketTagger(); |
| 170 | method public static void init(@NonNull android.content.Context); |
| 171 | } |
| 172 | |
| 173 | public final class UnderlyingNetworkInfo implements android.os.Parcelable { |
| 174 | ctor public UnderlyingNetworkInfo(int, @NonNull String, @NonNull java.util.List<java.lang.String>); |
| 175 | method public int describeContents(); |
| 176 | method @NonNull public String getInterface(); |
| 177 | method public int getOwnerUid(); |
| 178 | method @NonNull public java.util.List<java.lang.String> getUnderlyingInterfaces(); |
| 179 | method public void writeToParcel(@NonNull android.os.Parcel, int); |
| 180 | field @NonNull public static final android.os.Parcelable.Creator<android.net.UnderlyingNetworkInfo> CREATOR; |
| 181 | } |
| 182 | |
paulhu | 667e8fb | 2021-12-14 01:30:22 +0000 | [diff] [blame] | 183 | } |
| 184 | |