Anton Hansson | 76d3db4 | 2020-04-09 14:16:37 +0100 | [diff] [blame] | 1 | // Signature format: 2.0 |
Makoto Onuki | db8d2bf | 2020-11-06 13:43:38 -0800 | [diff] [blame] | 2 | package android { |
| 3 | |
| 4 | public static final class Manifest.permission { |
| 5 | field public static final String GET_INTENT_SENDER_INTENT = "android.permission.GET_INTENT_SENDER_INTENT"; |
| 6 | } |
| 7 | |
| 8 | } |
| 9 | |
Nikita Ioffe | 89f7de1 | 2020-06-30 01:31:43 +0100 | [diff] [blame] | 10 | package android.app { |
| 11 | |
Hall Liu | ed473f4 | 2020-10-06 13:52:21 -0700 | [diff] [blame] | 12 | public class ActivityManager { |
| 13 | method @RequiresPermission(android.Manifest.permission.SET_ACTIVITY_WATCHER) public void addHomeVisibilityListener(@NonNull java.util.concurrent.Executor, @NonNull android.app.HomeVisibilityListener); |
| 14 | method @RequiresPermission(android.Manifest.permission.SET_ACTIVITY_WATCHER) public void removeHomeVisibilityListener(@NonNull android.app.HomeVisibilityListener); |
Hall Liu | c82d6aa | 2020-11-02 16:21:49 -0800 | [diff] [blame] | 15 | method @RequiresPermission(android.Manifest.permission.CHANGE_CONFIGURATION) public boolean updateMccMncConfiguration(@NonNull String, @NonNull String); |
Hall Liu | ed473f4 | 2020-10-06 13:52:21 -0700 | [diff] [blame] | 16 | } |
| 17 | |
Nikita Ioffe | 89f7de1 | 2020-06-30 01:31:43 +0100 | [diff] [blame] | 18 | public class AppOpsManager { |
| 19 | field public static final String OPSTR_NO_ISOLATED_STORAGE = "android:no_isolated_storage"; |
| 20 | } |
| 21 | |
paulhu | 52437ab | 2020-11-18 00:07:32 +0800 | [diff] [blame] | 22 | public class BroadcastOptions { |
| 23 | method public int getMaxManifestReceiverApiLevel(); |
| 24 | method public void setMaxManifestReceiverApiLevel(int); |
| 25 | } |
| 26 | |
Hall Liu | ed473f4 | 2020-10-06 13:52:21 -0700 | [diff] [blame] | 27 | public abstract class HomeVisibilityListener { |
| 28 | ctor public HomeVisibilityListener(); |
| 29 | method public abstract void onHomeVisibilityChanged(boolean); |
| 30 | } |
| 31 | |
Jin Seok Park | e1f4d51 | 2020-07-14 21:15:44 +0900 | [diff] [blame] | 32 | public class NotificationManager { |
| 33 | method public boolean hasEnabledNotificationListener(@NonNull String, @NonNull android.os.UserHandle); |
Jin Seok Park | 643f3e4 | 2020-07-29 17:21:36 +0900 | [diff] [blame] | 34 | field public static final String ACTION_NOTIFICATION_LISTENER_ENABLED_CHANGED = "android.app.action.NOTIFICATION_LISTENER_ENABLED_CHANGED"; |
Jin Seok Park | e1f4d51 | 2020-07-14 21:15:44 +0900 | [diff] [blame] | 35 | } |
| 36 | |
Makoto Onuki | db8d2bf | 2020-11-06 13:43:38 -0800 | [diff] [blame] | 37 | public final class PendingIntent implements android.os.Parcelable { |
paulhu | e48076b | 2021-03-03 11:44:31 +0800 | [diff] [blame] | 38 | method @RequiresPermission(android.Manifest.permission.GET_INTENT_SENDER_INTENT) public boolean intentFilterEquals(@Nullable android.app.PendingIntent); |
Jin Seok Park | 8a228cf | 2021-03-03 23:56:47 +0900 | [diff] [blame] | 39 | method @NonNull @RequiresPermission(android.Manifest.permission.GET_INTENT_SENDER_INTENT) public java.util.List<android.content.pm.ResolveInfo> queryIntentComponents(int); |
Makoto Onuki | db8d2bf | 2020-11-06 13:43:38 -0800 | [diff] [blame] | 40 | } |
| 41 | |
Hall Liu | 3dbee7e | 2020-09-15 15:25:46 -0700 | [diff] [blame] | 42 | public class StatusBarManager { |
Hall Liu | 409c989 | 2020-09-22 16:39:19 -0700 | [diff] [blame] | 43 | method @RequiresPermission(android.Manifest.permission.STATUS_BAR) public void setExpansionDisabledForSimNetworkLock(boolean); |
Hall Liu | 3dbee7e | 2020-09-15 15:25:46 -0700 | [diff] [blame] | 44 | } |
| 45 | |
Nikita Ioffe | 89f7de1 | 2020-06-30 01:31:43 +0100 | [diff] [blame] | 46 | } |
| 47 | |
junyulai | b4308db | 2021-01-23 11:00:10 +0800 | [diff] [blame] | 48 | package android.app.usage { |
| 49 | |
| 50 | public class NetworkStatsManager { |
| 51 | 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>); |
| 52 | } |
| 53 | |
| 54 | } |
| 55 | |
Hai Zhang | 84705c4 | 2021-01-12 17:00:23 -0800 | [diff] [blame] | 56 | package android.content { |
| 57 | |
Corina | 3fcaa52 | 2021-03-04 10:29:28 +0000 | [diff] [blame] | 58 | public abstract class ContentProvider implements android.content.ComponentCallbacks2 { |
| 59 | method @NonNull public static android.net.Uri createContentUriAsUser(@NonNull android.net.Uri, @NonNull android.os.UserHandle); |
| 60 | } |
| 61 | |
Hai Zhang | 84705c4 | 2021-01-12 17:00:23 -0800 | [diff] [blame] | 62 | public abstract class Context { |
| 63 | method @NonNull public android.os.UserHandle getUser(); |
Remi NGUYEN VAN | d31b352 | 2021-03-11 21:06:10 +0900 | [diff] [blame] | 64 | field public static final String TEST_NETWORK_SERVICE = "test_network"; |
Hai Zhang | 84705c4 | 2021-01-12 17:00:23 -0800 | [diff] [blame] | 65 | } |
| 66 | |
paulhu | 06caf5d | 2021-03-11 13:51:47 +0800 | [diff] [blame] | 67 | public class Intent implements java.lang.Cloneable android.os.Parcelable { |
| 68 | field public static final String ACTION_CLEAR_DNS_CACHE = "android.intent.action.CLEAR_DNS_CACHE"; |
| 69 | } |
| 70 | |
Hai Zhang | 84705c4 | 2021-01-12 17:00:23 -0800 | [diff] [blame] | 71 | } |
| 72 | |
| 73 | package android.content.pm { |
| 74 | |
| 75 | public abstract class PackageManager { |
| 76 | method @NonNull public String getPermissionControllerPackageName(); |
| 77 | } |
| 78 | |
| 79 | } |
| 80 | |
Anton Hansson | 76d3db4 | 2020-04-09 14:16:37 +0100 | [diff] [blame] | 81 | package android.content.rollback { |
| 82 | |
| 83 | public class RollbackManagerFrameworkInitializer { |
| 84 | method public static void initialize(); |
| 85 | } |
| 86 | |
| 87 | } |
| 88 | |
raychi | 88254a2 | 2020-09-30 19:04:08 +0800 | [diff] [blame] | 89 | package android.hardware.usb { |
| 90 | |
| 91 | public class UsbManager { |
| 92 | method @RequiresPermission(android.Manifest.permission.MANAGE_USB) public int getGadgetHalVersion(); |
| 93 | method public int getUsbBandwidth(); |
Albert Wang | 619abd2 | 2020-11-29 16:46:50 +0800 | [diff] [blame] | 94 | method @RequiresPermission(android.Manifest.permission.MANAGE_USB) public int getUsbHalVersion(); |
raychi | 88254a2 | 2020-09-30 19:04:08 +0800 | [diff] [blame] | 95 | field public static final int GADGET_HAL_NOT_SUPPORTED = -1; // 0xffffffff |
| 96 | field public static final int GADGET_HAL_V1_0 = 10; // 0xa |
| 97 | field public static final int GADGET_HAL_V1_1 = 11; // 0xb |
| 98 | field public static final int GADGET_HAL_V1_2 = 12; // 0xc |
| 99 | field public static final int USB_DATA_TRANSFER_RATE_10G = 10240; // 0x2800 |
| 100 | field public static final int USB_DATA_TRANSFER_RATE_20G = 20480; // 0x5000 |
| 101 | field public static final int USB_DATA_TRANSFER_RATE_40G = 40960; // 0xa000 |
| 102 | field public static final int USB_DATA_TRANSFER_RATE_5G = 5120; // 0x1400 |
| 103 | field public static final int USB_DATA_TRANSFER_RATE_FULL_SPEED = 12; // 0xc |
| 104 | field public static final int USB_DATA_TRANSFER_RATE_HIGH_SPEED = 480; // 0x1e0 |
| 105 | field public static final int USB_DATA_TRANSFER_RATE_LOW_SPEED = 2; // 0x2 |
| 106 | field public static final int USB_DATA_TRANSFER_RATE_UNKNOWN = -1; // 0xffffffff |
Albert Wang | 619abd2 | 2020-11-29 16:46:50 +0800 | [diff] [blame] | 107 | field public static final int USB_HAL_NOT_SUPPORTED = -1; // 0xffffffff |
| 108 | field public static final int USB_HAL_V1_0 = 10; // 0xa |
| 109 | field public static final int USB_HAL_V1_1 = 11; // 0xb |
| 110 | field public static final int USB_HAL_V1_2 = 12; // 0xc |
| 111 | field public static final int USB_HAL_V1_3 = 13; // 0xd |
raychi | 88254a2 | 2020-09-30 19:04:08 +0800 | [diff] [blame] | 112 | } |
| 113 | |
| 114 | } |
| 115 | |
Jin Seok Park | 4abc23e | 2020-07-30 22:28:50 +0900 | [diff] [blame] | 116 | package android.media { |
| 117 | |
| 118 | public class AudioManager { |
Jin Seok Park | 16aeba38 | 2020-08-06 12:52:54 +0900 | [diff] [blame] | 119 | method public void adjustStreamVolumeForUid(int, int, int, @NonNull String, int, int, int); |
| 120 | method public void adjustSuggestedStreamVolumeForUid(int, int, int, @NonNull String, int, int, int); |
| 121 | method public void setStreamVolumeForUid(int, int, int, @NonNull String, int, int, int); |
Jin Seok Park | 4abc23e | 2020-07-30 22:28:50 +0900 | [diff] [blame] | 122 | field public static final int FLAG_FROM_KEY = 4096; // 0x1000 |
| 123 | } |
| 124 | |
Chong Zhang | 9fc0e10 | 2020-08-24 17:30:15 -0700 | [diff] [blame] | 125 | public class MediaMetadataRetriever implements java.lang.AutoCloseable { |
| 126 | field public static final int METADATA_KEY_VIDEO_CODEC_MIME_TYPE = 40; // 0x28 |
| 127 | } |
| 128 | |
Chong Zhang | 864d0b7 | 2020-12-04 11:34:19 -0800 | [diff] [blame] | 129 | public class MediaServiceManager { |
Hyundo Moon | 47b6352 | 2020-12-18 20:57:07 +0900 | [diff] [blame] | 130 | method @NonNull public android.media.MediaServiceManager.ServiceRegisterer getMediaCommunicationServiceRegisterer(); |
Chong Zhang | 864d0b7 | 2020-12-04 11:34:19 -0800 | [diff] [blame] | 131 | method @NonNull public android.media.MediaServiceManager.ServiceRegisterer getMediaSessionServiceRegisterer(); |
| 132 | method @NonNull public android.media.MediaServiceManager.ServiceRegisterer getMediaTranscodingServiceRegisterer(); |
| 133 | } |
| 134 | |
| 135 | public static final class MediaServiceManager.ServiceRegisterer { |
| 136 | method @Nullable public android.os.IBinder get(); |
| 137 | } |
| 138 | |
Jin Seok Park | 4abc23e | 2020-07-30 22:28:50 +0900 | [diff] [blame] | 139 | } |
| 140 | |
Kyunglyul Hyun | c9857cf | 2020-08-03 11:39:45 +0900 | [diff] [blame] | 141 | package android.media.session { |
| 142 | |
Hyundo Moon | fc7d49f | 2020-09-03 11:48:11 +0900 | [diff] [blame] | 143 | public static final class MediaController.PlaybackInfo implements android.os.Parcelable { |
| 144 | ctor public MediaController.PlaybackInfo(int, int, @IntRange(from=0) int, @IntRange(from=0) int, @NonNull android.media.AudioAttributes, @Nullable String); |
| 145 | } |
| 146 | |
Kyunglyul Hyun | c9857cf | 2020-08-03 11:39:45 +0900 | [diff] [blame] | 147 | public final class MediaSession { |
| 148 | field public static final int FLAG_EXCLUSIVE_GLOBAL_PRIORITY = 65536; // 0x10000 |
| 149 | } |
| 150 | |
Hyundo Moon | 672620b0 | 2020-09-10 07:23:09 +0900 | [diff] [blame] | 151 | public static final class MediaSession.Token implements android.os.Parcelable { |
| 152 | method public int getUid(); |
| 153 | } |
| 154 | |
Jin Seok Park | a729a81 | 2020-08-07 12:48:32 +0900 | [diff] [blame] | 155 | public final class MediaSessionManager { |
Jin Seok Park | 11aee2c | 2021-02-04 22:15:17 +0900 | [diff] [blame] | 156 | method public void addOnActiveSessionsChangedListener(@Nullable android.content.ComponentName, @NonNull android.os.UserHandle, @NonNull java.util.concurrent.Executor, @NonNull android.media.session.MediaSessionManager.OnActiveSessionsChangedListener); |
Jin Seok Park | 7ffb73f | 2021-01-07 15:51:57 +0900 | [diff] [blame] | 157 | method public void dispatchMediaKeyEvent(@NonNull android.view.KeyEvent, boolean); |
Jin Seok Park | a729a81 | 2020-08-07 12:48:32 +0900 | [diff] [blame] | 158 | method public void dispatchMediaKeyEventAsSystemService(@NonNull android.view.KeyEvent); |
Jin Seok Park | 5287e24 | 2020-09-01 21:56:27 +0900 | [diff] [blame] | 159 | method public boolean dispatchMediaKeyEventToSessionAsSystemService(@NonNull android.view.KeyEvent, @NonNull android.media.session.MediaSession.Token); |
Jin Seok Park | 7ffb73f | 2021-01-07 15:51:57 +0900 | [diff] [blame] | 160 | method public void dispatchVolumeKeyEvent(@NonNull android.view.KeyEvent, int, boolean); |
Jin Seok Park | a729a81 | 2020-08-07 12:48:32 +0900 | [diff] [blame] | 161 | method public void dispatchVolumeKeyEventAsSystemService(@NonNull android.view.KeyEvent, int); |
Jin Seok Park | 5287e24 | 2020-09-01 21:56:27 +0900 | [diff] [blame] | 162 | method public void dispatchVolumeKeyEventToSessionAsSystemService(@NonNull android.view.KeyEvent, @NonNull android.media.session.MediaSession.Token); |
Jin Seok Park | 2db6bcb | 2020-12-21 23:13:53 +0900 | [diff] [blame] | 163 | method @NonNull public java.util.List<android.media.session.MediaController> getActiveSessionsForUser(@Nullable android.content.ComponentName, @NonNull android.os.UserHandle); |
Jin Seok Park | 2dc180a | 2020-12-15 18:54:30 +0900 | [diff] [blame] | 164 | method public void registerRemoteSessionCallback(@NonNull java.util.concurrent.Executor, @NonNull android.media.session.MediaSessionManager.RemoteSessionCallback); |
| 165 | method public void unregisterRemoteSessionCallback(@NonNull android.media.session.MediaSessionManager.RemoteSessionCallback); |
Hyundo Moon | f8bedc9 | 2020-09-10 07:44:30 +0900 | [diff] [blame] | 166 | field public static final int RESULT_MEDIA_KEY_HANDLED = 1; // 0x1 |
| 167 | field public static final int RESULT_MEDIA_KEY_NOT_HANDLED = 0; // 0x0 |
Jin Seok Park | a729a81 | 2020-08-07 12:48:32 +0900 | [diff] [blame] | 168 | } |
| 169 | |
Jin Seok Park | 2dc180a | 2020-12-15 18:54:30 +0900 | [diff] [blame] | 170 | public static interface MediaSessionManager.RemoteSessionCallback { |
| 171 | method public void onDefaultRemoteSessionChanged(@Nullable android.media.session.MediaSession.Token); |
Jin Seok Park | 18b8feb | 2020-10-27 16:02:07 +0900 | [diff] [blame] | 172 | method public void onVolumeChanged(@NonNull android.media.session.MediaSession.Token, int); |
| 173 | } |
| 174 | |
Kyunglyul Hyun | 278ec96 | 2020-08-20 23:10:30 +0900 | [diff] [blame] | 175 | public final class PlaybackState implements android.os.Parcelable { |
| 176 | method public boolean isActiveState(); |
| 177 | } |
| 178 | |
Kyunglyul Hyun | c9857cf | 2020-08-03 11:39:45 +0900 | [diff] [blame] | 179 | } |
| 180 | |
paulhu | 81bbd3c1 | 2020-12-08 17:24:21 +0800 | [diff] [blame] | 181 | package android.net { |
| 182 | |
Remi NGUYEN VAN | 6d98157 | 2021-02-04 14:20:19 +0900 | [diff] [blame] | 183 | public final class EthernetNetworkSpecifier extends android.net.NetworkSpecifier implements android.os.Parcelable { |
| 184 | ctor public EthernetNetworkSpecifier(@NonNull String); |
| 185 | method public int describeContents(); |
| 186 | method @Nullable public String getInterfaceName(); |
| 187 | method public void writeToParcel(@NonNull android.os.Parcel, int); |
| 188 | field @NonNull public static final android.os.Parcelable.Creator<android.net.EthernetNetworkSpecifier> CREATOR; |
| 189 | } |
| 190 | |
Chiachang Wang | 5e26cc8 | 2021-01-12 18:48:13 +0800 | [diff] [blame] | 191 | public static final class IpSecManager.UdpEncapsulationSocket implements java.lang.AutoCloseable { |
| 192 | method public int getResourceId(); |
| 193 | } |
| 194 | |
Sudheer Shanka | 98dd271 | 2021-03-02 06:33:46 +0000 | [diff] [blame] | 195 | public class NetworkPolicyManager { |
| 196 | method @NonNull public static String blockedReasonsToString(int); |
Remi NGUYEN VAN | 87eb49b | 2021-03-18 14:23:12 +0900 | [diff] [blame] | 197 | method @RequiresPermission(android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK) public int getMultipathPreference(@NonNull android.net.Network); |
| 198 | method @RequiresPermission(android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK) public int getRestrictBackgroundStatus(int); |
Lorenzo Colitti | 0c1a37b | 2021-03-18 15:54:31 +0900 | [diff] [blame] | 199 | method @RequiresPermission(android.Manifest.permission.OBSERVE_NETWORK_POLICY) public boolean isUidNetworkingBlocked(int, boolean); |
| 200 | method @RequiresPermission(android.Manifest.permission.OBSERVE_NETWORK_POLICY) public boolean isUidRestrictedOnMeteredNetworks(int); |
Sudheer Shanka | 98dd271 | 2021-03-02 06:33:46 +0000 | [diff] [blame] | 201 | method @RequiresPermission(android.Manifest.permission.OBSERVE_NETWORK_POLICY) public void registerNetworkPolicyCallback(@Nullable java.util.concurrent.Executor, @NonNull android.net.NetworkPolicyManager.NetworkPolicyCallback); |
| 202 | method @RequiresPermission(android.Manifest.permission.OBSERVE_NETWORK_POLICY) public void unregisterNetworkPolicyCallback(@NonNull android.net.NetworkPolicyManager.NetworkPolicyCallback); |
Sudheer Shanka | 98dd271 | 2021-03-02 06:33:46 +0000 | [diff] [blame] | 203 | } |
| 204 | |
| 205 | public static interface NetworkPolicyManager.NetworkPolicyCallback { |
| 206 | method public default void onUidBlockedReasonChanged(int, int); |
| 207 | } |
| 208 | |
junyulai | 604fd08 | 2020-12-30 19:03:32 +0800 | [diff] [blame] | 209 | public final class NetworkStateSnapshot implements android.os.Parcelable { |
| 210 | ctor public NetworkStateSnapshot(@NonNull android.net.Network, @NonNull android.net.NetworkCapabilities, @NonNull android.net.LinkProperties, @Nullable String, int); |
| 211 | method public int describeContents(); |
| 212 | method public void writeToParcel(@NonNull android.os.Parcel, int); |
| 213 | field @NonNull public static final android.os.Parcelable.Creator<android.net.NetworkStateSnapshot> CREATOR; |
| 214 | field public final int legacyType; |
| 215 | field @NonNull public final android.net.LinkProperties linkProperties; |
| 216 | field @NonNull public final android.net.Network network; |
| 217 | field @NonNull public final android.net.NetworkCapabilities networkCapabilities; |
| 218 | field @Nullable public final String subscriberId; |
| 219 | } |
| 220 | |
paulhu | 5119787 | 2021-02-19 15:30:02 +0800 | [diff] [blame] | 221 | public class NetworkWatchlistManager { |
| 222 | method @Nullable public byte[] getWatchlistConfigHash(); |
| 223 | } |
| 224 | |
Aaron Huang | 5d31a15 | 2021-01-18 15:28:01 +0800 | [diff] [blame] | 225 | public class PacProxyManager { |
| 226 | method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_STACK, android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_SETTINGS}) public void addPacProxyInstalledListener(@NonNull java.util.concurrent.Executor, @NonNull android.net.PacProxyManager.PacProxyInstalledListener); |
| 227 | method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_STACK, android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_SETTINGS}) public void removePacProxyInstalledListener(@NonNull android.net.PacProxyManager.PacProxyInstalledListener); |
| 228 | method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_STACK, android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_SETTINGS}) public void setCurrentProxyScriptUrl(@Nullable android.net.ProxyInfo); |
| 229 | } |
| 230 | |
| 231 | public static interface PacProxyManager.PacProxyInstalledListener { |
| 232 | method public void onPacProxyInstalled(@Nullable android.net.Network, @NonNull android.net.ProxyInfo); |
| 233 | } |
| 234 | |
Remi NGUYEN VAN | 9200ec1 | 2021-02-22 07:28:12 +0000 | [diff] [blame] | 235 | public final class Proxy { |
| 236 | method public static void setHttpProxyConfiguration(@Nullable android.net.ProxyInfo); |
| 237 | } |
| 238 | |
junyulai | 755356f | 2021-01-28 21:19:32 +0800 | [diff] [blame] | 239 | public final class UnderlyingNetworkInfo implements android.os.Parcelable { |
| 240 | ctor public UnderlyingNetworkInfo(int, @NonNull String, @NonNull java.util.List<java.lang.String>); |
| 241 | method public int describeContents(); |
| 242 | method public void writeToParcel(@NonNull android.os.Parcel, int); |
| 243 | field @NonNull public static final android.os.Parcelable.Creator<android.net.UnderlyingNetworkInfo> CREATOR; |
| 244 | field @NonNull public final String iface; |
| 245 | field public final int ownerUid; |
| 246 | field @NonNull public final java.util.List<java.lang.String> underlyingIfaces; |
| 247 | } |
| 248 | |
lucaslin | 62b2252 | 2021-03-10 16:57:57 +0800 | [diff] [blame] | 249 | public class VpnManager { |
| 250 | field @Deprecated public static final int TYPE_VPN_LEGACY = 3; // 0x3 |
| 251 | field public static final int TYPE_VPN_NONE = -1; // 0xffffffff |
Lorenzo Colitti | 4763300f | 2021-03-18 12:54:37 +0900 | [diff] [blame] | 252 | field public static final int TYPE_VPN_OEM = 4; // 0x4 |
lucaslin | 62b2252 | 2021-03-10 16:57:57 +0800 | [diff] [blame] | 253 | field public static final int TYPE_VPN_PLATFORM = 2; // 0x2 |
| 254 | field public static final int TYPE_VPN_SERVICE = 1; // 0x1 |
| 255 | } |
| 256 | |
paulhu | 81bbd3c1 | 2020-12-08 17:24:21 +0800 | [diff] [blame] | 257 | } |
| 258 | |
Anton Hansson | 76d3db4 | 2020-04-09 14:16:37 +0100 | [diff] [blame] | 259 | package android.os { |
| 260 | |
Aaron Huang | 558b317 | 2020-10-26 17:34:50 +0800 | [diff] [blame] | 261 | public final class BatteryStatsManager { |
| 262 | method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK}) public void reportNetworkInterfaceForTransports(@NonNull String, @NonNull int[]) throws java.lang.RuntimeException; |
| 263 | } |
| 264 | |
Steven Moreland | 95dd53b | 2020-07-23 21:22:18 +0000 | [diff] [blame] | 265 | public class Binder implements android.os.IBinder { |
| 266 | method public final void markVintfStability(); |
| 267 | } |
| 268 | |
paulhu | 69f79b0 | 2021-01-06 12:00:29 +0800 | [diff] [blame] | 269 | public static class Build.VERSION { |
| 270 | field public static final int FIRST_SDK_INT; |
| 271 | } |
| 272 | |
Steven Moreland | e5bd46e | 2020-07-28 01:18:42 +0000 | [diff] [blame] | 273 | public interface Parcelable { |
Steven Moreland | 7542475 | 2020-08-05 19:42:15 +0000 | [diff] [blame] | 274 | method public default int getStability(); |
Steven Moreland | e5bd46e | 2020-07-28 01:18:42 +0000 | [diff] [blame] | 275 | } |
| 276 | |
lucaslin | e4ea3d4 | 2021-03-17 19:04:01 +0800 | [diff] [blame] | 277 | public class Process { |
| 278 | field public static final int VPN_UID = 1016; // 0x3f8 |
| 279 | } |
| 280 | |
Anton Hansson | 76d3db4 | 2020-04-09 14:16:37 +0100 | [diff] [blame] | 281 | public class StatsServiceManager { |
| 282 | method @NonNull public android.os.StatsServiceManager.ServiceRegisterer getStatsCompanionServiceRegisterer(); |
| 283 | method @NonNull public android.os.StatsServiceManager.ServiceRegisterer getStatsManagerServiceRegisterer(); |
| 284 | method @NonNull public android.os.StatsServiceManager.ServiceRegisterer getStatsdServiceRegisterer(); |
| 285 | } |
| 286 | |
| 287 | public static class StatsServiceManager.ServiceNotFoundException extends java.lang.Exception { |
| 288 | ctor public StatsServiceManager.ServiceNotFoundException(@NonNull String); |
| 289 | } |
| 290 | |
| 291 | public static final class StatsServiceManager.ServiceRegisterer { |
| 292 | method @Nullable public android.os.IBinder get(); |
| 293 | method @Nullable public android.os.IBinder getOrThrow() throws android.os.StatsServiceManager.ServiceNotFoundException; |
| 294 | } |
| 295 | |
| 296 | } |
| 297 | |
Zim | c534503 | 2021-02-23 16:35:05 +0000 | [diff] [blame] | 298 | package android.os.storage { |
| 299 | |
| 300 | public class StorageManager { |
Zim | 055878b | 2021-03-03 12:39:55 +0000 | [diff] [blame] | 301 | method public void notifyAppIoBlocked(@NonNull java.util.UUID, int, int, int); |
| 302 | method public void notifyAppIoResumed(@NonNull java.util.UUID, int, int, int); |
Zim | 308a048 | 2021-03-25 16:15:36 +0000 | [diff] [blame] | 303 | field public static final int APP_IO_BLOCKED_REASON_TRANSCODING = 1; // 0x1 |
| 304 | field public static final int APP_IO_BLOCKED_REASON_UNKNOWN = 0; // 0x0 |
Zim | c534503 | 2021-02-23 16:35:05 +0000 | [diff] [blame] | 305 | } |
| 306 | |
Martijn Coenen | b329228 | 2021-03-22 10:51:41 +0100 | [diff] [blame] | 307 | public final class StorageVolume implements android.os.Parcelable { |
| 308 | method @NonNull public android.os.UserHandle getOwner(); |
| 309 | } |
| 310 | |
Zim | c534503 | 2021-02-23 16:35:05 +0000 | [diff] [blame] | 311 | } |
| 312 | |
Kweku Adams | 1e55861 | 2020-08-24 10:13:15 -0700 | [diff] [blame] | 313 | package android.provider { |
| 314 | |
| 315 | public final class DeviceConfig { |
Kweku Adams | 1e7a69c | 2020-08-28 12:47:06 -0700 | [diff] [blame] | 316 | field public static final String NAMESPACE_ALARM_MANAGER = "alarm_manager"; |
Kweku Adams | 01e36ae | 2020-10-19 14:45:33 -0700 | [diff] [blame] | 317 | field public static final String NAMESPACE_APP_STANDBY = "app_standby"; |
Kweku Adams | 1e55861 | 2020-08-24 10:13:15 -0700 | [diff] [blame] | 318 | field public static final String NAMESPACE_DEVICE_IDLE = "device_idle"; |
| 319 | } |
| 320 | |
| 321 | } |
| 322 | |
Hall Liu | 57d7090 | 2020-10-13 19:19:12 -0700 | [diff] [blame] | 323 | package android.telephony { |
| 324 | |
| 325 | public abstract class CellSignalStrength { |
| 326 | method public static int getNumSignalStrengthLevels(); |
| 327 | } |
| 328 | |
| 329 | public class TelephonyManager { |
| 330 | method @NonNull public static int[] getAllNetworkTypes(); |
| 331 | } |
| 332 | |
| 333 | } |
| 334 | |
Anton Hansson | 76d3db4 | 2020-04-09 14:16:37 +0100 | [diff] [blame] | 335 | package android.util { |
| 336 | |
| 337 | public class AtomicFile { |
| 338 | ctor public AtomicFile(@NonNull java.io.File, @Nullable android.util.SystemConfigFileCommitEventLogger); |
| 339 | } |
| 340 | |
| 341 | public final class Log { |
| 342 | method public static int logToRadioBuffer(int, @Nullable String, @Nullable String); |
| 343 | } |
| 344 | |
| 345 | public class SystemConfigFileCommitEventLogger { |
| 346 | ctor public SystemConfigFileCommitEventLogger(@NonNull String); |
| 347 | method public void setStartTime(long); |
| 348 | } |
| 349 | |
| 350 | } |
| 351 | |