| Motomu Utsumi | 5dcd145 | 2023-09-07 18:39:06 +0900 | [diff] [blame] | 1 | // Signature format: 2.0 | 
|  | 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 @NonNull @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK}) public android.net.NetworkStats getMobileUidStats(); | 
|  | 8 | method @NonNull @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK}) public android.net.NetworkStats getWifiUidStats(); | 
|  | 9 | method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK}) public void noteUidForeground(int, boolean); | 
|  | 10 | 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>); | 
|  | 11 | method @NonNull @WorkerThread public android.app.usage.NetworkStats queryDetailsForDevice(@NonNull android.net.NetworkTemplate, long, long); | 
|  | 12 | method @NonNull @WorkerThread public android.app.usage.NetworkStats queryDetailsForUidTagState(@NonNull android.net.NetworkTemplate, long, long, int, int, int) throws java.lang.SecurityException; | 
|  | 13 | method @NonNull @WorkerThread public android.app.usage.NetworkStats querySummary(@NonNull android.net.NetworkTemplate, long, long) throws java.lang.SecurityException; | 
|  | 14 | method @NonNull @WorkerThread public android.app.usage.NetworkStats.Bucket querySummaryForDevice(@NonNull android.net.NetworkTemplate, long, long); | 
|  | 15 | method @NonNull @WorkerThread public android.app.usage.NetworkStats queryTaggedSummary(@NonNull android.net.NetworkTemplate, long, long) throws java.lang.SecurityException; | 
|  | 16 | 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); | 
|  | 17 | method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK}) public void setDefaultGlobalAlert(long); | 
|  | 18 | method public void setPollForce(boolean); | 
|  | 19 | method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK}) public void setPollOnOpen(boolean); | 
|  | 20 | method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK}) public void setStatsProviderWarningAndLimitAsync(@NonNull String, long, long); | 
|  | 21 | field public static final int NETWORK_TYPE_5G_NSA = -2; // 0xfffffffe | 
|  | 22 | } | 
|  | 23 |  | 
|  | 24 | public abstract static class NetworkStatsManager.UsageCallback { | 
|  | 25 | method public void onThresholdReached(@NonNull android.net.NetworkTemplate); | 
|  | 26 | } | 
|  | 27 |  | 
|  | 28 | } | 
|  | 29 |  | 
|  | 30 | package android.nearby { | 
|  | 31 |  | 
|  | 32 | public final class NearbyFrameworkInitializer { | 
|  | 33 | method public static void registerServiceWrappers(); | 
|  | 34 | } | 
|  | 35 |  | 
|  | 36 | } | 
|  | 37 |  | 
|  | 38 | package android.net { | 
|  | 39 |  | 
|  | 40 | public final class ConnectivityFrameworkInitializerTiramisu { | 
|  | 41 | method public static void registerServiceWrappers(); | 
|  | 42 | } | 
|  | 43 |  | 
|  | 44 | public class EthernetManager { | 
|  | 45 | method @RequiresPermission(android.Manifest.permission.ACCESS_NETWORK_STATE) public void addEthernetStateListener(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.IntConsumer); | 
|  | 46 | method @RequiresPermission(android.Manifest.permission.ACCESS_NETWORK_STATE) public void addInterfaceStateListener(@NonNull java.util.concurrent.Executor, @NonNull android.net.EthernetManager.InterfaceStateListener); | 
|  | 47 | method @NonNull @RequiresPermission(android.Manifest.permission.ACCESS_NETWORK_STATE) public java.util.List<java.lang.String> getInterfaceList(); | 
|  | 48 | method @RequiresPermission(android.Manifest.permission.ACCESS_NETWORK_STATE) public void removeEthernetStateListener(@NonNull java.util.function.IntConsumer); | 
|  | 49 | method public void removeInterfaceStateListener(@NonNull android.net.EthernetManager.InterfaceStateListener); | 
|  | 50 | method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK, android.Manifest.permission.NETWORK_SETTINGS}) public void setEthernetEnabled(boolean); | 
|  | 51 | method public void setIncludeTestInterfaces(boolean); | 
|  | 52 | field public static final int ETHERNET_STATE_DISABLED = 0; // 0x0 | 
|  | 53 | field public static final int ETHERNET_STATE_ENABLED = 1; // 0x1 | 
|  | 54 | field public static final int ROLE_CLIENT = 1; // 0x1 | 
|  | 55 | field public static final int ROLE_NONE = 0; // 0x0 | 
|  | 56 | field public static final int ROLE_SERVER = 2; // 0x2 | 
|  | 57 | field public static final int STATE_ABSENT = 0; // 0x0 | 
|  | 58 | field public static final int STATE_LINK_DOWN = 1; // 0x1 | 
|  | 59 | field public static final int STATE_LINK_UP = 2; // 0x2 | 
|  | 60 | } | 
|  | 61 |  | 
|  | 62 | public static interface EthernetManager.InterfaceStateListener { | 
|  | 63 | method public void onInterfaceStateChanged(@NonNull String, int, int, @Nullable android.net.IpConfiguration); | 
|  | 64 | } | 
|  | 65 |  | 
|  | 66 | public class IpSecManager { | 
|  | 67 | field public static final int DIRECTION_FWD = 2; // 0x2 | 
|  | 68 | } | 
|  | 69 |  | 
|  | 70 | public static final class IpSecManager.UdpEncapsulationSocket implements java.lang.AutoCloseable { | 
|  | 71 | method public int getResourceId(); | 
|  | 72 | } | 
|  | 73 |  | 
|  | 74 | public class NetworkIdentity { | 
|  | 75 | method public int getOemManaged(); | 
|  | 76 | method public int getRatType(); | 
|  | 77 | method public int getSubId(); | 
|  | 78 | method @Nullable public String getSubscriberId(); | 
|  | 79 | method public int getType(); | 
|  | 80 | method @Nullable public String getWifiNetworkKey(); | 
|  | 81 | method public boolean isDefaultNetwork(); | 
|  | 82 | method public boolean isMetered(); | 
|  | 83 | method public boolean isRoaming(); | 
|  | 84 | } | 
|  | 85 |  | 
|  | 86 | public static final class NetworkIdentity.Builder { | 
|  | 87 | ctor public NetworkIdentity.Builder(); | 
|  | 88 | method @NonNull public android.net.NetworkIdentity build(); | 
|  | 89 | method @NonNull public android.net.NetworkIdentity.Builder clearRatType(); | 
|  | 90 | method @NonNull public android.net.NetworkIdentity.Builder setDefaultNetwork(boolean); | 
|  | 91 | method @NonNull public android.net.NetworkIdentity.Builder setMetered(boolean); | 
|  | 92 | method @NonNull public android.net.NetworkIdentity.Builder setNetworkStateSnapshot(@NonNull android.net.NetworkStateSnapshot); | 
|  | 93 | method @NonNull public android.net.NetworkIdentity.Builder setOemManaged(int); | 
|  | 94 | method @NonNull public android.net.NetworkIdentity.Builder setRatType(int); | 
|  | 95 | method @NonNull public android.net.NetworkIdentity.Builder setRoaming(boolean); | 
|  | 96 | method @NonNull public android.net.NetworkIdentity.Builder setSubId(int); | 
|  | 97 | method @NonNull public android.net.NetworkIdentity.Builder setSubscriberId(@Nullable String); | 
|  | 98 | method @NonNull public android.net.NetworkIdentity.Builder setType(int); | 
|  | 99 | method @NonNull public android.net.NetworkIdentity.Builder setWifiNetworkKey(@Nullable String); | 
|  | 100 | } | 
|  | 101 |  | 
|  | 102 | public final class NetworkStateSnapshot implements android.os.Parcelable { | 
|  | 103 | ctor public NetworkStateSnapshot(@NonNull android.net.Network, @NonNull android.net.NetworkCapabilities, @NonNull android.net.LinkProperties, @Nullable String, int); | 
|  | 104 | method public int describeContents(); | 
|  | 105 | method public int getLegacyType(); | 
|  | 106 | method @NonNull public android.net.LinkProperties getLinkProperties(); | 
|  | 107 | method @NonNull public android.net.Network getNetwork(); | 
|  | 108 | method @NonNull public android.net.NetworkCapabilities getNetworkCapabilities(); | 
|  | 109 | method public int getSubId(); | 
|  | 110 | method @Deprecated @Nullable public String getSubscriberId(); | 
|  | 111 | method public void writeToParcel(@NonNull android.os.Parcel, int); | 
|  | 112 | field @NonNull public static final android.os.Parcelable.Creator<android.net.NetworkStateSnapshot> CREATOR; | 
|  | 113 | } | 
|  | 114 |  | 
|  | 115 | public class NetworkStatsCollection { | 
|  | 116 | method @NonNull public java.util.Map<android.net.NetworkStatsCollection.Key,android.net.NetworkStatsHistory> getEntries(); | 
|  | 117 | } | 
|  | 118 |  | 
|  | 119 | public static final class NetworkStatsCollection.Builder { | 
|  | 120 | ctor public NetworkStatsCollection.Builder(long); | 
|  | 121 | method @NonNull public android.net.NetworkStatsCollection.Builder addEntry(@NonNull android.net.NetworkStatsCollection.Key, @NonNull android.net.NetworkStatsHistory); | 
|  | 122 | method @NonNull public android.net.NetworkStatsCollection build(); | 
|  | 123 | } | 
|  | 124 |  | 
|  | 125 | public static final class NetworkStatsCollection.Key { | 
|  | 126 | ctor public NetworkStatsCollection.Key(@NonNull java.util.Set<android.net.NetworkIdentity>, int, int, int); | 
|  | 127 | } | 
|  | 128 |  | 
|  | 129 | public final class NetworkStatsHistory implements android.os.Parcelable { | 
|  | 130 | method public int describeContents(); | 
|  | 131 | method @NonNull public java.util.List<android.net.NetworkStatsHistory.Entry> getEntries(); | 
|  | 132 | method public void writeToParcel(@NonNull android.os.Parcel, int); | 
|  | 133 | field @NonNull public static final android.os.Parcelable.Creator<android.net.NetworkStatsHistory> CREATOR; | 
|  | 134 | } | 
|  | 135 |  | 
|  | 136 | public static final class NetworkStatsHistory.Builder { | 
|  | 137 | ctor public NetworkStatsHistory.Builder(long, int); | 
|  | 138 | method @NonNull public android.net.NetworkStatsHistory.Builder addEntry(@NonNull android.net.NetworkStatsHistory.Entry); | 
|  | 139 | method @NonNull public android.net.NetworkStatsHistory build(); | 
|  | 140 | } | 
|  | 141 |  | 
|  | 142 | public static final class NetworkStatsHistory.Entry { | 
|  | 143 | ctor public NetworkStatsHistory.Entry(long, long, long, long, long, long, long); | 
|  | 144 | method public long getActiveTime(); | 
|  | 145 | method public long getBucketStart(); | 
|  | 146 | method public long getOperations(); | 
|  | 147 | method public long getRxBytes(); | 
|  | 148 | method public long getRxPackets(); | 
|  | 149 | method public long getTxBytes(); | 
|  | 150 | method public long getTxPackets(); | 
|  | 151 | } | 
|  | 152 |  | 
|  | 153 | public final class NetworkTemplate implements android.os.Parcelable { | 
|  | 154 | method public int describeContents(); | 
|  | 155 | method public int getDefaultNetworkStatus(); | 
|  | 156 | method public int getMatchRule(); | 
|  | 157 | method public int getMeteredness(); | 
|  | 158 | method public int getOemManaged(); | 
|  | 159 | method public int getRatType(); | 
|  | 160 | method public int getRoaming(); | 
|  | 161 | method @NonNull public java.util.Set<java.lang.String> getSubscriberIds(); | 
|  | 162 | method @NonNull public java.util.Set<java.lang.String> getWifiNetworkKeys(); | 
|  | 163 | method public boolean matches(@NonNull android.net.NetworkIdentity); | 
|  | 164 | method public void writeToParcel(@NonNull android.os.Parcel, int); | 
|  | 165 | field @NonNull public static final android.os.Parcelable.Creator<android.net.NetworkTemplate> CREATOR; | 
|  | 166 | field public static final int MATCH_BLUETOOTH = 8; // 0x8 | 
|  | 167 | field public static final int MATCH_CARRIER = 10; // 0xa | 
|  | 168 | field public static final int MATCH_ETHERNET = 5; // 0x5 | 
|  | 169 | field public static final int MATCH_MOBILE = 1; // 0x1 | 
|  | 170 | field public static final int MATCH_PROXY = 9; // 0x9 | 
|  | 171 | field public static final int MATCH_WIFI = 4; // 0x4 | 
|  | 172 | field public static final int NETWORK_TYPE_ALL = -1; // 0xffffffff | 
|  | 173 | field public static final int OEM_MANAGED_ALL = -1; // 0xffffffff | 
|  | 174 | field public static final int OEM_MANAGED_NO = 0; // 0x0 | 
|  | 175 | field public static final int OEM_MANAGED_PAID = 1; // 0x1 | 
|  | 176 | field public static final int OEM_MANAGED_PRIVATE = 2; // 0x2 | 
|  | 177 | field public static final int OEM_MANAGED_YES = -2; // 0xfffffffe | 
|  | 178 | } | 
|  | 179 |  | 
|  | 180 | public static final class NetworkTemplate.Builder { | 
|  | 181 | ctor public NetworkTemplate.Builder(int); | 
|  | 182 | method @NonNull public android.net.NetworkTemplate build(); | 
|  | 183 | method @NonNull public android.net.NetworkTemplate.Builder setDefaultNetworkStatus(int); | 
|  | 184 | method @NonNull public android.net.NetworkTemplate.Builder setMeteredness(int); | 
|  | 185 | method @NonNull public android.net.NetworkTemplate.Builder setOemManaged(int); | 
|  | 186 | method @NonNull public android.net.NetworkTemplate.Builder setRatType(int); | 
|  | 187 | method @NonNull public android.net.NetworkTemplate.Builder setRoaming(int); | 
|  | 188 | method @NonNull public android.net.NetworkTemplate.Builder setSubscriberIds(@NonNull java.util.Set<java.lang.String>); | 
|  | 189 | method @NonNull public android.net.NetworkTemplate.Builder setWifiNetworkKeys(@NonNull java.util.Set<java.lang.String>); | 
|  | 190 | } | 
|  | 191 |  | 
|  | 192 | public class TrafficStats { | 
|  | 193 | method public static void attachSocketTagger(); | 
|  | 194 | method public static void init(@NonNull android.content.Context); | 
|  | 195 | method public static void setThreadStatsTagDownload(); | 
|  | 196 | } | 
|  | 197 |  | 
|  | 198 | public final class UnderlyingNetworkInfo implements android.os.Parcelable { | 
|  | 199 | ctor public UnderlyingNetworkInfo(int, @NonNull String, @NonNull java.util.List<java.lang.String>); | 
|  | 200 | method public int describeContents(); | 
|  | 201 | method @NonNull public String getInterface(); | 
|  | 202 | method public int getOwnerUid(); | 
|  | 203 | method @NonNull public java.util.List<java.lang.String> getUnderlyingInterfaces(); | 
|  | 204 | method public void writeToParcel(@NonNull android.os.Parcel, int); | 
|  | 205 | field @NonNull public static final android.os.Parcelable.Creator<android.net.UnderlyingNetworkInfo> CREATOR; | 
|  | 206 | } | 
|  | 207 |  | 
|  | 208 | } | 
|  | 209 |  |